diff options
author | Pranav Kant <pranavk@collabora.co.uk> | 2017-02-19 15:05:32 +0530 |
---|---|---|
committer | Pranav Kant <pranavk@collabora.co.uk> | 2017-02-20 13:39:41 +0530 |
commit | b46f3cd56fc5bcd419d79d1f615c3e1921ec5bb0 (patch) | |
tree | 890e0cc5773fb55409db92704c0fefa34ecfa7b4 /sd | |
parent | 5382fdaf2d651a393a1caf2e09351c77cb84c753 (diff) |
sd: Per view author names
Change-Id: Ie7146ec289263eb3240a4b9270c4a88837ebd2ad
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/inc/View.hxx | 3 | ||||
-rw-r--r-- | sd/source/ui/unoidl/unomodel.cxx | 2 |
2 files changed, 5 insertions, 0 deletions
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<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 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<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. |