diff options
author | Frank Schoenheit [fs] <frank.schoenheit@sun.com> | 2010-02-09 17:26:40 +0100 |
---|---|---|
committer | Frank Schoenheit [fs] <frank.schoenheit@sun.com> | 2010-02-09 17:26:40 +0100 |
commit | d8352bc6e00ae778fb060a0124ee98db3c76d6cf (patch) | |
tree | cf18b5a4b49d13b67d2b1c6ffbb7d137f55c01e4 /dbaccess/inc | |
parent | 05e2a9183ccb47ed1a20df5e72c26353aed985eb (diff) |
autorecovery: make m_pView a private member of the GenericController, with defined access methods
Diffstat (limited to 'dbaccess/inc')
-rw-r--r-- | dbaccess/inc/genericcontroller.hxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/dbaccess/inc/genericcontroller.hxx b/dbaccess/inc/genericcontroller.hxx index 33c315a843a2..c35e166d374a 100644 --- a/dbaccess/inc/genericcontroller.hxx +++ b/dbaccess/inc/genericcontroller.hxx @@ -222,9 +222,10 @@ namespace dbaui ::std::auto_ptr< OGenericUnoController_Data > m_pData; + ODataView* m_pView; // our (VCL) "main window" #ifdef DBG_UTIL - bool m_bDescribingSupportedFeatures; + bool m_bDescribingSupportedFeatures; #endif protected: @@ -258,7 +259,6 @@ namespace dbaui ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > m_xDatabaseContext; ::com::sun::star::uno::Reference< ::com::sun::star::frame::XTitle > m_xTitleHelper; - ODataView* m_pView; // our (VCL) "main window" sal_Bool m_bPreview; sal_Bool m_bReadOnly; @@ -416,7 +416,9 @@ namespace dbaui public: ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > getORB() const { return m_xServiceFactory; } - ODataView* getView() const { return m_pView; } + ODataView* getView() const { return m_pView; } + void setView( ODataView& i_rView ) { m_pView = &i_rView; } + void clearView() { m_pView = NULL; } // shows a error box if the SQLExceptionInfo is valid void showError(const ::dbtools::SQLExceptionInfo& _rInfo); |