From ee2337c6bc391d0ab1d58123899920c6df0d2ef0 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 30 Oct 2023 15:22:28 +0300 Subject: =?UTF-8?q?fixes=20#3616=20(NewStory:=20=D0=BD=D0=B5=20=D1=80?= =?UTF-8?q?=D0=B0=D0=B1=D0=BE=D1=82=D0=B0=D1=8E=D1=82=20=D0=BD=D0=B0=D1=81?= =?UTF-8?q?=D1=82=D1=80=D0=BE=D0=B9=D0=BA=D0=B8=20=D1=86=D0=B2=D0=B5=D1=82?= =?UTF-8?q?=D0=B0=20=D1=81=D0=B2=D0=BE=D0=B5=D0=B3=D0=BE=20=D0=B8=D0=BC?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=20=D0=B8=20=D0=B8=D0=BC=D0=B5=D0=BD=D0=B8=20?= =?UTF-8?q?=D1=81=D0=BE=D0=B1=D0=B5=D1=81=D0=B5=D0=B4=D0=BD=D0=B8=D0=BA?= =?UTF-8?q?=D0=B0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/mTextControl/src/FormattedTextDraw.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'libs/mTextControl/src/FormattedTextDraw.h') diff --git a/libs/mTextControl/src/FormattedTextDraw.h b/libs/mTextControl/src/FormattedTextDraw.h index f9ff25f2b6..edfcac0d2f 100644 --- a/libs/mTextControl/src/FormattedTextDraw.h +++ b/libs/mTextControl/src/FormattedTextDraw.h @@ -17,17 +17,18 @@ class CFormattedTextDraw : public ITextHost, public MZeroedObject { HWND m_hwndParent; - RECT m_rcClient; // Client Rect - RECT m_rcViewInset; // view rect inset - SIZEL m_sizelExtent; // Extent array + RECT m_rcClient; // Client Rect + RECT m_rcViewInset; // view rect inset + SIZEL m_sizelExtent; // Extent array - int nPixelsPerInchX; // Pixels per logical inch along width - int nPixelsPerInchY; // Pixels per logical inch along height + int nPixelsPerInchX; // Pixels per logical inch along width + int nPixelsPerInchY; // Pixels per logical inch along height CHARFORMAT2W m_CF; PARAFORMAT2 m_PF; - uint32_t m_dwPropertyBits; // Property bits + uint32_t m_dwPropertyBits; // Property bits + bool m_bNative = false; // Doesn't generate RTF itself, uses external plain RTF ITextServices *m_spTextServices; ITextDocument *m_spTextDocument; @@ -45,6 +46,7 @@ public: __forceinline ITextServices *getTextService() { return m_spTextServices; }; __forceinline ITextDocument *getTextDocument() { return m_spTextDocument; }; + __forceinline bool isNative() const { return m_bNative; } __forceinline void setParentWnd(HWND hwnd, RECT rect) { m_hwndParent = hwnd; m_rcClient = rect; } // IUnknown -- cgit v1.2.3