Line data Source code
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_SW_SOURCE_UIBASE_INC_PGFNOTE_HXX
20 : #define INCLUDED_SW_SOURCE_UIBASE_INC_PGFNOTE_HXX
21 :
22 : #include <sfx2/tabdlg.hxx>
23 :
24 : #include <vcl/field.hxx>
25 :
26 : #include <vcl/fixed.hxx>
27 :
28 : #include <vcl/group.hxx>
29 : #include <svtools/ctrlbox.hxx>
30 :
31 : // footnote settings TabPage
32 : class SwFootNotePage: public SfxTabPage
33 : {
34 : friend class VclPtr<SwFootNotePage>;
35 : static const sal_uInt16 aPageRg[];
36 : SwFootNotePage(vcl::Window *pParent, const SfxItemSet &rSet);
37 : public:
38 : static VclPtr<SfxTabPage> Create(vcl::Window *pParent, const SfxItemSet *rSet);
39 0 : static const sal_uInt16* GetRanges() { return aPageRg; }
40 :
41 : virtual bool FillItemSet(SfxItemSet *rSet) SAL_OVERRIDE;
42 : virtual void Reset(const SfxItemSet *rSet) SAL_OVERRIDE;
43 :
44 : virtual ~SwFootNotePage();
45 : virtual void dispose() SAL_OVERRIDE;
46 : private:
47 :
48 : VclPtr<RadioButton> m_pMaxHeightPageBtn;
49 : VclPtr<RadioButton> m_pMaxHeightBtn;
50 : VclPtr<MetricField> m_pMaxHeightEdit;
51 : VclPtr<MetricField> m_pDistEdit;
52 :
53 : VclPtr<ListBox> m_pLinePosBox;
54 : VclPtr<LineListBox> m_pLineTypeBox;
55 : VclPtr<MetricField> m_pLineWidthEdit;
56 : VclPtr<ColorListBox> m_pLineColorBox;
57 : VclPtr<MetricField> m_pLineLengthEdit;
58 : VclPtr<MetricField> m_pLineDistEdit;
59 :
60 : DECL_LINK(HeightPage, void *);
61 : DECL_LINK(HeightMetric, void *);
62 : DECL_LINK(HeightModify, void *);
63 : DECL_LINK( LineWidthChanged_Impl, void * );
64 : DECL_LINK( LineColorSelected_Impl, void * );
65 :
66 : long lMaxHeight;
67 :
68 : using SfxTabPage::ActivatePage;
69 : using SfxTabPage::DeactivatePage;
70 :
71 : virtual void ActivatePage( const SfxItemSet& rSet ) SAL_OVERRIDE;
72 : virtual sfxpg DeactivatePage( SfxItemSet* pSet = 0 ) SAL_OVERRIDE;
73 :
74 : };
75 :
76 : #endif
77 :
78 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|