Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : *
4 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 : : *
6 : : * Copyright 2000, 2010 Oracle and/or its affiliates.
7 : : *
8 : : * OpenOffice.org - a multi-platform office productivity suite
9 : : *
10 : : * This file is part of OpenOffice.org.
11 : : *
12 : : * OpenOffice.org is free software: you can redistribute it and/or modify
13 : : * it under the terms of the GNU Lesser General Public License version 3
14 : : * only, as published by the Free Software Foundation.
15 : : *
16 : : * OpenOffice.org is distributed in the hope that it will be useful,
17 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 : : * GNU Lesser General Public License version 3 for more details
20 : : * (a copy is included in the LICENSE file that accompanied this code).
21 : : *
22 : : * You should have received a copy of the GNU Lesser General Public License
23 : : * version 3 along with OpenOffice.org. If not, see
24 : : * <http://www.openoffice.org/license.html>
25 : : * for a copy of the LGPLv3 License.
26 : : *
27 : : ************************************************************************/
28 : : #ifndef _CPTION_HXX
29 : : #define _CPTION_HXX
30 : :
31 : : #include <svx/stddlg.hxx>
32 : :
33 : : #include <vcl/fixed.hxx>
34 : :
35 : : #include <vcl/lstbox.hxx>
36 : :
37 : : #include <vcl/edit.hxx>
38 : :
39 : : #include <vcl/group.hxx>
40 : :
41 : : #include <vcl/button.hxx>
42 : : #include <actctrl.hxx>
43 : :
44 : :
45 : : #include <com/sun/star/container/XEnumerationAccess.hpp>
46 : : #include <com/sun/star/container/XHierarchicalNameAccess.hpp>
47 : : #include <com/sun/star/container/XNameAccess.hpp>
48 : : #include <com/sun/star/container/XContentEnumerationAccess.hpp>
49 : : #include <com/sun/star/container/XEnumeration.hpp>
50 : : #include <com/sun/star/container/XElementAccess.hpp>
51 : : #include <com/sun/star/container/XIndexAccess.hpp>
52 : : #include <com/sun/star/container/XNamed.hpp>
53 : :
54 : : class SwFldMgr;
55 : : class SwView;
56 : :
57 : : #include <wrtsh.hxx>
58 : : #include "optload.hxx"
59 : : #include "swlbox.hxx"
60 : :
61 : :
62 : : class SwCaptionDialog : public SvxStandardDialog
63 : : {
64 : 0 : class CategoryBox : public ComboBox
65 : : {
66 : : public:
67 : 0 : CategoryBox( Window* pParent, const ResId& rResId )
68 : 0 : : ComboBox( pParent, rResId )
69 : 0 : {}
70 : :
71 : : virtual long PreNotify( NotifyEvent& rNEvt );
72 : : };
73 : :
74 : : FixedText aTextText;
75 : : Edit aTextEdit;
76 : : FixedLine aSettingsFL;
77 : : FixedText aCategoryText;
78 : : CategoryBox aCategoryBox;
79 : : FixedText aFormatText;
80 : : ListBox aFormatBox;
81 : : //#i61007# order of captions
82 : : FixedText aNumberingSeparatorFT;
83 : : Edit aNumberingSeparatorED;
84 : : FixedText aSepText;
85 : : Edit aSepEdit;
86 : : FixedText aPosText;
87 : : ListBox aPosBox;
88 : : OKButton aOKButton;
89 : : CancelButton aCancelButton;
90 : : HelpButton aHelpButton;
91 : : PushButton aAutoCaptionButton;
92 : : PushButton aOptionButton;
93 : :
94 : : String sNone;
95 : :
96 : : SwCaptionPreview aPrevWin;
97 : :
98 : : SwView &rView; // search per active, avoid ::com::sun::star::sdbcx::View
99 : : SwFldMgr *pMgr; // pointer to save the include
100 : : SelectionType eType;
101 : :
102 : : String sCharacterStyle;
103 : : String sObjectName;
104 : : bool bCopyAttributes;
105 : : bool bOrderNumberingFirst; //#i61007# order of captions
106 : :
107 : : ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > xNameAccess;
108 : : ::com::sun::star::uno::Reference< ::com::sun::star::container::XNamed > xNamed;
109 : :
110 : : DECL_LINK(SelectHdl, void *);
111 : : DECL_LINK(ModifyHdl, void *);
112 : : DECL_LINK( OptionHdl, Button * );
113 : : DECL_LINK(CaptionHdl, void *);
114 : :
115 : : virtual void Apply();
116 : :
117 : : void DrawSample();
118 : : void CheckButtonWidth();
119 : : void ApplyCaptionOrder(); //#i61007# order of captions
120 : :
121 : : static String our_aSepTextSave; // Save caption separator text
122 : : public:
123 : : SwCaptionDialog( Window *pParent, SwView &rV );
124 : : ~SwCaptionDialog();
125 : : };
126 : :
127 : : #endif
128 : :
129 : :
130 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|