Version 7.6.3.2-android, tag libreoffice-7.6.3.2-android
[LibreOffice.git] / cui / source / inc / themepage.hxx
blob894a09c9385b131ad55c76f2f25cb3e2bde3ab2b
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
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/.
8 */
10 #pragma once
12 #include <sal/config.h>
14 #include <sfx2/tabdlg.hxx>
16 #include <memory>
18 class ColorListBox;
20 /// Tab page for themes
21 class SvxThemePage : public SfxTabPage
23 static const WhichRangesContainer m_pRanges;
25 std::unique_ptr<weld::Entry> m_xThemeName;
26 std::unique_ptr<weld::Entry> m_xColorSetName;
27 std::unique_ptr<ColorListBox> m_xDk1;
28 std::unique_ptr<ColorListBox> m_xLt1;
29 std::unique_ptr<ColorListBox> m_xDk2;
30 std::unique_ptr<ColorListBox> m_xLt2;
31 std::unique_ptr<ColorListBox> m_xAccent1;
32 std::unique_ptr<ColorListBox> m_xAccent2;
33 std::unique_ptr<ColorListBox> m_xAccent3;
34 std::unique_ptr<ColorListBox> m_xAccent4;
35 std::unique_ptr<ColorListBox> m_xAccent5;
36 std::unique_ptr<ColorListBox> m_xAccent6;
37 std::unique_ptr<ColorListBox> m_xHlink;
38 std::unique_ptr<ColorListBox> m_xFolHlink;
40 public:
41 SvxThemePage(weld::Container* pPage, weld::DialogController* pController,
42 const SfxItemSet& rInAttrs);
43 virtual ~SvxThemePage() override;
45 static std::unique_ptr<SfxTabPage>
46 Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet*);
47 static WhichRangesContainer GetRanges() { return m_pRanges; }
49 virtual bool FillItemSet(SfxItemSet*) override;
50 virtual void Reset(const SfxItemSet*) override;
53 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */