Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions | Variables
plugin.cpp File Reference
#include <os2.h>
#include <assert.h>
#include "npnulos2.h"
#include "plugin.h"
#include "utils.h"
#include "dialogs.h"
#include "dbg.h"
#include "nsIServiceManager.h"
#include "nsIPref.h"

Go to the source code of this file.

Defines

#define INCL_GPI
#define INCL_WIN
#define INSET   1

Functions

MRESULT EXPENTRY PluginWndProc (HWND, ULONG, MPARAM, MPARAM)
BOOL RegisterNullPluginWindowClass ()
void UnregisterNullPluginWindowClass ()
static void DrawCommandMessage (HPS hPS, PSZ szString, PRECTL lprc)

Variables

nsIServiceManagergServiceManager = NULL
static char szNullPluginWindowClassName [] = CLASS_NULL_PLUGIN
static char szDefaultPluginFinderURL [] = DEFAULT_PLUGINFINDER_URL
static char szPageUrlForJavaScript [] = PAGE_URL_FOR_JAVASCRIPT
static char szPageUrlForJVM [] = JVM_SMARTUPDATE_URL
static char szPluginFinderCommandBeginning [] = PLUGINFINDER_COMMAND_BEGINNING
static char szPluginFinderCommandEnd [] = PLUGINFINDER_COMMAND_END

Define Documentation

Definition at line 38 of file plugin.cpp.

Definition at line 39 of file plugin.cpp.

#define INSET   1

Definition at line 636 of file plugin.cpp.


Function Documentation

static void DrawCommandMessage ( HPS  hPS,
PSZ  szString,
PRECTL  lprc 
) [static]

Definition at line 614 of file plugin.cpp.

{
  if(szString == NULL)
    return;

  POINTL ptls[5];
  GpiQueryTextBox(hPS, strlen(szString), szString, 5, ptls);

  /* If the text won't fit, don't draw anything */
  if (ptls[TXTBOX_CONCAT].x > lprc->xRight)
     return;

  RECTL rcText = rcText = *lprc; 

  /* Reduce top of rectangle by twice the icon size so the */
  /* text draws below the icon */
  rcText.yTop -= 80;

  WinDrawText(hPS, strlen(szString), szString, &rcText, 0, 0,
              DT_TEXTATTRS | DT_CENTER | DT_VCENTER);
}

Here is the caller graph for this function:

MRESULT EXPENTRY PluginWndProc ( HWND  hWnd,
ULONG  message,
MPARAM  mp1,
MPARAM  mp2 
)

Definition at line 65 of file plugin.cpp.

{
  return WinRegisterClass( (HAB)0, szNullPluginWindowClassName, (PFNWP)PluginWndProc, 0, sizeof(ULONG));
}

Here is the caller graph for this function:

Definition at line 70 of file plugin.cpp.

{
}

Here is the caller graph for this function:


Variable Documentation

Definition at line 52 of file plugin.cpp.

Definition at line 58 of file plugin.cpp.

Definition at line 54 of file plugin.cpp.

Definition at line 59 of file plugin.cpp.

Definition at line 60 of file plugin.cpp.

Definition at line 62 of file plugin.cpp.

Definition at line 63 of file plugin.cpp.