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 #ifndef INCLUDED_CUI_SOURCE_INC_DBREGISTER_HXX
21 #define INCLUDED_CUI_SOURCE_INC_DBREGISTER_HXX
22 
23 #include <rtl/ustring.hxx>
24 #include <sfx2/basedlgs.hxx>
25 #include <sfx2/tabdlg.hxx>
26 
27 namespace 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&, void);
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  virtual void dispose() override;
74 
75  static VclPtr<SfxTabPage> Create( TabPageParent pParent, const SfxItemSet* rSet );
76 
77  virtual bool FillItemSet( SfxItemSet* rSet ) override;
78  virtual void Reset( const SfxItemSet* rSet ) override;
79  virtual void FillUserData() override;
80  };
81 
88  {
89  private:
91 
92  protected:
93  RegistrationItemSetHolder( const SfxItemSet& _rMasterSet );
95 
96  protected:
98  };
99 
102  {
103  public:
104  DatabaseRegistrationDialog(weld::Window* pParent, const SfxItemSet& rAttr);
105 
106  virtual short run() override;
107  };
108 }
109 
110 #endif // INCLUDED_CUI_SOURCE_INC_DBREGISTER_HXX
111 
112 
113 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void dispose() override
Definition: dbregister.cxx:132
virtual short run() override
Definition: dbregister.cxx:82
void openLinkDialog(const OUString &sOldName, const OUString &sOldLocation, int nEntry=-1)
opens the LinkDialog to create a register pair
Definition: dbregister.cxx:286
sal_uIntPtr sal_uLong
std::unique_ptr< weld::Button > m_xNew
Definition: dbregister.hxx:36
std::unique_ptr< weld::TreeView > m_xPathBox
Definition: dbregister.hxx:39
virtual ~DbRegistrationOptionsPage() override
Definition: dbregister.cxx:127
DbRegistrationOptionsPage(TabPageParent pParent, const SfxItemSet &rSet)
Definition: dbregister.cxx:96
void insertNewEntry(const OUString &_sName, const OUString &_sLocation, const bool bReadOnly)
inserts a new entry in the tablistbox
Definition: dbregister.cxx:275
virtual bool FillItemSet(SfxItemSet *rSet) override
Definition: dbregister.cxx:145
static VclPtr< SfxTabPage > Create(TabPageParent pParent, const SfxItemSet *rSet)
Definition: dbregister.cxx:139
helper for DatabaseRegistrationDialog
Definition: dbregister.hxx:87
RegistrationItemSetHolder(const SfxItemSet &_rMasterSet)
Definition: dbregister.cxx:61
std::unique_ptr< weld::Button > m_xDelete
Definition: dbregister.hxx:38
std::unique_ptr< weld::Button > m_xEdit
Definition: dbregister.hxx:37
DatabaseRegistrationDialog(weld::Window *pParent, const SfxItemSet &rAttr)
Definition: dbregister.cxx:73
std::unique_ptr< weld::TreeIter > m_xIter
Definition: dbregister.hxx:40
virtual void Reset(const SfxItemSet *rSet) override
Definition: dbregister.cxx:170
DECL_LINK(NewHdl, weld::Button &, void)
virtual void FillUserData() override
Definition: dbregister.cxx:202
const SfxItemSet & getRegistrationItems() const
Definition: dbregister.hxx:97