summaryrefslogtreecommitdiff
path: root/include/svx/svdmodel.hxx
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2024-07-04 12:38:42 +0900
committerTomaž Vajngerl <quikee@gmail.com>2024-07-05 09:29:28 +0200
commit48e76366ea5932a75792ba5d5e6a474e8003733f (patch)
tree2ffbebbbe3f4ffd159816ad5225a9d6b21027677 /include/svx/svdmodel.hxx
parent269654fe179384f994bf0fe47e2af8c731cac377 (diff)
annot: don't show the annot. object if LOK and not PDF document
In online the client side comments/annotations are used, so to keep this behavior for presentations we only enable the core side rendering of annotations when the document is a PDF. No change in the desktop applitation. Change-Id: I50ffd1b6d81d2fcf6ef9f821e783ae228e39e4e6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169969 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'include/svx/svdmodel.hxx')
-rw-r--r--include/svx/svdmodel.hxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/svx/svdmodel.hxx b/include/svx/svdmodel.hxx
index f029d928aa8a..5f0175b57d7e 100644
--- a/include/svx/svdmodel.hxx
+++ b/include/svx/svdmodel.hxx
@@ -213,6 +213,7 @@ protected:
bool m_bStarDrawPreviewMode:1;
bool mbDisableTextEditUsesCommonUndoManager:1;
bool mbVOCInvalidationIsReliable:1; // does the app reliably invalidate the VOC, or do we need to rebuild the primitives on every render?
+ bool m_bIsPDFDocument:1;
sal_uInt16 m_nDefaultTabulator;
sal_uInt32 m_nMaxUndoCount;
@@ -581,6 +582,12 @@ public:
bool IsWriter() const { return m_bIsWriter; }
+ bool IsPDFDocument() const { return m_bIsPDFDocument; }
+ void setPDFDocument(bool bIsPDFDocument)
+ {
+ m_bIsPDFDocument = bIsPDFDocument;
+ }
+
// Used as a fallback in *::ReadUserDataSequence() to process common properties
void ReadUserDataSequenceValue(const css::beans::PropertyValue *pValue);
void WriteUserDataSequence(css::uno::Sequence < css::beans::PropertyValue >& rValues);