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
29class SwFieldMgr;
30class SwView;
31
33{
34 OUString m_sNone;
36 SwView& m_rView; // search per active, avoid View
37 std::unique_ptr<SwFieldMgr> m_pMgr; // pointer to save the include
38
41 bool m_bOrderNumberingFirst; //#i61007# order of captions
42
43 css::uno::Reference<css::container::XNameAccess> m_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::ComboBox> m_xPosBox;
56 std::unique_ptr<weld::Button> m_xOKButton;
57 std::unique_ptr<weld::Button> m_xAutoCaptionButton;
58 std::unique_ptr<weld::Button> m_xOptionButton;
59 std::unique_ptr<weld::CustomWeld> m_xPreview;
60
61 DECL_LINK(SelectListBoxHdl, weld::ComboBox&, void);
62 DECL_LINK(ModifyEntryHdl, weld::Entry&, void);
63 DECL_LINK(ModifyComboHdl, weld::ComboBox&, void);
64 DECL_LINK(OptionHdl, weld::Button&, void);
65 DECL_LINK(CaptionHdl, weld::Button&, void);
66 DECL_LINK(OKHdl, 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 s_aSepTextSave; // Save caption separator text
75public:
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: */
std::unique_ptr< weld::Label > m_xNumberingSeparatorFT
Definition: cption.hxx:51
TextFilterAutoConvert m_aTextFilter
Definition: cption.hxx:35
bool m_bCopyAttributes
Definition: cption.hxx:40
SwView & m_rView
Definition: cption.hxx:36
css::uno::Reference< css::container::XNameAccess > m_xNameAccess
Definition: cption.hxx:43
bool m_bOrderNumberingFirst
Definition: cption.hxx:41
std::unique_ptr< weld::ComboBox > m_xPosBox
Definition: cption.hxx:55
void DrawSample()
Definition: cption.cxx:380
DECL_LINK(OptionHdl, weld::Button &, void)
static OUString s_aSepTextSave
Definition: cption.hxx:74
std::unique_ptr< weld::Entry > m_xSepEdit
Definition: cption.hxx:54
void ApplyCaptionOrder()
Definition: cption.cxx:531
std::unique_ptr< weld::Label > m_xFormatText
Definition: cption.hxx:48
std::unique_ptr< weld::Entry > m_xNumberingSeparatorED
Definition: cption.hxx:52
std::unique_ptr< weld::ComboBox > m_xCategoryBox
Definition: cption.hxx:47
std::unique_ptr< weld::CustomWeld > m_xPreview
Definition: cption.hxx:59
OUString m_sNone
Definition: cption.hxx:34
DECL_LINK(ModifyEntryHdl, weld::Entry &, void)
DECL_LINK(OKHdl, weld::Button &, void)
DECL_LINK(CaptionHdl, weld::Button &, void)
std::unique_ptr< weld::ComboBox > m_xFormatBox
Definition: cption.hxx:49
std::unique_ptr< weld::Label > m_xSepText
Definition: cption.hxx:53
std::unique_ptr< weld::Entry > m_xTextEdit
Definition: cption.hxx:46
DECL_LINK(SelectListBoxHdl, weld::ComboBox &, void)
virtual short run() override
Definition: cption.cxx:294
DECL_LINK(ModifyComboHdl, weld::ComboBox &, void)
SwCaptionPreview m_aPreview
Definition: cption.hxx:45
virtual ~SwCaptionDialog() override
Definition: cption.cxx:443
OUString m_sCharacterStyle
Definition: cption.hxx:39
std::unique_ptr< weld::Button > m_xOptionButton
Definition: cption.hxx:58
std::unique_ptr< SwFieldMgr > m_pMgr
Definition: cption.hxx:37
void Apply()
Definition: cption.cxx:268
SwCaptionDialog(weld::Window *pParent, SwView &rV)
Definition: cption.cxx:90
std::unique_ptr< weld::Button > m_xAutoCaptionButton
Definition: cption.hxx:57
void ModifyHdl()
Definition: cption.cxx:334
std::unique_ptr< weld::Button > m_xOKButton
Definition: cption.hxx:56
Definition: view.hxx:146