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 .
22 #include <svtools/stdctrl.hxx>
23 #include <vcl/field.hxx>
24 #include <vcl/menubtn.hxx>
25 #include <vcl/group.hxx>
31 // class SwEnvFmtPage ---------------------------------------------------------
33 class SwEnvFmtPage
: public SfxTabPage
37 FixedInfo aAddrPosInfo
;
38 FixedText aAddrLeftText
;
39 MetricField aAddrLeftField
;
40 FixedText aAddrTopText
;
41 MetricField aAddrTopField
;
42 FixedInfo aAddrFormatInfo
;
43 MenuButton aAddrEditButton
;
45 FixedInfo aSendPosInfo
;
46 FixedText aSendLeftText
;
47 MetricField aSendLeftField
;
48 FixedText aSendTopText
;
49 MetricField aSendTopField
;
50 FixedInfo aSendFormatInfo
;
51 MenuButton aSendEditButton
;
53 FixedText aSizeFormatText
;
54 ListBox aSizeFormatBox
;
55 FixedText aSizeWidthText
;
56 MetricField aSizeWidthField
;
57 FixedText aSizeHeightText
;
58 MetricField aSizeHeightField
;
59 SwEnvPreview aPreview
;
61 std::vector
<sal_uInt16
> aIDs
;
63 SwEnvFmtPage(Window
* pParent
, const SfxItemSet
& rSet
);
66 DECL_LINK( ModifyHdl
, Edit
* );
67 DECL_LINK( EditHdl
, MenuButton
* );
68 DECL_LINK(FormatHdl
, void *);
72 SfxItemSet
*GetCollItemSet(SwTxtFmtColl
* pColl
, bool bSender
);
74 SwEnvDlg
*GetParentSwEnvDlg() {return (SwEnvDlg
*) GetParentDialog();}
76 using TabPage::ActivatePage
;
77 using TabPage::DeactivatePage
;
81 static SfxTabPage
* Create(Window
* pParent
, const SfxItemSet
& rSet
);
83 virtual void ActivatePage(const SfxItemSet
& rSet
);
84 virtual int DeactivatePage(SfxItemSet
* pSet
= 0);
85 void FillItem(SwEnvItem
& rItem
);
86 virtual sal_Bool
FillItemSet(SfxItemSet
& rSet
);
87 virtual void Reset(const SfxItemSet
& rSet
);
93 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */