summaryrefslogtreecommitdiff
path: root/sc/inc/viewuno.hxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@suse.com>2011-11-28 22:15:03 -0500
committerKohei Yoshida <kohei.yoshida@suse.com>2011-11-29 00:04:23 -0500
commit7a16f31752990abd1d0d4afc682259b67f24ea60 (patch)
treed82c52250d305d715904ba55870d43577fa28a81 /sc/inc/viewuno.hxx
parentffca779f3765f730cc9f4f416b728ecdf762931c (diff)
New UNO API to return currently selected sheets.
Both from the sheet view and preview modes.
Diffstat (limited to 'sc/inc/viewuno.hxx')
-rw-r--r--sc/inc/viewuno.hxx25
1 files changed, 22 insertions, 3 deletions
diff --git a/sc/inc/viewuno.hxx b/sc/inc/viewuno.hxx
index 2c129f8368fe..b062fd86a89c 100644
--- a/sc/inc/viewuno.hxx
+++ b/sc/inc/viewuno.hxx
@@ -38,6 +38,7 @@
#include <com/sun/star/sheet/XCellRangeReferrer.hpp>
#include <com/sun/star/sheet/XViewSplitable.hpp>
#include <com/sun/star/sheet/XViewFreezable.hpp>
+#include <com/sun/star/sheet/XSelectedSheetsSupplier.hpp>
#include <com/sun/star/sheet/XSpreadsheetView.hpp>
#include <com/sun/star/sheet/XEnhancedMouseClickBroadcaster.hpp>
#include <com/sun/star/sheet/XActivationBroadcaster.hpp>
@@ -189,7 +190,8 @@ class ScTabViewObj : public ScViewPaneBase,
public com::sun::star::sheet::XViewFreezable,
public com::sun::star::sheet::XRangeSelection,
public com::sun::star::lang::XUnoTunnel,
- public com::sun::star::datatransfer::XTransferableSupplier
+ public com::sun::star::datatransfer::XTransferableSupplier,
+ public com::sun::star::sheet::XSelectedSheetsSupplier
{
private:
SfxItemPropertySet aPropSet;
@@ -395,19 +397,36 @@ public:
virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId()
throw(::com::sun::star::uno::RuntimeException);
- //XTransferableSupplier
+ // XTransferableSupplier
virtual ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable > SAL_CALL getTransferable( ) throw (::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL insertTransferable( const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable >& xTrans ) throw (::com::sun::star::datatransfer::UnsupportedFlavorException, ::com::sun::star::uno::RuntimeException);
+
+ // XSelectedSheetsSupplier
+ virtual ::com::sun::star::uno::Sequence<sal_Int32> SAL_CALL getSelectedSheets()
+ throw(::com::sun::star::uno::RuntimeException);
};
-class ScPreviewObj : public SfxBaseController, SfxListener
+class ScPreviewObj : public SfxBaseController,
+ public SfxListener,
+ public com::sun::star::sheet::XSelectedSheetsSupplier
{
ScPreviewShell* mpViewShell;
public:
ScPreviewObj(ScPreviewShell* pViewSh);
virtual ~ScPreviewObj();
+ virtual ::com::sun::star::uno::Any SAL_CALL queryInterface(
+ const ::com::sun::star::uno::Type & rType)
+ throw(::com::sun::star::uno::RuntimeException);
+
+ virtual void SAL_CALL acquire() throw();
+ virtual void SAL_CALL release() throw();
+
virtual void Notify(SfxBroadcaster&, const SfxHint& rHint);
+
+ // XSelectedSheetsSupplier
+ virtual ::com::sun::star::uno::Sequence<sal_Int32> SAL_CALL getSelectedSheets()
+ throw(::com::sun::star::uno::RuntimeException);
};
#endif