bump product version to 4.1.6.2
[LibreOffice.git] / sw / source / ui / inc / cption.hxx
blob487cf26870d3eabbb09e2f0f8d5ac000ddfcc319
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef _CPTION_HXX
20 #define _CPTION_HXX
22 #include <svx/stddlg.hxx>
24 #include <vcl/fixed.hxx>
26 #include <vcl/lstbox.hxx>
28 #include <vcl/edit.hxx>
30 #include <vcl/group.hxx>
32 #include <vcl/button.hxx>
33 #include <actctrl.hxx>
36 #include <com/sun/star/container/XEnumerationAccess.hpp>
37 #include <com/sun/star/container/XHierarchicalNameAccess.hpp>
38 #include <com/sun/star/container/XNameAccess.hpp>
39 #include <com/sun/star/container/XContentEnumerationAccess.hpp>
40 #include <com/sun/star/container/XEnumeration.hpp>
41 #include <com/sun/star/container/XElementAccess.hpp>
42 #include <com/sun/star/container/XIndexAccess.hpp>
43 #include <com/sun/star/container/XNamed.hpp>
45 class SwFldMgr;
46 class SwView;
48 #include <wrtsh.hxx>
49 #include "optload.hxx"
50 #include "swlbox.hxx"
52 class CategoryBox : public ComboBox
54 public:
55 CategoryBox( Window* pParent, WinBits nStyle = 0 )
56 : ComboBox( pParent, nStyle )
59 virtual long PreNotify( NotifyEvent& rNEvt );
63 class SwCaptionDialog : public SvxStandardDialog
65 Edit* m_pTextEdit;
66 CategoryBox* m_pCategoryBox;
67 FixedText* m_pFormatText;
68 ListBox* m_pFormatBox;
69 //#i61007# order of captions
70 FixedText* m_pNumberingSeparatorFT;
71 Edit* m_pNumberingSeparatorED;
72 FixedText* m_pSepText;
73 Edit* m_pSepEdit;
74 FixedText* m_pPosText;
75 ListBox* m_pPosBox;
76 OKButton* m_pOKButton;
77 PushButton* m_pAutoCaptionButton;
78 PushButton* m_pOptionButton;
80 SwCaptionPreview* m_pPreview;
82 OUString m_sNone;
84 SwView &rView; // search per active, avoid ::com::sun::star::sdbcx::View
85 SwFldMgr *pMgr; // pointer to save the include
86 SelectionType eType;
88 String sCharacterStyle;
89 String sObjectName;
90 bool bCopyAttributes;
91 bool bOrderNumberingFirst; //#i61007# order of captions
93 ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > xNameAccess;
94 ::com::sun::star::uno::Reference< ::com::sun::star::container::XNamed > xNamed;
96 DECL_LINK(SelectHdl, void *);
97 DECL_LINK(ModifyHdl, void *);
98 DECL_LINK(OptionHdl, Button *);
99 DECL_LINK(CaptionHdl, void *);
101 virtual void Apply();
103 void DrawSample();
104 void CheckButtonWidth();
105 void ApplyCaptionOrder(); //#i61007# order of captions
107 static String our_aSepTextSave; // Save caption separator text
108 public:
109 SwCaptionDialog( Window *pParent, SwView &rV );
110 ~SwCaptionDialog();
113 #endif
116 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */