LibreOffice Module sw (master)
1
sw
source
uibase
sidebar
PageStylesPanel.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
#ifndef INCLUDED_SW_SOURCE_UIBASE_SIDEBAR_PAGESTYLESPANEL_HXX
20
#define INCLUDED_SW_SOURCE_UIBASE_SIDEBAR_PAGESTYLESPANEL_HXX
21
22
#include <memory>
23
24
#include <
sfx2/sidebar/PanelLayout.hxx
>
25
#include <
sfx2/sidebar/ControllerItem.hxx
>
26
#include <
svl/intitem.hxx
>
27
#include <
svl/poolitem.hxx
>
28
#include <
svx/xbtmpit.hxx
>
29
#include <
svx/xflclit.hxx
>
30
#include <
svx/xflgrit.hxx
>
31
#include <
svx/xflhtit.hxx
>
32
#include <
svx/pageitem.hxx
>
33
#include <
svx/pagenumberlistbox.hxx
>
34
35
class
List
;
36
class
ColorListBox
;
37
namespace
sw::sidebar
{
38
39
class
PageStylesPanel
:
40
public
PanelLayout
,
41
public
::sfx2::sidebar::ControllerItem::ItemUpdateReceiverInterface
42
{
43
public
:
44
static
std::unique_ptr<PanelLayout>
Create
(
45
weld::Widget
* pParent,
46
SfxBindings
* pBindings);
47
48
virtual
void
NotifyItemUpdate
(
49
const
sal_uInt16 nSId,
50
const
SfxItemState
eState,
51
const
SfxPoolItem
* pState)
override
;
52
53
virtual
void
GetControlState
(
54
const
sal_uInt16
/*nSId*/
,
55
boost::property_tree::ptree&
/*rState*/
)
override
{};
56
57
SfxBindings
*
GetBindings
()
const
{
return
mpBindings
; }
58
PageStylesPanel
(
59
weld::Widget
* pParent,
60
SfxBindings
* pBindings);
61
virtual
~PageStylesPanel
()
override
;
62
63
private
:
64
65
SfxBindings
*
mpBindings
;
66
67
::std::unique_ptr<SfxInt16Item>
mpPageColumnItem
;
68
::std::unique_ptr<SvxPageItem>
mpPageItem
;
69
::std::unique_ptr<XFillColorItem>
mpBgColorItem
;
70
::std::unique_ptr<XFillGradientItem>
mpBgGradientItem
;
71
::std::unique_ptr<XFillHatchItem>
mpBgHatchItem
;
72
::std::unique_ptr<XFillBitmapItem>
mpBgBitmapItem
;
73
74
::sfx2::sidebar::ControllerItem
maPageColumnControl
;
75
::sfx2::sidebar::ControllerItem
maPageNumFormatControl
;
76
::sfx2::sidebar::ControllerItem
maBgColorControl
;
77
::sfx2::sidebar::ControllerItem
maBgHatchingControl
;
78
::sfx2::sidebar::ControllerItem
maBgGradientControl
;
79
::sfx2::sidebar::ControllerItem
maBgBitmapControl
;
80
::sfx2::sidebar::ControllerItem
maBgFillStyleControl
;
81
82
std::unique_ptr<ColorListBox>
mxBgColorLB
;
83
std::unique_ptr<weld::ComboBox>
mxBgHatchingLB
;
84
std::unique_ptr<ColorListBox>
mxBgGradientLB
;
85
std::unique_ptr<weld::ComboBox>
mxBgBitmapLB
;
86
std::unique_ptr<weld::ComboBox>
mxLayoutSelectLB
;
87
std::unique_ptr<weld::ComboBox>
mxColumnCount
;
88
std::unique_ptr<SvxPageNumberListBox>
mxNumberSelectLB
;
89
std::unique_ptr<weld::ComboBox>
mxBgFillType
;
90
std::unique_ptr<weld::Label>
mxCustomEntry
;
91
OUString
m_aCustomEntry
;
92
93
void
Initialize
();
94
void
Update
();
95
Color
const
&
GetColorSetOrDefault
();
96
basegfx::BGradient
const
&
GetGradientSetOrDefault
();
97
OUString
const
&
GetHatchingSetOrDefault
();
98
OUString
const
&
GetBitmapSetOrDefault
();
99
OUString
const
&
GetPatternSetOrDefault
();
100
101
void
ModifyFillColor
();
102
103
DECL_LINK
( ModifyColumnCountHdl,
weld::ComboBox
&,
void
);
104
DECL_LINK
( ModifyNumberingHdl,
weld::ComboBox
&,
void
);
105
DECL_LINK
( ModifyLayoutHdl,
weld::ComboBox
&,
void
);
106
DECL_LINK
( ModifyFillStyleHdl,
weld::ComboBox
&,
void
);
107
DECL_LINK
( ModifyFillColorHdl,
weld::ComboBox
&,
void
);
108
DECL_LINK
( ModifyFillColorListHdl,
ColorListBox
&,
void
);
109
};
110
111
}
//end of namespace sw::sidebar
112
113
#endif
114
115
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
ControllerItem.hxx
PanelLayout.hxx
ColorListBox
Color
PanelLayout
SfxBindings
SfxPoolItem
basegfx::BGradient
sfx2::sidebar::ControllerItem::ItemUpdateReceiverInterface
sfx2::sidebar::ControllerItem
sw::sidebar::PageStylesPanel
Definition:
PageStylesPanel.hxx:42
sw::sidebar::PageStylesPanel::maBgBitmapControl
::sfx2::sidebar::ControllerItem maBgBitmapControl
Definition:
PageStylesPanel.hxx:79
sw::sidebar::PageStylesPanel::maPageColumnControl
::sfx2::sidebar::ControllerItem maPageColumnControl
Definition:
PageStylesPanel.hxx:74
sw::sidebar::PageStylesPanel::mpBindings
SfxBindings * mpBindings
Definition:
PageStylesPanel.hxx:65
sw::sidebar::PageStylesPanel::~PageStylesPanel
virtual ~PageStylesPanel() override
Definition:
PageStylesPanel.cxx:117
sw::sidebar::PageStylesPanel::maBgFillStyleControl
::sfx2::sidebar::ControllerItem maBgFillStyleControl
Definition:
PageStylesPanel.hxx:80
sw::sidebar::PageStylesPanel::GetControlState
virtual void GetControlState(const sal_uInt16, boost::property_tree::ptree &) override
Definition:
PageStylesPanel.hxx:53
sw::sidebar::PageStylesPanel::DECL_LINK
DECL_LINK(ModifyFillColorHdl, weld::ComboBox &, void)
sw::sidebar::PageStylesPanel::Create
static std::unique_ptr< PanelLayout > Create(weld::Widget *pParent, SfxBindings *pBindings)
Definition:
PageStylesPanel.cxx:79
sw::sidebar::PageStylesPanel::DECL_LINK
DECL_LINK(ModifyFillColorListHdl, ColorListBox &, void)
sw::sidebar::PageStylesPanel::mxBgColorLB
std::unique_ptr< ColorListBox > mxBgColorLB
Definition:
PageStylesPanel.hxx:82
sw::sidebar::PageStylesPanel::mxNumberSelectLB
std::unique_ptr< SvxPageNumberListBox > mxNumberSelectLB
Definition:
PageStylesPanel.hxx:88
sw::sidebar::PageStylesPanel::mxCustomEntry
std::unique_ptr< weld::Label > mxCustomEntry
Definition:
PageStylesPanel.hxx:90
sw::sidebar::PageStylesPanel::DECL_LINK
DECL_LINK(ModifyLayoutHdl, weld::ComboBox &, void)
sw::sidebar::PageStylesPanel::DECL_LINK
DECL_LINK(ModifyNumberingHdl, weld::ComboBox &, void)
sw::sidebar::PageStylesPanel::mpPageItem
::std::unique_ptr< SvxPageItem > mpPageItem
Definition:
PageStylesPanel.hxx:68
sw::sidebar::PageStylesPanel::GetColorSetOrDefault
Color const & GetColorSetOrDefault()
Definition:
PageStylesPanel.cxx:251
sw::sidebar::PageStylesPanel::mpBgColorItem
::std::unique_ptr< XFillColorItem > mpBgColorItem
Definition:
PageStylesPanel.hxx:69
sw::sidebar::PageStylesPanel::mpPageColumnItem
::std::unique_ptr< SfxInt16Item > mpPageColumnItem
Definition:
PageStylesPanel.hxx:67
sw::sidebar::PageStylesPanel::mxBgBitmapLB
std::unique_ptr< weld::ComboBox > mxBgBitmapLB
Definition:
PageStylesPanel.hxx:85
sw::sidebar::PageStylesPanel::DECL_LINK
DECL_LINK(ModifyFillStyleHdl, weld::ComboBox &, void)
sw::sidebar::PageStylesPanel::ModifyFillColor
void ModifyFillColor()
Definition:
PageStylesPanel.cxx:539
sw::sidebar::PageStylesPanel::PageStylesPanel
PageStylesPanel(weld::Widget *pParent, SfxBindings *pBindings)
Definition:
PageStylesPanel.cxx:89
sw::sidebar::PageStylesPanel::mxLayoutSelectLB
std::unique_ptr< weld::ComboBox > mxLayoutSelectLB
Definition:
PageStylesPanel.hxx:86
sw::sidebar::PageStylesPanel::GetBindings
SfxBindings * GetBindings() const
Definition:
PageStylesPanel.hxx:57
sw::sidebar::PageStylesPanel::mpBgHatchItem
::std::unique_ptr< XFillHatchItem > mpBgHatchItem
Definition:
PageStylesPanel.hxx:71
sw::sidebar::PageStylesPanel::maBgColorControl
::sfx2::sidebar::ControllerItem maBgColorControl
Definition:
PageStylesPanel.hxx:76
sw::sidebar::PageStylesPanel::mxBgFillType
std::unique_ptr< weld::ComboBox > mxBgFillType
Definition:
PageStylesPanel.hxx:89
sw::sidebar::PageStylesPanel::NotifyItemUpdate
virtual void NotifyItemUpdate(const sal_uInt16 nSId, const SfxItemState eState, const SfxPoolItem *pState) override
Definition:
PageStylesPanel.cxx:331
sw::sidebar::PageStylesPanel::mpBgBitmapItem
::std::unique_ptr< XFillBitmapItem > mpBgBitmapItem
Definition:
PageStylesPanel.hxx:72
sw::sidebar::PageStylesPanel::DECL_LINK
DECL_LINK(ModifyColumnCountHdl, weld::ComboBox &, void)
sw::sidebar::PageStylesPanel::maBgHatchingControl
::sfx2::sidebar::ControllerItem maBgHatchingControl
Definition:
PageStylesPanel.hxx:77
sw::sidebar::PageStylesPanel::mxBgHatchingLB
std::unique_ptr< weld::ComboBox > mxBgHatchingLB
Definition:
PageStylesPanel.hxx:83
sw::sidebar::PageStylesPanel::m_aCustomEntry
OUString m_aCustomEntry
Definition:
PageStylesPanel.hxx:91
sw::sidebar::PageStylesPanel::Initialize
void Initialize()
Definition:
PageStylesPanel.cxx:138
sw::sidebar::PageStylesPanel::mxBgGradientLB
std::unique_ptr< ColorListBox > mxBgGradientLB
Definition:
PageStylesPanel.hxx:84
sw::sidebar::PageStylesPanel::Update
void Update()
Definition:
PageStylesPanel.cxx:159
sw::sidebar::PageStylesPanel::mpBgGradientItem
::std::unique_ptr< XFillGradientItem > mpBgGradientItem
Definition:
PageStylesPanel.hxx:70
sw::sidebar::PageStylesPanel::GetHatchingSetOrDefault
OUString const & GetHatchingSetOrDefault()
Definition:
PageStylesPanel.cxx:277
sw::sidebar::PageStylesPanel::GetPatternSetOrDefault
OUString const & GetPatternSetOrDefault()
Definition:
PageStylesPanel.cxx:313
sw::sidebar::PageStylesPanel::GetBitmapSetOrDefault
OUString const & GetBitmapSetOrDefault()
Definition:
PageStylesPanel.cxx:295
sw::sidebar::PageStylesPanel::mxColumnCount
std::unique_ptr< weld::ComboBox > mxColumnCount
Definition:
PageStylesPanel.hxx:87
sw::sidebar::PageStylesPanel::maPageNumFormatControl
::sfx2::sidebar::ControllerItem maPageNumFormatControl
Definition:
PageStylesPanel.hxx:75
sw::sidebar::PageStylesPanel::GetGradientSetOrDefault
basegfx::BGradient const & GetGradientSetOrDefault()
Definition:
PageStylesPanel.cxx:259
sw::sidebar::PageStylesPanel::maBgGradientControl
::sfx2::sidebar::ControllerItem maBgGradientControl
Definition:
PageStylesPanel.hxx:78
weld::ComboBox
weld::Widget
intitem.hxx
sw::sidebar
Definition:
A11yCheckIssuesPanel.cxx:30
ResourceType::List
@ List
pageitem.hxx
pagenumberlistbox.hxx
poolitem.hxx
SfxItemState
SfxItemState
xbtmpit.hxx
xflclit.hxx
xflgrit.hxx
xflhtit.hxx
Generated on Sun Jul 30 2023 04:30:03 for LibreOffice Module sw (master) by
1.9.3