diff options
author | Christian Lippka <cl@openoffice.org> | 2000-11-26 13:10:44 +0000 |
---|---|---|
committer | Christian Lippka <cl@openoffice.org> | 2000-11-26 13:10:44 +0000 |
commit | eff1f84ddaab371c66e2d45a9208dbe4b08f7631 (patch) | |
tree | a6fc7664a2fe317e3cbb079056c0b922bd7f9661 /svx/source/svdraw/svdmodel.cxx | |
parent | 99415442a4a7017d0e59b7c786c3b6a1b5995a56 (diff) |
#80699# new api to get StarOffice Api Wraper for svx implementations
Diffstat (limited to 'svx/source/svdraw/svdmodel.cxx')
-rw-r--r-- | svx/source/svdraw/svdmodel.cxx | 32 |
1 files changed, 30 insertions, 2 deletions
diff --git a/svx/source/svdraw/svdmodel.cxx b/svx/source/svdraw/svdmodel.cxx index 7c5806d353d3..d348a5d6c398 100644 --- a/svx/source/svdraw/svdmodel.cxx +++ b/svx/source/svdraw/svdmodel.cxx @@ -2,9 +2,9 @@ * * $RCSfile: svdmodel.cxx,v $ * - * $Revision: 1.10 $ + * $Revision: 1.11 $ * - * last change: $Author: dl $ $Date: 2000-11-21 14:20:34 $ + * last change: $Author: cl $ $Date: 2000-11-26 14:10:44 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -127,6 +127,8 @@ #include <outlobj.hxx> #endif +using namespace ::com::sun::star; + //////////////////////////////////////////////////////////////////////////////////////////////////// SdrModelInfo::SdrModelInfo(FASTBOOL bInit): @@ -2489,6 +2491,32 @@ void SdrModel::PostSave() } } +uno::Reference< uno::XInterface > SdrModel::getUnoModel() +{ + // try weak reference first + uno::Reference< uno::XInterface > xModel( mxUnoModel ); + +#ifndef SVX_LIGHT + if( !xModel.is() ) + { + // create one + xModel = createUnoModel(); + + mxUnoModel = xModel; + } +#endif + + return xModel; + +} + +uno::Reference< uno::XInterface > SdrModel::createUnoModel() +{ + DBG_ERROR( "SdrModel::createUnoModel() - base implementation should not be called!" ); + ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > xInt; + return xInt; +} + //////////////////////////////////////////////////////////////////////////////////////////////////// TYPEINIT1(SdrHint,SfxHint); |