1 /************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27 #ifndef _OFA_OPTGDLG_HXX 28 #define _OFA_OPTGDLG_HXX 29 #include <vcl/lstbox.hxx> 30 #include <vcl/group.hxx> 31 #include <vcl/field.hxx> 32 #include <vcl/fixed.hxx> 33 #include <sfx2/tabdlg.hxx> 34 #include <svx/langbox.hxx> 35 #include <readonlyimage.hxx> 36 #define FOLDERWEBVIEW_DEFAULTFILE "folder.so" 37 38 // predeclarations 39 class CanvasSettings; 40 class SvtOptionsDrawinglayer; 41 42 // class OfaMiscTabPage -------------------------------------------------- 43 44 class OfaMiscTabPage : public SfxTabPage 45 { 46 using TabPage::DeactivatePage; 47 private: 48 FixedLine aHelpFL; 49 CheckBox aToolTipsCB; 50 CheckBox aExtHelpCB; 51 CheckBox aHelpAgentCB; 52 PushButton aHelpAgentResetBtn; 53 FixedText aHelpFormatFT; 54 ListBox aHelpFormatLB; 55 56 FixedLine aFileDlgFL; 57 ReadOnlyImage aFileDlgROImage; 58 CheckBox aFileDlgCB; 59 60 FixedLine aPrintDlgFL; 61 CheckBox aPrintDlgCB; 62 63 FixedLine aDocStatusFL; 64 CheckBox aDocStatusCB; 65 66 FixedLine aTwoFigureFL; 67 FixedText aInterpretFT; 68 NumericField aYearValueField; 69 FixedText aToYearFT; 70 71 String aStrDateInfo; 72 73 DECL_LINK( TwoFigureHdl, NumericField* ); 74 DECL_LINK( TwoFigureConfigHdl, NumericField* ); 75 DECL_LINK( HelpCheckHdl_Impl, CheckBox* ); 76 DECL_LINK( HelpAgentResetHdl_Impl, PushButton* ); 77 protected: 78 virtual int DeactivatePage( SfxItemSet* pSet = NULL ); 79 80 public: 81 OfaMiscTabPage( Window* pParent, const SfxItemSet& rSet ); 82 ~OfaMiscTabPage(); 83 84 static SfxTabPage* Create( Window* pParent, const SfxItemSet& rAttrSet ); 85 86 virtual sal_Bool FillItemSet( SfxItemSet& rSet ); 87 virtual void Reset( const SfxItemSet& rSet ); 88 }; 89 90 // class OfaViewTabPage -------------------------------------------------- 91 class SvtTabAppearanceCfg; 92 93 class OfaViewTabPage : public SfxTabPage 94 { 95 private: 96 FixedLine aUserInterfaceFL; 97 FixedText aWindowSizeFT; 98 MetricField aWindowSizeMF; 99 FixedText aIconSizeStyleFT; 100 ListBox aIconSizeLB; 101 ListBox aIconStyleLB; 102 CheckBox m_aSystemFont; 103 104 #if defined( UNX ) 105 CheckBox aFontAntiAliasing; 106 FixedText aAAPointLimitLabel; 107 NumericField aAAPointLimit; 108 FixedText aAAPointLimitUnits; 109 #endif 110 111 FixedLine aMenuFL; 112 FixedText aMenuIconsFT; 113 ListBox aMenuIconsLB; 114 115 FixedLine aFontListsFL; 116 CheckBox aFontShowCB; 117 CheckBox aFontHistoryCB; 118 119 FixedLine aRenderingFL; 120 CheckBox aUseHardwareAccell; 121 CheckBox aUseAntiAliase; 122 123 FixedLine aMouseFL; 124 FixedText aMousePosFT; 125 ListBox aMousePosLB; 126 FixedText aMouseMiddleFT; 127 ListBox aMouseMiddleLB; 128 129 // #i97672# 130 FixedLine maSelectionFL; 131 CheckBox maSelectionCB; 132 MetricField maSelectionMF; 133 134 sal_uInt16 nSizeLB_InitialSelection; 135 sal_uInt16 nStyleLB_InitialSelection; 136 sal_Bool bSfxSymbolsAuto; 137 138 // item ID for the given icon theme 139 // might be zero when the theme is not installed and the item is removed 140 sal_uLong aIconStyleItemId[STYLE_SYMBOLS_THEMES_MAX]; 141 SvtTabAppearanceCfg* pAppearanceCfg; 142 CanvasSettings* pCanvasSettings; 143 SvtOptionsDrawinglayer* mpDrawinglayerOpt; 144 145 #if defined( UNX ) 146 DECL_LINK( OnAntialiasingToggled, void* ); 147 #endif 148 // #i97672# 149 DECL_LINK( OnSelectionToggled, void* ); 150 151 public: 152 OfaViewTabPage( Window* pParent, const SfxItemSet& rSet ); 153 ~OfaViewTabPage(); 154 155 static SfxTabPage* Create( Window* pParent, const SfxItemSet& rAttrSet ); 156 157 virtual sal_Bool FillItemSet( SfxItemSet& rSet ); 158 virtual void Reset( const SfxItemSet& rSet ); 159 }; 160 /* -----------------------------23.11.00 13:04-------------------------------- 161 162 ---------------------------------------------------------------------------*/ 163 struct LanguageConfig_Impl; 164 class OfaLanguagesTabPage : public SfxTabPage 165 { 166 FixedLine aUILanguageGB; 167 ReadOnlyImage aLocaleSettingFI; 168 FixedText aUserInterfaceFT; 169 ListBox aUserInterfaceLB; 170 FixedText aLocaleSettingFT; 171 SvxLanguageBox aLocaleSettingLB; 172 ReadOnlyImage aCurrencyFI; 173 FixedText aDecimalSeparatorFT; 174 CheckBox aDecimalSeparatorCB; 175 FixedText aCurrencyFT; 176 ListBox aCurrencyLB; 177 178 FixedLine aLinguLanguageGB; 179 ReadOnlyImage aWesternLanguageFI; 180 FixedText aWesternLanguageFT; 181 SvxLanguageBox aWesternLanguageLB; 182 ReadOnlyImage aAsianLanguageFI; 183 FixedText aAsianLanguageFT; 184 SvxLanguageBox aAsianLanguageLB; 185 ReadOnlyImage aComplexLanguageFI; 186 FixedText aComplexLanguageFT; 187 SvxLanguageBox aComplexLanguageLB; 188 CheckBox aCurrentDocCB; 189 FixedLine aEnhancedFL; 190 ReadOnlyImage aAsianSupportFI; 191 CheckBox aAsianSupportCB; 192 ReadOnlyImage aCTLSupportFI; 193 CheckBox aCTLSupportCB; 194 195 const String sDecimalSeparatorLabel; 196 197 sal_Bool m_bOldAsian; 198 sal_Bool m_bOldCtl; 199 LanguageConfig_Impl* pLangConfig; 200 201 rtl::OUString m_sUserLocaleValue; 202 203 DECL_LINK( SupportHdl, CheckBox* ) ; 204 DECL_LINK( LocaleSettingHdl, SvxLanguageBox* ) ; 205 206 public: 207 OfaLanguagesTabPage( Window* pParent, const SfxItemSet& rSet ); 208 ~OfaLanguagesTabPage(); 209 210 static SfxTabPage* Create( Window* pParent, const SfxItemSet& rAttrSet ); 211 212 virtual sal_Bool FillItemSet( SfxItemSet& rSet ); 213 virtual void Reset( const SfxItemSet& rSet ); 214 }; 215 #endif // #ifndef _OFA_OPTGDLG_HXX 216 217 218