LibreOffice Module svx (master) 1
hdft.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_SVX_HDFT_HXX
20#define INCLUDED_SVX_HDFT_HXX
21
22#include <sfx2/tabdlg.hxx>
23
24#include <vcl/weld.hxx>
25
26#include <svx/pagectrl.hxx>
27#include <svx/svxdllapi.h>
28#include <memory>
29
30namespace weld { class CustomWeld; }
31
32namespace svx
33{
35}
36
38{
39public:
40
41 virtual bool FillItemSet( SfxItemSet* rOutSet ) override;
42 virtual void Reset( const SfxItemSet* rSet ) override;
43
44 virtual ~SvxHFPage() override;
45
46 void DisableDeleteQueryBox() { mbDisableQueryBox = true; }
47
48 virtual void PageCreated(const SfxAllItemSet&) override;
49
50 void EnableDynamicSpacing();
51
52protected:
54
55 virtual void ActivatePage( const SfxItemSet& rSet ) override;
56 virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
57
58 SvxHFPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet, sal_uInt16 nSetId);
59
60 sal_uInt16 nId;
61 std::unique_ptr<SfxItemSet> pBBSet;
64
66 std::unique_ptr<weld::Label> m_xPageLbl;
67 std::unique_ptr<weld::CheckButton> m_xTurnOnBox;
68 std::unique_ptr<weld::CheckButton> m_xCntSharedBox;
69 std::unique_ptr<weld::CheckButton> m_xCntSharedFirstBox;
70 std::unique_ptr<weld::Label> m_xLMLbl;
71 std::unique_ptr<weld::MetricSpinButton>m_xLMEdit;
72 std::unique_ptr<weld::Label> m_xRMLbl;
73 std::unique_ptr<weld::MetricSpinButton> m_xRMEdit;
74 std::unique_ptr<weld::Label> m_xDistFT;
75 std::unique_ptr<weld::MetricSpinButton> m_xDistEdit;
76 std::unique_ptr<weld::CheckButton> m_xDynSpacingCB;
77 std::unique_ptr<weld::Label> m_xHeightFT;
78 std::unique_ptr<weld::MetricSpinButton> m_xHeightEdit;
79 std::unique_ptr<weld::CheckButton> m_xHeightDynBtn;
80 std::unique_ptr<weld::Button> m_xBackgroundBtn;
81 std::unique_ptr<weld::CustomWeld> m_xBspWin;
82
83 void InitHandler();
84 void TurnOn(const weld::Toggleable* pButton);
85 DECL_LINK(TurnOnHdl, weld::Toggleable&, void);
86 DECL_DLLPRIVATE_LINK(BackgroundHdl, weld::Button&, void);
88 void RangeHdl();
89 void UpdateExample();
90
91private:
92 SVX_DLLPRIVATE void ResetBackground_Impl( const SfxItemSet& rSet );
93};
94
96{
97public:
98 static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rSet );
99 // returns the Which values to the range
100 static WhichRangesContainer GetRanges() { return pRanges; }
102};
103
105{
106public:
107 static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rSet );
108 static WhichRangesContainer GetRanges() { return pRanges; }
110};
111
113{
114public:
116 : MessageDialogController(pParent, "svx/ui/deleteheaderdialog.ui",
117 "DeleteHeaderDialog")
118 {
119 }
120};
121
123{
124public:
126 : MessageDialogController(pParent, "svx/ui/deletefooterdialog.ui",
127 "DeleteFooterDialog")
128 {
129 }
130};
131
132#endif
133
134/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
DeleteFooterDialog(weld::Widget *pParent)
Definition: hdft.hxx:125
DeleteHeaderDialog(weld::Widget *pParent)
Definition: hdft.hxx:115
virtual void Reset(const SfxItemSet *)
virtual void PageCreated(const SfxAllItemSet &aSet)
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet)
virtual bool FillItemSet(SfxItemSet *)
virtual void ActivatePage(const SfxItemSet &)
static WhichRangesContainer GetRanges()
Definition: hdft.hxx:108
sal_uInt16 nId
Definition: hdft.hxx:60
std::unique_ptr< weld::CustomWeld > m_xBspWin
Definition: hdft.hxx:81
std::unique_ptr< weld::Label > m_xDistFT
Definition: hdft.hxx:74
std::unique_ptr< weld::Label > m_xPageLbl
Definition: hdft.hxx:66
std::unique_ptr< weld::MetricSpinButton > m_xDistEdit
Definition: hdft.hxx:75
std::unique_ptr< weld::CheckButton > m_xCntSharedBox
Definition: hdft.hxx:68
void DisableDeleteQueryBox()
Definition: hdft.hxx:46
std::unique_ptr< weld::CheckButton > m_xTurnOnBox
Definition: hdft.hxx:67
static const WhichRangesContainer pRanges
Definition: hdft.hxx:53
DECL_DLLPRIVATE_LINK(BackgroundHdl, weld::Button &, void)
std::unique_ptr< weld::MetricSpinButton > m_xRMEdit
Definition: hdft.hxx:73
std::unique_ptr< weld::Label > m_xHeightFT
Definition: hdft.hxx:77
std::unique_ptr< weld::MetricSpinButton > m_xLMEdit
Definition: hdft.hxx:71
bool mbEnableDrawingLayerFillStyles
Definition: hdft.hxx:63
DECL_LINK(TurnOnHdl, weld::Toggleable &, void)
std::unique_ptr< weld::CheckButton > m_xDynSpacingCB
Definition: hdft.hxx:76
std::unique_ptr< weld::Button > m_xBackgroundBtn
Definition: hdft.hxx:80
std::unique_ptr< weld::CheckButton > m_xHeightDynBtn
Definition: hdft.hxx:79
std::unique_ptr< weld::Label > m_xRMLbl
Definition: hdft.hxx:72
SvxPageWindow m_aBspWin
Definition: hdft.hxx:65
bool mbDisableQueryBox
Definition: hdft.hxx:62
std::unique_ptr< weld::MetricSpinButton > m_xHeightEdit
Definition: hdft.hxx:78
std::unique_ptr< SfxItemSet > pBBSet
Definition: hdft.hxx:61
DECL_DLLPRIVATE_LINK(ValueChangeHdl, weld::MetricSpinButton &, void)
std::unique_ptr< weld::CheckButton > m_xCntSharedFirstBox
Definition: hdft.hxx:69
std::unique_ptr< weld::Label > m_xLMLbl
Definition: hdft.hxx:70
static WhichRangesContainer GetRanges()
Definition: hdft.hxx:100
void Create(SwFormatVertOrient &rItem, SvStream &rStrm, sal_uInt16 nVersionAbusedAsSize)
bool ShowBorderBackgroundDlg(weld::Window *pParent, SfxItemSet *pBBSet)
Definition: hdft.cxx:83
static SfxItemSet & rSet
#define SVX_DLLPUBLIC
Definition: svxdllapi.h:28
#define SVX_DLLPRIVATE
Definition: svxdllapi.h:30
DeactivateRC