summaryrefslogtreecommitdiff
path: root/sc/inc
diff options
context:
space:
mode:
authorNiklas Nebel <nn@openoffice.org>2002-08-26 17:15:47 +0000
committerNiklas Nebel <nn@openoffice.org>2002-08-26 17:15:47 +0000
commit45709c3ca1f18caef2353c8add21ec172dfd41e9 (patch)
tree0cc346ee826e3e52fade97b69f1452a2dcb0d8b8 /sc/inc
parenta1132ef112cdf2efa1198ab5bdb64b6968ea1d65 (diff)
#102510# implementation of XRenderable for PDF export
Diffstat (limited to 'sc/inc')
-rw-r--r--sc/inc/cellsuno.hxx8
-rw-r--r--sc/inc/docuno.hxx30
-rw-r--r--sc/inc/unonames.hxx8
3 files changed, 40 insertions, 6 deletions
diff --git a/sc/inc/cellsuno.hxx b/sc/inc/cellsuno.hxx
index cd80322fcb62..325f900740cd 100644
--- a/sc/inc/cellsuno.hxx
+++ b/sc/inc/cellsuno.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: cellsuno.hxx,v $
*
- * $Revision: 1.14 $
+ * $Revision: 1.15 $
*
- * last change: $Author: sab $ $Date: 2001-10-24 08:33:08 $
+ * last change: $Author: nn $ $Date: 2002-08-26 18:13:38 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -282,6 +282,7 @@ private:
ScRangeList aRanges;
BOOL bChartColAsHdr;
BOOL bChartRowAsHdr;
+ BOOL bCursorOnly;
BOOL bValueChangePosted;
XPropertyChangeListenerArr_Impl aValueListeners;
@@ -348,6 +349,9 @@ public:
void SetNewRange(const ScRange& rNew); // fuer Cursor
void SetNewRanges(const ScRangeList& rNew);
+ void SetCursorOnly(BOOL bSet);
+ BOOL IsCursorOnly() const { return bCursorOnly; }
+
// XSheetOperation
virtual double SAL_CALL computeFunction( ::com::sun::star::sheet::GeneralFunction nFunction )
throw(::com::sun::star::uno::Exception,
diff --git a/sc/inc/docuno.hxx b/sc/inc/docuno.hxx
index 78abb6c7f21e..d6909f7adf42 100644
--- a/sc/inc/docuno.hxx
+++ b/sc/inc/docuno.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: docuno.hxx,v $
*
- * $Revision: 1.10 $
+ * $Revision: 1.11 $
*
- * last change: $Author: hr $ $Date: 2001-10-23 11:14:49 $
+ * last change: $Author: nn $ $Date: 2002-08-26 18:13:38 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -78,6 +78,9 @@
#include <svx/fmdmod.hxx>
#endif
+#ifndef _COM_SUN_STAR_VIEW_XRENDERABLE_HPP_
+#include <com/sun/star/view/XRenderable.hpp>
+#endif
#ifndef _COM_SUN_STAR_STYLE_XSTYLEFAMILIESSUPPLIER_HPP_
#include <com/sun/star/style/XStyleFamiliesSupplier.hpp>
#endif
@@ -155,6 +158,7 @@
class ScDocShell;
class ScAnnotationObj;
+class ScMarkData;
class ScTableColumnObj;
class ScTableRowObj;
class ScTableSheetObj;
@@ -172,6 +176,7 @@ class ScModelObj : public SfxBaseModel,
public com::sun::star::sheet::XConsolidatable,
public com::sun::star::sheet::XDocumentAuditing,
public com::sun::star::style::XStyleFamiliesSupplier,
+ public com::sun::star::view::XRenderable,
public com::sun::star::document::XLinkTargetSupplier,
public com::sun::star::beans::XPropertySet,
public SvxFmMSFactory, // derived from XMultiServiceFactory
@@ -189,6 +194,9 @@ private:
com::sun::star::uno::Reference<com::sun::star::uno::XInterface> xDrawMarkerTab;
com::sun::star::uno::Reference<com::sun::star::uno::XInterface> xDrawDashTab;
+ BOOL FillRenderMarkData( const com::sun::star::uno::Any& aSelection,
+ ScMarkData& rMark ) const;
+
public:
ScModelObj(ScDocShell* pDocSh);
virtual ~ScModelObj();
@@ -221,6 +229,24 @@ public:
virtual ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > SAL_CALL
getStyleFamilies() throw(::com::sun::star::uno::RuntimeException);
+ // XRenderable
+ virtual sal_Int32 SAL_CALL getRendererCount( const ::com::sun::star::uno::Any& aSelection,
+ const ::com::sun::star::uno::Sequence<
+ ::com::sun::star::beans::PropertyValue >& xOptions )
+ throw (::com::sun::star::lang::IllegalArgumentException,
+ ::com::sun::star::uno::RuntimeException);
+ virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL
+ getRenderer( sal_Int32 nRenderer, const ::com::sun::star::uno::Any& aSelection,
+ const ::com::sun::star::uno::Sequence<
+ ::com::sun::star::beans::PropertyValue >& xOptions )
+ throw (::com::sun::star::lang::IllegalArgumentException,
+ ::com::sun::star::uno::RuntimeException);
+ virtual void SAL_CALL render( sal_Int32 nRenderer, const ::com::sun::star::uno::Any& aSelection,
+ const ::com::sun::star::uno::Sequence<
+ ::com::sun::star::beans::PropertyValue >& xOptions )
+ throw (::com::sun::star::lang::IllegalArgumentException,
+ ::com::sun::star::uno::RuntimeException);
+
// XLinkTargetSupplier
virtual ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > SAL_CALL
getLinks() throw(::com::sun::star::uno::RuntimeException);
diff --git a/sc/inc/unonames.hxx b/sc/inc/unonames.hxx
index d88ee2e81663..3a8afc5846e5 100644
--- a/sc/inc/unonames.hxx
+++ b/sc/inc/unonames.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: unonames.hxx,v $
*
- * $Revision: 1.42 $
+ * $Revision: 1.43 $
*
- * last change: $Author: dr $ $Date: 2002-07-11 10:46:48 $
+ * last change: $Author: nn $ $Date: 2002-08-26 18:13:38 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -506,5 +506,9 @@
#define SC_UNONAME_TITLE "Title"
#define SC_UNONAME_CLOSEONUP "CloseOnMouseRelease"
+// XRenderable
+#define SC_UNONAME_PAGESIZE "PageSize"
+#define SC_UNONAME_RENDERDEV "RenderDevice"
+
#endif