summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorPranav Kant <pranavk@collabora.co.uk>2017-02-19 15:05:32 +0530
committerAndras Timar <andras.timar@collabora.com>2017-02-28 11:09:41 +0100
commiteb643e35d0d1420a2a55eeadfd2e4c9a6073c198 (patch)
treec0ed9abbd4d64b6267a0b2119cd988a0ed5d5c82 /sd
parent8d321f7a17474d00e130b590868537a2852b8645 (diff)
sd: Per view author names
Change-Id: Ie7146ec289263eb3240a4b9270c4a88837ebd2ad (cherry picked from commit b46f3cd56fc5bcd419d79d1f615c3e1921ec5bb0)
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/inc/View.hxx3
-rw-r--r--sd/source/ui/unoidl/unomodel.cxx2
2 files changed, 5 insertions, 0 deletions
diff --git a/sd/source/ui/inc/View.hxx b/sd/source/ui/inc/View.hxx
index 512c4fba2207..b88c780dfad7 100644
--- a/sd/source/ui/inc/View.hxx
+++ b/sd/source/ui/inc/View.hxx
@@ -227,6 +227,8 @@ public:
SdrObject* GetEmptyPresentationObject( PresObjKind eKind );
SdPage* GetPage();
SdrObject* GetSelectedSingleObject(SdPage* pPage);
+ void SetAuthor(const OUString& rAuthor) { m_sAuthor = rAuthor; }
+ const OUString& GetAuthor() { return m_sAuthor; }
protected:
DECL_LINK( OnParagraphInsertedHdl, ::Outliner::ParagraphHdlParam, void );
@@ -261,6 +263,7 @@ protected:
private:
::std::unique_ptr<ViewClipboard> mpClipboard;
OutlinerMasterViewFilter maMasterViewFilter;
+ OUString m_sAuthor;
};
SdDrawDocument& View::GetDoc() const
diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx
index 510256abd9ea..3780be01ae5c 100644
--- a/sd/source/ui/unoidl/unomodel.cxx
+++ b/sd/source/ui/unoidl/unomodel.cxx
@@ -2388,6 +2388,8 @@ void SdXImpressDocument::initializeForTiledRendering(const css::uno::Sequence<cs
const beans::PropertyValue& rValue = rArguments[i];
if (rValue.Name == ".uno:ShowBorderShadow" && rValue.Value.has<bool>())
pDrawView->SetPageShadowVisible(rValue.Value.get<bool>());
+ else if (rValue.Name == ".uno:Author" && rValue.Value.has<OUString>())
+ pDrawView->SetAuthor(rValue.Value.get<OUString>());
}
// Disable map mode, so that it's possible to send mouse event coordinates
// in logic units.