LibreOffice Module sw (master)
1
sw
source
uibase
sidebar
PageFormatPanel.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/sidebar/PanelLayout.hxx
>
22
#include <
sfx2/sidebar/ControllerItem.hxx
>
23
24
#include <
svx/pageitem.hxx
>
25
#include <
svx/rulritem.hxx
>
26
#include <
svx/papersizelistbox.hxx
>
27
28
#include <
tools/fldunit.hxx
>
29
#include <
svl/poolitem.hxx
>
30
#include <
svx/relfld.hxx
>
31
32
#include <memory>
33
34
namespace
sw::sidebar
{
35
36
class
PageFormatPanel
:
37
public
PanelLayout
,
38
public
::sfx2::sidebar::ControllerItem::ItemUpdateReceiverInterface
39
{
40
public
:
41
static
std::unique_ptr<PanelLayout>
Create
(
42
weld::Widget
* pParent,
43
SfxBindings
* pBindings);
44
45
virtual
void
NotifyItemUpdate
(
46
const
sal_uInt16 nSId,
47
const
SfxItemState
eState,
48
const
SfxPoolItem
* pState)
override
;
49
50
virtual
void
GetControlState
(
51
const
sal_uInt16
/*nSId*/
,
52
boost::property_tree::ptree&
/*rState*/
)
override
{};
53
54
PageFormatPanel
(
55
weld::Widget
* pParent,
56
SfxBindings
* pBindings);
57
virtual
~PageFormatPanel
()
override
;
58
59
static
FieldUnit
GetCurrentUnit
(
SfxItemState
eState,
const
SfxPoolItem
* pState );
60
61
private
:
62
63
SfxBindings
*
mpBindings
;
64
65
std::unique_ptr<SvxPaperSizeListBox>
mxPaperSizeBox
;
66
std::unique_ptr<SvxRelativeField>
mxPaperWidth
;
67
std::unique_ptr<SvxRelativeField>
mxPaperHeight
;
68
std::unique_ptr<weld::ComboBox>
mxPaperOrientation
;
69
std::unique_ptr<weld::ComboBox>
mxMarginSelectBox
;
70
std::unique_ptr<weld::Label>
mxCustomEntry
;
71
72
::sfx2::sidebar::ControllerItem
maPaperSizeController
;
73
::sfx2::sidebar::ControllerItem
maPaperOrientationController
;
74
::sfx2::sidebar::ControllerItem
maMetricController
;
75
::sfx2::sidebar::ControllerItem
maSwPageLRControl
;
76
::sfx2::sidebar::ControllerItem
maSwPageULControl
;
77
78
std::unique_ptr<SvxPageItem>
mpPageItem
;
79
std::unique_ptr<SvxLongLRSpaceItem>
mpPageLRMarginItem
;
80
std::unique_ptr<SvxLongULSpaceItem>
mpPageULMarginItem
;
81
82
FieldUnit
meFUnit
;
83
MapUnit
meUnit
;
84
85
tools::Long
mnPageLeftMargin
;
86
tools::Long
mnPageRightMargin
;
87
tools::Long
mnPageTopMargin
;
88
tools::Long
mnPageBottomMargin
;
89
OUString
m_aCustomEntry
;
90
91
void
Initialize
();
92
void
SetMarginFieldUnit
();
93
void
UpdateMarginBox
();
94
void
ExecuteMarginLRChange
(
const
tools::Long
nPageLeftMargin,
const
tools::Long
nPageRightMargin );
95
void
ExecuteMarginULChange
(
const
tools::Long
nPageTopMargin,
const
tools::Long
nPageBottomMargin);
96
DECL_LINK
(PaperFormatModifyHdl,
weld::ComboBox
&,
void
);
97
DECL_LINK
(PaperSizeModifyHdl,
weld::MetricSpinButton
&,
void
);
98
DECL_LINK
(PaperModifyMarginHdl,
weld::ComboBox
&,
void
);
99
};
100
101
}
//end of namespace sw::sidebar
102
103
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
ControllerItem.hxx
PanelLayout.hxx
PanelLayout
SfxBindings
SfxPoolItem
sfx2::sidebar::ControllerItem::ItemUpdateReceiverInterface
sfx2::sidebar::ControllerItem
sw::sidebar::PageFormatPanel
Definition:
PageFormatPanel.hxx:39
sw::sidebar::PageFormatPanel::PageFormatPanel
PageFormatPanel(weld::Widget *pParent, SfxBindings *pBindings)
Definition:
PageFormatPanel.cxx:83
sw::sidebar::PageFormatPanel::SetMarginFieldUnit
void SetMarginFieldUnit()
Definition:
PageFormatPanel.cxx:56
sw::sidebar::PageFormatPanel::DECL_LINK
DECL_LINK(PaperFormatModifyHdl, weld::ComboBox &, void)
sw::sidebar::PageFormatPanel::Create
static std::unique_ptr< PanelLayout > Create(weld::Widget *pParent, SfxBindings *pBindings)
Definition:
PageFormatPanel.cxx:46
sw::sidebar::PageFormatPanel::meUnit
MapUnit meUnit
Definition:
PageFormatPanel.hxx:83
sw::sidebar::PageFormatPanel::mpBindings
SfxBindings * mpBindings
Definition:
PageFormatPanel.hxx:63
sw::sidebar::PageFormatPanel::GetControlState
virtual void GetControlState(const sal_uInt16, boost::property_tree::ptree &) override
Definition:
PageFormatPanel.hxx:50
sw::sidebar::PageFormatPanel::mxPaperWidth
std::unique_ptr< SvxRelativeField > mxPaperWidth
Definition:
PageFormatPanel.hxx:66
sw::sidebar::PageFormatPanel::DECL_LINK
DECL_LINK(PaperSizeModifyHdl, weld::MetricSpinButton &, void)
sw::sidebar::PageFormatPanel::Initialize
void Initialize()
Definition:
PageFormatPanel.cxx:125
sw::sidebar::PageFormatPanel::mnPageLeftMargin
tools::Long mnPageLeftMargin
Definition:
PageFormatPanel.hxx:85
sw::sidebar::PageFormatPanel::~PageFormatPanel
virtual ~PageFormatPanel() override
Definition:
PageFormatPanel.cxx:106
sw::sidebar::PageFormatPanel::maSwPageLRControl
::sfx2::sidebar::ControllerItem maSwPageLRControl
Definition:
PageFormatPanel.hxx:75
sw::sidebar::PageFormatPanel::maSwPageULControl
::sfx2::sidebar::ControllerItem maSwPageULControl
Definition:
PageFormatPanel.hxx:76
sw::sidebar::PageFormatPanel::UpdateMarginBox
void UpdateMarginBox()
Definition:
PageFormatPanel.cxx:350
sw::sidebar::PageFormatPanel::maPaperSizeController
::sfx2::sidebar::ControllerItem maPaperSizeController
Definition:
PageFormatPanel.hxx:72
sw::sidebar::PageFormatPanel::mpPageULMarginItem
std::unique_ptr< SvxLongULSpaceItem > mpPageULMarginItem
Definition:
PageFormatPanel.hxx:80
sw::sidebar::PageFormatPanel::mxPaperSizeBox
std::unique_ptr< SvxPaperSizeListBox > mxPaperSizeBox
Definition:
PageFormatPanel.hxx:65
sw::sidebar::PageFormatPanel::NotifyItemUpdate
virtual void NotifyItemUpdate(const sal_uInt16 nSId, const SfxItemState eState, const SfxPoolItem *pState) override
Definition:
PageFormatPanel.cxx:153
sw::sidebar::PageFormatPanel::ExecuteMarginULChange
void ExecuteMarginULChange(const tools::Long nPageTopMargin, const tools::Long nPageBottomMargin)
Definition:
PageFormatPanel.cxx:343
sw::sidebar::PageFormatPanel::mpPageItem
std::unique_ptr< SvxPageItem > mpPageItem
Definition:
PageFormatPanel.hxx:78
sw::sidebar::PageFormatPanel::DECL_LINK
DECL_LINK(PaperModifyMarginHdl, weld::ComboBox &, void)
sw::sidebar::PageFormatPanel::mxCustomEntry
std::unique_ptr< weld::Label > mxCustomEntry
Definition:
PageFormatPanel.hxx:70
sw::sidebar::PageFormatPanel::mnPageRightMargin
tools::Long mnPageRightMargin
Definition:
PageFormatPanel.hxx:86
sw::sidebar::PageFormatPanel::mxMarginSelectBox
std::unique_ptr< weld::ComboBox > mxMarginSelectBox
Definition:
PageFormatPanel.hxx:69
sw::sidebar::PageFormatPanel::maPaperOrientationController
::sfx2::sidebar::ControllerItem maPaperOrientationController
Definition:
PageFormatPanel.hxx:73
sw::sidebar::PageFormatPanel::ExecuteMarginLRChange
void ExecuteMarginLRChange(const tools::Long nPageLeftMargin, const tools::Long nPageRightMargin)
Definition:
PageFormatPanel.cxx:336
sw::sidebar::PageFormatPanel::mnPageTopMargin
tools::Long mnPageTopMargin
Definition:
PageFormatPanel.hxx:87
sw::sidebar::PageFormatPanel::mnPageBottomMargin
tools::Long mnPageBottomMargin
Definition:
PageFormatPanel.hxx:88
sw::sidebar::PageFormatPanel::meFUnit
FieldUnit meFUnit
Definition:
PageFormatPanel.hxx:82
sw::sidebar::PageFormatPanel::mxPaperOrientation
std::unique_ptr< weld::ComboBox > mxPaperOrientation
Definition:
PageFormatPanel.hxx:68
sw::sidebar::PageFormatPanel::GetCurrentUnit
static FieldUnit GetCurrentUnit(SfxItemState eState, const SfxPoolItem *pState)
Definition:
PageFormatPanel.cxx:305
sw::sidebar::PageFormatPanel::m_aCustomEntry
OUString m_aCustomEntry
Definition:
PageFormatPanel.hxx:89
sw::sidebar::PageFormatPanel::mpPageLRMarginItem
std::unique_ptr< SvxLongLRSpaceItem > mpPageLRMarginItem
Definition:
PageFormatPanel.hxx:79
sw::sidebar::PageFormatPanel::maMetricController
::sfx2::sidebar::ControllerItem maMetricController
Definition:
PageFormatPanel.hxx:74
sw::sidebar::PageFormatPanel::mxPaperHeight
std::unique_ptr< SvxRelativeField > mxPaperHeight
Definition:
PageFormatPanel.hxx:67
weld::ComboBox
weld::MetricSpinButton
weld::Widget
fldunit.hxx
FieldUnit
FieldUnit
MapUnit
MapUnit
sw::sidebar
Definition:
A11yCheckIssuesPanel.cxx:30
tools::Long
long Long
pageitem.hxx
papersizelistbox.hxx
poolitem.hxx
SfxItemState
SfxItemState
relfld.hxx
rulritem.hxx
Generated on Sun Jul 30 2023 04:30:02 for LibreOffice Module sw (master) by
1.9.3