summaryrefslogtreecommitdiffstats
path: root/sd
diff options
context:
space:
mode:
authorAndrzej Hunt <andrzej.hunt@collabora.com>2014-07-29 13:19:44 +0200
committerAndrzej Hunt <andrzej.hunt@collabora.com>2014-07-30 12:44:02 +0200
commita965dfd7ea87a5aba4e4aefa21049159e56579cf (patch)
treedd37fc1e333e29fc84438621f005be70dc51a07e /sd
parentgtktiledviewer: show part names in selector. (diff)
downloadcore-a965dfd7ea87a5aba4e4aefa21049159e56579cf.tar.gz
core-a965dfd7ea87a5aba4e4aefa21049159e56579cf.zip
Impress: Implement getPartName.
Change-Id: I614838505fef901fc37e8d3906bb59c60b034453
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/inc/unomodel.hxx1
-rw-r--r--sd/source/ui/unoidl/unomodel.cxx7
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();