diff options
author | Sarper Akdemir <sarper.akdemir@collabora.com> | 2023-02-21 02:33:01 +0300 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2023-02-23 12:19:23 +0000 |
commit | 9da4a2518eea880a2c80515d1346effa7c8c8c11 (patch) | |
tree | 8bd758cc4954b909bfc861f88c41138893f74585 /sw/source/uibase/app | |
parent | 37751d878b87765a4d2cfb50d0a39280c585ece1 (diff) |
related tdf#148966: rework sdr compatibility flags
Rework access/set methods for sdr compatibility flags so it
is possible to address a compatibility flag without directly
interfacing with SdrModel.
(preliminary work for exposing compatibility flags to
editeng)
Change-Id: I2fab219f9e125151916228300be2d9d88156d8a6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147407
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sw/source/uibase/app')
-rw-r--r-- | sw/source/uibase/app/docshini.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sw/source/uibase/app/docshini.cxx b/sw/source/uibase/app/docshini.cxx index 72e630ac02b2..5c629ebd3d54 100644 --- a/sw/source/uibase/app/docshini.cxx +++ b/sw/source/uibase/app/docshini.cxx @@ -35,6 +35,7 @@ #include <editeng/autokernitem.hxx> #include <com/sun/star/document/UpdateDocMode.hpp> #include <com/sun/star/i18n/ScriptType.hpp> +#include <svx/compatflags.hxx> #include <svx/svxids.hrc> #include <editeng/fhgtitem.hxx> #include <editeng/fontitem.hxx> @@ -479,8 +480,10 @@ bool SwDocShell::Load( SfxMedium& rMedium ) SwDrawModel* pDrawModel = m_xDoc->getIDocumentDrawModelAccess().GetDrawModel(); if (pDrawModel) { - pDrawModel->SetAnchoredTextOverflowLegacy(true); // legacy processing for tdf#99729 - pDrawModel->SetLegacySingleLineFontwork(true); // legacy processing for tdf#148000 + pDrawModel->SetCompatibilityFlag(SdrCompatibilityFlag::AnchoredTextOverflowLegacy, + true); // legacy processing for tdf#99729 + pDrawModel->SetCompatibilityFlag(SdrCompatibilityFlag::LegacySingleLineFontwork, + true); // legacy processing for tdf#148000 } } |