Ejemplo n.º 1
0
// Provides the entry point used by xp plugin code, (NPGLUE.C), to control
// scroll bars.  The inputs are obvious, and there is no return val.
void FE_ShowScrollBars(MWContext* pContext, XP_Bool show)
{
    if(ABSTRACTCX(pContext)->IsWindowContext())	{
        CPaneCX *pPaneCX = PANECX(pContext);

        pPaneCX->ShowScrollBars(SB_BOTH, show);
    }
}
Ejemplo n.º 2
0
void CFE_AllConnectionsComplete(MWContext *pContext)	{

	if(ABSTRACTCX(pContext)->IsDestroyed())	{
		//	Don't allow this to happen if the context has been destroyed...
		TRACE("Context %p Destroyed :: AllConnectionsComplete Blocking\n", pContext);
		return;
	}

#ifdef MOZ_MAIL_NEWS
    if (IS_MESSAGE_COMPOSE(pContext)) {
		MSG_Pane *pPane = MSG_FindPane( pContext, MSG_COMPOSITIONPANE );
		ASSERT( pPane );
        MSG_MailCompositionAllConnectionsComplete ( pPane );
	}

	if (NET_IsOffline()) {
		FE_Progress(pContext, szLoadString(IDS_STATUS_OFFLINE));
	} else 
#endif   
    {
		//	Set the progress to be complete.
		FE_Progress(pContext, szLoadString(IDS_DOC_DONE));
	}

    ABSTRACTCX(pContext)->AllConnectionsComplete(pContext);
	FE_DeleteDNSList(pContext);

#ifdef EDITOR
#ifdef XP_WIN16    
    if( EDT_IS_EDITOR(pContext) ){
        // For some bizzare reason, we don't get proper focus 
        //   when starting an Edit frame+View in Win16
        // This fixes that
        ::SetFocus(PANECX(pContext)->GetPane());
    }
#endif
#endif

#ifdef DEBUG_WHITEBOX
	// AfxMessageBox("cfe.cpp: Try Again?");
	if (IS_MAIL_READER(pContext)) {
		if (QATestCaseStarted == FALSE) {
			QADoDeleteMessageEventHandler();
		}
	}
#endif
}
Ejemplo n.º 3
0
void CFE_UpdateStopState(MWContext *pContext)	{
	TRACE("CFE_UpdateStopState(%p)\n", pContext);

	if(ABSTRACTCX(pContext)->IsDestroyed())	{
		//	Don't allow this to happen if the context has been destroyed...
		TRACE("Context %p Destroyed :: UpdateStopState Blocking\n", pContext);
		return;
	}
    ABSTRACTCX(pContext)->UpdateStopState(pContext);
#ifdef EDITOR
#ifdef XP_WIN16    
    if( EDT_IS_EDITOR(pContext) ){
        // For some bizzare reason, we don't get proper focus 
        //   when starting an Edit frame+View in Win16
        // This fixes that
        ::SetFocus(PANECX(pContext)->GetPane());
    }
#endif
#endif
}
Ejemplo n.º 4
0
NPError FE_PluginGetValue(MWContext *pContext, NPEmbeddedApp *pApp, 
                          NPNVariable variable, void *pRetVal)
{
    NPError ret = NPERR_NO_ERROR;
    
    switch (variable) {
        case NPNVnetscapeWindow:
        {
            if (pContext->type != MWContextPrint)
                *(HWND *)pRetVal = PANECX(pContext)->GetPane();
            else
                ret = NPERR_INVALID_PARAM;
        }
         break;
        default:
            *(void **)pRetVal = NULL;
            break;
    }

    return ret;
}