/* -*- 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 class CanvasSettings; class SvtOptionsDrawinglayer; namespace vcl { class IconThemeInfo; } namespace svt { class OpenGLCfg; } class OfaMiscTabPage : public SfxTabPage { using TabPage::DeactivatePage; private: VclPtr m_pExtHelpCB; VclPtr m_pFileDlgROImage; VclPtr m_pFileDlgCB; VclPtr m_pPrintDlgCB; VclPtr m_pDocStatusCB; VclPtr m_pYearFrame; VclPtr m_pYearValueField; VclPtr m_pToYearFT; OUString m_aStrDateInfo; VclPtr m_pCollectUsageInfo; DECL_LINK( TwoFigureHdl, Edit&, void ); DECL_LINK( TwoFigureConfigHdl, SpinField&, void ); DECL_LINK( TwoFigureConfigFocusHdl, Control&, void ); protected: virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override; public: OfaMiscTabPage( vcl::Window* pParent, const SfxItemSet& rSet ); virtual ~OfaMiscTabPage() override; virtual void dispose() override; static VclPtr Create( vcl::Window* pParent, const SfxItemSet* rAttrSet ); virtual bool FillItemSet( SfxItemSet* rSet ) override; virtual void Reset( const SfxItemSet* rSet ) override; }; class SvtTabAppearanceCfg; class OfaViewTabPage : public SfxTabPage { private: VclPtr m_pIconSizeLB; VclPtr m_pSidebarIconSizeLB; VclPtr m_pNotebookbarIconSizeLB; VclPtr m_pIconStyleLB; VclPtr m_pFontAntiAliasing; VclPtr m_pAAPointLimitLabel; VclPtr m_pAAPointLimit; VclPtr m_pMenuIconsLB; VclPtr m_pContextMenuShortcutsLB; VclPtr m_pFontShowCB; VclPtr m_pUseHardwareAccell; VclPtr m_pUseAntiAliase; VclPtr m_pUseOpenGL; VclPtr m_pForceOpenGL; VclPtr m_pOpenGLStatusEnabled; VclPtr m_pOpenGLStatusDisabled; VclPtr m_pMousePosLB; VclPtr m_pMouseMiddleLB; sal_Int32 nSizeLB_InitialSelection; sal_Int32 nSidebarSizeLB_InitialSelection; sal_Int32 nNotebookbarSizeLB_InitialSelection; sal_Int32 nStyleLB_InitialSelection; SvtTabAppearanceCfg* pAppearanceCfg; CanvasSettings* pCanvasSettings; SvtOptionsDrawinglayer* mpDrawinglayerOpt; std::unique_ptr mpOpenGLConfig; std::vector mInstalledIconThemes; #if defined( UNX ) DECL_LINK( OnAntialiasingToggled, CheckBox&, void ); #endif void UpdateOGLStatus(); public: OfaViewTabPage( vcl::Window* pParent, const SfxItemSet& rSet ); virtual ~OfaViewTabPage() override; virtual void dispose() override; static VclPtr Create( vcl::Window* pParent, const SfxItemSet* rAttrSet ); virtual bool FillItemSet( SfxItemSet* rSet ) override; virtual void Reset( const SfxItemSet* rSet ) 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, Button*, void ) ; DECL_LINK( LocaleSettingHdl, ListBox&, void ) ; DECL_LINK( DatePatternsHdl, Edit&, void ) ; public: OfaLanguagesTabPage( vcl::Window* pParent, const SfxItemSet& rSet ); virtual ~OfaLanguagesTabPage() override; virtual void dispose() override; static VclPtr Create( vcl::Window* pParent, const SfxItemSet* rAttrSet ); virtual bool FillItemSet( SfxItemSet* rSet ) override; virtual void Reset( const SfxItemSet* rSet ) override; }; #endif // INCLUDED_CUI_SOURCE_OPTIONS_OPTGDLG_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */