SmToolBoxWindow Class Reference

#include <toolbox.hxx>

List of all members.

Public Member Functions

 SmToolBoxWindow (SfxBindings *pBindings, SfxChildWindow *pChildWindow, Window *pParent)
 ~SmToolBoxWindow ()
virtual void StateChanged (StateChangedType nStateChange)
virtual void DataChanged (const DataChangedEvent &rEvt)
void AdjustPosSize (BOOL bSetPos)
void SetCategory (USHORT nCategory)

Protected Member Functions

virtual BOOL Close ()
virtual void GetFocus ()
void ApplyImageLists (USHORT nCategoryRID)
 DECL_LINK (CategoryClickHdl, ToolBox *)
 DECL_LINK (CmdSelectHdl, ToolBox *)
SmViewShellGetView ()
const ImageList * GetImageList (USHORT nResId, BOOL bHighContrast)

Protected Attributes

ToolBox aToolBoxCat
FixedLine aToolBoxCat_Delim
ToolBox * pToolBoxCmd
ToolBox * vToolBoxCategories [NUM_TBX_CATEGORIES]
ImageList * aImageLists [NUM_TBX_CATEGORIES+1]
ImageList * aImageListsH [NUM_TBX_CATEGORIES+1]
USHORT nActiveCategoryRID


Detailed Description

Definition at line 59 of file toolbox.hxx.


Constructor & Destructor Documentation

SmToolBoxWindow::SmToolBoxWindow ( SfxBindings *  pBindings,
SfxChildWindow *  pChildWindow,
Window *  pParent 
)

Definition at line 162 of file toolbox.cxx.

References aImageLists, aImageListsH, ApplyImageLists(), aToolBoxCat, nActiveCategoryRID, NUM_TBX_CATEGORIES, pToolBoxCmd, SetCategory(), and vToolBoxCategories.

SmToolBoxWindow::~SmToolBoxWindow (  ) 

Definition at line 199 of file toolbox.cxx.

References aImageLists, aImageListsH, NUM_TBX_CATEGORIES, and vToolBoxCategories.


Member Function Documentation

BOOL SmToolBoxWindow::Close (  )  [protected, virtual]

Definition at line 338 of file toolbox.cxx.

References SmViewShell::Execute(), and GetView().

void SmToolBoxWindow::GetFocus (  )  [protected, virtual]

Definition at line 348 of file toolbox.cxx.

References aToolBoxCat.

void SmToolBoxWindow::ApplyImageLists ( USHORT  nCategoryRID  )  [protected]

Definition at line 248 of file toolbox.cxx.

References aToolBoxCat, GetImageList(), GetImageListRID(), GetToolBoxCategoriesIndex(), and vToolBoxCategories.

Referenced by DataChanged(), SetCategory(), and SmToolBoxWindow().

SmToolBoxWindow::DECL_LINK ( CategoryClickHdl  ,
ToolBox *   
) [protected]

SmToolBoxWindow::DECL_LINK ( CmdSelectHdl  ,
ToolBox *   
) [protected]

SmViewShell * SmToolBoxWindow::GetView (  )  [protected]

Definition at line 215 of file toolbox.cxx.

Referenced by AdjustPosSize(), and Close().

const ImageList * SmToolBoxWindow::GetImageList ( USHORT  nResId,
BOOL  bHighContrast 
) [protected]

Definition at line 222 of file toolbox.cxx.

References aImageLists, aImageListsH, GetCategoryRID(), GetToolBoxCategoriesIndex(), and NUM_TBX_CATEGORIES.

Referenced by ApplyImageLists().

void SmToolBoxWindow::StateChanged ( StateChangedType  nStateChange  )  [virtual]

Definition at line 275 of file toolbox.cxx.

References AdjustPosSize(), and SetCategory().

void SmToolBoxWindow::DataChanged ( const DataChangedEvent &  rEvt  )  [virtual]

Definition at line 267 of file toolbox.cxx.

References ApplyImageLists(), and nActiveCategoryRID.

void SmToolBoxWindow::AdjustPosSize ( BOOL  bSetPos  ) 

Definition at line 291 of file toolbox.cxx.

References aToolBoxCat, aToolBoxCat_Delim, SmViewShell::GetGraphicWindow(), GetView(), NUM_TBX_CATEGORIES, pToolBoxCmd, and vToolBoxCategories.

Referenced by StateChanged().

void SmToolBoxWindow::SetCategory ( USHORT  nCategory  ) 

Definition at line 355 of file toolbox.cxx.

References ApplyImageLists(), aToolBoxCat, GetToolBoxCategoriesIndex(), nActiveCategoryRID, pToolBoxCmd, and vToolBoxCategories.

Referenced by SmToolBoxWindow(), and StateChanged().


Member Data Documentation

ToolBox SmToolBoxWindow::aToolBoxCat [protected]

Definition at line 63 of file toolbox.hxx.

Referenced by AdjustPosSize(), ApplyImageLists(), GetFocus(), SetCategory(), and SmToolBoxWindow().

FixedLine SmToolBoxWindow::aToolBoxCat_Delim [protected]

Definition at line 64 of file toolbox.hxx.

Referenced by AdjustPosSize().

ToolBox* SmToolBoxWindow::pToolBoxCmd [protected]

Definition at line 65 of file toolbox.hxx.

Referenced by AdjustPosSize(), SetCategory(), and SmToolBoxWindow().

ToolBox* SmToolBoxWindow::vToolBoxCategories[NUM_TBX_CATEGORIES] [protected]

Definition at line 66 of file toolbox.hxx.

Referenced by AdjustPosSize(), ApplyImageLists(), SetCategory(), SmToolBoxWindow(), and ~SmToolBoxWindow().

ImageList* SmToolBoxWindow::aImageLists[NUM_TBX_CATEGORIES+1] [protected]

Definition at line 67 of file toolbox.hxx.

Referenced by GetImageList(), SmToolBoxWindow(), and ~SmToolBoxWindow().

ImageList* SmToolBoxWindow::aImageListsH[NUM_TBX_CATEGORIES+1] [protected]

Definition at line 68 of file toolbox.hxx.

Referenced by GetImageList(), SmToolBoxWindow(), and ~SmToolBoxWindow().

USHORT SmToolBoxWindow::nActiveCategoryRID [protected]

Definition at line 69 of file toolbox.hxx.

Referenced by DataChanged(), SetCategory(), and SmToolBoxWindow().


The documentation for this class was generated from the following files:
Generated on Wed Feb 20 17:23:40 2008 for maths by  doxygen 1.5.1