From 45709c3ca1f18caef2353c8add21ec172dfd41e9 Mon Sep 17 00:00:00 2001 From: Niklas Nebel Date: Mon, 26 Aug 2002 17:15:47 +0000 Subject: #102510# implementation of XRenderable for PDF export --- sc/inc/cellsuno.hxx | 8 ++++++-- sc/inc/docuno.hxx | 30 ++++++++++++++++++++++++++++-- sc/inc/unonames.hxx | 8 ++++++-- 3 files changed, 40 insertions(+), 6 deletions(-) (limited to 'sc/inc') 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 #endif +#ifndef _COM_SUN_STAR_VIEW_XRENDERABLE_HPP_ +#include +#endif #ifndef _COM_SUN_STAR_STYLE_XSTYLEFAMILIESSUPPLIER_HPP_ #include #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 xDrawMarkerTab; com::sun::star::uno::Reference 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 -- cgit