LibreOffice Module sw (master)
1
sw
source
uibase
sidebar
PageFooterPanel.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_PAGEFOOTERPANEL_HXX
20
#define INCLUDED_SW_SOURCE_UIBASE_SIDEBAR_PAGEFOOTERPANEL_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 <
svl/eitem.hxx
>
29
#include <
svx/rulritem.hxx
>
30
31
namespace
sw::sidebar
{
32
33
class
PageFooterPanel
:
34
public
PanelLayout
,
35
public
::sfx2::sidebar::ControllerItem::ItemUpdateReceiverInterface
36
{
37
public
:
38
static
std::unique_ptr<PanelLayout>
Create
(
39
weld::Widget
* pParent,
40
SfxBindings
* pBindings);
41
42
virtual
void
NotifyItemUpdate
(
43
const
sal_uInt16 nSId,
44
const
SfxItemState
eState,
45
const
SfxPoolItem
* pState)
override
;
46
47
virtual
void
GetControlState
(
48
const
sal_uInt16
/*nSId*/
,
49
boost::property_tree::ptree&
/*rState*/
)
override
{};
50
51
SfxBindings
*
GetBindings
()
const
{
return
mpBindings
; }
52
PageFooterPanel
(
53
weld::Widget
* pParent,
54
SfxBindings
* pBindings);
55
virtual
~PageFooterPanel
()
override
;
56
57
private
:
58
59
SfxBindings
*
mpBindings
;
60
61
::sfx2::sidebar::ControllerItem
maHFToggleController
;
62
::sfx2::sidebar::ControllerItem
maMetricController
;
63
::sfx2::sidebar::ControllerItem
maFooterLRMarginController
;
64
::sfx2::sidebar::ControllerItem
maFooterSpacingController
;
65
::sfx2::sidebar::ControllerItem
maFooterLayoutController
;
66
67
FieldUnit
meFUnit
;
68
69
OUString
m_aCustomEntry
;
70
71
void
Initialize
();
72
void
SetMarginsAndSpacingFieldUnit
();
73
void
UpdateFooterCheck
();
74
void
UpdateMarginControl
();
75
void
UpdateSpacingControl
();
76
void
UpdateLayoutControl
();
77
78
::std::unique_ptr<SfxBoolItem>
mpFooterItem
;
79
::std::unique_ptr<SvxLongLRSpaceItem>
mpFooterLRMarginItem
;
80
::std::unique_ptr<SvxLongULSpaceItem>
mpFooterSpacingItem
;
81
::std::unique_ptr<SfxInt16Item>
mpFooterLayoutItem
;
82
83
std::unique_ptr<weld::CheckButton>
mxFooterToggle
;
84
std::unique_ptr<weld::ComboBox>
mxFooterSpacingLB
;
85
std::unique_ptr<weld::ComboBox>
mxFooterMarginPresetLB
;
86
std::unique_ptr<weld::ComboBox>
mxFooterLayoutLB
;
87
std::unique_ptr<weld::Label>
mxCustomEntry
;
88
89
static
FieldUnit
GetCurrentUnit
(
SfxItemState
eState,
const
SfxPoolItem
* pState);
90
91
DECL_LINK
( FooterToggleHdl,
weld::Toggleable
&,
void
);
92
DECL_LINK
( FooterLRMarginHdl,
weld::ComboBox
&,
void
);
93
DECL_LINK
( FooterSpacingHdl,
weld::ComboBox
&,
void
);
94
DECL_LINK
( FooterLayoutHdl,
weld::ComboBox
&,
void
);
95
};
96
97
}
//end of namespace sw::sidebar
98
99
#endif
100
101
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
ControllerItem.hxx
PanelLayout.hxx
PanelLayout
SfxBindings
SfxPoolItem
sfx2::sidebar::ControllerItem::ItemUpdateReceiverInterface
sfx2::sidebar::ControllerItem
sw::sidebar::PageFooterPanel
Definition:
PageFooterPanel.hxx:36
sw::sidebar::PageFooterPanel::m_aCustomEntry
OUString m_aCustomEntry
Definition:
PageFooterPanel.hxx:69
sw::sidebar::PageFooterPanel::UpdateSpacingControl
void UpdateSpacingControl()
Definition:
PageFooterPanel.cxx:155
sw::sidebar::PageFooterPanel::GetCurrentUnit
static FieldUnit GetCurrentUnit(SfxItemState eState, const SfxPoolItem *pState)
Definition:
PageFooterPanel.cxx:85
sw::sidebar::PageFooterPanel::mpFooterLRMarginItem
::std::unique_ptr< SvxLongLRSpaceItem > mpFooterLRMarginItem
Definition:
PageFooterPanel.hxx:79
sw::sidebar::PageFooterPanel::UpdateMarginControl
void UpdateMarginControl()
Definition:
PageFooterPanel.cxx:132
sw::sidebar::PageFooterPanel::maFooterSpacingController
::sfx2::sidebar::ControllerItem maFooterSpacingController
Definition:
PageFooterPanel.hxx:64
sw::sidebar::PageFooterPanel::maMetricController
::sfx2::sidebar::ControllerItem maMetricController
Definition:
PageFooterPanel.hxx:62
sw::sidebar::PageFooterPanel::mxFooterSpacingLB
std::unique_ptr< weld::ComboBox > mxFooterSpacingLB
Definition:
PageFooterPanel.hxx:84
sw::sidebar::PageFooterPanel::NotifyItemUpdate
virtual void NotifyItemUpdate(const sal_uInt16 nSId, const SfxItemState eState, const SfxPoolItem *pState) override
Definition:
PageFooterPanel.cxx:180
sw::sidebar::PageFooterPanel::DECL_LINK
DECL_LINK(FooterLayoutHdl, weld::ComboBox &, void)
sw::sidebar::PageFooterPanel::mxCustomEntry
std::unique_ptr< weld::Label > mxCustomEntry
Definition:
PageFooterPanel.hxx:87
sw::sidebar::PageFooterPanel::mpBindings
SfxBindings * mpBindings
Definition:
PageFooterPanel.hxx:59
sw::sidebar::PageFooterPanel::mpFooterItem
::std::unique_ptr< SfxBoolItem > mpFooterItem
Definition:
PageFooterPanel.hxx:78
sw::sidebar::PageFooterPanel::UpdateLayoutControl
void UpdateLayoutControl()
Definition:
PageFooterPanel.cxx:174
sw::sidebar::PageFooterPanel::DECL_LINK
DECL_LINK(FooterToggleHdl, weld::Toggleable &, void)
sw::sidebar::PageFooterPanel::~PageFooterPanel
virtual ~PageFooterPanel() override
Definition:
PageFooterPanel.cxx:75
sw::sidebar::PageFooterPanel::Create
static std::unique_ptr< PanelLayout > Create(weld::Widget *pParent, SfxBindings *pBindings)
Definition:
PageFooterPanel.cxx:36
sw::sidebar::PageFooterPanel::mxFooterToggle
std::unique_ptr< weld::CheckButton > mxFooterToggle
Definition:
PageFooterPanel.hxx:83
sw::sidebar::PageFooterPanel::mxFooterLayoutLB
std::unique_ptr< weld::ComboBox > mxFooterLayoutLB
Definition:
PageFooterPanel.hxx:86
sw::sidebar::PageFooterPanel::mxFooterMarginPresetLB
std::unique_ptr< weld::ComboBox > mxFooterMarginPresetLB
Definition:
PageFooterPanel.hxx:85
sw::sidebar::PageFooterPanel::maHFToggleController
::sfx2::sidebar::ControllerItem maHFToggleController
Definition:
PageFooterPanel.hxx:61
sw::sidebar::PageFooterPanel::meFUnit
FieldUnit meFUnit
Definition:
PageFooterPanel.hxx:67
sw::sidebar::PageFooterPanel::Initialize
void Initialize()
Definition:
PageFooterPanel.cxx:97
sw::sidebar::PageFooterPanel::SetMarginsAndSpacingFieldUnit
void SetMarginsAndSpacingFieldUnit()
Definition:
PageFooterPanel.cxx:45
sw::sidebar::PageFooterPanel::DECL_LINK
DECL_LINK(FooterSpacingHdl, weld::ComboBox &, void)
sw::sidebar::PageFooterPanel::mpFooterLayoutItem
::std::unique_ptr< SfxInt16Item > mpFooterLayoutItem
Definition:
PageFooterPanel.hxx:81
sw::sidebar::PageFooterPanel::DECL_LINK
DECL_LINK(FooterLRMarginHdl, weld::ComboBox &, void)
sw::sidebar::PageFooterPanel::UpdateFooterCheck
void UpdateFooterCheck()
Definition:
PageFooterPanel.cxx:116
sw::sidebar::PageFooterPanel::GetControlState
virtual void GetControlState(const sal_uInt16, boost::property_tree::ptree &) override
Definition:
PageFooterPanel.hxx:47
sw::sidebar::PageFooterPanel::GetBindings
SfxBindings * GetBindings() const
Definition:
PageFooterPanel.hxx:51
sw::sidebar::PageFooterPanel::maFooterLRMarginController
::sfx2::sidebar::ControllerItem maFooterLRMarginController
Definition:
PageFooterPanel.hxx:63
sw::sidebar::PageFooterPanel::maFooterLayoutController
::sfx2::sidebar::ControllerItem maFooterLayoutController
Definition:
PageFooterPanel.hxx:65
sw::sidebar::PageFooterPanel::PageFooterPanel
PageFooterPanel(weld::Widget *pParent, SfxBindings *pBindings)
Definition:
PageFooterPanel.cxx:51
sw::sidebar::PageFooterPanel::mpFooterSpacingItem
::std::unique_ptr< SvxLongULSpaceItem > mpFooterSpacingItem
Definition:
PageFooterPanel.hxx:80
weld::ComboBox
weld::Toggleable
weld::Widget
eitem.hxx
FieldUnit
FieldUnit
intitem.hxx
sw::sidebar
Definition:
A11yCheckIssuesPanel.cxx:30
poolitem.hxx
SfxItemState
SfxItemState
rulritem.hxx
Generated on Sun Jul 30 2023 04:30:02 for LibreOffice Module sw (master) by
1.9.3