diff options
author | Andrzej Hunt <andrzej.hunt@collabora.com> | 2014-07-29 13:19:44 +0200 |
---|---|---|
committer | Andrzej Hunt <andrzej.hunt@collabora.com> | 2014-07-30 12:44:02 +0200 |
commit | a965dfd7ea87a5aba4e4aefa21049159e56579cf (patch) | |
tree | dd37fc1e333e29fc84438621f005be70dc51a07e /sd | |
parent | 36e5f73637194afdb9ff0e320f6086be35c94a61 (diff) |
Impress: Implement getPartName.
Change-Id: I614838505fef901fc37e8d3906bb59c60b034453
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/inc/unomodel.hxx | 1 | ||||
-rw-r--r-- | sd/source/ui/unoidl/unomodel.cxx | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/sd/source/ui/inc/unomodel.hxx b/sd/source/ui/inc/unomodel.hxx index 6887663d27f2..8fa1904da7f1 100644 --- a/sd/source/ui/inc/unomodel.hxx +++ b/sd/source/ui/inc/unomodel.hxx @@ -233,6 +233,7 @@ public: virtual void setPart( int nPart ) SAL_OVERRIDE; virtual int getPart() SAL_OVERRIDE; virtual int getParts() SAL_OVERRIDE; + virtual OUString getPartName( int nPart ) SAL_OVERRIDE; // XComponent diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx index 5a162f2f4135..b6754ec498d3 100644 --- a/sd/source/ui/unoidl/unomodel.cxx +++ b/sd/source/ui/unoidl/unomodel.cxx @@ -2261,6 +2261,13 @@ int SdXImpressDocument::getPart() return 0; } +OUString SdXImpressDocument::getPartName( int nPart ) +{ + SdPage* pPage = mpDoc->GetSdPage( nPart, PK_STANDARD ); + assert( pPage ); + return pPage->GetName(); +} + Size SdXImpressDocument::getDocumentSize() { SdrPageView* pCurPageView = mpDoc->GetDocSh()->GetViewShell()->GetView()->GetSdrPageView(); |