PlugInsContextMenu Class Reference

Implements the plug-ins context sensitive menus. More...

#include <plugop.h>

Inheritance diagram for PlugInsContextMenu:

ContextMenu BfxPlugInContextMenu List of all members.

Public Member Functions

 PlugInsContextMenu ()
 To construct ;-).
 PlugInsContextMenu (KernelBitmap *pBitmap, Document *pDocument)
 Default constructer.
virtual BOOL Build (void)
 To build the Plug-ins pop-up menu.

Static Public Member Functions

static BOOL BuildMenu (KernelBitmap *pBitmap, Document *pDocument, ContextMenu *pContextMenu, MenuItem *pMainRoot=NULL, BOOL AddSeparator=FALSE, BOOL UseUndoable=FALSE)
 To build the a plug-ins pop-up menu either directly or tacked on as a sub-menu item to the specified pMainRoot. At present, this is the pop-ups that appear over the bitmap gallery and so are very bitmap related.

Protected Attributes

KernelBitmapm_pBitmap
Documentm_pDocument

Private Member Functions

 CC_DECLARE_MEMDUMP (PlugInsContextMenu)

Detailed Description

Implements the plug-ins context sensitive menus.

Author:
Neville_Humphrys (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/11/96
See also:
ContextMenu

Definition at line 155 of file plugop.h.


Constructor & Destructor Documentation

PlugInsContextMenu::PlugInsContextMenu  ) 
 

To construct ;-).

Author:
Neville_Humphrys (Xara Group Ltd) <camelotdev@xara.com>
Date:
11/12/96
Parameters:
- [INPUTS]
- [OUTPUTS]

Definition at line 441 of file plugop.cpp.

00442 {
00443     // As we are just about to invoke UI, check that the plug-in manager has its list
00444     // of available plug-ins otherwise, go and get it now as we are just about to need it.
00445     /* PlugInManager* pManager = GetApplication()->GetPlugInManager();
00446     if (pManager)
00447         pManager->CheckHaveDetailsOnPlugIns(); */
00448 }

PlugInsContextMenu::PlugInsContextMenu KernelBitmap pBitmap,
Document pDocument
 

Default constructer.

Author:
Neville_Humphrys (Xara Group Ltd) <camelotdev@xara.com>
Date:
5/3/97
Parameters:
pBitmap the bitmap to apply the effect to [INPUTS] pDocument the document the bitmap is stored in
- [OUTPUTS]

Definition at line 463 of file plugop.cpp.

00464 {
00465     // remember them for later use
00466     m_pBitmap = pBitmap;
00467     m_pDocument = pDocument;
00468 
00469     // As we are just about to invoke UI, check that the plug-in manager has its list
00470     // of available plug-ins otherwise, go and get it now as we are just about to need it.
00471     /* PlugInManager* pManager = GetApplication()->GetPlugInManager();
00472     if (pManager)
00473         pManager->CheckHaveDetailsOnPlugIns(); */
00474 }


Member Function Documentation

BOOL PlugInsContextMenu::Build void   )  [virtual]
 

To build the Plug-ins pop-up menu.

Author:
Neville_Humphrys (Xara Group Ltd) <camelotdev@xara.com>
Date:
11/12/96
Returns:
TRUE if menu built OK FALSE (and sets error) otherwise

Reimplemented from ContextMenu.

Reimplemented in BfxPlugInContextMenu.

Definition at line 488 of file plugop.cpp.

00489 {
00490     return PlugInsContextMenu::BuildMenu(m_pBitmap, m_pDocument, this);
00491 }

BOOL PlugInsContextMenu::BuildMenu KernelBitmap pBitmap,
Document pDocument,
ContextMenu pContextMenu,
MenuItem pMainRoot = NULL,
BOOL  AddSeparator = FALSE,
BOOL  UseUndoable = FALSE
[static]
 

To build the a plug-ins pop-up menu either directly or tacked on as a sub-menu item to the specified pMainRoot. At present, this is the pop-ups that appear over the bitmap gallery and so are very bitmap related.

Author:
Neville_Humphrys (Xara Group Ltd) <camelotdev@xara.com>
Date:
4/3/97
Parameters:
pBitmap bitmap the effect is to be applied to [INPUTS] pDocument the document the bitmap is in pContextMenu the menu we want to add to pMainRoot the root menu to add this menu to, defaults to no parent AddSeparator True if want a separator added to the last item on the menu UseUndoable True if want the undoable operations instead of the non-undoable Defaults to False
Returns:
TRUE if menu built OK FALSE (and sets error) otherwise

Reimplemented in BfxPlugInContextMenu.

Definition at line 516 of file plugop.cpp.

00519 {
00520     ERROR2IF(pContextMenu == NULL,FALSE,"PlugInsContextMenu::BuildMenu null ContextMenu to add to");
00521 
00522     BOOL ok = TRUE;
00523 
00524     // As we are just about to invoke UI, check that the plug-in manager has its list
00525     // of available plug-ins otherwise, go and get it now as we are just about to need it.
00526 //  PlugInManager* pManager = GetApplication()->GetPlugInManager();
00527 //  if (pManager)
00528 //      pManager->CheckHaveDetailsOnPlugIns();
00529 
00530 //#ifndef WEBSTER
00531 //#ifndef EXCLUDE_BFX
00532 //  ok = ok && BfxPlugInContextMenu::BuildMenu(pBitmap, pDocument, pContextMenu, pMainRoot, TRUE, UseUndoable);
00533 //#endif
00534 //#endif // WEBSTER
00535 //  ok = ok && PhotoShopContextMenu::BuildMenu(pBitmap, pDocument, pContextMenu, pMainRoot, FALSE, UseUndoable);
00536 
00537     ok = ok && BfxPlugInContextMenu::BuildMenu(pBitmap, pDocument, pContextMenu, pMainRoot, TRUE, UseUndoable);
00538     
00539     return ok;
00540 }

PlugInsContextMenu::CC_DECLARE_MEMDUMP PlugInsContextMenu   )  [private]
 


Member Data Documentation

KernelBitmap* PlugInsContextMenu::m_pBitmap [protected]
 

Reimplemented in BfxPlugInContextMenu.

Definition at line 173 of file plugop.h.

Document* PlugInsContextMenu::m_pDocument [protected]
 

Reimplemented in BfxPlugInContextMenu.

Definition at line 174 of file plugop.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 03:59:49 2007 for Camelot by  doxygen 1.4.4