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