summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorMathias Hasselmann <mathias@openismus.com>2013-03-21 07:58:31 +0100
committerFridrich Strba <fridrich@documentfoundation.org>2013-03-24 14:42:41 +0000
commit379988085239fdd93dd87870bcc4966aeaa9b396 (patch)
tree1ef44b35bda9d00c944d175140c4ddaf3aadff5d /dbaccess
parentd72b4106e2b1525f76ea4d91458204aeec8b408e (diff)
Add builder support for a few dbaui controls
This adds the needed methods and catalog definitions for dbaui::OGenericAdministrationPage, dbaui::OpenDocumentButton and dbaui::OpenDocumentListBox. Change-Id: I5b883c39f1cb9623c357e5ebec1632816547ff03 Reviewed-on: https://gerrit.libreoffice.org/2886 Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu> Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/control/opendoccontrols.cxx27
-rw-r--r--dbaccess/source/ui/dlg/adminpages.cxx13
-rw-r--r--dbaccess/source/ui/dlg/adminpages.hxx1
-rw-r--r--dbaccess/source/ui/inc/opendoccontrols.hxx2
4 files changed, 43 insertions, 0 deletions
diff --git a/dbaccess/source/ui/control/opendoccontrols.cxx b/dbaccess/source/ui/control/opendoccontrols.cxx
index 1ae7fe74a4b4..907840e6ff7f 100644
--- a/dbaccess/source/ui/control/opendoccontrols.cxx
+++ b/dbaccess/source/ui/control/opendoccontrols.cxx
@@ -38,6 +38,7 @@
#include <tools/urlobj.hxx>
#include <svl/filenotation.hxx>
#include <osl/diagnose.h>
+#include <vcl/builder.hxx>
//........................................................................
namespace dbaui
@@ -168,6 +169,19 @@ namespace dbaui
}
//--------------------------------------------------------------------
+ OpenDocumentButton::OpenDocumentButton( Window* _pParent, const sal_Char* _pAsciiModuleName )
+ :PushButton( _pParent )
+ {
+ impl_init( _pAsciiModuleName );
+ }
+
+ //--------------------------------------------------------------------
+ extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeOpenDocumentButton( Window *pParent, VclBuilder::stringmap & )
+ {
+ return new OpenDocumentButton( pParent, "com.sun.star.sdb.OfficeDatabaseDocument" );
+ }
+
+ //--------------------------------------------------------------------
void OpenDocumentButton::impl_init( const sal_Char* _pAsciiModuleName )
{
OSL_ENSURE( _pAsciiModuleName, "OpenDocumentButton::impl_init: invalid module name!" );
@@ -198,6 +212,19 @@ namespace dbaui
}
//--------------------------------------------------------------------
+ OpenDocumentListBox::OpenDocumentListBox( Window* _pParent, const sal_Char* _pAsciiModuleName )
+ :ListBox( _pParent, WB_BORDER | WB_DROPDOWN )
+ {
+ impl_init( _pAsciiModuleName );
+ }
+
+ //--------------------------------------------------------------------
+ extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeOpenDocumentListBox( Window *pParent, VclBuilder::stringmap & )
+ {
+ return new OpenDocumentListBox( pParent, "com.sun.star.sdb.OfficeDatabaseDocument" );
+ }
+
+ //--------------------------------------------------------------------
void OpenDocumentListBox::impl_init( const sal_Char* _pAsciiModuleName )
{
OSL_ENSURE( _pAsciiModuleName, "OpenDocumentListBox::impl_init: invalid module name!" );
diff --git a/dbaccess/source/ui/dlg/adminpages.cxx b/dbaccess/source/ui/dlg/adminpages.cxx
index 46840d8ad32e..27ce0561fd2d 100644
--- a/dbaccess/source/ui/dlg/adminpages.cxx
+++ b/dbaccess/source/ui/dlg/adminpages.cxx
@@ -78,6 +78,19 @@ namespace dbaui
}
//-------------------------------------------------------------------------
+ OGenericAdministrationPage::OGenericAdministrationPage(Window* _pParent, const rtl::OString& _rId, const rtl::OUString& _rUIXMLDescription, const SfxItemSet& _rAttrSet)
+ :SfxTabPage(_pParent, _rId, _rUIXMLDescription, _rAttrSet)
+ ,m_abEnableRoadmap(sal_False)
+ ,m_pAdminDialog(NULL)
+ ,m_pItemSetHelper(NULL)
+ ,m_pFT_HeaderText(NULL)
+ {
+ DBG_CTOR(OGenericAdministrationPage,NULL);
+
+ SetExchangeSupport(sal_True);
+ }
+
+ //-------------------------------------------------------------------------
OGenericAdministrationPage::~OGenericAdministrationPage()
{
DELETEZ(m_pFT_HeaderText);
diff --git a/dbaccess/source/ui/dlg/adminpages.hxx b/dbaccess/source/ui/dlg/adminpages.hxx
index 7e5dcdcc6a2c..e9e11c8a853e 100644
--- a/dbaccess/source/ui/dlg/adminpages.hxx
+++ b/dbaccess/source/ui/dlg/adminpages.hxx
@@ -109,6 +109,7 @@ namespace dbaui
m_xORB;
public:
OGenericAdministrationPage(Window* _pParent, const ResId& _rId, const SfxItemSet& _rAttrSet);
+ OGenericAdministrationPage(Window* _pParent, const rtl::OString& _rId, const rtl::OUString& _rUIXMLDescription, const SfxItemSet& _rAttrSet);
~OGenericAdministrationPage();
/// set a handler which gets called every time something on the page has been modified
diff --git a/dbaccess/source/ui/inc/opendoccontrols.hxx b/dbaccess/source/ui/inc/opendoccontrols.hxx
index 501e045672da..617476d4c861 100644
--- a/dbaccess/source/ui/inc/opendoccontrols.hxx
+++ b/dbaccess/source/ui/inc/opendoccontrols.hxx
@@ -45,6 +45,7 @@ namespace dbaui
public:
OpenDocumentButton( Window* _pParent, const sal_Char* _pAsciiModuleName, const ResId& _rResId );
+ OpenDocumentButton( Window* _pParent, const sal_Char* _pAsciiModuleName );
protected:
void impl_init( const sal_Char* _pAsciiModuleName );
@@ -64,6 +65,7 @@ namespace dbaui
public:
OpenDocumentListBox( Window* _pParent, const sal_Char* _pAsciiModuleName, const ResId& _rResId );
+ OpenDocumentListBox( Window* _pParent, const sal_Char* _pAsciiModuleName );
String GetSelectedDocumentURL() const;
String GetSelectedDocumentFilter() const;