LibreOffice Module cui (master) 1
dbregister.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 <rtl/ustring.hxx>
23#include <tools/solar.h>
24#include <sfx2/basedlgs.hxx>
25#include <sfx2/tabdlg.hxx>
26
27namespace svx
28{
29
31 {
32 private:
35
36 std::unique_ptr<weld::Button> m_xNew;
37 std::unique_ptr<weld::Button> m_xEdit;
38 std::unique_ptr<weld::Button> m_xDelete;
39 std::unique_ptr<weld::TreeView> m_xPathBox;
40 std::unique_ptr<weld::TreeIter> m_xIter;
41
42 DECL_LINK( NewHdl, weld::Button&, void );
43 DECL_LINK( EditHdl, weld::Button&, void );
44 DECL_LINK( DeleteHdl, weld::Button&, void );
45 DECL_LINK( PathBoxDoubleClickHdl, weld::TreeView&, bool);
46
47 DECL_LINK( PathSelect_Impl, weld::TreeView&, void);
48
49 DECL_LINK( HeaderSelect_Impl, int, void );
50 DECL_LINK( NameValidator, const OUString&, bool);
51
58 void insertNewEntry( const OUString& _sName,const OUString& _sLocation, const bool bReadOnly );
59
68 void openLinkDialog(const OUString& sOldName, const OUString& sOldLocation, int nEntry = -1);
69
70 public:
72 virtual ~DbRegistrationOptionsPage() override;
73
74 static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rSet );
75
76 virtual bool FillItemSet( SfxItemSet* rSet ) override;
77 virtual void Reset( const SfxItemSet* rSet ) override;
78 virtual void FillUserData() override;
79 };
80
87 {
88 private:
90
91 protected:
94
95 protected:
97 };
98
101 {
102 public:
103 DatabaseRegistrationDialog(weld::Window* pParent, const SfxItemSet& rAttr);
104
105 virtual short run() override;
106 };
107}
108
109
110/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual short run() override
Definition: dbregister.cxx:75
DatabaseRegistrationDialog(weld::Window *pParent, const SfxItemSet &rAttr)
Definition: dbregister.cxx:67
virtual void Reset(const SfxItemSet *rSet) override
Definition: dbregister.cxx:159
DECL_LINK(NewHdl, weld::Button &, void)
DECL_LINK(NameValidator, const OUString &, bool)
DECL_LINK(HeaderSelect_Impl, int, void)
virtual ~DbRegistrationOptionsPage() override
Definition: dbregister.cxx:122
std::unique_ptr< weld::Button > m_xDelete
Definition: dbregister.hxx:38
std::unique_ptr< weld::Button > m_xEdit
Definition: dbregister.hxx:37
std::unique_ptr< weld::Button > m_xNew
Definition: dbregister.hxx:36
std::unique_ptr< weld::TreeView > m_xPathBox
Definition: dbregister.hxx:39
DECL_LINK(DeleteHdl, weld::Button &, void)
DbRegistrationOptionsPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
Definition: dbregister.cxx:89
void insertNewEntry(const OUString &_sName, const OUString &_sLocation, const bool bReadOnly)
inserts a new entry in the tablistbox
Definition: dbregister.cxx:267
void openLinkDialog(const OUString &sOldName, const OUString &sOldLocation, int nEntry=-1)
opens the LinkDialog to create a register pair
Definition: dbregister.cxx:278
DECL_LINK(PathSelect_Impl, weld::TreeView &, void)
std::unique_ptr< weld::TreeIter > m_xIter
Definition: dbregister.hxx:40
virtual void FillUserData() override
Definition: dbregister.cxx:193
DECL_LINK(EditHdl, weld::Button &, void)
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rSet)
Definition: dbregister.cxx:128
DECL_LINK(PathBoxDoubleClickHdl, weld::TreeView &, bool)
virtual bool FillItemSet(SfxItemSet *rSet) override
Definition: dbregister.cxx:134
helper for DatabaseRegistrationDialog
Definition: dbregister.hxx:87
RegistrationItemSetHolder(SfxItemSet _aMasterSet)
Definition: dbregister.cxx:55
const SfxItemSet & getRegistrationItems() const
Definition: dbregister.hxx:96
sal_uIntPtr sal_uLong