From b46f3cd56fc5bcd419d79d1f615c3e1921ec5bb0 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 --- 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 e19b7b3a302e..f6f84c0fea22 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 d529736cd159..6692e462aba9 100644 --- a/sd/source/ui/unoidl/unomodel.cxx +++ b/sd/source/ui/unoidl/unomodel.cxx @@ -2373,6 +2373,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