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&, 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:
92  RegistrationItemSetHolder( const SfxItemSet& _rMasterSet );
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 #endif // INCLUDED_CUI_SOURCE_INC_DBREGISTER_HXX
110 
111 
112 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual short run() override
Definition: dbregister.cxx:68
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rSet)
Definition: dbregister.cxx:119
void openLinkDialog(const OUString &sOldName, const OUString &sOldLocation, int nEntry=-1)
opens the LinkDialog to create a register pair
Definition: dbregister.cxx:267
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:113
void insertNewEntry(const OUString &_sName, const OUString &_sLocation, const bool bReadOnly)
inserts a new entry in the tablistbox
Definition: dbregister.cxx:256
virtual bool FillItemSet(SfxItemSet *rSet) override
Definition: dbregister.cxx:125
helper for DatabaseRegistrationDialog
Definition: dbregister.hxx:86
RegistrationItemSetHolder(const SfxItemSet &_rMasterSet)
Definition: dbregister.cxx:48
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:60
std::unique_ptr< weld::TreeIter > m_xIter
Definition: dbregister.hxx:40
virtual void Reset(const SfxItemSet *rSet) override
Definition: dbregister.cxx:150
DbRegistrationOptionsPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
Definition: dbregister.cxx:82
DECL_LINK(NewHdl, weld::Button &, void)
virtual void FillUserData() override
Definition: dbregister.cxx:182
const SfxItemSet & getRegistrationItems() const
Definition: dbregister.hxx:96