LibreOffice Module sw (master) 1
flddb.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_UI_FLDUI_FLDDB_HXX
20#define INCLUDED_SW_SOURCE_UI_FLDUI_FLDDB_HXX
21
22#include <condedit.hxx>
23#include <dbtree.hxx>
24#include <numfmtlb.hxx>
25
26#include "fldpage.hxx"
27
29{
30 OUString m_sOldDBName;
33 sal_uInt32 m_nOldFormat;
34 sal_uInt16 m_nOldSubType;
35
36 std::unique_ptr<weld::TreeView> m_xTypeLB;
37 std::unique_ptr<SwDBTreeList> m_xDatabaseTLB;
38 std::unique_ptr<weld::Button> m_xAddDBPB;
39 std::unique_ptr<weld::Widget> m_xCondition;
40 std::unique_ptr<ConditionEdit> m_xConditionED;
41 std::unique_ptr<weld::Widget> m_xValue;
42 std::unique_ptr<weld::Entry> m_xValueED;
43 std::unique_ptr<weld::RadioButton> m_xDBFormatRB;
44 std::unique_ptr<weld::RadioButton> m_xNewFormatRB;
45 std::unique_ptr<NumFormatListBox> m_xNumFormatLB;
46 std::unique_ptr<weld::ComboBox> m_xFormatLB;
47 std::unique_ptr<weld::Widget> m_xFormat;
48
49 DECL_LINK( TypeListBoxHdl, weld::TreeView&, void );
50 DECL_LINK( NumSelectHdl, weld::ComboBox&, void );
51 DECL_LINK( TreeSelectHdl, weld::TreeView&, void );
52 DECL_LINK( ModifyHdl, weld::Entry&, void );
53 DECL_LINK( AddDBHdl, weld::Button&, void );
54 void TypeHdl(const weld::TreeView*);
55
56 void CheckInsert();
57
60
61protected:
62 virtual sal_uInt16 GetGroup() override;
63
64public:
65 SwFieldDBPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rSet);
66
67 virtual ~SwFieldDBPage() override;
68
69 static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet);
70
71 virtual bool FillItemSet( SfxItemSet* rSet ) override;
72 virtual void Reset( const SfxItemSet* rSet ) override;
73 virtual bool DeferResetToFirstActivation() override;
74
75 virtual void FillUserData() override;
77
78 void SetWrtShell(SwWrtShell& rSh);
79};
80
81#endif
82
83/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
DECL_LINK(TreeSelectHdl, weld::TreeView &, void)
virtual void FillUserData() override
Definition: flddb.cxx:506
std::unique_ptr< weld::Entry > m_xValueED
Definition: flddb.hxx:42
SwFieldDBPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rSet)
Definition: flddb.cxx:33
void TypeHdl(const weld::TreeView *)
Definition: flddb.cxx:278
void ActivateMailMergeAddress()
Definition: flddb.cxx:514
OUString m_sOldDBName
Definition: flddb.hxx:30
virtual ~SwFieldDBPage() override
Definition: flddb.cxx:73
sal_uInt16 m_nOldSubType
Definition: flddb.hxx:34
std::unique_ptr< ConditionEdit > m_xConditionED
Definition: flddb.hxx:40
std::unique_ptr< NumFormatListBox > m_xNumFormatLB
Definition: flddb.hxx:45
DECL_LINK(NumSelectHdl, weld::ComboBox &, void)
void CheckInsert()
Definition: flddb.cxx:419
std::unique_ptr< weld::Widget > m_xCondition
Definition: flddb.hxx:39
OUString m_sOldColumnName
Definition: flddb.hxx:32
virtual void Reset(const SfxItemSet *rSet) override
Definition: flddb.cxx:86
std::unique_ptr< weld::RadioButton > m_xDBFormatRB
Definition: flddb.hxx:43
virtual bool DeferResetToFirstActivation() override
Definition: flddb.cxx:188
std::unique_ptr< weld::RadioButton > m_xNewFormatRB
Definition: flddb.hxx:44
virtual sal_uInt16 GetGroup() override
Definition: flddb.cxx:268
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
Definition: flddb.cxx:262
sal_uInt32 m_nOldFormat
Definition: flddb.hxx:33
std::unique_ptr< weld::Button > m_xAddDBPB
Definition: flddb.hxx:38
std::unique_ptr< weld::ComboBox > m_xFormatLB
Definition: flddb.hxx:46
OUString m_sOldTableName
Definition: flddb.hxx:31
std::unique_ptr< weld::Widget > m_xFormat
Definition: flddb.hxx:47
std::unique_ptr< weld::TreeView > m_xTypeLB
Definition: flddb.hxx:36
SwWrtShell * CheckAndGetWrtShell()
Definition: flddb.cxx:529
std::unique_ptr< SwDBTreeList > m_xDatabaseTLB
Definition: flddb.hxx:37
DECL_LINK(ModifyHdl, weld::Entry &, void)
DECL_LINK(TypeListBoxHdl, weld::TreeView &, void)
DECL_LINK(AddDBHdl, weld::Button &, void)
void SetWrtShell(SwWrtShell &rSh)
Definition: flddb.cxx:522
std::unique_ptr< weld::Widget > m_xValue
Definition: flddb.hxx:41
virtual bool FillItemSet(SfxItemSet *rSet) override
Definition: flddb.cxx:190
void SetWrtShell(SwWrtShell *m_pWrtShell)
Definition: fldpage.cxx:344
Used by the UI to modify the document model.
Definition: wrtsh.hxx:97