summaryrefslogtreecommitdiff
path: root/dbaccess/inc
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2008-04-04 13:29:58 +0000
committerKurt Zenker <kz@openoffice.org>2008-04-04 13:29:58 +0000
commite93f406613e71e435c9d3457220b276e5384d2a5 (patch)
treee925a54b7b7d0ee73ca4d6c3b2ac2bf6471db1e1 /dbaccess/inc
parent2fd538ed2fdaa04b1b635af8454eed5a7cb7d30c (diff)
INTEGRATION: CWS titles02 (1.5.42); FILE MERGED
2007/12/20 09:26:10 oj 1.5.42.2: titles 2007/12/10 11:37:48 oj 1.5.42.1: #i45909# #i45617# #i71469# change title handling
Diffstat (limited to 'dbaccess/inc')
-rw-r--r--dbaccess/inc/genericcontroller.hxx47
1 files changed, 30 insertions, 17 deletions
diff --git a/dbaccess/inc/genericcontroller.hxx b/dbaccess/inc/genericcontroller.hxx
index 68c3bd2ca56d..9895e671a3d7 100644
--- a/dbaccess/inc/genericcontroller.hxx
+++ b/dbaccess/inc/genericcontroller.hxx
@@ -4,9 +4,9 @@
*
* $RCSfile: genericcontroller.hxx,v $
*
- * $Revision: 1.7 $
+ * $Revision: 1.8 $
*
- * last change: $Author: kz $ $Date: 2008-03-06 17:55:59 $
+ * last change: $Author: kz $ $Date: 2008-04-04 14:29:58 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -49,6 +49,8 @@
#include <com/sun/star/frame/XDispatchInformationProvider.hpp>
#include <com/sun/star/frame/XDispatchProviderInterceptor.hpp>
#include <com/sun/star/frame/XFrameActionListener.hpp>
+#include <com/sun/star/frame/XTitle.hpp>
+#include <com/sun/star/frame/XTitleChangeBroadcaster.hpp>
#include <com/sun/star/frame/XLayoutManager.hpp>
#include <com/sun/star/lang/XInitialization.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
@@ -65,7 +67,8 @@
#include <comphelper/namedvaluecollection.hxx>
#include <comphelper/stl_types.hxx>
#include <connectivity/dbexception.hxx>
-#include <cppuhelper/compbase9.hxx>
+#include <cppuhelper/compbase10.hxx>
+#include <cppuhelper/compbase1.hxx>
#include <cppuhelper/interfacecontainer.h>
#include <boost/optional.hpp>
@@ -183,9 +186,8 @@ namespace dbaui
}
};
- typedef ::comphelper::OBaseMutex OGenericUnoController_MBASE;
- typedef ::cppu::WeakComponentImplHelper9 < ::com::sun::star::frame::XDispatch
+ typedef ::cppu::WeakComponentImplHelper10 < ::com::sun::star::frame::XDispatch
, ::com::sun::star::frame::XDispatchProviderInterceptor
, ::com::sun::star::util::XModifyListener
, ::com::sun::star::view::XSelectionSupplier
@@ -193,13 +195,18 @@ namespace dbaui
, ::com::sun::star::lang::XInitialization
, ::com::sun::star::lang::XServiceInfo
, ::com::sun::star::frame::XDispatchInformationProvider
- , ::com::sun::star::frame::XController
- > OGenericUnoController_Base;
+ , ::com::sun::star::frame::XTitle
+ , ::com::sun::star::frame::XTitleChangeBroadcaster
+ > OGenericUnoController_COMPBASE;
+
+ typedef ::cppu::ImplHelper1 < ::com::sun::star::frame::XController
+ > OGenericUnoController_CTRBASE;
// ====================================================================
class DBACCESS_DLLPUBLIC OGenericUnoController
:public OGenericUnoController_MBASE
,public OGenericUnoController_Base
+ ,public OGenericUnoController_CTRBASE
,public IController
{
private:
@@ -242,12 +249,14 @@ namespace dbaui
::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatchProvider > m_xSlaveDispatcher; // for intercepting dispatches
::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatchProvider > m_xMasterDispatcher; // dito
::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;
sal_Bool m_bCurrentlyModified : 1;
+ sal_Bool m_bExternalTitle : 1;
@@ -361,24 +370,21 @@ namespace dbaui
*/
::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow> getTopMostContainerWindow() const;
- /** sets the title on the current frame
- @param _sName
- The title of the document
- */
- virtual void setTitle(const ::rtl::OUString& _sName);
-
// XInitialize will be called inside initialize
virtual void impl_initialize();
- /** updateTitle will be called when a new frame is attached
- */
- virtual void updateTitle( );
+ virtual ::rtl::OUString getPrivateTitle() const { return ::rtl::OUString(); }
+
+ ::com::sun::star::uno::Reference< ::com::sun::star::frame::XTitle > impl_getTitleHelper_throw();
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > getPrivateModel() const
+ {
+ return ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >();
+ }
virtual void startFrameListening( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& _rxFrame );
virtual void stopFrameListening( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& _rxFrame );
virtual ~OGenericUnoController();
-
private:
// invalidate features - implementation
void InvalidateAll_Impl();
@@ -498,6 +504,13 @@ namespace dbaui
protected:
OGenericUnoController(); // never implemented
+ // XTitle
+ virtual ::rtl::OUString SAL_CALL getTitle( ) throw (::com::sun::star::uno::RuntimeException);
+ virtual void SAL_CALL setTitle( const ::rtl::OUString& sTitle ) throw (::com::sun::star::uno::RuntimeException);
+
+ // XTitleChangeBroadcaster
+ virtual void SAL_CALL addTitleChangeListener( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XTitleChangeListener >& xListener ) throw (::com::sun::star::uno::RuntimeException);
+ virtual void SAL_CALL removeTitleChangeListener( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XTitleChangeListener >& xListener ) throw (::com::sun::star::uno::RuntimeException);
};
}