1*1d2dbeb0SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*1d2dbeb0SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*1d2dbeb0SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*1d2dbeb0SAndrew Rist * distributed with this work for additional information 6*1d2dbeb0SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*1d2dbeb0SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*1d2dbeb0SAndrew Rist * "License"); you may not use this file except in compliance 9*1d2dbeb0SAndrew Rist * with the License. You may obtain a copy of the License at 10cdf0e10cSrcweir * 11*1d2dbeb0SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12cdf0e10cSrcweir * 13*1d2dbeb0SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*1d2dbeb0SAndrew Rist * software distributed under the License is distributed on an 15*1d2dbeb0SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*1d2dbeb0SAndrew Rist * KIND, either express or implied. See the License for the 17*1d2dbeb0SAndrew Rist * specific language governing permissions and limitations 18*1d2dbeb0SAndrew Rist * under the License. 19cdf0e10cSrcweir * 20*1d2dbeb0SAndrew Rist *************************************************************/ 21*1d2dbeb0SAndrew Rist 22*1d2dbeb0SAndrew Rist 23cdf0e10cSrcweir #ifndef _CPTION_HXX 24cdf0e10cSrcweir #define _CPTION_HXX 25cdf0e10cSrcweir 26cdf0e10cSrcweir #include <svx/stddlg.hxx> 27cdf0e10cSrcweir 28cdf0e10cSrcweir #ifndef _FIXED_HXX //autogen 29cdf0e10cSrcweir #include <vcl/fixed.hxx> 30cdf0e10cSrcweir #endif 31cdf0e10cSrcweir 32cdf0e10cSrcweir #ifndef _LSTBOX_HXX //autogen 33cdf0e10cSrcweir #include <vcl/lstbox.hxx> 34cdf0e10cSrcweir #endif 35cdf0e10cSrcweir 36cdf0e10cSrcweir #ifndef _EDIT_HXX //autogen 37cdf0e10cSrcweir #include <vcl/edit.hxx> 38cdf0e10cSrcweir #endif 39cdf0e10cSrcweir 40cdf0e10cSrcweir #ifndef _GROUP_HXX //autogen 41cdf0e10cSrcweir #include <vcl/group.hxx> 42cdf0e10cSrcweir #endif 43cdf0e10cSrcweir 44cdf0e10cSrcweir #ifndef _BUTTON_HXX //autogen 45cdf0e10cSrcweir #include <vcl/button.hxx> 46cdf0e10cSrcweir #endif 47cdf0e10cSrcweir #include <actctrl.hxx> 48cdf0e10cSrcweir 49cdf0e10cSrcweir 50cdf0e10cSrcweir #include <com/sun/star/container/XEnumerationAccess.hpp> 51cdf0e10cSrcweir #include <com/sun/star/container/XHierarchicalNameAccess.hpp> 52cdf0e10cSrcweir #include <com/sun/star/container/XNameAccess.hpp> 53cdf0e10cSrcweir #include <com/sun/star/container/XContentEnumerationAccess.hpp> 54cdf0e10cSrcweir #include <com/sun/star/container/XEnumeration.hpp> 55cdf0e10cSrcweir #include <com/sun/star/container/XElementAccess.hpp> 56cdf0e10cSrcweir #include <com/sun/star/container/XIndexAccess.hpp> 57cdf0e10cSrcweir #include <com/sun/star/container/XNamed.hpp> 58cdf0e10cSrcweir 59cdf0e10cSrcweir class SwFldMgr; 60cdf0e10cSrcweir class SwView; 61cdf0e10cSrcweir 62cdf0e10cSrcweir #include <wrtsh.hxx> 63cdf0e10cSrcweir #include "optload.hxx" 64cdf0e10cSrcweir #include "swlbox.hxx" 65cdf0e10cSrcweir 66cdf0e10cSrcweir 67cdf0e10cSrcweir class SwCaptionDialog : public SvxStandardDialog 68cdf0e10cSrcweir { 69cdf0e10cSrcweir class CategoryBox : public ComboBox 70cdf0e10cSrcweir { 71cdf0e10cSrcweir public: CategoryBox(Window * pParent,const ResId & rResId)72cdf0e10cSrcweir CategoryBox( Window* pParent, const ResId& rResId ) 73cdf0e10cSrcweir : ComboBox( pParent, rResId ) 74cdf0e10cSrcweir {} 75cdf0e10cSrcweir 76cdf0e10cSrcweir virtual long PreNotify( NotifyEvent& rNEvt ); 77cdf0e10cSrcweir }; 78cdf0e10cSrcweir 79cdf0e10cSrcweir FixedText aTextText; 80cdf0e10cSrcweir Edit aTextEdit; 81cdf0e10cSrcweir FixedLine aSettingsFL; 82cdf0e10cSrcweir FixedText aCategoryText; 83cdf0e10cSrcweir CategoryBox aCategoryBox; 84cdf0e10cSrcweir FixedText aFormatText; 85cdf0e10cSrcweir ListBox aFormatBox; 86cdf0e10cSrcweir //#i61007# order of captions 87cdf0e10cSrcweir FixedText aNumberingSeparatorFT; 88cdf0e10cSrcweir Edit aNumberingSeparatorED; 89cdf0e10cSrcweir FixedText aSepText; 90cdf0e10cSrcweir Edit aSepEdit; 91cdf0e10cSrcweir FixedText aPosText; 92cdf0e10cSrcweir ListBox aPosBox; 93cdf0e10cSrcweir OKButton aOKButton; 94cdf0e10cSrcweir CancelButton aCancelButton; 95cdf0e10cSrcweir HelpButton aHelpButton; 96cdf0e10cSrcweir PushButton aAutoCaptionButton; 97cdf0e10cSrcweir PushButton aOptionButton; 98cdf0e10cSrcweir 99cdf0e10cSrcweir String sNone; 100cdf0e10cSrcweir 101cdf0e10cSrcweir SwCaptionPreview aPrevWin; 102cdf0e10cSrcweir 103cdf0e10cSrcweir SwView &rView; //Suchen per aktive ::com::sun::star::sdbcx::View vermeiden. 104cdf0e10cSrcweir SwFldMgr *pMgr; //Ptr um das include zu sparen 105cdf0e10cSrcweir SelectionType eType; 106cdf0e10cSrcweir 107cdf0e10cSrcweir String sCharacterStyle; 108cdf0e10cSrcweir String sObjectName; 109cdf0e10cSrcweir bool bCopyAttributes; 110cdf0e10cSrcweir bool bOrderNumberingFirst; //#i61007# order of captions 111cdf0e10cSrcweir 112cdf0e10cSrcweir ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > xNameAccess; 113cdf0e10cSrcweir ::com::sun::star::uno::Reference< ::com::sun::star::container::XNamed > xNamed; 114cdf0e10cSrcweir 115cdf0e10cSrcweir DECL_LINK( SelectHdl, ListBox * ); 116cdf0e10cSrcweir DECL_LINK( ModifyHdl, Edit * ); 117cdf0e10cSrcweir DECL_LINK( OptionHdl, Button * ); 118cdf0e10cSrcweir DECL_LINK( CaptionHdl, PushButton*); 119cdf0e10cSrcweir 120cdf0e10cSrcweir virtual void Apply(); 121cdf0e10cSrcweir 122cdf0e10cSrcweir void DrawSample(); 123cdf0e10cSrcweir void CheckButtonWidth(); 124cdf0e10cSrcweir void ApplyCaptionOrder(); //#i61007# order of captions 125cdf0e10cSrcweir 126cdf0e10cSrcweir public: 127cdf0e10cSrcweir SwCaptionDialog( Window *pParent, SwView &rV ); 128cdf0e10cSrcweir ~SwCaptionDialog(); 129cdf0e10cSrcweir }; 130cdf0e10cSrcweir 131cdf0e10cSrcweir #endif 132