LibreOffice Module sw (master)
1
sw
source
uibase
sidebar
PageHeaderPanel.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
20
#pragma once
21
22
#include <memory>
23
#include <
sfx2/sidebar/PanelLayout.hxx
>
24
#include <
sfx2/sidebar/ControllerItem.hxx
>
25
#include <
svl/intitem.hxx
>
26
#include <
svl/poolitem.hxx
>
27
#include <
svl/eitem.hxx
>
28
#include <
svx/rulritem.hxx
>
29
30
namespace
sw::sidebar
{
31
32
class
PageHeaderPanel
:
33
public
PanelLayout
,
34
public
::sfx2::sidebar::ControllerItem::ItemUpdateReceiverInterface
35
{
36
public
:
37
static
std::unique_ptr<PanelLayout>
Create
(
38
weld::Widget
* pParent,
39
SfxBindings
* pBindings);
40
41
virtual
void
NotifyItemUpdate
(
42
const
sal_uInt16 nSId,
43
const
SfxItemState
eState,
44
const
SfxPoolItem
* pState)
override
;
45
46
virtual
void
GetControlState
(
47
const
sal_uInt16
/*nSId*/
,
48
boost::property_tree::ptree&
/*rState*/
)
override
{};
49
50
SfxBindings
*
GetBindings
()
const
{
return
mpBindings
; }
51
PageHeaderPanel
(
52
weld::Widget
* pParent,
53
SfxBindings
* pBindings);
54
virtual
~PageHeaderPanel
()
override
;
55
56
private
:
57
58
SfxBindings
*
mpBindings
;
59
60
::sfx2::sidebar::ControllerItem
maHFToggleController
;
61
::sfx2::sidebar::ControllerItem
maMetricController
;
62
::sfx2::sidebar::ControllerItem
maHeaderLRMarginController
;
63
::sfx2::sidebar::ControllerItem
maHeaderSpacingController
;
64
::sfx2::sidebar::ControllerItem
maHeaderLayoutController
;
65
66
FieldUnit
meFUnit
;
67
68
OUString
m_aCustomEntry
;
69
70
void
Initialize
();
71
void
SetMarginsAndSpacingFieldUnit
();
72
void
UpdateHeaderCheck
();
73
void
UpdateMarginControl
();
74
void
UpdateSpacingControl
();
75
void
UpdateLayoutControl
();
76
77
::std::unique_ptr<SfxBoolItem>
mpHeaderItem
;
78
::std::unique_ptr<SvxLongLRSpaceItem>
mpHeaderLRMarginItem
;
79
::std::unique_ptr<SvxLongULSpaceItem>
mpHeaderSpacingItem
;
80
::std::unique_ptr<SfxInt16Item>
mpHeaderLayoutItem
;
81
82
std::unique_ptr<weld::CheckButton>
mxHeaderToggle
;
83
std::unique_ptr<weld::ComboBox>
mxHeaderSpacingLB
;
84
std::unique_ptr<weld::ComboBox>
mxHeaderMarginPresetLB
;
85
std::unique_ptr<weld::ComboBox>
mxHeaderLayoutLB
;
86
std::unique_ptr<weld::Label>
mxCustomEntry
;
87
88
static
FieldUnit
GetCurrentUnit
(
SfxItemState
eState,
const
SfxPoolItem
* pState);
89
90
DECL_LINK
( HeaderToggleHdl,
weld::Toggleable
&,
void
);
91
DECL_LINK
( HeaderLRMarginHdl,
weld::ComboBox
&,
void
);
92
DECL_LINK
( HeaderSpacingHdl,
weld::ComboBox
&,
void
);
93
DECL_LINK
( HeaderLayoutHdl,
weld::ComboBox
&,
void
);
94
};
95
96
}
//end of namespace sw::sidebar
97
98
99
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
ControllerItem.hxx
PanelLayout.hxx
PanelLayout
SfxBindings
SfxPoolItem
sfx2::sidebar::ControllerItem::ItemUpdateReceiverInterface
sfx2::sidebar::ControllerItem
sw::sidebar::PageHeaderPanel
Definition:
PageHeaderPanel.hxx:35
sw::sidebar::PageHeaderPanel::UpdateLayoutControl
void UpdateLayoutControl()
Definition:
PageHeaderPanel.cxx:177
sw::sidebar::PageHeaderPanel::mxHeaderToggle
std::unique_ptr< weld::CheckButton > mxHeaderToggle
Definition:
PageHeaderPanel.hxx:82
sw::sidebar::PageHeaderPanel::mpHeaderItem
::std::unique_ptr< SfxBoolItem > mpHeaderItem
Definition:
PageHeaderPanel.hxx:77
sw::sidebar::PageHeaderPanel::mxHeaderMarginPresetLB
std::unique_ptr< weld::ComboBox > mxHeaderMarginPresetLB
Definition:
PageHeaderPanel.hxx:84
sw::sidebar::PageHeaderPanel::~PageHeaderPanel
virtual ~PageHeaderPanel() override
Definition:
PageHeaderPanel.cxx:79
sw::sidebar::PageHeaderPanel::DECL_LINK
DECL_LINK(HeaderLayoutHdl, weld::ComboBox &, void)
sw::sidebar::PageHeaderPanel::mpHeaderLRMarginItem
::std::unique_ptr< SvxLongLRSpaceItem > mpHeaderLRMarginItem
Definition:
PageHeaderPanel.hxx:78
sw::sidebar::PageHeaderPanel::mpHeaderLayoutItem
::std::unique_ptr< SfxInt16Item > mpHeaderLayoutItem
Definition:
PageHeaderPanel.hxx:80
sw::sidebar::PageHeaderPanel::GetControlState
virtual void GetControlState(const sal_uInt16, boost::property_tree::ptree &) override
Definition:
PageHeaderPanel.hxx:46
sw::sidebar::PageHeaderPanel::NotifyItemUpdate
virtual void NotifyItemUpdate(const sal_uInt16 nSId, const SfxItemState eState, const SfxPoolItem *pState) override
Definition:
PageHeaderPanel.cxx:183
sw::sidebar::PageHeaderPanel::SetMarginsAndSpacingFieldUnit
void SetMarginsAndSpacingFieldUnit()
Definition:
PageHeaderPanel.cxx:48
sw::sidebar::PageHeaderPanel::UpdateSpacingControl
void UpdateSpacingControl()
Definition:
PageHeaderPanel.cxx:158
sw::sidebar::PageHeaderPanel::mxHeaderLayoutLB
std::unique_ptr< weld::ComboBox > mxHeaderLayoutLB
Definition:
PageHeaderPanel.hxx:85
sw::sidebar::PageHeaderPanel::UpdateMarginControl
void UpdateMarginControl()
Definition:
PageHeaderPanel.cxx:135
sw::sidebar::PageHeaderPanel::mpHeaderSpacingItem
::std::unique_ptr< SvxLongULSpaceItem > mpHeaderSpacingItem
Definition:
PageHeaderPanel.hxx:79
sw::sidebar::PageHeaderPanel::mxHeaderSpacingLB
std::unique_ptr< weld::ComboBox > mxHeaderSpacingLB
Definition:
PageHeaderPanel.hxx:83
sw::sidebar::PageHeaderPanel::m_aCustomEntry
OUString m_aCustomEntry
Definition:
PageHeaderPanel.hxx:68
sw::sidebar::PageHeaderPanel::PageHeaderPanel
PageHeaderPanel(weld::Widget *pParent, SfxBindings *pBindings)
Definition:
PageHeaderPanel.cxx:54
sw::sidebar::PageHeaderPanel::Create
static std::unique_ptr< PanelLayout > Create(weld::Widget *pParent, SfxBindings *pBindings)
Definition:
PageHeaderPanel.cxx:36
sw::sidebar::PageHeaderPanel::GetCurrentUnit
static FieldUnit GetCurrentUnit(SfxItemState eState, const SfxPoolItem *pState)
Definition:
PageHeaderPanel.cxx:88
sw::sidebar::PageHeaderPanel::mxCustomEntry
std::unique_ptr< weld::Label > mxCustomEntry
Definition:
PageHeaderPanel.hxx:86
sw::sidebar::PageHeaderPanel::Initialize
void Initialize()
Definition:
PageHeaderPanel.cxx:100
sw::sidebar::PageHeaderPanel::UpdateHeaderCheck
void UpdateHeaderCheck()
Definition:
PageHeaderPanel.cxx:119
sw::sidebar::PageHeaderPanel::maHeaderLayoutController
::sfx2::sidebar::ControllerItem maHeaderLayoutController
Definition:
PageHeaderPanel.hxx:64
sw::sidebar::PageHeaderPanel::maHeaderSpacingController
::sfx2::sidebar::ControllerItem maHeaderSpacingController
Definition:
PageHeaderPanel.hxx:63
sw::sidebar::PageHeaderPanel::GetBindings
SfxBindings * GetBindings() const
Definition:
PageHeaderPanel.hxx:50
sw::sidebar::PageHeaderPanel::meFUnit
FieldUnit meFUnit
Definition:
PageHeaderPanel.hxx:66
sw::sidebar::PageHeaderPanel::DECL_LINK
DECL_LINK(HeaderSpacingHdl, weld::ComboBox &, void)
sw::sidebar::PageHeaderPanel::maHeaderLRMarginController
::sfx2::sidebar::ControllerItem maHeaderLRMarginController
Definition:
PageHeaderPanel.hxx:62
sw::sidebar::PageHeaderPanel::DECL_LINK
DECL_LINK(HeaderLRMarginHdl, weld::ComboBox &, void)
sw::sidebar::PageHeaderPanel::maMetricController
::sfx2::sidebar::ControllerItem maMetricController
Definition:
PageHeaderPanel.hxx:61
sw::sidebar::PageHeaderPanel::maHFToggleController
::sfx2::sidebar::ControllerItem maHFToggleController
Definition:
PageHeaderPanel.hxx:60
sw::sidebar::PageHeaderPanel::DECL_LINK
DECL_LINK(HeaderToggleHdl, weld::Toggleable &, void)
sw::sidebar::PageHeaderPanel::mpBindings
SfxBindings * mpBindings
Definition:
PageHeaderPanel.hxx:58
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