From 4ed26badfd6fd9190cb6e54078b41eb38cb37dca Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 14 Jan 2022 14:19:45 +0000 Subject: use resolution independent positions for writer's screen-rendering MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit in favor of pushing it down to the text renderers and leave it to them to optimized as best they can the the rendering to make it look as well as possible. the separate ScrArray can then be dropped as a consequence Change-Id: Ic0849c091a36e1a90453771b1c91b8ff706b679e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128418 Tested-by: Caolán McNamara Reviewed-by: Caolán McNamara --- sw/inc/viewopt.hxx | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'sw/inc/viewopt.hxx') diff --git a/sw/inc/viewopt.hxx b/sw/inc/viewopt.hxx index a6ac48b31581..e8a1c299b496 100644 --- a/sw/inc/viewopt.hxx +++ b/sw/inc/viewopt.hxx @@ -126,12 +126,6 @@ namespace o3tl { template<> struct typed_flags : is_typed_flags {}; } -enum class GlyphPositioningMode { - Classic, - Layout, - LayoutAndMatchRender -}; - class SW_DLLPUBLIC SwViewOption { static Color s_aDocColor; // color of document boundaries @@ -169,7 +163,6 @@ class SW_DLLPUBLIC SwViewOption sal_uInt8 m_nPagePreviewRow; // Page Preview Row/Columns. sal_uInt8 m_nPagePreviewCol; // Page Preview Row/Columns. SwFillMode m_nShadowCursorFillMode; // FillMode for ShadowCursor. - GlyphPositioningMode m_eGlyphPositioningMode; // Positioning strategy for screen glyphs bool m_bReadonly : 1; // Readonly-Doc. bool m_bStarOneSetting : 1;// Prevent from UI automatics (no scrollbars in readonly documents). bool m_bIsPagePreview : 1; // The preview mustn't print field/footnote/... shadings. @@ -433,12 +426,6 @@ public: void SetPrinting(bool b) { SetCore2Option(b, ViewOptCoreFlags2::Printing); } - GlyphPositioningMode GetGlyphPositioningMode() const - { return m_eGlyphPositioningMode; } - - void SetGlyphPositioningMode(GlyphPositioningMode eMode) - { m_eGlyphPositioningMode = eMode; } - void SetCore2Option(bool b, ViewOptCoreFlags2 f) { if (b) @@ -710,7 +697,6 @@ inline void SwViewOption::SetUIOptions( const SwViewOption& rVOpt ) m_nUIOptions = rVOpt.m_nUIOptions; m_nTableDestination = rVOpt.m_nTableDestination; m_nShadowCursorFillMode = rVOpt.m_nShadowCursorFillMode; - m_eGlyphPositioningMode = rVOpt.m_eGlyphPositioningMode; } // Helper function for checking HTML-capabilities. -- cgit