xref: /AOO41X/main/sw/source/ui/fldui/flddinf.hxx (revision 1d2dbeb0b7301723c6d13094e87a8714ef81a328)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 #ifndef _SWFLDDINF_HXX
24 #define _SWFLDDINF_HXX
25 
26 #include <sfx2/tabdlg.hxx>
27 #include <vcl/fixed.hxx>
28 #include <vcl/lstbox.hxx>
29 #include <vcl/button.hxx>
30 #include <vcl/group.hxx>
31 #include <svtools/svtreebx.hxx>
32 
33 #include "numfmtlb.hxx"
34 #include "fldpage.hxx"
35 
36 namespace com{namespace sun{ namespace star{ namespace beans{
37     class XPropertySet;
38 }}}}
39 /*--------------------------------------------------------------------
40    Beschreibung:
41  --------------------------------------------------------------------*/
42 
43 class SwFldDokInfPage : public SwFldPage
44 {
45     FixedText           aTypeFT;
46     SvTreeListBox       aTypeTLB;
47     FixedText           aSelectionFT;
48     ListBox             aSelectionLB;
49     FixedText           aFormatFT;
50     NumFormatListBox    aFormatLB;
51     CheckBox            aFixedCB;
52 
53     SvLBoxEntry*        pSelEntry;
54     com::sun::star::uno::Reference < ::com::sun::star::beans::XPropertySet > xCustomPropertySet;
55 
56     String              aInfoStr;
57 
58     sal_uInt16              nOldSel;
59     sal_uLong               nOldFormat;
60     ::rtl::OUString     m_sOldCustomFieldName;
61 
62     DECL_LINK( TypeHdl, ListBox* pLB = 0 );
63     DECL_LINK( SubTypeHdl, ListBox* pLB = 0 );
64 
65     sal_uInt16              FillSelectionLB(sal_uInt16 nSubTypeId);
66 
67 protected:
68     virtual sal_uInt16      GetGroup();
69 
70 public:
71                         SwFldDokInfPage(Window* pWindow, const SfxItemSet& rSet);
72 
73                         ~SwFldDokInfPage();
74 
75     static SfxTabPage*  Create(Window* pParent, const SfxItemSet& rAttrSet);
76 
77     virtual sal_Bool        FillItemSet( SfxItemSet& rSet );
78     virtual void        Reset( const SfxItemSet& rSet );
79 
80     virtual void        FillUserData();
81 };
82 
83 
84 #endif
85 
86