LibreOffice Module cui (master) 1
optcolor.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19#pragma once
20
21#include <sfx2/tabdlg.hxx>
22
23namespace svtools {class EditableColorConfig;class EditableExtendedColorConfig;}
26struct ImplSVEvent;
27
29{
31
33
34 std::unique_ptr<weld::ComboBox> m_xColorSchemeLB;
35 std::unique_ptr<weld::Button> m_xSaveSchemePB;
36 std::unique_ptr<weld::Button> m_xDeleteSchemePB;
37 std::unique_ptr<ColorConfigCtrl_Impl> m_xColorConfigCT;
38 std::unique_ptr<weld::Widget> m_xTable;
39 std::unique_ptr<weld::Label> m_xOnFT;
40 std::unique_ptr<weld::Label> m_xColorFT;
43
44 std::unique_ptr<svtools::EditableColorConfig> pColorConfig;
45 std::unique_ptr<svtools::EditableExtendedColorConfig> pExtColorConfig;
46
47 DECL_LINK(SchemeChangedHdl_Impl, weld::ComboBox&, void);
48 DECL_LINK(SaveDeleteHdl_Impl, weld::Button&, void);
49 DECL_LINK(CheckNameHdl_Impl, AbstractSvxNameDialog&, bool);
50 DECL_LINK(AdjustHeaderBar, const Size&, void);
51 DECL_LINK(PostAdjustHeaderBar, void *, void);
52 void UpdateColorConfig();
53
54public:
56 virtual ~SvxColorOptionsTabPage() override;
57
58 static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet );
59
60 virtual bool FillItemSet( SfxItemSet* rSet ) override;
61 virtual void Reset( const SfxItemSet* rSet ) override;
62
63 virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
64 virtual void FillUserData() override;
65};
66
67/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
const SfxItemSet * pSet
virtual void Reset(const SfxItemSet *rSet) override
Definition: optcolor.cxx:765
std::unique_ptr< weld::Widget > m_xTable
Definition: optcolor.hxx:38
DECL_LINK(SchemeChangedHdl_Impl, weld::ComboBox &, void)
std::unique_ptr< weld::Button > m_xDeleteSchemePB
Definition: optcolor.hxx:36
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: optcolor.cxx:796
std::unique_ptr< weld::Button > m_xSaveSchemePB
Definition: optcolor.hxx:35
ImplSVEvent * m_nSizeAllocEventId
Definition: optcolor.hxx:32
std::unique_ptr< weld::Label > m_xColorFT
Definition: optcolor.hxx:40
virtual void FillUserData() override
Definition: optcolor.cxx:867
weld::Widget & m_rWidget1
Definition: optcolor.hxx:41
std::unique_ptr< weld::Label > m_xOnFT
Definition: optcolor.hxx:39
SvxColorOptionsTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
Definition: optcolor.cxx:693
std::unique_ptr< weld::ComboBox > m_xColorSchemeLB
Definition: optcolor.hxx:34
DECL_LINK(PostAdjustHeaderBar, void *, void)
std::unique_ptr< ColorConfigCtrl_Impl > m_xColorConfigCT
Definition: optcolor.hxx:37
virtual bool FillItemSet(SfxItemSet *rSet) override
Definition: optcolor.cxx:750
std::unique_ptr< svtools::EditableExtendedColorConfig > pExtColorConfig
Definition: optcolor.hxx:45
virtual ~SvxColorOptionsTabPage() override
Definition: optcolor.cxx:717
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
Definition: optcolor.cxx:745
std::unique_ptr< svtools::EditableColorConfig > pColorConfig
Definition: optcolor.hxx:44
DECL_LINK(AdjustHeaderBar, const Size &, void)
weld::Widget & m_rWidget2
Definition: optcolor.hxx:42
DECL_LINK(SaveDeleteHdl_Impl, weld::Button &, void)
DECL_LINK(CheckNameHdl_Impl, AbstractSvxNameDialog &, bool)
DeactivateRC