1*cdf0e10cSrcweir /************************************************************************* 2*cdf0e10cSrcweir * 3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir * 5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir * 7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir * 9*cdf0e10cSrcweir * This file is part of OpenOffice.org. 10*cdf0e10cSrcweir * 11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir * only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir * 15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir * 21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir * version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir * for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir * 26*cdf0e10cSrcweir ************************************************************************/ 27*cdf0e10cSrcweir #ifndef _SVX_CHARDLG_HXX 28*cdf0e10cSrcweir #define _SVX_CHARDLG_HXX 29*cdf0e10cSrcweir 30*cdf0e10cSrcweir // include --------------------------------------------------------------- 31*cdf0e10cSrcweir 32*cdf0e10cSrcweir #include <svtools/ctrlbox.hxx> 33*cdf0e10cSrcweir #include <svtools/stdctrl.hxx> 34*cdf0e10cSrcweir #include <sfx2/tabdlg.hxx> 35*cdf0e10cSrcweir #include <svx/fntctrl.hxx> 36*cdf0e10cSrcweir #include <svx/checklbx.hxx> 37*cdf0e10cSrcweir #include <svx/langbox.hxx> 38*cdf0e10cSrcweir 39*cdf0e10cSrcweir // forward --------------------------------------------------------------- 40*cdf0e10cSrcweir 41*cdf0e10cSrcweir class SvxFontListItem; 42*cdf0e10cSrcweir class FontList; 43*cdf0e10cSrcweir 44*cdf0e10cSrcweir // ----------------------------------------------------------------------- 45*cdf0e10cSrcweir 46*cdf0e10cSrcweir #define DISABLE_CASEMAP ((sal_uInt16)0x0001) 47*cdf0e10cSrcweir #define DISABLE_WORDLINE ((sal_uInt16)0x0002) 48*cdf0e10cSrcweir #define DISABLE_BLINK ((sal_uInt16)0x0004) 49*cdf0e10cSrcweir #define DISABLE_UNDERLINE_COLOR ((sal_uInt16)0x0008) 50*cdf0e10cSrcweir 51*cdf0e10cSrcweir #define DISABLE_LANGUAGE ((sal_uInt16)0x0010) 52*cdf0e10cSrcweir #define DISABLE_HIDE_LANGUAGE ((sal_uInt16)0x0020) 53*cdf0e10cSrcweir 54*cdf0e10cSrcweir // class SvxCharBasePage ------------------------------------------------- 55*cdf0e10cSrcweir 56*cdf0e10cSrcweir class SvxCharBasePage : public SfxTabPage 57*cdf0e10cSrcweir { 58*cdf0e10cSrcweir protected: 59*cdf0e10cSrcweir SvxFontPrevWindow m_aPreviewWin; 60*cdf0e10cSrcweir FixedInfo m_aFontTypeFT; 61*cdf0e10cSrcweir 62*cdf0e10cSrcweir sal_Bool m_bPreviewBackgroundToCharacter; 63*cdf0e10cSrcweir 64*cdf0e10cSrcweir SvxCharBasePage( Window* pParent, const ResId& rResIdTabPage, const SfxItemSet&, 65*cdf0e10cSrcweir sal_uInt16 nResIdPrewievWin, sal_uInt16 nResIdFontTypeFT ); 66*cdf0e10cSrcweir virtual ~SvxCharBasePage(); 67*cdf0e10cSrcweir 68*cdf0e10cSrcweir void SetPrevFontSize( const SfxItemSet& rSet, sal_uInt16 nSlot, SvxFont& rFont ); 69*cdf0e10cSrcweir void SetPrevFont( const SfxItemSet& rSet, sal_uInt16 nSlot, SvxFont& rFont ); 70*cdf0e10cSrcweir void SetPrevFontStyle( const SfxItemSet& rSet, sal_uInt16 nSlotPosture, sal_uInt16 nSlotWeight, SvxFont& rFont ); // posture/weight 71*cdf0e10cSrcweir void SetPrevFontWidthScale( const SfxItemSet& rSet ); 72*cdf0e10cSrcweir 73*cdf0e10cSrcweir void SetPrevFontEscapement( sal_uInt8 nProp, sal_uInt8 nEscProp, short nEsc ); 74*cdf0e10cSrcweir 75*cdf0e10cSrcweir inline SvxFont& GetPreviewFont(); 76*cdf0e10cSrcweir inline SvxFont& GetPreviewCJKFont(); 77*cdf0e10cSrcweir inline SvxFont& GetPreviewCTLFont(); 78*cdf0e10cSrcweir 79*cdf0e10cSrcweir public: 80*cdf0e10cSrcweir using SfxTabPage::ActivatePage; 81*cdf0e10cSrcweir using SfxTabPage::DeactivatePage; 82*cdf0e10cSrcweir 83*cdf0e10cSrcweir virtual void ActivatePage( const SfxItemSet& rSet ); 84*cdf0e10cSrcweir // virtual int DeactivatePage( SfxItemSet* pSet = 0 ); 85*cdf0e10cSrcweir 86*cdf0e10cSrcweir }; 87*cdf0e10cSrcweir 88*cdf0e10cSrcweir // class SvxCharNamePage ------------------------------------------------- 89*cdf0e10cSrcweir 90*cdf0e10cSrcweir struct SvxCharNamePage_Impl; 91*cdf0e10cSrcweir 92*cdf0e10cSrcweir class SvxCharNamePage : public SvxCharBasePage 93*cdf0e10cSrcweir { 94*cdf0e10cSrcweir 95*cdf0e10cSrcweir private: 96*cdf0e10cSrcweir FixedLine* m_pWestLine; 97*cdf0e10cSrcweir FixedText* m_pWestFontNameFT; 98*cdf0e10cSrcweir FontNameBox* m_pWestFontNameLB; 99*cdf0e10cSrcweir FixedText* m_pWestFontStyleFT; 100*cdf0e10cSrcweir FontStyleBox* m_pWestFontStyleLB; 101*cdf0e10cSrcweir FixedText* m_pWestFontSizeFT; 102*cdf0e10cSrcweir FontSizeBox* m_pWestFontSizeLB; 103*cdf0e10cSrcweir FixedText* m_pWestFontLanguageFT; 104*cdf0e10cSrcweir SvxLanguageBox* m_pWestFontLanguageLB; 105*cdf0e10cSrcweir 106*cdf0e10cSrcweir FixedLine* m_pEastLine; 107*cdf0e10cSrcweir FixedText* m_pEastFontNameFT; 108*cdf0e10cSrcweir FontNameBox* m_pEastFontNameLB; 109*cdf0e10cSrcweir FixedText* m_pEastFontStyleFT; 110*cdf0e10cSrcweir FontStyleBox* m_pEastFontStyleLB; 111*cdf0e10cSrcweir FixedText* m_pEastFontSizeFT; 112*cdf0e10cSrcweir FontSizeBox* m_pEastFontSizeLB; 113*cdf0e10cSrcweir FixedText* m_pEastFontLanguageFT; 114*cdf0e10cSrcweir SvxLanguageBox* m_pEastFontLanguageLB; 115*cdf0e10cSrcweir 116*cdf0e10cSrcweir FixedLine* m_pCTLLine; 117*cdf0e10cSrcweir FixedText* m_pCTLFontNameFT; 118*cdf0e10cSrcweir FontNameBox* m_pCTLFontNameLB; 119*cdf0e10cSrcweir FixedText* m_pCTLFontStyleFT; 120*cdf0e10cSrcweir FontStyleBox* m_pCTLFontStyleLB; 121*cdf0e10cSrcweir FixedText* m_pCTLFontSizeFT; 122*cdf0e10cSrcweir FontSizeBox* m_pCTLFontSizeLB; 123*cdf0e10cSrcweir FixedText* m_pCTLFontLanguageFT; 124*cdf0e10cSrcweir SvxLanguageBox* m_pCTLFontLanguageLB; 125*cdf0e10cSrcweir 126*cdf0e10cSrcweir FixedLine* m_pColorFL; 127*cdf0e10cSrcweir FixedText* m_pColorFT; 128*cdf0e10cSrcweir ColorListBox* m_pColorLB; 129*cdf0e10cSrcweir 130*cdf0e10cSrcweir SvxCharNamePage_Impl* m_pImpl; 131*cdf0e10cSrcweir 132*cdf0e10cSrcweir SvxCharNamePage( Window* pParent, const SfxItemSet& rSet ); 133*cdf0e10cSrcweir 134*cdf0e10cSrcweir void Initialize(); 135*cdf0e10cSrcweir const FontList* GetFontList() const; 136*cdf0e10cSrcweir void UpdatePreview_Impl(); 137*cdf0e10cSrcweir void FillStyleBox_Impl( const FontNameBox* rBox ); 138*cdf0e10cSrcweir void FillSizeBox_Impl( const FontNameBox* rBox ); 139*cdf0e10cSrcweir 140*cdf0e10cSrcweir enum LanguageGroup 141*cdf0e10cSrcweir { 142*cdf0e10cSrcweir /** Language for western text. 143*cdf0e10cSrcweir */ 144*cdf0e10cSrcweir Western = 0, 145*cdf0e10cSrcweir 146*cdf0e10cSrcweir /** Language for asian text. 147*cdf0e10cSrcweir */ 148*cdf0e10cSrcweir Asian, 149*cdf0e10cSrcweir 150*cdf0e10cSrcweir /** Language for ctl text. 151*cdf0e10cSrcweir */ 152*cdf0e10cSrcweir Ctl 153*cdf0e10cSrcweir }; 154*cdf0e10cSrcweir 155*cdf0e10cSrcweir void Reset_Impl( const SfxItemSet& rSet, LanguageGroup eLangGrp ); 156*cdf0e10cSrcweir sal_Bool FillItemSet_Impl( SfxItemSet& rSet, LanguageGroup eLangGrp ); 157*cdf0e10cSrcweir void ResetColor_Impl( const SfxItemSet& rSet ); 158*cdf0e10cSrcweir 159*cdf0e10cSrcweir DECL_LINK( UpdateHdl_Impl, Timer* ); 160*cdf0e10cSrcweir DECL_LINK( FontModifyHdl_Impl, void* ); 161*cdf0e10cSrcweir DECL_LINK( ColorBoxSelectHdl_Impl, ColorListBox* ); 162*cdf0e10cSrcweir 163*cdf0e10cSrcweir public: 164*cdf0e10cSrcweir using SfxTabPage::ActivatePage; 165*cdf0e10cSrcweir using SfxTabPage::DeactivatePage; 166*cdf0e10cSrcweir 167*cdf0e10cSrcweir virtual void ActivatePage( const SfxItemSet& rSet ); 168*cdf0e10cSrcweir virtual int DeactivatePage( SfxItemSet* pSet = 0 ); 169*cdf0e10cSrcweir 170*cdf0e10cSrcweir public: 171*cdf0e10cSrcweir ~SvxCharNamePage(); 172*cdf0e10cSrcweir 173*cdf0e10cSrcweir static SfxTabPage* Create( Window* pParent, const SfxItemSet& rSet ); 174*cdf0e10cSrcweir static sal_uInt16* GetRanges(); 175*cdf0e10cSrcweir 176*cdf0e10cSrcweir virtual void Reset( const SfxItemSet& rSet ); 177*cdf0e10cSrcweir virtual sal_Bool FillItemSet( SfxItemSet& rSet ); 178*cdf0e10cSrcweir 179*cdf0e10cSrcweir void SetFontList( const SvxFontListItem& rItem ); 180*cdf0e10cSrcweir void EnableRelativeMode(); 181*cdf0e10cSrcweir void EnableSearchMode(); 182*cdf0e10cSrcweir // the writer uses SID_ATTR_BRUSH as font background 183*cdf0e10cSrcweir void SetPreviewBackgroundToCharacter(); 184*cdf0e10cSrcweir 185*cdf0e10cSrcweir void DisableControls( sal_uInt16 nDisable ); 186*cdf0e10cSrcweir virtual void PageCreated (SfxAllItemSet aSet); 187*cdf0e10cSrcweir }; 188*cdf0e10cSrcweir 189*cdf0e10cSrcweir // class SvxCharEffectsPage ---------------------------------------------- 190*cdf0e10cSrcweir 191*cdf0e10cSrcweir class SvxCharEffectsPage : public SvxCharBasePage 192*cdf0e10cSrcweir { 193*cdf0e10cSrcweir 194*cdf0e10cSrcweir private: 195*cdf0e10cSrcweir FixedText m_aFontColorFT; 196*cdf0e10cSrcweir ColorListBox m_aFontColorLB; 197*cdf0e10cSrcweir 198*cdf0e10cSrcweir FixedText m_aEffectsFT; 199*cdf0e10cSrcweir SvxCheckListBox m_aEffectsLB; 200*cdf0e10cSrcweir 201*cdf0e10cSrcweir ListBox m_aEffects2LB; 202*cdf0e10cSrcweir 203*cdf0e10cSrcweir FixedText m_aReliefFT; 204*cdf0e10cSrcweir ListBox m_aReliefLB; 205*cdf0e10cSrcweir 206*cdf0e10cSrcweir TriStateBox m_aOutlineBtn; 207*cdf0e10cSrcweir TriStateBox m_aShadowBtn; 208*cdf0e10cSrcweir TriStateBox m_aBlinkingBtn; 209*cdf0e10cSrcweir TriStateBox m_aHiddenBtn; 210*cdf0e10cSrcweir 211*cdf0e10cSrcweir FixedLine m_aVerticalLine; 212*cdf0e10cSrcweir 213*cdf0e10cSrcweir FixedText m_aOverlineFT; 214*cdf0e10cSrcweir ListBox m_aOverlineLB; 215*cdf0e10cSrcweir FixedText m_aOverlineColorFT; 216*cdf0e10cSrcweir ColorListBox m_aOverlineColorLB; 217*cdf0e10cSrcweir 218*cdf0e10cSrcweir FixedText m_aStrikeoutFT; 219*cdf0e10cSrcweir ListBox m_aStrikeoutLB; 220*cdf0e10cSrcweir 221*cdf0e10cSrcweir FixedText m_aUnderlineFT; 222*cdf0e10cSrcweir ListBox m_aUnderlineLB; 223*cdf0e10cSrcweir FixedText m_aUnderlineColorFT; 224*cdf0e10cSrcweir ColorListBox m_aUnderlineColorLB; 225*cdf0e10cSrcweir 226*cdf0e10cSrcweir CheckBox m_aIndividualWordsBtn; 227*cdf0e10cSrcweir 228*cdf0e10cSrcweir FixedLine m_aAsianLine; 229*cdf0e10cSrcweir 230*cdf0e10cSrcweir FixedText m_aEmphasisFT; 231*cdf0e10cSrcweir ListBox m_aEmphasisLB; 232*cdf0e10cSrcweir 233*cdf0e10cSrcweir FixedText m_aPositionFT; 234*cdf0e10cSrcweir ListBox m_aPositionLB; 235*cdf0e10cSrcweir 236*cdf0e10cSrcweir sal_uInt16 m_nHtmlMode; 237*cdf0e10cSrcweir 238*cdf0e10cSrcweir String m_aTransparentColorName; 239*cdf0e10cSrcweir 240*cdf0e10cSrcweir SvxCharEffectsPage( Window* pParent, const SfxItemSet& rSet ); 241*cdf0e10cSrcweir 242*cdf0e10cSrcweir void Initialize(); 243*cdf0e10cSrcweir void UpdatePreview_Impl(); 244*cdf0e10cSrcweir void SetCaseMap_Impl( SvxCaseMap eCaseMap ); 245*cdf0e10cSrcweir void ResetColor_Impl( const SfxItemSet& rSet ); 246*cdf0e10cSrcweir sal_Bool FillItemSetColor_Impl( SfxItemSet& rSet ); 247*cdf0e10cSrcweir 248*cdf0e10cSrcweir DECL_LINK( SelectHdl_Impl, ListBox* ); 249*cdf0e10cSrcweir DECL_LINK( CbClickHdl_Impl, CheckBox* ); 250*cdf0e10cSrcweir DECL_LINK( TristClickHdl_Impl, TriStateBox* ); 251*cdf0e10cSrcweir DECL_LINK( UpdatePreview_Impl, ListBox* ); 252*cdf0e10cSrcweir DECL_LINK( ColorBoxSelectHdl_Impl, ColorListBox* ); 253*cdf0e10cSrcweir 254*cdf0e10cSrcweir public: 255*cdf0e10cSrcweir // using SfxTabPage::ActivatePage; 256*cdf0e10cSrcweir using SfxTabPage::DeactivatePage; 257*cdf0e10cSrcweir 258*cdf0e10cSrcweir // virtual void ActivatePage( const SfxItemSet& rSet ); 259*cdf0e10cSrcweir virtual int DeactivatePage( SfxItemSet* pSet = 0 ); 260*cdf0e10cSrcweir 261*cdf0e10cSrcweir public: 262*cdf0e10cSrcweir static SfxTabPage* Create( Window* pParent, const SfxItemSet& rSet ); 263*cdf0e10cSrcweir static sal_uInt16* GetRanges(); 264*cdf0e10cSrcweir 265*cdf0e10cSrcweir virtual void Reset( const SfxItemSet& rSet ); 266*cdf0e10cSrcweir virtual sal_Bool FillItemSet( SfxItemSet& rSet ); 267*cdf0e10cSrcweir 268*cdf0e10cSrcweir void DisableControls( sal_uInt16 nDisable ); 269*cdf0e10cSrcweir void EnableFlash(); 270*cdf0e10cSrcweir // the writer uses SID_ATTR_BRUSH as font background 271*cdf0e10cSrcweir void SetPreviewBackgroundToCharacter(); 272*cdf0e10cSrcweir virtual void PageCreated (SfxAllItemSet aSet); 273*cdf0e10cSrcweir }; 274*cdf0e10cSrcweir 275*cdf0e10cSrcweir // class SvxCharPositionPage --------------------------------------------- 276*cdf0e10cSrcweir 277*cdf0e10cSrcweir class SvxCharPositionPage : public SvxCharBasePage 278*cdf0e10cSrcweir { 279*cdf0e10cSrcweir 280*cdf0e10cSrcweir private: 281*cdf0e10cSrcweir FixedLine m_aPositionLine; 282*cdf0e10cSrcweir RadioButton m_aHighPosBtn; 283*cdf0e10cSrcweir RadioButton m_aNormalPosBtn; 284*cdf0e10cSrcweir RadioButton m_aLowPosBtn; 285*cdf0e10cSrcweir FixedText m_aHighLowFT; 286*cdf0e10cSrcweir MetricField m_aHighLowEdit; 287*cdf0e10cSrcweir CheckBox m_aHighLowRB; 288*cdf0e10cSrcweir FixedText m_aFontSizeFT; 289*cdf0e10cSrcweir MetricField m_aFontSizeEdit; 290*cdf0e10cSrcweir FixedLine m_aRotationScalingFL; 291*cdf0e10cSrcweir FixedLine m_aScalingFL; 292*cdf0e10cSrcweir RadioButton m_a0degRB; 293*cdf0e10cSrcweir RadioButton m_a90degRB; 294*cdf0e10cSrcweir RadioButton m_a270degRB; 295*cdf0e10cSrcweir CheckBox m_aFitToLineCB; 296*cdf0e10cSrcweir FixedText m_aScaleWidthFT; 297*cdf0e10cSrcweir MetricField m_aScaleWidthMF; 298*cdf0e10cSrcweir 299*cdf0e10cSrcweir FixedLine m_aKerningLine; 300*cdf0e10cSrcweir ListBox m_aKerningLB; 301*cdf0e10cSrcweir FixedText m_aKerningFT; 302*cdf0e10cSrcweir MetricField m_aKerningEdit; 303*cdf0e10cSrcweir CheckBox m_aPairKerningBtn; 304*cdf0e10cSrcweir 305*cdf0e10cSrcweir short m_nSuperEsc; 306*cdf0e10cSrcweir short m_nSubEsc; 307*cdf0e10cSrcweir 308*cdf0e10cSrcweir sal_uInt16 m_nScaleWidthItemSetVal; 309*cdf0e10cSrcweir sal_uInt16 m_nScaleWidthInitialVal; 310*cdf0e10cSrcweir 311*cdf0e10cSrcweir sal_uInt8 m_nSuperProp; 312*cdf0e10cSrcweir sal_uInt8 m_nSubProp; 313*cdf0e10cSrcweir 314*cdf0e10cSrcweir SvxCharPositionPage( Window* pParent, const SfxItemSet& rSet ); 315*cdf0e10cSrcweir 316*cdf0e10cSrcweir void Initialize(); 317*cdf0e10cSrcweir void UpdatePreview_Impl( sal_uInt8 nProp, sal_uInt8 nEscProp, short nEsc ); 318*cdf0e10cSrcweir void SetEscapement_Impl( sal_uInt16 nEsc ); 319*cdf0e10cSrcweir 320*cdf0e10cSrcweir DECL_LINK( PositionHdl_Impl, RadioButton* ); 321*cdf0e10cSrcweir DECL_LINK( RotationHdl_Impl, RadioButton* ); 322*cdf0e10cSrcweir DECL_LINK( FontModifyHdl_Impl, MetricField* ); 323*cdf0e10cSrcweir DECL_LINK( AutoPositionHdl_Impl, CheckBox* ); 324*cdf0e10cSrcweir DECL_LINK( FitToLineHdl_Impl, CheckBox* ); 325*cdf0e10cSrcweir DECL_LINK( KerningSelectHdl_Impl, ListBox* ); 326*cdf0e10cSrcweir DECL_LINK( KerningModifyHdl_Impl, MetricField* ); 327*cdf0e10cSrcweir DECL_LINK( PairKerningHdl_Impl, CheckBox* ); 328*cdf0e10cSrcweir DECL_LINK( LoseFocusHdl_Impl, MetricField* ); 329*cdf0e10cSrcweir DECL_LINK( ScaleWidthModifyHdl_Impl, MetricField* ); 330*cdf0e10cSrcweir 331*cdf0e10cSrcweir public: 332*cdf0e10cSrcweir using SfxTabPage::ActivatePage; 333*cdf0e10cSrcweir using SfxTabPage::DeactivatePage; 334*cdf0e10cSrcweir 335*cdf0e10cSrcweir virtual int DeactivatePage( SfxItemSet* pSet = 0 ); 336*cdf0e10cSrcweir virtual void ActivatePage( const SfxItemSet& rSet ); 337*cdf0e10cSrcweir 338*cdf0e10cSrcweir public: 339*cdf0e10cSrcweir static SfxTabPage* Create( Window* pParent, const SfxItemSet& rSet ); 340*cdf0e10cSrcweir static sal_uInt16* GetRanges(); 341*cdf0e10cSrcweir 342*cdf0e10cSrcweir virtual void Reset( const SfxItemSet& rSet ); 343*cdf0e10cSrcweir virtual sal_Bool FillItemSet( SfxItemSet& rSet ); 344*cdf0e10cSrcweir virtual void FillUserData(); 345*cdf0e10cSrcweir // the writer uses SID_ATTR_BRUSH as font background 346*cdf0e10cSrcweir void SetPreviewBackgroundToCharacter(); 347*cdf0e10cSrcweir virtual void PageCreated (SfxAllItemSet aSet); 348*cdf0e10cSrcweir }; 349*cdf0e10cSrcweir 350*cdf0e10cSrcweir // class SvxCharTwoLinesPage --------------------------------------------- 351*cdf0e10cSrcweir 352*cdf0e10cSrcweir class SvxCharTwoLinesPage : public SvxCharBasePage 353*cdf0e10cSrcweir { 354*cdf0e10cSrcweir private: 355*cdf0e10cSrcweir FixedLine m_aSwitchOnLine; 356*cdf0e10cSrcweir CheckBox m_aTwoLinesBtn; 357*cdf0e10cSrcweir 358*cdf0e10cSrcweir FixedLine m_aEncloseLine; 359*cdf0e10cSrcweir FixedText m_aStartBracketFT; 360*cdf0e10cSrcweir ListBox m_aStartBracketLB; 361*cdf0e10cSrcweir FixedText m_aEndBracketFT; 362*cdf0e10cSrcweir ListBox m_aEndBracketLB; 363*cdf0e10cSrcweir 364*cdf0e10cSrcweir sal_uInt16 m_nStartBracketPosition; 365*cdf0e10cSrcweir sal_uInt16 m_nEndBracketPosition; 366*cdf0e10cSrcweir 367*cdf0e10cSrcweir SvxCharTwoLinesPage( Window* pParent, const SfxItemSet& rSet ); 368*cdf0e10cSrcweir 369*cdf0e10cSrcweir void UpdatePreview_Impl(); 370*cdf0e10cSrcweir void Initialize(); 371*cdf0e10cSrcweir void SelectCharacter( ListBox* pBox ); 372*cdf0e10cSrcweir void SetBracket( sal_Unicode cBracket, sal_Bool bStart ); 373*cdf0e10cSrcweir 374*cdf0e10cSrcweir DECL_LINK( TwoLinesHdl_Impl, CheckBox* ); 375*cdf0e10cSrcweir DECL_LINK( CharacterMapHdl_Impl, ListBox* ); 376*cdf0e10cSrcweir 377*cdf0e10cSrcweir public: 378*cdf0e10cSrcweir using SfxTabPage::ActivatePage; 379*cdf0e10cSrcweir using SfxTabPage::DeactivatePage; 380*cdf0e10cSrcweir 381*cdf0e10cSrcweir virtual void ActivatePage( const SfxItemSet& rSet ); 382*cdf0e10cSrcweir virtual int DeactivatePage( SfxItemSet* pSet = 0 ); 383*cdf0e10cSrcweir 384*cdf0e10cSrcweir public: 385*cdf0e10cSrcweir static SfxTabPage* Create( Window* pParent, const SfxItemSet& rSet ); 386*cdf0e10cSrcweir static sal_uInt16* GetRanges(); 387*cdf0e10cSrcweir 388*cdf0e10cSrcweir virtual void Reset( const SfxItemSet& rSet ); 389*cdf0e10cSrcweir virtual sal_Bool FillItemSet( SfxItemSet& rSet ); 390*cdf0e10cSrcweir // the writer uses SID_ATTR_BRUSH as font background 391*cdf0e10cSrcweir void SetPreviewBackgroundToCharacter(); 392*cdf0e10cSrcweir virtual void PageCreated (SfxAllItemSet aSet); 393*cdf0e10cSrcweir }; 394*cdf0e10cSrcweir 395*cdf0e10cSrcweir #endif // #ifndef _SVX_CHARDLG_HXX 396*cdf0e10cSrcweir 397