diff options
Diffstat (limited to 'starmath/inc/dialog.hxx')
-rw-r--r-- | starmath/inc/dialog.hxx | 268 |
1 files changed, 134 insertions, 134 deletions
diff --git a/starmath/inc/dialog.hxx b/starmath/inc/dialog.hxx index fcad9688f940..b758df5e2adf 100644 --- a/starmath/inc/dialog.hxx +++ b/starmath/inc/dialog.hxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -50,32 +50,32 @@ #include "symbol.hxx" class SubsetMap; -#define CATEGORY_NONE 0xFFFF +#define CATEGORY_NONE 0xFFFF /**************************************************************************/ -void SetFontStyle(const XubString &rStyleName, Font &rFont); +void SetFontStyle(const XubString &rStyleName, Font &rFont); /**************************************************************************/ class SmPrintOptionsTabPage : public SfxTabPage { FixedLine aFixedLine1; - CheckBox aTitle; - CheckBox aText; - CheckBox aFrame; + CheckBox aTitle; + CheckBox aText; + CheckBox aFrame; FixedLine aFixedLine2; - RadioButton aSizeNormal; - RadioButton aSizeScaled; - RadioButton aSizeZoomed; - MetricField aZoom; + RadioButton aSizeNormal; + RadioButton aSizeScaled; + RadioButton aSizeZoomed; + MetricField aZoom; FixedLine aFixedLine3; - CheckBox aNoRightSpaces; + CheckBox aNoRightSpaces; DECL_LINK(SizeButtonClickHdl, Button *); - virtual BOOL FillItemSet(SfxItemSet& rSet); - virtual void Reset(const SfxItemSet& rSet); + virtual BOOL FillItemSet(SfxItemSet& rSet); + virtual void Reset(const SfxItemSet& rSet); public: static SfxTabPage* Create(Window *pWindow, const SfxItemSet &rSet); @@ -87,7 +87,7 @@ public: class SmShowFont : public Control { - virtual void Paint(const Rectangle&); + virtual void Paint(const Rectangle&); public: SmShowFont(Window *pParent, const ResId& rResId) : @@ -100,16 +100,16 @@ public: class SmFontDialog : public ModalDialog { - FixedText aFixedText1; - ComboBox aFontBox; - CheckBox aBoldCheckBox; - CheckBox aItalicCheckBox; - OKButton aOKButton1; - CancelButton aCancelButton1; - SmShowFont aShowFont; + FixedText aFixedText1; + ComboBox aFontBox; + CheckBox aBoldCheckBox; + CheckBox aItalicCheckBox; + OKButton aOKButton1; + CancelButton aCancelButton1; + SmShowFont aShowFont; FixedText aFixedText2; - Font Face; + Font Face; DECL_LINK(FontSelectHdl, ComboBox *); DECL_LINK(FontModifyHdl, ComboBox *); @@ -122,30 +122,30 @@ class SmFontDialog : public ModalDialog public: SmFontDialog(Window * pParent, OutputDevice *pFntListDevice, BOOL bHideCheckboxes, BOOL bFreeRes = TRUE); - const Font& GetFont() const { return Face; } - void SetFont(const Font &rFont); + const Font& GetFont() const { return Face; } + void SetFont(const Font &rFont); }; /**************************************************************************/ class SmFontSizeDialog : public ModalDialog { - FixedText aFixedText1; - MetricField aBaseSize; - FixedText aFixedText4; - MetricField aTextSize; - FixedText aFixedText5; - MetricField aIndexSize; - FixedText aFixedText6; - MetricField aFunctionSize; - FixedText aFixedText7; - MetricField aOperatorSize; - FixedText aFixedText8; - MetricField aBorderSize; + FixedText aFixedText1; + MetricField aBaseSize; + FixedText aFixedText4; + MetricField aTextSize; + FixedText aFixedText5; + MetricField aIndexSize; + FixedText aFixedText6; + MetricField aFunctionSize; + FixedText aFixedText7; + MetricField aOperatorSize; + FixedText aFixedText8; + MetricField aBorderSize; FixedLine aFixedLine1; - OKButton aOKButton1; - CancelButton aCancelButton1; - PushButton aDefaultButton; + OKButton aOKButton1; + CancelButton aCancelButton1; + PushButton aDefaultButton; DECL_LINK(DefaultButtonClickHdl, Button *); @@ -160,26 +160,26 @@ public: class SmFontTypeDialog : public ModalDialog { - FixedText aFixedText1; - SmFontPickListBox aVariableFont; - FixedText aFixedText2; - SmFontPickListBox aFunctionFont; - FixedText aFixedText3; - SmFontPickListBox aNumberFont; - FixedText aFixedText4; - SmFontPickListBox aTextFont; - FixedText aFixedText5; - SmFontPickListBox aSerifFont; - FixedText aFixedText6; - SmFontPickListBox aSansFont; - FixedText aFixedText7; - SmFontPickListBox aFixedFont; + FixedText aFixedText1; + SmFontPickListBox aVariableFont; + FixedText aFixedText2; + SmFontPickListBox aFunctionFont; + FixedText aFixedText3; + SmFontPickListBox aNumberFont; + FixedText aFixedText4; + SmFontPickListBox aTextFont; + FixedText aFixedText5; + SmFontPickListBox aSerifFont; + FixedText aFixedText6; + SmFontPickListBox aSansFont; + FixedText aFixedText7; + SmFontPickListBox aFixedFont; FixedLine aFixedLine1; FixedLine aFixedLine2; - OKButton aOKButton1; - CancelButton aCancelButton1; - MenuButton aMenuButton; - PushButton aDefaultButton; + OKButton aOKButton1; + CancelButton aCancelButton1; + MenuButton aMenuButton; + PushButton aDefaultButton; OutputDevice *pFontListDev; @@ -195,12 +195,12 @@ public: /**************************************************************************/ -#define NOCATEGORIES 10 +#define NOCATEGORIES 10 class SmCategoryDesc : public Resource { XubString Name; - XubString *Strings[4]; + XubString *Strings[4]; Bitmap *Graphics[4]; /* regular bitmaps */ Bitmap *GraphicsH[4]; /* high contrast bitmaps */ USHORT Minimum[4]; @@ -212,12 +212,12 @@ public: SmCategoryDesc(const ResId &rResId, USHORT nCategoryIdx); ~SmCategoryDesc(); - const XubString & GetName() const { return Name; } - const XubString * GetString(USHORT Index) const { return Strings[Index]; } - USHORT GetMinimum(USHORT Index) { return Minimum[Index]; } - USHORT GetMaximum(USHORT Index) { return Maximum[Index]; } - USHORT GetValue(USHORT Index) const { return Value[Index]; } - void SetValue(USHORT Index, USHORT nVal) { Value[Index] = nVal;} + const XubString & GetName() const { return Name; } + const XubString * GetString(USHORT Index) const { return Strings[Index]; } + USHORT GetMinimum(USHORT Index) { return Minimum[Index]; } + USHORT GetMaximum(USHORT Index) { return Maximum[Index]; } + USHORT GetValue(USHORT Index) const { return Value[Index]; } + void SetValue(USHORT Index, USHORT nVal) { Value[Index] = nVal;} void SetHighContrast( BOOL bVal ) { bIsHighContrast = bVal; } const Bitmap * GetGraphic(USHORT Index) const @@ -229,25 +229,25 @@ public: class SmDistanceDialog : public ModalDialog { - FixedText aFixedText1; - MetricField aMetricField1; - FixedText aFixedText2; - MetricField aMetricField2; - FixedText aFixedText3; - MetricField aMetricField3; - CheckBox aCheckBox1; - FixedText aFixedText4; - MetricField aMetricField4; - OKButton aOKButton1; - CancelButton aCancelButton1; - MenuButton aMenuButton; - PushButton aDefaultButton; - FixedBitmap aBitmap; + FixedText aFixedText1; + MetricField aMetricField1; + FixedText aFixedText2; + MetricField aMetricField2; + FixedText aFixedText3; + MetricField aMetricField3; + CheckBox aCheckBox1; + FixedText aFixedText4; + MetricField aMetricField4; + OKButton aOKButton1; + CancelButton aCancelButton1; + MenuButton aMenuButton; + PushButton aDefaultButton; + FixedBitmap aBitmap; FixedLine aFixedLine; SmCategoryDesc *Categories[NOCATEGORIES]; - USHORT nActiveCategory; - BOOL bScaleAllBrackets; + USHORT nActiveCategory; + BOOL bScaleAllBrackets; DECL_LINK(GetFocusHdl, Control *); DECL_LINK(MenuSelectHdl, Menu *); @@ -255,8 +255,8 @@ class SmDistanceDialog : public ModalDialog DECL_LINK(CheckBoxClickHdl, CheckBox *); using Window::SetHelpId; - void SetHelpId(MetricField &rField, ULONG nHelpId); - void SetCategory(USHORT Category); + void SetHelpId(MetricField &rField, ULONG nHelpId); + void SetCategory(USHORT Category); void ApplyImages(); @@ -281,9 +281,9 @@ class SmAlignDialog : public ModalDialog RadioButton aCenter; RadioButton aRight; FixedLine aFixedLine1; - OKButton aOKButton1; + OKButton aOKButton1; CancelButton aCancelButton1; - PushButton aDefaultButton; + PushButton aDefaultButton; DECL_LINK(DefaultButtonClickHdl, Button *); @@ -299,17 +299,17 @@ public: class SmShowSymbolSet : public Control { SymbolPtrVec_t aSymbolSet; - ScrollBar aVScrollBar; - Size aOutputSize; - Link aSelectHdlLink; - Link aDblClickHdlLink; - USHORT nLen; - USHORT nRows, nColumns; - USHORT nSelectSymbol; - - virtual void Paint(const Rectangle&); - virtual void MouseButtonDown(const MouseEvent& rMEvt); - virtual void KeyInput(const KeyEvent& rKEvt); + ScrollBar aVScrollBar; + Size aOutputSize; + Link aSelectHdlLink; + Link aDblClickHdlLink; + USHORT nLen; + USHORT nRows, nColumns; + USHORT nSelectSymbol; + + virtual void Paint(const Rectangle&); + virtual void MouseButtonDown(const MouseEvent& rMEvt); + virtual void KeyInput(const KeyEvent& rKEvt); DECL_LINK( ScrollHdl, ScrollBar* ); @@ -318,8 +318,8 @@ public: void SetSymbolSet(const SymbolPtrVec_t& rSymbolSet); - void SelectSymbol(USHORT nSymbol); - USHORT GetSelectSymbol() const { return nSelectSymbol; } + void SelectSymbol(USHORT nSymbol); + USHORT GetSelectSymbol() const { return nSelectSymbol; } void SetSelectHdl(const Link& rLink) { aSelectHdlLink = rLink; } void SetDblClickHdl(const Link& rLink) { aDblClickHdlLink = rLink; } @@ -331,15 +331,15 @@ class SmShowSymbol : public Control { Link aDblClickHdlLink; - virtual void Paint(const Rectangle&); - virtual void MouseButtonDown(const MouseEvent& rMEvt); + virtual void Paint(const Rectangle&); + virtual void MouseButtonDown(const MouseEvent& rMEvt); public: SmShowSymbol(Window *pParent, const ResId& rResId) : Control(pParent, rResId) {} - void SetSymbol(const SmSym *pSymbol); - void SetDblClickHdl(const Link &rLink) { aDblClickHdlLink = rLink; } + void SetSymbol(const SmSym *pSymbol); + void SetDblClickHdl(const Link &rLink) { aDblClickHdlLink = rLink; } }; //////////////////////////////////////////////////////////////////////////////// @@ -348,18 +348,18 @@ class SmSymDefineDialog; class SmSymbolDialog : public ModalDialog { - FixedText aSymbolSetText; - ListBox aSymbolSets; + FixedText aSymbolSetText; + ListBox aSymbolSets; SmShowSymbolSet aSymbolSetDisplay; - FixedText aSymbolName; - SmShowSymbol aSymbolDisplay; - PushButton aGetBtn; - PushButton aCloseBtn; - PushButton aEditBtn; + FixedText aSymbolName; + SmShowSymbol aSymbolDisplay; + PushButton aGetBtn; + PushButton aCloseBtn; + PushButton aEditBtn; SmViewShell &rViewSh; SmSymbolManager &rSymbolMgr; - + String aSymbolSetName; SymbolPtrVec_t aSymbolSet; @@ -372,7 +372,7 @@ class SmSymbolDialog : public ModalDialog DECL_LINK(EditClickHdl, Button *); DECL_LINK(GetClickHdl, Button *); - void FillSymbolSets(BOOL bDeleteText = TRUE); + void FillSymbolSets(BOOL bDeleteText = TRUE); void SetSymbolSetManager(SmSymbolManager &rMgr); const SmSym *GetSymbol() const; void InitColor_Impl(); @@ -384,7 +384,7 @@ public: SmSymbolManager &rSymbolMgr, SmViewShell &rViewShell, BOOL bFreeRes = TRUE); virtual ~SmSymbolDialog(); - BOOL SelectSymbolSet(const XubString &rSymbolSetName); + BOOL SelectSymbolSet(const XubString &rSymbolSetName); void SelectSymbol(USHORT nSymbolPos); USHORT GetSelectedSymbol() const { return aSymbolSetDisplay.GetSelectSymbol(); } }; @@ -393,7 +393,7 @@ public: class SmShowChar : public Control { - virtual void Paint(const Rectangle&); + virtual void Paint(const Rectangle&); public: SmShowChar(Window *pParent, const ResId& rResId) @@ -401,8 +401,8 @@ public: { } - void SetChar(xub_Unicode aChar); - void SetFont(const Font &rFont); + void SetChar(xub_Unicode aChar); + void SetFont(const Font &rFont); }; //////////////////////////////////////////////////////////////////////////////// @@ -441,7 +441,7 @@ class SmSymDefineDialog : public ModalDialog SmSymbolManager aSymbolMgrCopy, &rSymbolMgr; - const SmSym *pOrigSymbol; + const SmSym *pOrigSymbol; const SubsetMap *pSubsetMap; FontList *pFontList; @@ -457,22 +457,22 @@ class SmSymDefineDialog : public ModalDialog 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 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 SmSymbolManager &rMgr); - void SetFont(const XubString &rFontName, const XubString &rStyleName); - void SetOrigSymbol(const SmSym *pSymbol, const XubString &rSymbolSetName); - void UpdateButtons(); + 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 SelectSymbolSet(ComboBox &rComboBox, const XubString &rSymbolSetName, BOOL bDeleteText); - BOOL SelectSymbol(ComboBox &rComboBox, const XubString &rSymbolName, + BOOL SelectSymbol(ComboBox &rComboBox, const XubString &rSymbolName, BOOL bDeleteText); - BOOL SelectFont(const XubString &rFontName, BOOL bApplyFont); - BOOL SelectStyle(const XubString &rStyleName, BOOL bApplyFont); + BOOL SelectFont(const XubString &rFontName, BOOL bApplyFont); + BOOL SelectStyle(const XubString &rStyleName, BOOL bApplyFont); SmSym * GetSymbol(const ComboBox &rComboBox); const SmSym * GetSymbol(const ComboBox &rComboBox) const @@ -491,31 +491,31 @@ public: using OutputDevice::SetFont; // Dialog - virtual short Execute(); + virtual short Execute(); BOOL SelectOldSymbolSet(const XubString &rSymbolSetName) { return SelectSymbolSet(aOldSymbolSets, rSymbolSetName, FALSE); } - + BOOL SelectOldSymbol(const XubString &rSymbolName) { return SelectSymbol(aOldSymbols, rSymbolName, FALSE); } - + BOOL SelectSymbolSet(const XubString &rSymbolSetName) { return SelectSymbolSet(aSymbolSets, rSymbolSetName, FALSE); } - + BOOL SelectSymbol(const XubString &rSymbolName) { return SelectSymbol(aSymbols, rSymbolName, FALSE); } - + BOOL SelectFont(const XubString &rFontName) { return SelectFont(rFontName, TRUE); } - BOOL SelectStyle(const XubString &rStyleName) { return SelectStyle(rStyleName, TRUE); }; - void SelectChar(xub_Unicode cChar); + BOOL SelectStyle(const XubString &rStyleName) { return SelectStyle(rStyleName, TRUE); }; + void SelectChar(xub_Unicode cChar); }; |