LibreOffice Module sd (master) 1
dlgfield.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
20#pragma once
21
22#include <vcl/weld.hxx>
23#include <memory>
24#include <svl/itemset.hxx>
25
26class SvxFieldData;
27class SvxLanguageBox;
28
33{
34private:
37
38 std::unique_ptr<weld::RadioButton> m_xRbtFix;
39 std::unique_ptr<weld::RadioButton> m_xRbtVar;
40 std::unique_ptr<SvxLanguageBox> m_xLbLanguage;
41 std::unique_ptr<weld::ComboBox> m_xLbFormat;
42
43 void FillFormatList();
44 void FillControls();
45
46 DECL_LINK(LanguageChangeHdl, weld::ComboBox&, void);
47
48public:
49 SdModifyFieldDlg(weld::Window* pWindow, const SvxFieldData* pInField, SfxItemSet aSet);
50 virtual ~SdModifyFieldDlg() override;
51
53 SfxItemSet GetItemSet() const;
54};
55
56/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
dialog to adjust field-commands
Definition: dlgfield.hxx:33
std::unique_ptr< weld::RadioButton > m_xRbtFix
Definition: dlgfield.hxx:38
const SvxFieldData * m_pField
Definition: dlgfield.hxx:36
std::unique_ptr< weld::ComboBox > m_xLbFormat
Definition: dlgfield.hxx:41
SvxFieldData * GetField()
Returns the new field, owned by caller.
Definition: dlgfield.cxx:61
SdModifyFieldDlg(weld::Window *pWindow, const SvxFieldData *pInField, SfxItemSet aSet)
dialog to edit field commands
Definition: dlgfield.cxx:39
void FillFormatList()
Definition: dlgfield.cxx:150
std::unique_ptr< SvxLanguageBox > m_xLbLanguage
Definition: dlgfield.hxx:40
void FillControls()
Definition: dlgfield.cxx:233
virtual ~SdModifyFieldDlg() override
Definition: dlgfield.cxx:53
SfxItemSet m_aInputSet
Definition: dlgfield.hxx:35
DECL_LINK(LanguageChangeHdl, weld::ComboBox &, void)
std::unique_ptr< weld::RadioButton > m_xRbtVar
Definition: dlgfield.hxx:39
SfxItemSet GetItemSet() const
Definition: dlgfield.cxx:282