Version 6.4.0.0.beta1, tag libreoffice-6.4.0.0.beta1
[LibreOffice.git] / cui / source / options / optcolor.hxx
blob8e59592bfbeec1d61dabc2da1355f0de0340f3f2
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef INCLUDED_CUI_SOURCE_OPTIONS_OPTCOLOR_HXX
20 #define INCLUDED_CUI_SOURCE_OPTIONS_OPTCOLOR_HXX
22 #include <sfx2/tabdlg.hxx>
24 namespace svtools {class EditableColorConfig;class EditableExtendedColorConfig;}
25 class ColorConfigCtrl_Impl;
26 class AbstractSvxNameDialog;
27 class SvxColorOptionsTabPage : public SfxTabPage
29 bool bFillItemSetCalled;
31 std::unique_ptr<weld::ComboBox> m_xColorSchemeLB;
32 std::unique_ptr<weld::Button> m_xSaveSchemePB;
33 std::unique_ptr<weld::Button> m_xDeleteSchemePB;
34 std::unique_ptr<ColorConfigCtrl_Impl> m_xColorConfigCT;
35 std::unique_ptr<weld::Widget> m_xTable;
36 std::unique_ptr<weld::Label> m_xOnFT;
37 std::unique_ptr<weld::Label> m_xElementFT;
38 std::unique_ptr<weld::Label> m_xColorFT;
39 weld::Widget& m_rWidget1;
40 weld::Widget& m_rWidget2;
42 std::unique_ptr<svtools::EditableColorConfig> pColorConfig;
43 std::unique_ptr<svtools::EditableExtendedColorConfig> pExtColorConfig;
45 DECL_LINK(SchemeChangedHdl_Impl, weld::ComboBox&, void);
46 DECL_LINK(SaveDeleteHdl_Impl, weld::Button&, void);
47 DECL_LINK(CheckNameHdl_Impl, AbstractSvxNameDialog&, bool);
48 DECL_LINK(AdjustHeaderBar, const Size&, void);
49 void UpdateColorConfig();
51 public:
52 SvxColorOptionsTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet);
53 virtual ~SvxColorOptionsTabPage() override;
55 static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet );
57 virtual bool FillItemSet( SfxItemSet* rSet ) override;
58 virtual void Reset( const SfxItemSet* rSet ) override;
60 virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
61 virtual void FillUserData() override;
64 #endif
66 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */