From eb643e35d0d1420a2a55eeadfd2e4c9a6073c198 Mon Sep 17 00:00:00 2001 From: Pranav Kant Date: Sun, 19 Feb 2017 15:05:32 +0530 Subject: sd: Per view author names Change-Id: Ie7146ec289263eb3240a4b9270c4a88837ebd2ad (cherry picked from commit b46f3cd56fc5bcd419d79d1f615c3e1921ec5bb0) --- sd/source/ui/inc/View.hxx | 3 +++ sd/source/ui/unoidl/unomodel.cxx | 2 ++ 2 files changed, 5 insertions(+) (limited to 'sd') 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 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()) pDrawView->SetPageShadowVisible(rValue.Value.get()); + else if (rValue.Name == ".uno:Author" && rValue.Value.has()) + pDrawView->SetAuthor(rValue.Value.get()); } // Disable map mode, so that it's possible to send mouse event coordinates // in logic units. -- cgit v1.2.3