1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
19 #ifndef INCLUDED_SVX_HDFT_HXX
20 #define INCLUDED_SVX_HDFT_HXX
22 #include <sfx2/tabdlg.hxx>
24 #include <vcl/fixed.hxx>
25 #include <vcl/field.hxx>
26 #include <vcl/group.hxx>
27 #include <vcl/layout.hxx>
29 #include <svx/pagectrl.hxx>
30 #include <svx/svxdllapi.h>
34 SVX_DLLPUBLIC
bool ShowBorderBackgroundDlg( Window
* pParent
, SfxItemSet
* pBBSet
,
35 bool bEnableBackgroundSelector
);
38 // class SvxHFPage ------------------------------------------------------
40 class SVX_DLLPUBLIC SvxHFPage
: public SfxTabPage
42 using TabPage::ActivatePage
;
43 using TabPage::DeactivatePage
;
47 virtual sal_Bool
FillItemSet( SfxItemSet
& rOutSet
);
48 virtual void Reset( const SfxItemSet
& rSet
);
52 void DisableDeleteQueryBox() { bDisableQueryBox
= sal_True
; }
53 void EnableBackgroundSelector( sal_Bool bNew
) { bEnableBackgroundSelector
= bNew
; }
54 void EnableDynamicSpacing();
57 virtual void ActivatePage( const SfxItemSet
& rSet
);
58 virtual int DeactivatePage( SfxItemSet
* pSet
= 0 );
60 SvxHFPage( Window
* pParent
, const SfxItemSet
& rSet
, sal_uInt16 nSetId
);
62 FixedText
* m_pPageLbl
;
63 CheckBox
* m_pTurnOnBox
;
64 CheckBox
* m_pCntSharedBox
;
65 CheckBox
* m_pCntSharedFirstBox
;
67 MetricField
* m_pLMEdit
;
69 MetricField
* m_pRMEdit
;
71 MetricField
* m_pDistEdit
;
72 CheckBox
* m_pDynSpacingCB
;
73 FixedText
* m_pHeightFT
;
74 MetricField
* m_pHeightEdit
;
75 CheckBox
* m_pHeightDynBtn
;
76 SvxPageWindow
* m_pBspWin
;
77 PushButton
* m_pBackgroundBtn
;
81 sal_Bool bDisableQueryBox
;
82 sal_Bool bEnableBackgroundSelector
;
86 DECL_LINK( TurnOnHdl
, CheckBox
*);
87 DECL_LINK(DistModify
, void *);
88 DECL_LINK(HeightModify
, void *);
89 DECL_LINK(BorderModify
, void *);
90 DECL_LINK(BackgroundHdl
, void *);
93 DECL_LINK(RangeHdl
, void *);
96 SVX_DLLPRIVATE
void ResetBackground_Impl( const SfxItemSet
& rSet
);
99 // class SvxHeaderPage ---------------------------------------------------
101 class SVX_DLLPUBLIC SvxHeaderPage
: public SvxHFPage
104 static SfxTabPage
* Create( Window
* pParent
, const SfxItemSet
& rSet
);
105 static sal_uInt16
* GetRanges();
108 SvxHeaderPage( Window
* pParent
, const SfxItemSet
& rSet
);
111 // class SvxFooterPage ---------------------------------------------------
113 class SVX_DLLPUBLIC SvxFooterPage
: public SvxHFPage
116 static SfxTabPage
* Create( Window
* pParent
, const SfxItemSet
& rSet
);
117 static sal_uInt16
* GetRanges();
120 SVX_DLLPRIVATE
SvxFooterPage( Window
* pParent
, const SfxItemSet
& rSet
);
123 class SVX_DLLPUBLIC DeleteHeaderDialog
: public MessageDialog
126 DeleteHeaderDialog(Window
*pParent
)
127 : MessageDialog(pParent
, "DeleteHeaderDialog",
128 "svx/ui/deleteheaderdialog.ui")
133 class SVX_DLLPUBLIC DeleteFooterDialog
: public MessageDialog
136 DeleteFooterDialog(Window
*pParent
)
137 : MessageDialog(pParent
, "DeleteFooterDialog",
138 "svx/ui/deletefooterdialog.ui")
145 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */