From 7de063b822c134e14d56d33068a80fa804e97b1e Mon Sep 17 00:00:00 2001 From: Niklas Nebel Date: Fri, 16 Mar 2001 18:52:42 +0000 Subject: [PATCH] createUnoPage: use own subclass of page uno object --- sc/inc/drawpage.hxx | 5 +++-- sc/source/core/data/drawpage.cxx | 12 +++++++++--- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/sc/inc/drawpage.hxx b/sc/inc/drawpage.hxx index e75d2739f5e5..f0189798149f 100644 --- a/sc/inc/drawpage.hxx +++ b/sc/inc/drawpage.hxx @@ -2,9 +2,9 @@ * * $RCSfile: drawpage.hxx,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: hr $ $Date: 2000-09-18 16:44:49 $ + * last change: $Author: nn $ $Date: 2001-03-16 19:52:14 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -78,6 +78,7 @@ public: ~ScDrawPage(); virtual void RequestBasic(); + virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > createUnoPage(); }; diff --git a/sc/source/core/data/drawpage.cxx b/sc/source/core/data/drawpage.cxx index 7a6947469257..3a94baff85ca 100644 --- a/sc/source/core/data/drawpage.cxx +++ b/sc/source/core/data/drawpage.cxx @@ -2,9 +2,9 @@ * * $RCSfile: drawpage.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: nn $ $Date: 2000-12-11 18:02:18 $ + * last change: $Author: nn $ $Date: 2001-03-16 19:52:42 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -285,6 +285,7 @@ #include "drawpage.hxx" #include "drwlayer.hxx" #include "document.hxx" +#include "pageuno.hxx" // STATIC DATA ----------------------------------------------------------- @@ -312,6 +313,11 @@ void __EXPORT ScDrawPage::RequestBasic() SetBasic(pDocSh->GetBasic()); } - +// ----------------------------------------------------------------------- + +::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > ScDrawPage::createUnoPage() +{ + return static_cast( new ScPageObj( this ) ); +}