summaryrefslogtreecommitdiff
path: root/svx/source/unodraw
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2008-08-19 22:30:29 +0000
committerVladimir Glazounov <vg@openoffice.org>2008-08-19 22:30:29 +0000
commitc8b3138501b1a5965039a96a8d7d1b3d7809a0f4 (patch)
treec7925d6bf06558776745177b64d1f7ea789862d0 /svx/source/unodraw
parenta65e3b6718423ac4f2fd241173702d8095a9afac (diff)
INTEGRATION: CWS aw033 (1.37.12); FILE MERGED
2008/07/11 11:36:12 aw 1.37.12.6: RESYNC: (1.46-1.47); FILE MERGED 2008/05/14 14:06:54 aw 1.37.12.5: RESYNC: (1.45-1.46); FILE MERGED 2008/03/14 13:52:41 cl 1.37.12.4: RESYNC: (1.43-1.45); FILE MERGED 2007/08/09 19:16:03 aw 1.37.12.3: RESYNC: (1.40-1.43); FILE MERGED 2006/11/28 19:51:26 aw 1.37.12.2: RESYNC: (1.37-1.40); FILE MERGED 2006/11/07 15:52:22 aw 1.37.12.1: #i39532# changed various aspevcts of XPrimitive2D implementations
Diffstat (limited to 'svx/source/unodraw')
-rw-r--r--svx/source/unodraw/unopage.cxx32
1 files changed, 31 insertions, 1 deletions
diff --git a/svx/source/unodraw/unopage.cxx b/svx/source/unodraw/unopage.cxx
index 2dd56d390c..14a2ba23f7 100644
--- a/svx/source/unodraw/unopage.cxx
+++ b/svx/source/unodraw/unopage.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: unopage.cxx,v $
- * $Revision: 1.49 $
+ * $Revision: 1.50 $
*
* This file is part of OpenOffice.org.
*
@@ -983,3 +983,33 @@ void SvxDrawPage::ChangeModel( SdrModel* pNewModel )
}
}
+/** returns a StarOffice API wrapper for the given SdrPage */
+uno::Reference< drawing::XDrawPage > GetXDrawPageForSdrPage( SdrPage* pPage ) throw ()
+{
+ if(pPage)
+ {
+ uno::Reference< drawing::XDrawPage > xDrawPage( pPage->getUnoPage(), uno::UNO_QUERY );
+
+ return xDrawPage;
+ }
+
+ return uno::Reference< drawing::XDrawPage >();
+}
+
+/** returns the SdrObject from the given StarOffice API wrapper */
+SdrPage* GetSdrPageFromXDrawPage( uno::Reference< drawing::XDrawPage > xDrawPage ) throw()
+{
+ if(xDrawPage.is())
+ {
+ SvxDrawPage* pDrawPage = SvxDrawPage::getImplementation( xDrawPage );
+
+ if(pDrawPage)
+ {
+ return pDrawPage->GetSdrPage();
+ }
+ }
+
+ return NULL;
+}
+
+// eof