createUnoPage: use own subclass of page uno object
This commit is contained in:
parent
b3d46b16be
commit
7de063b822
2 changed files with 12 additions and 5 deletions
|
@ -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();
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -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<cppu::OWeakObject*>( new ScPageObj( this ) );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue