LibreOffice Module sw (master)  1
cption.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
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/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
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 .
18  */
19 #ifndef INCLUDED_SW_SOURCE_UIBASE_INC_CPTION_HXX
20 #define INCLUDED_SW_SOURCE_UIBASE_INC_CPTION_HXX
21 
22 #include <sfx2/basedlgs.hxx>
23 
24 #include <com/sun/star/container/XNameAccess.hpp>
25 
26 #include "wrtsh.hxx"
27 #include "optload.hxx"
28 
29 class SwFieldMgr;
30 class SwView;
31 
33 {
34  OUString m_sNone;
36  SwView &rView; // search per active, avoid View
37  std::unique_ptr<SwFieldMgr> pMgr; // pointer to save the include
38 
39  OUString sCharacterStyle;
41  bool bOrderNumberingFirst; //#i61007# order of captions
42 
43  css::uno::Reference< css::container::XNameAccess > xNameAccess;
44 
46  std::unique_ptr<weld::Entry> m_xTextEdit;
47  std::unique_ptr<weld::ComboBox> m_xCategoryBox;
48  std::unique_ptr<weld::Label> m_xFormatText;
49  std::unique_ptr<weld::ComboBox> m_xFormatBox;
50  //#i61007# order of captions
51  std::unique_ptr<weld::Label> m_xNumberingSeparatorFT;
52  std::unique_ptr<weld::Entry> m_xNumberingSeparatorED;
53  std::unique_ptr<weld::Label> m_xSepText;
54  std::unique_ptr<weld::Entry> m_xSepEdit;
55  std::unique_ptr<weld::Label> m_xPosText;
56  std::unique_ptr<weld::ComboBox> m_xPosBox;
57  std::unique_ptr<weld::Button> m_xOKButton;
58  std::unique_ptr<weld::Button> m_xAutoCaptionButton;
59  std::unique_ptr<weld::Button> m_xOptionButton;
60  std::unique_ptr<weld::CustomWeld> m_xPreview;
61 
62  DECL_LINK(SelectListBoxHdl, weld::ComboBox&, void);
63  DECL_LINK(ModifyEntryHdl, weld::Entry&, void);
64  DECL_LINK(ModifyComboHdl, weld::ComboBox&, void);
65  DECL_LINK(OptionHdl, weld::Button&, void);
66  DECL_LINK(CaptionHdl, weld::Button&, void);
67 
68  void Apply();
69 
70  void ModifyHdl();
71  void DrawSample();
72  void ApplyCaptionOrder(); //#i61007# order of captions
73 
74  static OUString our_aSepTextSave; // Save caption separator text
75 public:
76  SwCaptionDialog(weld::Window *pParent, SwView &rV);
77  virtual short run() override;
78  virtual ~SwCaptionDialog() override;
79 };
80 
81 #endif
82 
83 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SwCaptionDialog(weld::Window *pParent, SwView &rV)
Definition: cption.cxx:97
std::unique_ptr< weld::Label > m_xNumberingSeparatorFT
Definition: cption.hxx:51
css::uno::Reference< css::container::XNameAccess > xNameAccess
Definition: cption.hxx:43
std::unique_ptr< weld::Label > m_xPosText
Definition: cption.hxx:55
std::unique_ptr< weld::Button > m_xOptionButton
Definition: cption.hxx:59
std::unique_ptr< weld::Entry > m_xNumberingSeparatorED
Definition: cption.hxx:52
std::unique_ptr< weld::ComboBox > m_xFormatBox
Definition: cption.hxx:49
std::unique_ptr< weld::CustomWeld > m_xPreview
Definition: cption.hxx:60
void ModifyHdl()
Definition: cption.cxx:329
void ApplyCaptionOrder()
Definition: cption.cxx:526
std::unique_ptr< weld::Entry > m_xSepEdit
Definition: cption.hxx:54
static OUString our_aSepTextSave
Definition: cption.hxx:74
std::unique_ptr< weld::Entry > m_xTextEdit
Definition: cption.hxx:46
void Apply()
Definition: cption.cxx:268
std::unique_ptr< weld::ComboBox > m_xPosBox
Definition: cption.hxx:56
std::unique_ptr< weld::Label > m_xFormatText
Definition: cption.hxx:48
OUString m_sNone
Definition: cption.hxx:34
virtual short run() override
Definition: cption.cxx:294
DECL_LINK(SelectListBoxHdl, weld::ComboBox &, void)
bool bOrderNumberingFirst
Definition: cption.hxx:41
std::unique_ptr< weld::Label > m_xSepText
Definition: cption.hxx:53
TextFilterAutoConvert m_aTextFilter
Definition: cption.hxx:35
SwView & rView
Definition: cption.hxx:36
std::unique_ptr< weld::ComboBox > m_xCategoryBox
Definition: cption.hxx:47
std::unique_ptr< SwFieldMgr > pMgr
Definition: cption.hxx:37
bool bCopyAttributes
Definition: cption.hxx:40
std::unique_ptr< weld::Button > m_xOKButton
Definition: cption.hxx:57
void DrawSample()
Definition: cption.cxx:375
std::unique_ptr< weld::Button > m_xAutoCaptionButton
Definition: cption.hxx:58
virtual ~SwCaptionDialog() override
Definition: cption.cxx:438
SwCaptionPreview m_aPreview
Definition: cption.hxx:45
Definition: view.hxx:144
OUString sCharacterStyle
Definition: cption.hxx:39