SmSymDefineDialog Class Reference

#include <dialog.hxx>

Collaboration diagram for SmSymDefineDialog:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SmSymDefineDialog (Window *pParent, OutputDevice *pFntListDevice, SmSymSetManager &rMgr, BOOL bFreeRes=TRUE)
 ~SmSymDefineDialog ()
virtual short Execute ()
BOOL SelectOldSymbolSet (const XubString &rSymbolSetName)
BOOL SelectOldSymbol (const XubString &rSymbolName)
BOOL SelectSymbolSet (const XubString &rSymbolSetName)
BOOL SelectSymbol (const XubString &rSymbolName)
BOOL SelectFont (const XubString &rFontName)
BOOL SelectStyle (const XubString &rStyleName)
void SelectChar (xub_Unicode cChar)

Private Member Functions

 DECL_LINK (OldSymbolChangeHdl, ComboBox *)
 DECL_LINK (OldSymbolSetChangeHdl, ComboBox *)
 DECL_LINK (ModifyHdl, ComboBox *)
 DECL_LINK (FontChangeHdl, ListBox *)
 DECL_LINK (SubsetChangeHdl, ListBox *)
 DECL_LINK (StyleChangeHdl, ComboBox *)
 DECL_LINK (CharHighlightHdl, Control *pControl)
 DECL_LINK (AddClickHdl, Button *)
 DECL_LINK (ChangeClickHdl, Button *)
 DECL_LINK (DeleteClickHdl, Button *)
void FillSymbols (ComboBox &rComboBox, BOOL bDeleteText=TRUE)
void FillSymbolSets (ComboBox &rComboBox, BOOL bDeleteText=TRUE)
void FillFonts (BOOL bDeleteText=TRUE)
void FillStyles (BOOL bDeleteText=TRUE)
void SetSymbolSetManager (const SmSymSetManager &rMgr)
void SetFont (const XubString &rFontName, const XubString &rStyleName)
void SetOrigSymbol (const SmSym *pSymbol, const XubString &rSymbolSetName)
void UpdateButtons ()
BOOL SelectSymbolSet (ComboBox &rComboBox, const XubString &rSymbolSetName, BOOL bDeleteText)
BOOL SelectSymbol (ComboBox &rComboBox, const XubString &rSymbolName, BOOL bDeleteText)
BOOL SelectFont (const XubString &rFontName, BOOL bApplyFont)
BOOL SelectStyle (const XubString &rStyleName, BOOL bApplyFont)
SmSymSetGetSymbolSet (const ComboBox &rComboBox)
const SmSymSetGetSymbolSet (const ComboBox &rComboBox) const
SmSymGetSymbol (const ComboBox &rComboBox)
const SmSymGetSymbol (const ComboBox &rComboBox) const
void InitColor_Impl ()
virtual void DataChanged (const DataChangedEvent &rDCEvt)

Private Attributes

FixedText aOldSymbolText
ComboBox aOldSymbols
FixedText aOldSymbolSetText
ComboBox aOldSymbolSets
SvxShowCharSet aCharsetDisplay
FixedText aSymbolText
ComboBox aSymbols
FixedText aSymbolSetText
ComboBox aSymbolSets
FixedText aFontText
ListBox aFonts
FixedText aFontsSubsetFT
ListBox aFontsSubsetLB
FixedText aStyleText
FontStyleBox aStyles
FixedText aOldSymbolName
SmShowChar aOldSymbolDisplay
FixedText aOldSymbolSetName
FixedText aSymbolName
SmShowChar aSymbolDisplay
FixedText aSymbolSetName
OKButton aOkBtn
CancelButton aCancelBtn
PushButton aAddBtn
PushButton aChangeBtn
PushButton aDeleteBtn
FixedImage aRightArrow
Image aRigthArrow_Im
Image aRigthArrow_Im_HC
SmSymSetManager aSymSetMgrCopy
SmSymSetManagerrSymSetMgr
const SmSympOrigSymbol
const SubsetMap * pSubsetMap
FontList * pFontList

Detailed Description

Definition at line 456 of file dialog.hxx.


Constructor & Destructor Documentation

SmSymDefineDialog::SmSymDefineDialog ( Window *  pParent,
OutputDevice *  pFntListDevice,
SmSymSetManager rMgr,
BOOL  bFreeRes = TRUE 
)

Definition at line 2150 of file dialog.cxx.

References aAddBtn, aChangeBtn, aCharsetDisplay, aDeleteBtn, aFonts, aFontsSubsetLB, aOldSymbolDisplay, aOldSymbols, aOldSymbolSets, aStyles, aSymbolDisplay, aSymbols, aSymbolSets, FillFonts(), InitColor_Impl(), pFontList, pOrigSymbol, rSymSetMgr, SelectFont(), and SetSymbolSetManager().

SmSymDefineDialog::~SmSymDefineDialog (  ) 

Definition at line 2226 of file dialog.cxx.

References pOrigSymbol, and pSubsetMap.


Member Function Documentation

SmSymDefineDialog::DECL_LINK ( OldSymbolChangeHdl  ,
ComboBox *   
) [private]

SmSymDefineDialog::DECL_LINK ( OldSymbolSetChangeHdl  ,
ComboBox *   
) [private]

SmSymDefineDialog::DECL_LINK ( ModifyHdl  ,
ComboBox *   
) [private]

SmSymDefineDialog::DECL_LINK ( FontChangeHdl  ,
ListBox *   
) [private]

SmSymDefineDialog::DECL_LINK ( SubsetChangeHdl  ,
ListBox *   
) [private]

SmSymDefineDialog::DECL_LINK ( StyleChangeHdl  ,
ComboBox *   
) [private]

SmSymDefineDialog::DECL_LINK ( CharHighlightHdl  ,
Control *  pControl 
) [private]

SmSymDefineDialog::DECL_LINK ( AddClickHdl  ,
Button *   
) [private]

SmSymDefineDialog::DECL_LINK ( ChangeClickHdl  ,
Button *   
) [private]

SmSymDefineDialog::DECL_LINK ( DeleteClickHdl  ,
Button *   
) [private]

void SmSymDefineDialog::FillSymbols ( ComboBox &  rComboBox,
BOOL  bDeleteText = TRUE 
) [private]

Definition at line 1729 of file dialog.cxx.

References aOldSymbols, aOldSymbolSets, aSymbols, aSymbolSets, SmSymSet::GetCount(), SmSym::GetName(), SmSymSet::GetSymbol(), and GetSymbolSet().

Referenced by SelectSymbolSet(), and SetSymbolSetManager().

void SmSymDefineDialog::FillSymbolSets ( ComboBox &  rComboBox,
BOOL  bDeleteText = TRUE 
) [private]

Definition at line 1752 of file dialog.cxx.

References aOldSymbolSets, aSymbolSets, aSymSetMgrCopy, SmSymSet::GetName(), SmSymSetManager::GetSymbolSet(), and SmSymSetManager::GetSymbolSetCount().

Referenced by SetSymbolSetManager().

void SmSymDefineDialog::FillFonts ( BOOL  bDeleteText = TRUE  )  [private]

Definition at line 1769 of file dialog.cxx.

References aFonts, and pFontList.

Referenced by SmSymDefineDialog().

void SmSymDefineDialog::FillStyles ( BOOL  bDeleteText = TRUE  )  [private]

Definition at line 1787 of file dialog.cxx.

References aFonts, aStyles, and GetFontStyles().

Referenced by SelectFont().

void SmSymDefineDialog::SetSymbolSetManager ( const SmSymSetManager rMgr  )  [private]

Definition at line 2302 of file dialog.cxx.

References aOldSymbols, aOldSymbolSets, aSymbols, aSymbolSets, aSymSetMgrCopy, FillSymbols(), FillSymbolSets(), SelectSymbol(), SelectSymbolSet(), SmSymSetManager::SetModified(), and UpdateButtons().

Referenced by SmSymDefineDialog().

void SmSymDefineDialog::SetFont ( const XubString &  rFontName,
const XubString &  rStyleName 
) [private]

Definition at line 2483 of file dialog.cxx.

References aCharsetDisplay, aFontsSubsetLB, aSymbolDisplay, pFontList, pSubsetMap, SmShowChar::SetFont(), and SetFontStyle().

Referenced by SelectFont(), and SelectStyle().

void SmSymDefineDialog::SetOrigSymbol ( const SmSym pSymbol,
const XubString &  rSymbolSetName 
) [private]

Definition at line 2383 of file dialog.cxx.

References aOldSymbolDisplay, aOldSymbolName, aOldSymbolSetName, SmSym::GetCharacter(), SmSym::GetFace(), SmSym::GetName(), pOrigSymbol, SmShowChar::SetChar(), and SmShowChar::SetFont().

Referenced by SelectSymbol().

void SmSymDefineDialog::UpdateButtons (  )  [private]

Definition at line 2109 of file dialog.cxx.

References aAddBtn, aChangeBtn, aCharsetDisplay, aDeleteBtn, aFonts, aOldSymbolSetName, aStyles, aSymbols, aSymbolSets, aSymSetMgrCopy, SmSym::GetCharacter(), SmSym::GetFace(), GetFontStyles(), SmSym::GetName(), SmSymSetManager::GetSymbolByName(), and pOrigSymbol.

Referenced by SelectChar(), SelectFont(), SelectStyle(), SelectSymbol(), SelectSymbolSet(), and SetSymbolSetManager().

BOOL SmSymDefineDialog::SelectSymbolSet ( ComboBox &  rComboBox,
const XubString &  rSymbolSetName,
BOOL  bDeleteText 
) [private]

Definition at line 2330 of file dialog.cxx.

References aOldSymbols, aOldSymbolSetName, aOldSymbolSets, aSymbols, aSymbolSetName, aSymbolSets, FillSymbols(), SelectSymbol(), and UpdateButtons().

Referenced by IMPL_LINK(), SelectOldSymbolSet(), SelectSymbolSet(), and SetSymbolSetManager().

BOOL SmSymDefineDialog::SelectSymbol ( ComboBox &  rComboBox,
const XubString &  rSymbolName,
BOOL  bDeleteText 
) [private]

Definition at line 2412 of file dialog.cxx.

References aCharsetDisplay, aOldSymbols, aOldSymbolSets, aSymbolDisplay, aSymbolName, aSymbols, aSymSetMgrCopy, SmSym::GetCharacter(), SmSym::GetFace(), GetFontStyles(), GetSymbol(), SmSymSetManager::GetSymbolByName(), SelectChar(), SelectFont(), SelectStyle(), SmShowChar::SetFont(), SetOrigSymbol(), and UpdateButtons().

Referenced by IMPL_LINK(), SelectOldSymbol(), SelectSymbol(), SelectSymbolSet(), and SetSymbolSetManager().

BOOL SmSymDefineDialog::SelectFont ( const XubString &  rFontName,
BOOL  bApplyFont 
) [private]

Definition at line 2519 of file dialog.cxx.

References aFonts, aStyles, FillStyles(), SelectStyle(), SetFont(), and UpdateButtons().

Referenced by SelectFont(), SelectSymbol(), and SmSymDefineDialog().

BOOL SmSymDefineDialog::SelectStyle ( const XubString &  rStyleName,
BOOL  bApplyFont 
) [private]

Definition at line 2543 of file dialog.cxx.

References aFonts, aStyles, SetFont(), and UpdateButtons().

Referenced by SelectFont(), SelectStyle(), and SelectSymbol().

SmSymSet * SmSymDefineDialog::GetSymbolSet ( const ComboBox &  rComboBox  )  [private]

Definition at line 1810 of file dialog.cxx.

References aOldSymbolSets, aSymbolSets, aSymSetMgrCopy, SmSymSetManager::GetSymbolSet(), SmSymSetManager::GetSymbolSetPos(), and SYMBOLSET_NONE.

Referenced by FillSymbols().

const SmSymSet * SmSymDefineDialog::GetSymbolSet ( const ComboBox &  rComboBox  )  const [inline, private]

Definition at line 551 of file dialog.hxx.

SmSym * SmSymDefineDialog::GetSymbol ( const ComboBox &  rComboBox  )  [private]

Definition at line 1823 of file dialog.cxx.

References aOldSymbols, aSymbols, aSymSetMgrCopy, and SmSymSetManager::GetSymbolByName().

Referenced by SelectSymbol().

const SmSym * SmSymDefineDialog::GetSymbol ( const ComboBox &  rComboBox  )  const [inline, private]

Definition at line 556 of file dialog.hxx.

void SmSymDefineDialog::InitColor_Impl (  )  [private]

Definition at line 2232 of file dialog.cxx.

References aCharsetDisplay, aOldSymbolDisplay, aRightArrow, aRigthArrow_Im, aRigthArrow_Im_HC, and aSymbolDisplay.

Referenced by DataChanged(), and SmSymDefineDialog().

void SmSymDefineDialog::DataChanged ( const DataChangedEvent &  rDCEvt  )  [private, virtual]

Definition at line 2262 of file dialog.cxx.

References InitColor_Impl().

short SmSymDefineDialog::Execute (  )  [virtual]

Definition at line 2272 of file dialog.cxx.

References aSymSetMgrCopy, SmSymSetManager::DeleteSymbolSet(), SmSymSet::GetCount(), SmSymSetManager::GetSymbolSet(), SmSymSetManager::GetSymbolSetCount(), SmSymSetManager::IsModified(), and rSymSetMgr.

Referenced by IMPL_LINK().

BOOL SmSymDefineDialog::SelectOldSymbolSet ( const XubString &  rSymbolSetName  )  [inline]

Definition at line 561 of file dialog.hxx.

References aOldSymbolSets, and SelectSymbolSet().

Referenced by IMPL_LINK().

BOOL SmSymDefineDialog::SelectOldSymbol ( const XubString &  rSymbolName  )  [inline]

Definition at line 566 of file dialog.hxx.

References aOldSymbols, and SelectSymbol().

Referenced by IMPL_LINK().

BOOL SmSymDefineDialog::SelectSymbolSet ( const XubString &  rSymbolSetName  )  [inline]

Definition at line 571 of file dialog.hxx.

References aSymbolSets, and SelectSymbolSet().

BOOL SmSymDefineDialog::SelectSymbol ( const XubString &  rSymbolName  )  [inline]

Definition at line 576 of file dialog.hxx.

References aSymbols, and SelectSymbol().

BOOL SmSymDefineDialog::SelectFont ( const XubString &  rFontName  )  [inline]

Definition at line 546 of file dialog.hxx.

References SelectFont().

BOOL SmSymDefineDialog::SelectStyle ( const XubString &  rStyleName  )  [inline]

Definition at line 547 of file dialog.hxx.

References SelectStyle().

void SmSymDefineDialog::SelectChar ( xub_Unicode  cChar  ) 

Definition at line 2569 of file dialog.cxx.

References aCharsetDisplay, aSymbolDisplay, SmShowChar::SetChar(), and UpdateButtons().

Referenced by SelectSymbol().


Member Data Documentation

FixedText SmSymDefineDialog::aOldSymbolText [private]

Definition at line 458 of file dialog.hxx.

ComboBox SmSymDefineDialog::aOldSymbols [private]

Definition at line 459 of file dialog.hxx.

Referenced by FillSymbols(), GetSymbol(), SelectOldSymbol(), SelectSymbol(), SelectSymbolSet(), SetSymbolSetManager(), and SmSymDefineDialog().

FixedText SmSymDefineDialog::aOldSymbolSetText [private]

Definition at line 460 of file dialog.hxx.

ComboBox SmSymDefineDialog::aOldSymbolSets [private]

Definition at line 461 of file dialog.hxx.

Referenced by FillSymbols(), FillSymbolSets(), GetSymbolSet(), SelectOldSymbolSet(), SelectSymbol(), SelectSymbolSet(), SetSymbolSetManager(), and SmSymDefineDialog().

SvxShowCharSet SmSymDefineDialog::aCharsetDisplay [private]

Definition at line 462 of file dialog.hxx.

Referenced by InitColor_Impl(), SelectChar(), SelectSymbol(), SetFont(), SmSymDefineDialog(), and UpdateButtons().

FixedText SmSymDefineDialog::aSymbolText [private]

Definition at line 463 of file dialog.hxx.

ComboBox SmSymDefineDialog::aSymbols [private]

Definition at line 464 of file dialog.hxx.

Referenced by FillSymbols(), GetSymbol(), SelectSymbol(), SelectSymbolSet(), SetSymbolSetManager(), SmSymDefineDialog(), and UpdateButtons().

FixedText SmSymDefineDialog::aSymbolSetText [private]

Definition at line 465 of file dialog.hxx.

ComboBox SmSymDefineDialog::aSymbolSets [private]

Definition at line 466 of file dialog.hxx.

Referenced by FillSymbols(), FillSymbolSets(), GetSymbolSet(), SelectSymbolSet(), SetSymbolSetManager(), SmSymDefineDialog(), and UpdateButtons().

FixedText SmSymDefineDialog::aFontText [private]

Definition at line 467 of file dialog.hxx.

ListBox SmSymDefineDialog::aFonts [private]

Definition at line 468 of file dialog.hxx.

Referenced by FillFonts(), FillStyles(), SelectFont(), SelectStyle(), SmSymDefineDialog(), and UpdateButtons().

FixedText SmSymDefineDialog::aFontsSubsetFT [private]

Definition at line 469 of file dialog.hxx.

ListBox SmSymDefineDialog::aFontsSubsetLB [private]

Definition at line 470 of file dialog.hxx.

Referenced by SetFont(), and SmSymDefineDialog().

FixedText SmSymDefineDialog::aStyleText [private]

Definition at line 471 of file dialog.hxx.

FontStyleBox SmSymDefineDialog::aStyles [private]

Definition at line 472 of file dialog.hxx.

Referenced by FillStyles(), SelectFont(), SelectStyle(), SmSymDefineDialog(), and UpdateButtons().

FixedText SmSymDefineDialog::aOldSymbolName [private]

Definition at line 473 of file dialog.hxx.

Referenced by SetOrigSymbol().

SmShowChar SmSymDefineDialog::aOldSymbolDisplay [private]

Definition at line 474 of file dialog.hxx.

Referenced by InitColor_Impl(), SetOrigSymbol(), and SmSymDefineDialog().

FixedText SmSymDefineDialog::aOldSymbolSetName [private]

Definition at line 475 of file dialog.hxx.

Referenced by SelectSymbolSet(), SetOrigSymbol(), and UpdateButtons().

FixedText SmSymDefineDialog::aSymbolName [private]

Definition at line 476 of file dialog.hxx.

Referenced by SelectSymbol().

SmShowChar SmSymDefineDialog::aSymbolDisplay [private]

Definition at line 477 of file dialog.hxx.

Referenced by InitColor_Impl(), SelectChar(), SelectSymbol(), SetFont(), and SmSymDefineDialog().

FixedText SmSymDefineDialog::aSymbolSetName [private]

Definition at line 478 of file dialog.hxx.

Referenced by SelectSymbolSet().

OKButton SmSymDefineDialog::aOkBtn [private]

Definition at line 479 of file dialog.hxx.

CancelButton SmSymDefineDialog::aCancelBtn [private]

Definition at line 480 of file dialog.hxx.

PushButton SmSymDefineDialog::aAddBtn [private]

Definition at line 481 of file dialog.hxx.

Referenced by SmSymDefineDialog(), and UpdateButtons().

PushButton SmSymDefineDialog::aChangeBtn [private]

Definition at line 482 of file dialog.hxx.

Referenced by SmSymDefineDialog(), and UpdateButtons().

PushButton SmSymDefineDialog::aDeleteBtn [private]

Definition at line 483 of file dialog.hxx.

Referenced by SmSymDefineDialog(), and UpdateButtons().

FixedImage SmSymDefineDialog::aRightArrow [private]

Definition at line 484 of file dialog.hxx.

Referenced by InitColor_Impl().

Image SmSymDefineDialog::aRigthArrow_Im [private]

Definition at line 485 of file dialog.hxx.

Referenced by InitColor_Impl().

Image SmSymDefineDialog::aRigthArrow_Im_HC [private]

Definition at line 486 of file dialog.hxx.

Referenced by InitColor_Impl().

SmSymSetManager SmSymDefineDialog::aSymSetMgrCopy [private]

Definition at line 488 of file dialog.hxx.

Referenced by Execute(), FillSymbolSets(), GetSymbol(), GetSymbolSet(), SelectSymbol(), SetSymbolSetManager(), and UpdateButtons().

SmSymSetManager & SmSymDefineDialog::rSymSetMgr [private]

Definition at line 488 of file dialog.hxx.

Referenced by Execute(), and SmSymDefineDialog().

const SmSym* SmSymDefineDialog::pOrigSymbol [private]

Definition at line 490 of file dialog.hxx.

Referenced by SetOrigSymbol(), SmSymDefineDialog(), UpdateButtons(), and ~SmSymDefineDialog().

const SubsetMap* SmSymDefineDialog::pSubsetMap [private]

Definition at line 492 of file dialog.hxx.

Referenced by SetFont(), and ~SmSymDefineDialog().

FontList* SmSymDefineDialog::pFontList [private]

Definition at line 493 of file dialog.hxx.

Referenced by FillFonts(), SetFont(), and SmSymDefineDialog().


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