summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/dlg/UserAdmin.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'dbaccess/source/ui/dlg/UserAdmin.hxx')
-rw-r--r--dbaccess/source/ui/dlg/UserAdmin.hxx13
1 files changed, 7 insertions, 6 deletions
diff --git a/dbaccess/source/ui/dlg/UserAdmin.hxx b/dbaccess/source/ui/dlg/UserAdmin.hxx
index 6f0720d7a43b..eeea260a60ee 100644
--- a/dbaccess/source/ui/dlg/UserAdmin.hxx
+++ b/dbaccess/source/ui/dlg/UserAdmin.hxx
@@ -41,11 +41,11 @@ namespace dbaui
class OUserAdmin : public OGenericAdministrationPage
{
protected:
- ListBox *m_pUSER;
- PushButton *m_pNEWUSER;
- PushButton *m_pCHANGEPWD;
- PushButton *m_pDELETEUSER;
- OTableGrantControl m_TableCtrl; // show the grant rights of one user
+ VclPtr<ListBox> m_pUSER;
+ VclPtr<PushButton> m_pNEWUSER;
+ VclPtr<PushButton> m_pCHANGEPWD;
+ VclPtr<PushButton> m_pDELETEUSER;
+ VclPtr<OTableGrantControl> m_TableCtrl; // show the grant rights of one user
::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection> m_xConnection;
::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > m_xUsers;
@@ -62,9 +62,10 @@ protected:
OUserAdmin( vcl::Window* pParent, const SfxItemSet& _rCoreAttrs);
public:
- static SfxTabPage* Create( vcl::Window* pParent, const SfxItemSet* _rAttrSet );
+ static VclPtr<SfxTabPage> Create( vcl::Window* pParent, const SfxItemSet* _rAttrSet );
virtual ~OUserAdmin();
+ virtual void dispose() SAL_OVERRIDE;
OUString GetUser();
// subclasses must override this, but it isn't pure virtual