update dev300-m58
[ooovba.git] / sw / source / ui / fldui / fldref.hxx
blob35dae2f8e10e91667ab1a936430b18b80743f6d8
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: fldref.hxx,v $
10 * $Revision: 1.4.214.1 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef _SWFLDREF_HXX
31 #define _SWFLDREF_HXX
33 #include <sfx2/tabdlg.hxx>
34 #include <vcl/fixed.hxx>
35 #include <vcl/lstbox.hxx>
36 #ifndef _SV_BUTTON_HXX //autogen
37 #include <vcl/button.hxx>
38 #endif
39 #include <vcl/group.hxx>
40 #include <vcl/edit.hxx>
42 #include "fldpage.hxx"
43 // --> OD 2007-11-15 #i83479#
44 #include <IDocumentOutlineNodes.hxx>
45 #include <IDocumentListItems.hxx>
46 #include <FldRefTreeListBox.hxx>
47 class SwTxtNode;
48 // <--
50 /*--------------------------------------------------------------------
51 Beschreibung:
52 --------------------------------------------------------------------*/
54 class SwFldRefPage : public SwFldPage
56 FixedText aTypeFT;
57 ListBox aTypeLB;
58 FixedText aSelectionFT;
59 ListBox aSelectionLB;
60 // --> OD 2007-11-21 #i83479#
61 SwFldRefTreeListBox aSelectionToolTipLB;
62 // <--
63 FixedText aFormatFT;
64 ListBox aFormatLB;
65 FixedText aNameFT;
66 Edit aNameED;
67 FixedText aValueFT;
68 Edit aValueED;
69 const String sBookmarkTxt;
70 const String sFootnoteTxt;
71 const String sEndnoteTxt;
72 // --> OD 2007-11-09 #i83479#
73 const String sHeadingTxt;
74 const String sNumItemTxt;
76 IDocumentOutlineNodes::tSortedOutlineNodeList maOutlineNodes;
77 IDocumentListItems::tSortedNodeNumList maNumItems;
79 // selected text node in the listbox for headings and numbered items
80 // in order to restore selection after update of selection listbox
81 const SwTxtNode* mpSavedSelectedTxtNode;
82 // fallback, if previously selected text node doesn't exist anymore
83 sal_uInt16 mnSavedSelectedPos;
84 // <--
86 DECL_LINK( TypeHdl, ListBox* pLB = 0 );
87 DECL_LINK( SubTypeHdl, ListBox* pLB = 0 );
88 DECL_LINK( ModifyHdl, Edit *pEd = 0 );
90 void UpdateSubType();
91 USHORT FillFormatLB(USHORT nTypeId);
93 // --> OD 2007-12-05 #i83479#
94 void SaveSelectedTxtNode();
95 const SwTxtNode* GetSavedSelectedTxtNode() const;
96 sal_uInt16 GetSavedSelectedPos() const;
97 // <--
99 protected:
100 virtual USHORT GetGroup();
102 public:
103 SwFldRefPage(Window* pParent, const SfxItemSet& rSet);
105 ~SwFldRefPage();
107 static SfxTabPage* Create(Window* pParent, const SfxItemSet& rAttrSet);
109 virtual BOOL FillItemSet( SfxItemSet& rSet );
110 virtual void Reset( const SfxItemSet& rSet );
112 virtual void FillUserData();
116 #endif