/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ #ifndef INCLUDED_CUI_SOURCE_OPTIONS_OPTGDLG_HXX #define INCLUDED_CUI_SOURCE_OPTIONS_OPTGDLG_HXX #include #include #include #include #include #include #include // predeclarations class CanvasSettings; class SvtOptionsDrawinglayer; namespace vcl { class IconThemeInfo; } namespace svt { class OpenGLCfg; } // class OfaMiscTabPage -------------------------------------------------- class OfaMiscTabPage : public SfxTabPage { using TabPage::DeactivatePage; private: VclPtr m_pToolTipsCB; VclPtr m_pExtHelpCB; VclPtr m_pFileDlgROImage; VclPtr m_pFileDlgCB; VclPtr m_pPrintDlgCB; VclPtr m_pDocStatusCB; VclPtr m_pSaveAlwaysCB; VclPtr m_pYearFrame; VclPtr m_pYearValueField; VclPtr m_pToYearFT; OUString m_aStrDateInfo; VclPtr m_pCollectUsageInfo; DECL_LINK( TwoFigureHdl, NumericField* ); DECL_LINK( TwoFigureConfigHdl, NumericField* ); DECL_LINK(HelpCheckHdl_Impl, void *); #ifdef WNT DECL_LINK( OnFileDlgToggled, void* ); #endif protected: virtual int DeactivatePage( SfxItemSet* pSet = NULL ) SAL_OVERRIDE; public: OfaMiscTabPage( vcl::Window* pParent, const SfxItemSet& rSet ); virtual ~OfaMiscTabPage(); virtual void dispose() SAL_OVERRIDE; static VclPtr Create( vcl::Window* pParent, const SfxItemSet* rAttrSet ); virtual bool FillItemSet( SfxItemSet* rSet ) SAL_OVERRIDE; virtual void Reset( const SfxItemSet* rSet ) SAL_OVERRIDE; }; // class OfaViewTabPage -------------------------------------------------- class SvtTabAppearanceCfg; class OfaViewTabPage : public SfxTabPage { private: VclPtr m_pWindowSizeMF; VclPtr m_pIconSizeLB; VclPtr m_pIconStyleLB; VclPtr m_pFontAntiAliasing; VclPtr m_pAAPointLimitLabel; VclPtr m_pAAPointLimit; VclPtr m_pMenuIconsLB; VclPtr m_pFontShowCB; VclPtr m_pFontHistoryCB; VclPtr m_pUseHardwareAccell; VclPtr m_pUseAntiAliase; VclPtr m_pUseOpenGL; VclPtr m_pForceOpenGL; VclPtr m_pMousePosLB; VclPtr m_pMouseMiddleLB; // #i97672# VclPtr m_pSelectionCB; VclPtr m_pSelectionMF; sal_uInt16 nSizeLB_InitialSelection; sal_uInt16 nStyleLB_InitialSelection; SvtTabAppearanceCfg* pAppearanceCfg; CanvasSettings* pCanvasSettings; SvtOptionsDrawinglayer* mpDrawinglayerOpt; boost::scoped_ptr mpOpenGLConfig; std::vector mInstalledIconThemes; #if defined( UNX ) DECL_LINK( OnAntialiasingToggled, void* ); #endif // #i97672# DECL_LINK( OnSelectionToggled, void* ); public: OfaViewTabPage( vcl::Window* pParent, const SfxItemSet& rSet ); virtual ~OfaViewTabPage(); virtual void dispose() SAL_OVERRIDE; static VclPtr Create( vcl::Window* pParent, const SfxItemSet* rAttrSet ); virtual bool FillItemSet( SfxItemSet* rSet ) SAL_OVERRIDE; virtual void Reset( const SfxItemSet* rSet ) SAL_OVERRIDE; }; struct LanguageConfig_Impl; class OfaLanguagesTabPage : public SfxTabPage { VclPtr m_pUserInterfaceLB; VclPtr m_pLocaleSettingFT; VclPtr m_pLocaleSettingLB; VclPtr m_pDecimalSeparatorCB; VclPtr m_pCurrencyFT; VclPtr m_pCurrencyLB; VclPtr m_pDatePatternsFT; VclPtr m_pDatePatternsED; VclPtr m_pWesternLanguageLB; VclPtr m_pWesternLanguageFT; VclPtr m_pAsianLanguageLB; VclPtr m_pComplexLanguageLB; VclPtr m_pCurrentDocCB; VclPtr m_pAsianSupportCB; VclPtr m_pCTLSupportCB; VclPtr m_pIgnoreLanguageChangeCB; bool m_bOldAsian; bool m_bOldCtl; LanguageConfig_Impl* pLangConfig; OUString m_sUserLocaleValue; OUString m_sSystemDefaultString; bool m_bDatePatternsValid; DECL_LINK( SupportHdl, CheckBox* ) ; DECL_LINK( LocaleSettingHdl, SvxLanguageBox* ) ; DECL_LINK( DatePatternsHdl, Edit* ) ; public: OfaLanguagesTabPage( vcl::Window* pParent, const SfxItemSet& rSet ); virtual ~OfaLanguagesTabPage(); virtual void dispose() SAL_OVERRIDE; static VclPtr Create( vcl::Window* pParent, const SfxItemSet* rAttrSet ); virtual bool FillItemSet( SfxItemSet* rSet ) SAL_OVERRIDE; virtual void Reset( const SfxItemSet* rSet ) SAL_OVERRIDE; }; #endif // INCLUDED_CUI_SOURCE_OPTIONS_OPTGDLG_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */