Kaydet (Commit) b46f3cd5 authored tarafından Pranav Kant's avatar Pranav Kant

sd: Per view author names

Change-Id: Ie7146ec289263eb3240a4b9270c4a88837ebd2ad
üst 5382fdaf
...@@ -227,6 +227,8 @@ public: ...@@ -227,6 +227,8 @@ public:
SdrObject* GetEmptyPresentationObject( PresObjKind eKind ); SdrObject* GetEmptyPresentationObject( PresObjKind eKind );
SdPage* GetPage(); SdPage* GetPage();
SdrObject* GetSelectedSingleObject(SdPage* pPage); SdrObject* GetSelectedSingleObject(SdPage* pPage);
void SetAuthor(const OUString& rAuthor) { m_sAuthor = rAuthor; }
const OUString& GetAuthor() { return m_sAuthor; }
protected: protected:
DECL_LINK( OnParagraphInsertedHdl, ::Outliner::ParagraphHdlParam, void ); DECL_LINK( OnParagraphInsertedHdl, ::Outliner::ParagraphHdlParam, void );
...@@ -261,6 +263,7 @@ protected: ...@@ -261,6 +263,7 @@ protected:
private: private:
::std::unique_ptr<ViewClipboard> mpClipboard; ::std::unique_ptr<ViewClipboard> mpClipboard;
OutlinerMasterViewFilter maMasterViewFilter; OutlinerMasterViewFilter maMasterViewFilter;
OUString m_sAuthor;
}; };
SdDrawDocument& View::GetDoc() const SdDrawDocument& View::GetDoc() const
......
...@@ -2373,6 +2373,8 @@ void SdXImpressDocument::initializeForTiledRendering(const css::uno::Sequence<cs ...@@ -2373,6 +2373,8 @@ void SdXImpressDocument::initializeForTiledRendering(const css::uno::Sequence<cs
const beans::PropertyValue& rValue = rArguments[i]; const beans::PropertyValue& rValue = rArguments[i];
if (rValue.Name == ".uno:ShowBorderShadow" && rValue.Value.has<bool>()) if (rValue.Name == ".uno:ShowBorderShadow" && rValue.Value.has<bool>())
pDrawView->SetPageShadowVisible(rValue.Value.get<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 // Disable map mode, so that it's possible to send mouse event coordinates
// in logic units. // in logic units.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment