/* -*- 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 . */ #pragma once #include #include #include class CanvasSettings; class SvtOptionsDrawinglayer; namespace vcl { class IconThemeInfo; } class OfaMiscTabPage : public SfxTabPage { private: OUString m_aStrDateInfo; std::unique_ptr m_xExtHelpCB; std::unique_ptr m_xPopUpNoHelpCB; std::unique_ptr m_xShowTipOfTheDay; std::unique_ptr m_xFileDlgFrame; std::unique_ptr m_xFileDlgROImage; std::unique_ptr m_xFileDlgCB; std::unique_ptr m_xPrintDlgCB; std::unique_ptr m_xDocStatusCB; std::unique_ptr m_xYearFrame; std::unique_ptr m_xYearValueField; std::unique_ptr m_xToYearFT; std::unique_ptr m_xCollectUsageInfo; std::unique_ptr m_xCrashReport; std::unique_ptr m_xQuickStarterFrame; std::unique_ptr m_xQuickLaunchCB; #if defined(_WIN32) std::unique_ptr m_xFileAssocFrame; std::unique_ptr m_xFileAssocBtn; std::unique_ptr m_xPerformFileExtCheck; #endif DECL_LINK(TwoFigureHdl, weld::SpinButton&, void); #if defined(_WIN32) DECL_STATIC_LINK(OfaMiscTabPage, FileAssocClick, weld::Button&, void); #endif protected: virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override; public: OfaMiscTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet); virtual ~OfaMiscTabPage() override; static std::unique_ptr Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet ); virtual bool FillItemSet( SfxItemSet* rSet ) override; virtual void Reset( const SfxItemSet* rSet ) override; }; class SvtTabAppearanceCfg; class OfaViewTabPage : public SfxTabPage { private: sal_Int32 nSizeLB_InitialSelection; sal_Int32 nSidebarSizeLB_InitialSelection; sal_Int32 nNotebookbarSizeLB_InitialSelection; sal_Int32 nStyleLB_InitialSelection; std::unique_ptr pAppearanceCfg; std::unique_ptr pCanvasSettings; std::unique_ptr mpDrawinglayerOpt; std::vector mInstalledIconThemes; std::unique_ptr m_xIconSizeLB; std::unique_ptr m_xSidebarIconSizeLB; std::unique_ptr m_xNotebookbarIconSizeLB; std::unique_ptr m_xIconStyleLB; std::unique_ptr m_xFontAntiAliasing; std::unique_ptr m_xAAPointLimitLabel; std::unique_ptr m_xAAPointLimit; std::unique_ptr m_xMenuIconBox; std::unique_ptr m_xMenuIconsLB; std::unique_ptr m_xContextMenuShortcutsLB; std::unique_ptr m_xFontShowCB; std::unique_ptr m_xUseHardwareAccell; std::unique_ptr m_xUseAntiAliase; std::unique_ptr m_xUseSkia; std::unique_ptr m_xForceSkiaRaster; std::unique_ptr m_xSkiaStatusEnabled; std::unique_ptr m_xSkiaStatusDisabled; std::unique_ptr m_xMousePosLB; std::unique_ptr m_xMouseMiddleLB; std::unique_ptr m_xMoreIcons; DECL_LINK(OnAntialiasingToggled, weld::Toggleable&, void); DECL_LINK(OnUseSkiaToggled, weld::Toggleable&, void); DECL_STATIC_LINK(OfaViewTabPage, OnMoreIconsClick, weld::Button&, void); void UpdateSkiaStatus(); void HideSkiaWidgets(); void UpdateHardwareAccelStatus(); public: OfaViewTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet); virtual ~OfaViewTabPage() override; static std::unique_ptr Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet ); virtual bool FillItemSet( SfxItemSet* rSet ) override; virtual void Reset( const SfxItemSet* rSet ) override; }; struct LanguageConfig_Impl; class OfaLanguagesTabPage : public SfxTabPage { bool m_bOldAsian; bool m_bOldCtl; std::unique_ptr pLangConfig; OUString m_sUserLocaleValue; OUString m_sSystemDefaultString; OUString m_sDecimalSeparatorLabel; bool m_bDatePatternsValid; std::unique_ptr m_xUserInterfaceLB; std::unique_ptr m_xLocaleSettingFT; std::unique_ptr m_xLocaleSettingLB; std::unique_ptr m_xDecimalSeparatorCB; std::unique_ptr m_xCurrencyFT; std::unique_ptr m_xCurrencyLB; std::unique_ptr m_xDatePatternsFT; std::unique_ptr m_xDatePatternsED; std::unique_ptr m_xWesternLanguageLB; std::unique_ptr m_xWesternLanguageFT; std::unique_ptr m_xAsianLanguageLB; std::unique_ptr m_xComplexLanguageLB; std::unique_ptr m_xCurrentDocCB; std::unique_ptr m_xAsianSupportCB; std::unique_ptr m_xCTLSupportCB; std::unique_ptr m_xIgnoreLanguageChangeCB; DECL_LINK(SupportHdl, weld::Toggleable&, void); DECL_LINK(LocaleSettingHdl, weld::ComboBox&, void); DECL_LINK(DatePatternsHdl, weld::Entry&, void); public: OfaLanguagesTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet); virtual ~OfaLanguagesTabPage() override; static std::unique_ptr Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet ); virtual bool FillItemSet( SfxItemSet* rSet ) override; virtual void Reset( const SfxItemSet* rSet ) override; }; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */