Kaydet (Commit) a572986c authored tarafından Kurt Zenker's avatar Kurt Zenker

INTEGRATION: CWS dba30d (1.16.30); FILE MERGED

2008/06/10 11:04:41 fs 1.16.30.3: +describeCurrentSelectionForType
2008/06/01 21:02:33 fs 1.16.30.2: #i80943# more preparations for context menu interception, including some re-factoring
2008/05/29 11:32:26 fs 1.16.30.1: during #i80943#: refactoring: IController now passed around as reference, not as pointer
üst 0bd9b9d4
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite * OpenOffice.org - a multi-platform office productivity suite
* *
* $RCSfile: AppView.hxx,v $ * $RCSfile: AppView.hxx,v $
* $Revision: 1.16 $ * $Revision: 1.17 $
* *
* This file is part of OpenOffice.org. * This file is part of OpenOffice.org.
* *
...@@ -33,9 +33,6 @@ ...@@ -33,9 +33,6 @@
#ifndef DBAUI_DATAVIEW_HXX #ifndef DBAUI_DATAVIEW_HXX
#include "dataview.hxx" #include "dataview.hxx"
#endif #endif
#ifndef _COM_SUN_STAR_FRAME_XCONTROLLER_HPP_
#include <com/sun/star/frame/XController.hpp>
#endif
#ifndef _COM_SUN_STAR_CONTAINER_XNAMEACCESS_HPP_ #ifndef _COM_SUN_STAR_CONTAINER_XNAMEACCESS_HPP_
#include <com/sun/star/container/XNameAccess.hpp> #include <com/sun/star/container/XNameAccess.hpp>
#endif #endif
...@@ -45,6 +42,9 @@ ...@@ -45,6 +42,9 @@
#ifndef _COM_SUN_STAR_UCB_XCONTENT_HPP_ #ifndef _COM_SUN_STAR_UCB_XCONTENT_HPP_
#include <com/sun/star/ucb/XContent.hpp> #include <com/sun/star/ucb/XContent.hpp>
#endif #endif
#ifndef _COM_SUN_STAR_SDB_APPLICATION_NAMEDDATABASEOBJECT_HPP_
#include <com/sun/star/sdb/application/NamedDatabaseObject.hpp>
#endif
#ifndef _SV_FIXED_HXX #ifndef _SV_FIXED_HXX
#include <vcl/fixed.hxx> #include <vcl/fixed.hxx>
#endif #endif
...@@ -59,7 +59,6 @@ ...@@ -59,7 +59,6 @@
#endif #endif
namespace com{ namespace sun { namespace star { namespace beans { class XPropertySet; } } } } namespace com{ namespace sun { namespace star { namespace beans { class XPropertySet; } } } }
namespace com{ namespace sun { namespace star { namespace frame { class XController; } } } }
class Control; class Control;
class SvLBoxEntry; class SvLBoxEntry;
...@@ -67,10 +66,8 @@ class MnemonicGenerator; ...@@ -67,10 +66,8 @@ class MnemonicGenerator;
namespace dbaui namespace dbaui
{ {
class IApplicationElementNotification;
class IControlActionListener; class IControlActionListener;
class IContainerFoundListener; class IApplicationController;
class IViewChangeListener;
class OApplicationView; class OApplicationView;
class OApplicationDetailView; class OApplicationDetailView;
class OApplicationSwapWindow; class OApplicationSwapWindow;
...@@ -112,16 +109,10 @@ namespace dbaui ...@@ -112,16 +109,10 @@ namespace dbaui
}; };
private: private:
::com::sun::star::lang::Locale m_aLocale; ::com::sun::star::lang::Locale m_aLocale;
::com::sun::star::uno::Reference<
::com::sun::star::frame::XController>
m_xController;
::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent > ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent >
m_xObject; m_xObject;
OAppBorderWindow* m_pWin; OAppBorderWindow* m_pWin;
IApplicationElementNotification* m_pElementNotification; IApplicationController& m_rAppController;
IControlActionListener* m_pActonListener;
IContainerFoundListener* m_pContainerListener;
IViewChangeListener* m_pViewChangeListener;
ChildFocusState m_eChildFocus; ChildFocusState m_eChildFocus;
IClipboardTest* getActiveChild() const; IClipboardTest* getActiveChild() const;
...@@ -141,12 +132,7 @@ namespace dbaui ...@@ -141,12 +132,7 @@ namespace dbaui
public: public:
OApplicationView( Window* pParent OApplicationView( Window* pParent
,const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& ,const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >&
,IController* _pIController ,IApplicationController& _rAppController
,IApplicationElementNotification* _pController
,IControlActionListener* _pActonListener
,IContainerFoundListener* _pContainerListener
,IViewChangeListener* _pViewChangeListener
,const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XController>& _xController
,PreviewMode _ePreviewMode ,PreviewMode _ePreviewMode
); );
virtual ~OApplicationView(); virtual ~OApplicationView();
...@@ -161,13 +147,8 @@ namespace dbaui ...@@ -161,13 +147,8 @@ namespace dbaui
virtual long PreNotify( NotifyEvent& rNEvt ); virtual long PreNotify( NotifyEvent& rNEvt );
virtual void GetFocus(); virtual void GetFocus();
inline IApplicationElementNotification* getElementNotification() const { return m_pElementNotification; } inline IApplicationController& getAppController() const { return m_rAppController; }
inline IControlActionListener* getActionListener() const { return m_pActonListener; }
inline IContainerFoundListener* getContainerListener() const { return m_pContainerListener; }
inline IViewChangeListener* getViewChangeListener() const { return m_pViewChangeListener; }
inline const ::com::sun::star::lang::Locale& getLocale() const { return m_aLocale;} inline const ::com::sun::star::lang::Locale& getLocale() const { return m_aLocale;}
inline ::com::sun::star::uno::Reference<
::com::sun::star::frame::XController> getController() const { return m_xController; }
// IClipboardTest // IClipboardTest
virtual sal_Bool isCutAllowed(); virtual sal_Bool isCutAllowed();
...@@ -243,6 +224,20 @@ namespace dbaui ...@@ -243,6 +224,20 @@ namespace dbaui
*/ */
void getSelectionElementNames( ::std::vector< ::rtl::OUString>& _rNames ) const; void getSelectionElementNames( ::std::vector< ::rtl::OUString>& _rNames ) const;
/** describes the current selection for the given control
*/
void describeCurrentSelectionForControl(
const Control& _rControl,
::com::sun::star::uno::Sequence< ::com::sun::star::sdb::application::NamedDatabaseObject >& _out_rSelectedObjects
);
/** describes the current selection for the given ElementType
*/
void describeCurrentSelectionForType(
const ElementType _eType,
::com::sun::star::uno::Sequence< ::com::sun::star::sdb::application::NamedDatabaseObject >& _out_rSelectedObjects
);
/** select all names on the currently selected container. Non existence names where ignored. /** select all names on the currently selected container. Non existence names where ignored.
* *
* \param _aNames the element names * \param _aNames the element names
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment