LibreOffice Module vcl (master)  1
salgdi.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
11  * Licensed to the Apache Software Foundation (ASF) under one or more
12  * contributor license agreements. See the NOTICE file distributed
13  * with this work for additional information regarding copyright
14  * ownership. The ASF licenses this file to you under the Apache
15  * License, Version 2.0 (the "License"); you may not use this file
16  * except in compliance with the License. You may obtain a copy of
17  * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 
20 #pragma once
21 
22 #include <sal/config.h>
23 
24 #include <vcl/outdev.hxx>
25 
26 #include "impfontmetricdata.hxx"
27 #include "salgdiimpl.hxx"
28 #include "sallayout.hxx"
29 #include "SalGradient.hxx"
31 #include "WidgetDrawInterface.hxx"
32 
33 #include <config_cairo_canvas.h>
34 
35 #include <map>
36 #include <vector>
37 
38 class SalBitmap;
39 class FontAttributes;
40 namespace vcl::font {
41  class FontSelectPattern;
42  class PhysicalFontFace;
43  class PhysicalFontCollection;
44 }
45 class SalLayout;
46 namespace tools { class Rectangle; }
47 class FontSubsetInfo;
48 class OutputDevice;
49 class FreetypeFont;
50 struct SystemGraphicsData;
51 
52 namespace basegfx {
53  class B2DVector;
54  class B2DPolygon;
55  class B2DPolyPolygon;
56 }
57 
58 namespace vcl
59 {
60 class AbstractTrueTypeFont;
61 class FileDefinitionWidgetDraw;
63 }
64 
65 typedef sal_Unicode sal_Ucs; // TODO: use sal_UCS4 instead of sal_Unicode
66 typedef std::map< sal_Ucs, sal_uInt32 > Ucs2UIntMap;
67 
68 // note: if you add any new methods to class SalGraphics using coordinates
69 // make sure they have a corresponding protected pure virtual method
70 // which has to be implemented by the platform dependent part.
71 // Add a method that performs coordinate mirroring if required, (see
72 // existing methods as sample) and then calls the equivalent pure method.
73 
74 // note: all positions are in pixel and relative to
75 // the top/left-position of the virtual output area
76 
78 {
79 public:
80  SalGraphics();
81  ~SalGraphics() COVERITY_NOEXCEPT_FALSE override;
82 
83  virtual SalGraphicsImpl* GetImpl() const = 0;
84 
85  void setAntiAlias(bool bNew)
86  {
87  m_bAntiAlias = bNew;
88 
89  // Temporary store in both
90  if (GetImpl())
91  GetImpl()->setAntiAlias(bNew);
92  }
93 
94  bool getAntiAlias() const
95  {
96  return m_bAntiAlias;
97  }
98 
100  {
101  m_bTextRenderModeForResolutionIndependentLayout = bNew;
102  }
103 
105  {
106  return m_bTextRenderModeForResolutionIndependentLayout;
107  }
108 
109  // public SalGraphics methods, the interface to the independent vcl part
110 
111  // get device resolution
112  virtual void GetResolution( sal_Int32& rDPIX, sal_Int32& rDPIY ) = 0;
113 
114  // get the depth of the device
115  virtual sal_uInt16 GetBitCount() const = 0;
116 
117  // get the width of the device
118  virtual tools::Long GetGraphicsWidth() const = 0;
119 
120  // set the clip region to empty
121  virtual void ResetClipRegion() = 0;
122 
123  // set the line color to transparent (= don't draw lines)
124 
125  virtual void SetLineColor() = 0;
126 
127  // set the line color to a specific color
128  virtual void SetLineColor( Color nColor ) = 0;
129 
130  // set the fill color to transparent (= don't fill)
131  virtual void SetFillColor() = 0;
132 
133  // set the fill color to a specific color, shapes will be
134  // filled accordingly
135  virtual void SetFillColor( Color nColor ) = 0;
136 
137  // enable/disable XOR drawing
138  virtual void SetXORMode( bool bSet, bool bInvertOnly ) = 0;
139 
140  // set line color for raster operations
141  virtual void SetROPLineColor( SalROPColor nROPColor ) = 0;
142 
143  // set fill color for raster operations
144  virtual void SetROPFillColor( SalROPColor nROPColor ) = 0;
145 
146  // set the text color to a specific color
147  virtual void SetTextColor( Color nColor ) = 0;
148 
149  // set the font
150  virtual void SetFont(LogicalFontInstance*, int nFallbackLevel) = 0;
151 
152  // release the fonts
153  void ReleaseFonts() { SetFont( nullptr, 0 ); }
154 
155  // get the current font's metrics
156  virtual void GetFontMetric( ImplFontMetricDataRef&, int nFallbackLevel ) = 0;
157 
158  // get the repertoire of the current font
159  virtual FontCharMapRef GetFontCharMap() const = 0;
160 
161  // get the layout capabilities of the current font
162  virtual bool GetFontCapabilities(vcl::FontCapabilities &rFontCapabilities) const = 0;
163 
164  // graphics must fill supplied font list
165  virtual void GetDevFontList( vcl::font::PhysicalFontCollection* ) = 0;
166 
167  // graphics must drop any cached font info
168  virtual void ClearDevFontCache() = 0;
169 
170  virtual bool AddTempDevFont(
172  const OUString& rFileURL,
173  const OUString& rFontName ) = 0;
174 
175  // CreateFontSubset: a method to get a subset of glyhps of a font
176  // inside a new valid font file
177  // returns true if creation of subset was successful
178  // parameters: rToFile: contains an osl file URL to write the subset to
179  // pFont: describes from which font to create a subset
180  // pGlyphIDs: the glyph ids to be extracted
181  // pEncoding: the character code corresponding to each glyph
182  // pWidths: the advance widths of the corresponding glyphs (in PS font units)
183  // nGlyphs: the number of glyphs
184  // rInfo: additional outgoing information
185  // implementation note: encoding 0 with glyph id 0 should be added implicitly
186  // as "undefined character"
187  virtual bool CreateFontSubset(
188  const OUString& rToFile,
189  const vcl::font::PhysicalFontFace* pFont,
190  const sal_GlyphId* pGlyphIDs,
191  const sal_uInt8* pEncoding,
192  sal_Int32* pWidths,
193  int nGlyphs,
194  FontSubsetInfo& rInfo ) = 0;
195 
196  // GetEmbedFontData: gets the font data for a font marked
197  // embeddable by GetDevFontList or NULL in case of error
198  // parameters: pFont: describes the font in question
199  // pDataLen: out parameter, contains the byte length of the returned buffer
200  virtual const void* GetEmbedFontData(const vcl::font::PhysicalFontFace* pFont, tools::Long* pDataLen) = 0;
201 
202  // free the font data again
203  virtual void FreeEmbedFontData( const void* pData, tools::Long nDataLen ) = 0;
204 
205  // get the same widths as in CreateFontSubset
206  // in case of an embeddable font also fill the mapping
207  // between unicode and glyph id
208  // leave widths vector and mapping untouched in case of failure
209  virtual void GetGlyphWidths(
210  const vcl::font::PhysicalFontFace* pFont,
211  bool bVertical,
212  std::vector< sal_Int32 >& rWidths,
213  Ucs2UIntMap& rUnicodeEnc ) = 0;
214 
215  virtual std::unique_ptr<GenericSalLayout>
216  GetTextLayout(int nFallbackLevel) = 0;
217  virtual void DrawTextLayout( const GenericSalLayout& ) = 0;
218 
219  virtual bool supportsOperation( OutDevSupportType ) const = 0;
220 
221  // mirroring specifics
222  SalLayoutFlags GetLayout() const { return m_nLayout; }
223  void SetLayout( SalLayoutFlags aLayout ) { m_nLayout = aLayout;}
224 
225  void mirror( tools::Long& nX, const OutputDevice& rOutDev ) const;
226  // only called mirror2 to avoid ambiguity
227  [[nodiscard]] tools::Long mirror2( tools::Long nX, const OutputDevice& rOutDev ) const;
228  void mirror( tools::Long& nX, tools::Long nWidth, const OutputDevice& rOutDev, bool bBack = false ) const;
229  bool mirror( sal_uInt32 nPoints, const Point *pPtAry, Point *pPtAry2, const OutputDevice& rOutDev ) const;
230  void mirror( tools::Rectangle& rRect, const OutputDevice&, bool bBack = false ) const;
231  void mirror( vcl::Region& rRgn, const OutputDevice& rOutDev ) const;
232  void mirror( ImplControlValue&, const OutputDevice& ) const;
233  basegfx::B2DPolyPolygon mirror( const basegfx::B2DPolyPolygon& i_rPoly, const OutputDevice& rOutDev ) const;
234  const basegfx::B2DHomMatrix& getMirror( const OutputDevice& rOutDev ) const;
235 
236  // non virtual methods; these do possible coordinate mirroring and
237  // then delegate to protected virtual methods
238  bool SetClipRegion( const vcl::Region&, const OutputDevice& rOutDev );
239 
240  // draw --> LineColor and FillColor and RasterOp and ClipRegion
241  void DrawPixel( tools::Long nX, tools::Long nY, const OutputDevice& rOutDev );
242  void DrawPixel( tools::Long nX, tools::Long nY, Color nColor, const OutputDevice& rOutDev );
243 
244  void DrawLine( tools::Long nX1, tools::Long nY1, tools::Long nX2, tools::Long nY2, const OutputDevice& rOutDev );
245 
246  void DrawRect( tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, const OutputDevice& rOutDev );
247 
248  void DrawPolyLine( sal_uInt32 nPoints, Point const * pPtAry, const OutputDevice& rOutDev );
249 
250  void DrawPolygon( sal_uInt32 nPoints, const Point* pPtAry, const OutputDevice& rOutDev );
251 
252  void DrawPolyPolygon(
253  sal_uInt32 nPoly,
254  const sal_uInt32* pPoints,
255  const Point** pPtAry,
256  const OutputDevice& rOutDev );
257 
258  bool DrawPolyPolygon(
259  const basegfx::B2DHomMatrix& rObjectToDevice,
260  const basegfx::B2DPolyPolygon &i_rPolyPolygon,
261  double i_fTransparency,
262  const OutputDevice& i_rOutDev);
263 
264  bool DrawPolyLine(
265  const basegfx::B2DHomMatrix& rObjectToDevice,
266  const basegfx::B2DPolygon& i_rPolygon,
267  double i_fTransparency,
268  double i_fLineWidth,
269  const std::vector< double >* i_pStroke, // MM01
270  basegfx::B2DLineJoin i_eLineJoin,
271  css::drawing::LineCap i_eLineCap,
272  double i_fMiterMinimumAngle,
273  bool bPixelSnapHairline,
274  const OutputDevice& i_rOutDev);
275 
276  bool DrawPolyLineBezier(
277  sal_uInt32 nPoints,
278  const Point* pPtAry,
279  const PolyFlags* pFlgAry,
280  const OutputDevice& rOutDev );
281 
282  bool DrawPolygonBezier(
283  sal_uInt32 nPoints,
284  const Point* pPtAry,
285  const PolyFlags* pFlgAry,
286  const OutputDevice& rOutDev );
287 
288  bool DrawPolyPolygonBezier(
289  sal_uInt32 nPoly,
290  const sal_uInt32* pPoints,
291  const Point* const* pPtAry,
292  const PolyFlags* const* pFlgAry,
293  const OutputDevice& rOutDev );
294 
295  bool DrawGradient(
296  const tools::PolyPolygon& rPolyPoly,
297  const Gradient& rGradient,
298  const OutputDevice& rOutDev);
299 
300  // CopyArea --> No RasterOp, but ClipRegion
301  void CopyArea(
302  tools::Long nDestX, tools::Long nDestY,
303  tools::Long nSrcX, tools::Long nSrcY,
304  tools::Long nSrcWidth, tools::Long nSrcHeight,
305  const OutputDevice& rOutDev );
306 
307  // CopyBits --> RasterOp and ClipRegion
308  // CopyBits() CopyBits on same Graphics
309  void CopyBits(
310  const SalTwoRect& rPosAry,
311  const OutputDevice& rOutDev);
312 
313  // CopyBits --> RasterOp and ClipRegion
314  // CopyBits() CopyBits on different Graphics
315  void CopyBits(
316  const SalTwoRect& rPosAry,
317  SalGraphics& rSrcGraphics,
318  const OutputDevice& rOutDev,
319  const OutputDevice& rSrcOutDev );
320 
321 
322  void DrawBitmap(
323  const SalTwoRect& rPosAry,
324  const SalBitmap& rSalBitmap,
325  const OutputDevice& rOutDev );
326 
327  void DrawBitmap(
328  const SalTwoRect& rPosAry,
329  const SalBitmap& rSalBitmap,
330  const SalBitmap& rTransparentBitmap,
331  const OutputDevice& rOutDev );
332 
333  void DrawMask(
334  const SalTwoRect& rPosAry,
335  const SalBitmap& rSalBitmap,
336  Color nMaskColor,
337  const OutputDevice& rOutDev );
338 
339  std::shared_ptr<SalBitmap> GetBitmap(
340  tools::Long nX, tools::Long nY,
341  tools::Long nWidth, tools::Long nHeight,
342  const OutputDevice& rOutDev );
343 
344  Color GetPixel(
345  tools::Long nX, tools::Long nY,
346  const OutputDevice& rOutDev );
347 
348  // invert --> ClipRegion (only Windows)
349  void Invert(
350  tools::Long nX, tools::Long nY,
351  tools::Long nWidth, tools::Long nHeight,
352  SalInvert nFlags,
353  const OutputDevice& rOutDev );
354 
355  void Invert(
356  sal_uInt32 nPoints,
357  const Point* pPtAry,
358  SalInvert nFlags,
359  const OutputDevice& rOutDev );
360 
361  bool DrawEPS(
362  tools::Long nX, tools::Long nY,
363  tools::Long nWidth, tools::Long nHeight,
364  void* pPtr,
365  sal_uInt32 nSize,
366  const OutputDevice& rOutDev );
367 
368  // native widget rendering functions
369 
373  inline bool IsNativeControlSupported(ControlType, ControlPart);
374 
378  bool HitTestNativeScrollbar(
379  ControlPart nPart,
380  const tools::Rectangle& rControlRegion,
381  const Point& aPos,
382  bool& rIsInside,
383  const OutputDevice& rOutDev);
384 
388  bool DrawNativeControl(
389  ControlType nType,
390  ControlPart nPart,
391  const tools::Rectangle& rControlRegion,
392  ControlState nState,
393  const ImplControlValue& aValue,
394  const OUString& aCaption,
395  const OutputDevice& rOutDev,
396  const Color& rBackgroundColor = COL_AUTO );
397 
401  bool GetNativeControlRegion(
402  ControlType nType,
403  ControlPart nPart,
404  const tools::Rectangle& rControlRegion,
405  ControlState nState,
406  const ImplControlValue& aValue,
407  tools::Rectangle &rNativeBoundingRegion,
408  tools::Rectangle &rNativeContentRegion,
409  const OutputDevice& rOutDev );
410 
414  inline bool UpdateSettings(AllSettings&);
415 
416  bool BlendBitmap(
417  const SalTwoRect& rPosAry,
418  const SalBitmap& rSalBitmap,
419  const OutputDevice& rOutDev );
420 
421  bool BlendAlphaBitmap(
422  const SalTwoRect& rPosAry,
423  const SalBitmap& rSalSrcBitmap,
424  const SalBitmap& rSalMaskBitmap,
425  const SalBitmap& rSalAlphaBitmap,
426  const OutputDevice& rOutDev );
427 
428  bool DrawAlphaBitmap(
429  const SalTwoRect&,
430  const SalBitmap& rSourceBitmap,
431  const SalBitmap& rAlphaBitmap,
432  const OutputDevice& rOutDev );
433 
434  bool DrawTransformedBitmap(
435  const basegfx::B2DPoint& rNull,
436  const basegfx::B2DPoint& rX,
437  const basegfx::B2DPoint& rY,
438  const SalBitmap& rSourceBitmap,
439  const SalBitmap* pAlphaBitmap,
440  double fAlpha,
441  const OutputDevice& rOutDev );
442 
443  bool HasFastDrawTransformedBitmap() const;
444 
445  bool DrawAlphaRect(
446  tools::Long nX, tools::Long nY,
447  tools::Long nWidth, tools::Long nHeight,
448  sal_uInt8 nTransparency,
449  const OutputDevice& rOutDev );
450 
451  virtual OUString getRenderBackendName() const;
452 
453  virtual SystemGraphicsData GetGraphicsData() const = 0;
454 
455 #if ENABLE_CAIRO_CANVAS
456 
458  virtual bool SupportsCairo() const = 0;
460  virtual cairo::SurfaceSharedPtr CreateSurface(const cairo::CairoSurfaceSharedPtr& rSurface) const = 0;
462  virtual cairo::SurfaceSharedPtr CreateSurface(const OutputDevice& rRefDevice, int x, int y, int width, int height) const = 0;
464  virtual cairo::SurfaceSharedPtr CreateBitmapSurface(const OutputDevice& rRefDevice, const BitmapSystemData& rData, const Size& rSize) const = 0;
465  virtual css::uno::Any GetNativeSurfaceHandle(cairo::SurfaceSharedPtr& rSurface, const basegfx::B2ISize& rSize) const = 0;
466 
467 #endif // ENABLE_CAIRO_CANVAS
468 
469 protected:
470 
472 
473  virtual bool setClipRegion( const vcl::Region& ) = 0;
474 
475  // draw --> LineColor and FillColor and RasterOp and ClipRegion
476  virtual void drawPixel( tools::Long nX, tools::Long nY ) = 0;
477  virtual void drawPixel( tools::Long nX, tools::Long nY, Color nColor ) = 0;
478 
479  virtual void drawLine( tools::Long nX1, tools::Long nY1, tools::Long nX2, tools::Long nY2 ) = 0;
480 
481  virtual void drawRect( tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight ) = 0;
482 
483  virtual void drawPolyLine( sal_uInt32 nPoints, const Point* pPtAry ) = 0;
484 
485  virtual void drawPolygon( sal_uInt32 nPoints, const Point* pPtAry ) = 0;
486 
487  virtual void drawPolyPolygon( sal_uInt32 nPoly, const sal_uInt32* pPoints, const Point** pPtAry ) = 0;
488 
489  virtual bool drawPolyPolygon(
490  const basegfx::B2DHomMatrix& rObjectToDevice,
492  double fTransparency) = 0;
493 
494  virtual bool drawPolyLine(
495  const basegfx::B2DHomMatrix& rObjectToDevice,
496  const basegfx::B2DPolygon&,
497  double fTransparency,
498  double fLineWidth,
499  const std::vector< double >* pStroke, // MM01
501  css::drawing::LineCap,
502  double fMiterMinimumAngle,
503  bool bPixelSnapHairline) = 0;
504 
505  virtual bool drawPolyLineBezier(
506  sal_uInt32 nPoints,
507  const Point* pPtAry,
508  const PolyFlags* pFlgAry ) = 0;
509 
510  virtual bool drawPolygonBezier(
511  sal_uInt32 nPoints,
512  const Point* pPtAry,
513  const PolyFlags* pFlgAry ) = 0;
514 
515  virtual bool drawPolyPolygonBezier(
516  sal_uInt32 nPoly,
517  const sal_uInt32* pPoints,
518  const Point* const* pPtAry,
519  const PolyFlags* const* pFlgAry ) = 0;
520 
521  virtual bool drawGradient(
522  const tools::PolyPolygon& rPolyPoly,
523  const Gradient& rGradient ) = 0;
524 
525  virtual bool implDrawGradient(basegfx::B2DPolyPolygon const & /*rPolyPolygon*/,
526  SalGradient const & /*rGradient*/)
527  {
528  return false;
529  }
530 
531  // CopyArea --> No RasterOp, but ClipRegion
532  virtual void copyArea(
533  tools::Long nDestX, tools::Long nDestY,
534  tools::Long nSrcX, tools::Long nSrcY,
535  tools::Long nSrcWidth, tools::Long nSrcHeight,
536  bool bWindowInvalidate ) = 0;
537 
538  // CopyBits and DrawBitmap --> RasterOp and ClipRegion
539  // CopyBits() --> pSrcGraphics == NULL, then CopyBits on same Graphics
540  virtual void copyBits( const SalTwoRect& rPosAry, SalGraphics* pSrcGraphics ) = 0;
541 
542  virtual void drawBitmap( const SalTwoRect& rPosAry, const SalBitmap& rSalBitmap ) = 0;
543 
544  virtual void drawBitmap(
545  const SalTwoRect& rPosAry,
546  const SalBitmap& rSalBitmap,
547  const SalBitmap& rMaskBitmap ) = 0;
548 
549  virtual void drawMask(
550  const SalTwoRect& rPosAry,
551  const SalBitmap& rSalBitmap,
552  Color nMaskColor ) = 0;
553 
554  virtual std::shared_ptr<SalBitmap> getBitmap( tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight ) = 0;
555 
556  virtual Color getPixel( tools::Long nX, tools::Long nY ) = 0;
557 
558  // invert --> ClipRegion (only Windows or VirDevs)
559  virtual void invert(
560  tools::Long nX, tools::Long nY,
561  tools::Long nWidth, tools::Long nHeight,
562  SalInvert nFlags) = 0;
563 
564  virtual void invert( sal_uInt32 nPoints, const Point* pPtAry, SalInvert nFlags ) = 0;
565 
566  virtual bool drawEPS(
567  tools::Long nX, tools::Long nY,
568  tools::Long nWidth, tools::Long nHeight,
569  void* pPtr,
570  sal_uInt32 nSize ) = 0;
571 
573  virtual bool blendBitmap(
574  const SalTwoRect&,
575  const SalBitmap& rBitmap ) = 0;
576 
578  virtual bool blendAlphaBitmap(
579  const SalTwoRect&,
580  const SalBitmap& rSrcBitmap,
581  const SalBitmap& rMaskBitmap,
582  const SalBitmap& rAlphaBitmap ) = 0;
583 
596  virtual bool drawAlphaBitmap(
597  const SalTwoRect&,
598  const SalBitmap& rSourceBitmap,
599  const SalBitmap& rAlphaBitmap ) = 0;
600 
605  virtual bool drawTransformedBitmap(
606  const basegfx::B2DPoint& rNull,
607  const basegfx::B2DPoint& rX,
608  const basegfx::B2DPoint& rY,
609  const SalBitmap& rSourceBitmap,
610  const SalBitmap* pAlphaBitmap,
611  double fAlpha) = 0;
612 
620  virtual bool hasFastDrawTransformedBitmap() const = 0;
621 
632  virtual bool drawAlphaRect(
633  tools::Long nX, tools::Long nY,
634  tools::Long nWidth, tools::Long nHeight,
635  sal_uInt8 nTransparency ) = 0;
636 
637 private:
638  SalLayoutFlags m_nLayout; //< 0: mirroring off, 1: mirror x-axis
639 
640  // for buffering the Mirror-Matrix, see ::getMirror
645 
646 protected:
648  bool m_bAntiAlias : 1;
649  bool m_bTextRenderModeForResolutionIndependentLayout : 1;
650 
651  inline tools::Long GetDeviceWidth(const OutputDevice& rOutDev) const;
652 
661  virtual inline void handleDamage(const tools::Rectangle& rDamagedRegion);
662 
663  // native controls
664  bool initWidgetDrawBackends(bool bForce = false);
665 
666  std::unique_ptr<vcl::WidgetDrawInterface> m_pWidgetDraw;
667  vcl::WidgetDrawInterface* forWidget() { return m_pWidgetDraw ? m_pWidgetDraw.get() : this; }
668 
669  static void GetGlyphWidths(const vcl::AbstractTrueTypeFont& rTTF,
670  const vcl::font::PhysicalFontFace& rFontFace, bool bVertical,
671  std::vector<sal_Int32>& rWidths, Ucs2UIntMap& rUnicodeEnc);
672 
673  static bool CreateTTFfontSubset(vcl::AbstractTrueTypeFont& aTTF, const OString& rSysPath,
674  const bool bVertical, const sal_GlyphId* pGlyphIds,
675  const sal_uInt8* pEncoding, sal_Int32* pGlyphWidths,
676  int nGlyphCount);
677 
678  static bool CreateCFFfontSubset(const unsigned char* pFontBytes, int nByteLength,
679  const OString& rSysPath, const sal_GlyphId* pGlyphIds,
680  const sal_uInt8* pEncoding, sal_Int32* pGlyphWidths,
681  int nGlyphCount, FontSubsetInfo& rInfo);
682 
683  static void FillFontSubsetInfo(const vcl::TTGlobalFontInfo& rTTInfo, const OUString& pPSName,
684  FontSubsetInfo& rInfo);
685 };
686 
688 {
689  return forWidget()->isNativeControlSupported(eType, ePart);
690 }
691 
693 {
694  return forWidget()->updateSettings(rSettings);
695 }
696 
698 
699 
701 {
702 public:
703  sal_uInt16 GetBitCount() const override
704  {
705  return GetImpl()->GetBitCount();
706  }
707 
708  tools::Long GetGraphicsWidth() const override
709  {
710  return GetImpl()->GetGraphicsWidth();
711  }
712 
713  void ResetClipRegion() override
714  {
716  }
717 
718  bool setClipRegion( const vcl::Region& i_rClip ) override
719  {
720  return GetImpl()->setClipRegion(i_rClip);
721  }
722 
723  void SetLineColor() override
724  {
725  GetImpl()->SetLineColor();
726  }
727 
728  void SetLineColor( Color nColor ) override
729  {
730  GetImpl()->SetLineColor(nColor);
731  }
732 
733  void SetFillColor() override
734  {
735  GetImpl()->SetFillColor();
736  }
737 
738  void SetFillColor( Color nColor ) override
739  {
740  GetImpl()->SetFillColor (nColor);
741  }
742 
743  void SetROPLineColor(SalROPColor aColor) override
744  {
745  GetImpl()->SetROPLineColor(aColor);
746  }
747 
748  void SetROPFillColor( SalROPColor aColor) override
749  {
750  GetImpl()->SetROPFillColor(aColor);
751  }
752 
753  void SetXORMode(bool bSet, bool bInvertOnly) override
754  {
755  GetImpl()->SetXORMode(bSet, bInvertOnly);
756  }
757 
758  void drawPixel( tools::Long nX, tools::Long nY ) override
759  {
760  GetImpl()->drawPixel(nX, nY);
761  }
762 
763  void drawPixel( tools::Long nX, tools::Long nY, Color nColor ) override
764  {
765  GetImpl()->drawPixel(nX, nY, nColor);
766  }
767 
768  void drawLine( tools::Long nX1, tools::Long nY1, tools::Long nX2, tools::Long nY2 ) override
769  {
770  GetImpl()->drawLine(nX1, nY1, nX2, nY2);
771  }
772 
773  void drawRect( tools::Long nX, tools::Long nY, tools::Long nDX, tools::Long nDY ) override
774  {
775  GetImpl()->drawRect(nX, nY, nDX, nDY);
776  }
777 
778  void drawPolyLine( sal_uInt32 nPoints, const Point *pPtAry ) override
779  {
780  GetImpl()->drawPolyLine(nPoints, pPtAry);
781  }
782 
783  void drawPolygon( sal_uInt32 nPoints, const Point* pPtAry ) override
784  {
785  GetImpl()->drawPolygon(nPoints, pPtAry);
786  }
787 
788  void drawPolyPolygon(sal_uInt32 nPoly, const sal_uInt32* pPoints, const Point** pPtAry) override
789  {
790  GetImpl()->drawPolyPolygon (nPoly, pPoints, pPtAry);
791  }
792 
794  const basegfx::B2DHomMatrix& rObjectToDevice,
795  const basegfx::B2DPolyPolygon& rPolyPolygon,
796  double fTransparency) override
797  {
798  return GetImpl()->drawPolyPolygon(rObjectToDevice, rPolyPolygon, fTransparency);
799  }
800 
802  const basegfx::B2DHomMatrix& rObjectToDevice,
803  const basegfx::B2DPolygon& rPolygon,
804  double fTransparency,
805  double fLineWidth,
806  const std::vector< double >* pStroke,
807  basegfx::B2DLineJoin eJoin,
808  css::drawing::LineCap eLineCap,
809  double fMiterMinimumAngle,
810  bool bPixelSnapHairline) override
811  {
812  return GetImpl()->drawPolyLine(rObjectToDevice, rPolygon, fTransparency, fLineWidth, pStroke, eJoin, eLineCap, fMiterMinimumAngle, bPixelSnapHairline);
813  }
814 
815  bool drawPolyLineBezier( sal_uInt32 nPoints, const Point* pPtAry, const PolyFlags* pFlgAry ) override
816  {
817  return GetImpl()->drawPolyLineBezier(nPoints, pPtAry, pFlgAry);
818  }
819 
820  bool drawPolygonBezier( sal_uInt32 nPoints, const Point* pPtAry, const PolyFlags* pFlgAry ) override
821  {
822  return GetImpl()->drawPolygonBezier(nPoints, pPtAry, pFlgAry);
823  }
824 
825  bool drawPolyPolygonBezier( sal_uInt32 nPoly,
826  const sal_uInt32* pPoints,
827  const Point* const* pPtAry,
828  const PolyFlags* const* pFlgAry) override
829  {
830  return GetImpl()->drawPolyPolygonBezier(nPoly, pPoints, pPtAry, pFlgAry);
831  }
832 
833  void invert(tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight,
834  SalInvert nFlags) override
835  {
836  GetImpl()->invert(nX, nY, nWidth, nHeight, nFlags);
837  }
838 
839  void invert(sal_uInt32 nPoints, const Point* pPtAry, SalInvert nFlags) override
840  {
841  GetImpl()->invert(nPoints, pPtAry, nFlags);
842  }
843 
845  tools::Long nHeight, void* pPtr, sal_uInt32 nSize) override
846  {
847  return GetImpl()->drawEPS(nX, nY, nWidth, nHeight, pPtr, nSize);
848  }
849 
850  void copyBits(const SalTwoRect& rPosAry, SalGraphics* pSrcGraphics) override
851  {
852  GetImpl()->copyBits(rPosAry, pSrcGraphics);
853  }
854 
855  void copyArea (tools::Long nDestX, tools::Long nDestY, tools::Long nSrcX,
856  tools::Long nSrcY, tools::Long nSrcWidth, tools::Long nSrcHeight,
857  bool bWindowInvalidate) override
858  {
859  GetImpl()->copyArea(nDestX, nDestY, nSrcX, nSrcY, nSrcWidth, nSrcHeight, bWindowInvalidate);
860  }
861 
862  void drawBitmap(const SalTwoRect& rPosAry, const SalBitmap& rSalBitmap) override
863  {
864  GetImpl()->drawBitmap(rPosAry, rSalBitmap);
865  }
866 
867  void drawBitmap(const SalTwoRect& rPosAry, const SalBitmap& rSalBitmap, const SalBitmap& rMaskBitmap) override
868  {
869  GetImpl()->drawBitmap(rPosAry, rSalBitmap, rMaskBitmap);
870  }
871 
872  void drawMask(const SalTwoRect& rPosAry, const SalBitmap& rSalBitmap, Color nMaskColor) override
873  {
874  GetImpl()->drawMask(rPosAry, rSalBitmap, nMaskColor);
875  }
876 
877  std::shared_ptr<SalBitmap> getBitmap(tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight) override
878  {
879  return GetImpl()->getBitmap(nX, nY, nWidth, nHeight);
880  }
881 
883  {
884  return GetImpl()->getPixel(nX, nY);
885  }
886 
887  bool blendBitmap(const SalTwoRect& rPosAry, const SalBitmap& rBitmap) override
888  {
889  return GetImpl()->blendBitmap(rPosAry, rBitmap);
890  }
891 
892  bool blendAlphaBitmap(const SalTwoRect& rPosAry, const SalBitmap& rSourceBitmap,
893  const SalBitmap& rMaskBitmap, const SalBitmap& rAlphaBitmap) override
894  {
895  return GetImpl()->blendAlphaBitmap(rPosAry, rSourceBitmap, rMaskBitmap, rAlphaBitmap);
896  }
897 
898  bool drawAlphaBitmap(const SalTwoRect& rPosAry, const SalBitmap& rSourceBitmap,
899  const SalBitmap& rAlphaBitmap) override
900  {
901  return GetImpl()->drawAlphaBitmap(rPosAry, rSourceBitmap, rAlphaBitmap);
902  }
903 
905  const basegfx::B2DPoint& rX,
906  const basegfx::B2DPoint& rY,
907  const SalBitmap& rSourceBitmap,
908  const SalBitmap* pAlphaBitmap, double fAlpha) override
909  {
910  return GetImpl()->drawTransformedBitmap(rNull, rX, rY, rSourceBitmap, pAlphaBitmap, fAlpha);
911  }
912 
913  bool hasFastDrawTransformedBitmap() const override
914  {
916  }
917 
919  tools::Long nHeight, sal_uInt8 nTransparency) override
920  {
921  return GetImpl()->drawAlphaRect(nX, nY, nWidth, nHeight, nTransparency);
922  }
923 
924  bool drawGradient(const tools::PolyPolygon& rPolygon, const Gradient& rGradient) override
925  {
926  return GetImpl()->drawGradient(rPolygon, rGradient);
927  }
928 
929  bool implDrawGradient(basegfx::B2DPolyPolygon const& rPolyPolygon,
930  SalGradient const& rGradient) override
931  {
932  return GetImpl()->implDrawGradient(rPolyPolygon, rGradient);
933  }
934 
935  bool supportsOperation(OutDevSupportType eType) const override
936  {
937  return GetImpl()->supportsOperation(eType);
938  }
939 
940  OUString getRenderBackendName() const override
941  {
942  return GetImpl()->getRenderBackendName();
943  }
944 };
945 
946 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::shared_ptr< SalBitmap > getBitmap(tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight) override
Definition: salgdi.hxx:877
virtual void drawPolyPolygon(sal_uInt32 nPoly, const sal_uInt32 *pPoints, const Point **pPtAry)=0
virtual void drawPolygon(sal_uInt32 nPoints, const Point *pPtAry)=0
bool drawGradient(const tools::PolyPolygon &rPolygon, const Gradient &rGradient) override
Definition: salgdi.hxx:924
virtual void drawBitmap(const SalTwoRect &rPosAry, const SalBitmap &rSalBitmap)=0
SalROPColor
Definition: salgtype.hxx:70
sal_Unicode sal_Ucs
Definition: salgdi.hxx:65
static void drawPolyLine(SalGraphics &rGraphics, const basegfx::B2DHomMatrix &rObjectToDevice, const basegfx::B2DPolygon &i_rPolygon, double i_fTransparency, double i_fLineWidth, const std::vector< double > *i_pStroke, basegfx::B2DLineJoin i_eLineJoin, css::drawing::LineCap i_eLineCap, double i_fMiterMinimumAngle, bool bPixelSnapHairline)
virtual bool drawAlphaBitmap(const SalTwoRect &, const SalBitmap &rSourceBitmap, const SalBitmap &rAlphaBitmap)=0
virtual void copyBits(const SalTwoRect &rPosAry, SalGraphics *pSrcGraphics)=0
virtual void SetXORMode(bool bSet, bool bInvertOnly)=0
#define VCL_DLLPUBLIC
Definition: dllapi.h:29
void setTextRenderModeForResolutionIndependentLayout(bool bNew)
Definition: salgdi.hxx:99
long Long
void drawRect(tools::Long nX, tools::Long nY, tools::Long nDX, tools::Long nDY) override
Definition: salgdi.hxx:773
virtual void copyArea(tools::Long nDestX, tools::Long nDestY, tools::Long nSrcX, tools::Long nSrcY, tools::Long nSrcWidth, tools::Long nSrcHeight, bool bWindowInvalidate)=0
void drawPolygon(VirtualDevice *dev, bool drawFrame, tools::Polygon const &orig, Size const &pSize)
draws a polygon knowing penSize
Definition: shape.cxx:218
bool getTextRenderModeForResolutionIndependentLayoutEnabled() const
Definition: salgdi.hxx:104
virtual bool supportsOperation(OutDevSupportType eType) const =0
void ResetClipRegion() override
Definition: salgdi.hxx:713
void SetLineColor(Color nColor) override
Definition: salgdi.hxx:728
bool hasFastDrawTransformedBitmap() const override
Returns true if the drawTransformedBitmap() call is fast, and so it should be used directly without t...
Definition: salgdi.hxx:913
sal_uInt16 sal_GlyphId
Definition: glyphitem.hxx:29
OutDevSupportType
Definition: vclenum.hxx:194
virtual void drawRect(tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight)=0
void drawPixel(tools::Long nX, tools::Long nY, Color nColor) override
Definition: salgdi.hxx:763
virtual bool implDrawGradient(basegfx::B2DPolyPolygon const &, SalGradient const &)
Definition: salgdi.hxx:525
virtual bool drawGradient(const tools::PolyPolygon &rPolygon, const Gradient &rGradient)=0
void drawPolyPolygon(sal_uInt32 nPoly, const sal_uInt32 *pPoints, const Point **pPtAry) override
Definition: salgdi.hxx:788
bool blendBitmap(const SalTwoRect &rPosAry, const SalBitmap &rBitmap) override
Blend the bitmap with the current buffer.
Definition: salgdi.hxx:887
sal_uInt16 sal_Unicode
virtual bool blendBitmap(const SalTwoRect &, const SalBitmap &rBitmap)=0
void drawBitmap(const SalTwoRect &rPosAry, const SalBitmap &rSalBitmap, const SalBitmap &rMaskBitmap) override
Definition: salgdi.hxx:867
basegfx::B2DHomMatrix m_aLastMirror
Definition: salgdi.hxx:641
static void drawPolyPolygon(SalGraphics &rGraphics, const basegfx::B2DHomMatrix &rObjectToDevice, const basegfx::B2DPolyPolygon &i_rPolyPolygon, double i_fTransparency)
bool drawPolyPolygonBezier(sal_uInt32 nPoly, const sal_uInt32 *pPoints, const Point *const *pPtAry, const PolyFlags *const *pFlgAry) override
Definition: salgdi.hxx:825
void SetLineColor() override
Definition: salgdi.hxx:723
tools::Long GetGraphicsWidth() const override
Definition: salgdi.hxx:708
void copyArea(tools::Long nDestX, tools::Long nDestY, tools::Long nSrcX, tools::Long nSrcY, tools::Long nSrcWidth, tools::Long nSrcHeight, bool bWindowInvalidate) override
Definition: salgdi.hxx:855
std::shared_ptr< Surface > SurfaceSharedPtr
Definition: cairo.hxx:36
void drawLine(tools::Long nX1, tools::Long nY1, tools::Long nX2, tools::Long nY2) override
Definition: salgdi.hxx:768
virtual void SetLineColor()=0
virtual void drawLine(tools::Long nX1, tools::Long nY1, tools::Long nX2, tools::Long nY2)=0
void drawPolygon(sal_uInt32 nPoints, const Point *pPtAry) override
Definition: salgdi.hxx:783
virtual bool implDrawGradient(basegfx::B2DPolyPolygon const &rPolyPolygon, SalGradient const &rGradient)=0
SalLayoutFlags m_nLayout
Definition: salgdi.hxx:638
bool supportsOperation(OutDevSupportType eType) const override
Definition: salgdi.hxx:935
virtual tools::Long GetGraphicsWidth() const =0
virtual bool hasFastDrawTransformedBitmap() const =0
bool drawPolygonBezier(sal_uInt32 nPoints, const Point *pPtAry, const PolyFlags *pFlgAry) override
Definition: salgdi.hxx:820
bool drawPolyLineBezier(sal_uInt32 nPoints, const Point *pPtAry, const PolyFlags *pFlgAry) override
Definition: salgdi.hxx:815
virtual bool isNativeControlSupported(ControlType eType, ControlPart ePart)
Query the platform layer for native control support.
void drawLine(VirtualDevice *dev, Point const &orig, Point const &dest, Size const &pSize)
draws a line from orig to dest knowing penSize
Definition: shape.cxx:111
bool drawAlphaRect(tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, sal_uInt8 nTransparency) override
Render solid rectangle with given transparency.
Definition: salgdi.hxx:918
void copyBits(const SalTwoRect &rPosAry, SalGraphics *pSrcGraphics) override
Definition: salgdi.hxx:850
void invert(sal_uInt32 nPoints, const Point *pPtAry, SalInvert nFlags) override
Definition: salgdi.hxx:839
void drawPixel(tools::Long nX, tools::Long nY) override
Definition: salgdi.hxx:758
bool implDrawGradient(basegfx::B2DPolyPolygon const &rPolyPolygon, SalGradient const &rGradient) override
Definition: salgdi.hxx:929
A PhysicalFontFaceCollection is created by a PhysicalFontCollection and becomes invalid when original...
Some things multiple-inherit from VclAbstractDialog and OutputDevice, so we need to use virtual inher...
Definition: outdev.hxx:175
bool setClipRegion(const vcl::Region &i_rClip) override
Definition: salgdi.hxx:718
std::unique_ptr< vcl::WidgetDrawInterface > m_pWidgetDraw
Definition: salgdi.hxx:666
virtual bool drawAlphaRect(tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, sal_uInt8 nTransparency)=0
void SetFillColor() override
Definition: salgdi.hxx:733
SalInvert
Definition: salgtype.hxx:74
tools::Long m_nLastMirrorDeviceLTRButBiDiRtlTranslate
Definition: salgdi.hxx:643
std::shared_ptr< cairo_surface_t > CairoSurfaceSharedPtr
Definition: cairo.hxx:34
virtual OUString getRenderBackendName() const =0
virtual bool setClipRegion(const vcl::Region &)=0
virtual SalGraphicsImpl * GetImpl() const =0
bool blendAlphaBitmap(const SalTwoRect &rPosAry, const SalBitmap &rSourceBitmap, const SalBitmap &rMaskBitmap, const SalBitmap &rAlphaBitmap) override
Draw the bitmap by blending using the mask and alpha channel.
Definition: salgdi.hxx:892
virtual bool drawPolyPolygonBezier(sal_uInt32 nPoly, const sal_uInt32 *pPoints, const Point *const *pPtAry, const PolyFlags *const *pFlgAry)=0
void ReleaseFonts()
Definition: salgdi.hxx:153
void SetFillColor(Color nColor) override
Definition: salgdi.hxx:738
abstract base class for physical font faces
vcl::WidgetDrawInterface * forWidget()
Definition: salgdi.hxx:667
ControlType
These types are all based on the supported variants vcl/salnativewidgets.hxx and must be kept in-sync...
#define VCL_PLUGIN_PUBLIC
Definition: dllapi.h:40
virtual void invert(tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, SalInvert nFlags)=0
void setAntiAlias(bool bNew)
Definition: salgdi.hxx:85
bool UpdateSettings(AllSettings &)
Definition: salgdi.hxx:692
virtual bool blendAlphaBitmap(const SalTwoRect &, const SalBitmap &rSrcBitmap, const SalBitmap &rMaskBitmap, const SalBitmap &rAlphaBitmap)=0
void SetROPLineColor(SalROPColor aColor) override
Definition: salgdi.hxx:743
void drawMask(const SalTwoRect &rPosAry, const SalBitmap &rSalBitmap, Color nMaskColor) override
Definition: salgdi.hxx:872
unsigned char sal_uInt8
void SetXORMode(bool bSet, bool bInvertOnly) override
Definition: salgdi.hxx:753
SalLayoutFlags GetLayout() const
Definition: salgdi.hxx:222
bool m_bLastMirrorDeviceLTRButBiDiRtlSet
Definition: salgdi.hxx:644
OUString getRenderBackendName() const override
Definition: salgdi.hxx:940
bool drawPolyLine(const basegfx::B2DHomMatrix &rObjectToDevice, const basegfx::B2DPolygon &rPolygon, double fTransparency, double fLineWidth, const std::vector< double > *pStroke, basegfx::B2DLineJoin eJoin, css::drawing::LineCap eLineCap, double fMiterMinimumAngle, bool bPixelSnapHairline) override
Definition: salgdi.hxx:801
tools::Long m_aLastMirrorW
Definition: salgdi.hxx:642
virtual bool drawEPS(tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, void *pPtr, sal_uInt32 nSize)=0
void drawPolyLine(sal_uInt32 nPoints, const Point *pPtAry) override
Definition: salgdi.hxx:778
bool drawEPS(tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, void *pPtr, sal_uInt32 nSize) override
Definition: salgdi.hxx:844
void SetROPFillColor(SalROPColor aColor) override
Definition: salgdi.hxx:748
sal_uInt16 GetBitCount() const override
Definition: salgdi.hxx:703
virtual void ResetClipRegion()=0
virtual void SetFillColor()=0
virtual void SetROPFillColor(SalROPColor nROPColor)=0
virtual void drawPixel(tools::Long nX, tools::Long nY)=0
virtual bool updateSettings(AllSettings &rSettings)
void invert(tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, SalInvert nFlags) override
Definition: salgdi.hxx:833
bool drawTransformedBitmap(const basegfx::B2DPoint &rNull, const basegfx::B2DPoint &rX, const basegfx::B2DPoint &rY, const SalBitmap &rSourceBitmap, const SalBitmap *pAlphaBitmap, double fAlpha) override
draw transformed bitmap (maybe with alpha) where Null, X, Y define the coordinate system ...
Definition: salgdi.hxx:904
bool drawPolyPolygon(const basegfx::B2DHomMatrix &rObjectToDevice, const basegfx::B2DPolyPolygon &rPolyPolygon, double fTransparency) override
Definition: salgdi.hxx:793
void SetLayout(SalLayoutFlags aLayout)
Definition: salgdi.hxx:223
virtual Color getPixel(tools::Long nX, tools::Long nY)=0
void SetLineColor(const css::uno::Reference< css::beans::XPropertySet > &xGridProperties, sal_Int32 nColor)
virtual std::shared_ptr< SalBitmap > getBitmap(tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight)=0
static void drawBitmap(SalGraphics &rGraphics, const SalTwoRect &rPosAry, const SalBitmap &rSalBitmap)
virtual void drawMask(const SalTwoRect &rPosAry, const SalBitmap &rSalBitmap, Color nMaskColor)=0
bool getAntiAlias() const
Definition: salgdi.hxx:94
std::map< sal_Ucs, sal_uInt32 > Ucs2UIntMap
Definition: salgdi.hxx:66
virtual bool drawPolyLineBezier(sal_uInt32 nPoints, const Point *pPtAry, const PolyFlags *pFlgAry)=0
virtual void drawPolyLine(sal_uInt32 nPoints, const Point *pPtAry)=0
void drawBitmap(const SalTwoRect &rPosAry, const SalBitmap &rSalBitmap) override
Definition: salgdi.hxx:862
virtual void SetROPLineColor(SalROPColor nROPColor)=0
virtual sal_uInt16 GetBitCount() const =0
virtual bool drawTransformedBitmap(const basegfx::B2DPoint &rNull, const basegfx::B2DPoint &rX, const basegfx::B2DPoint &rY, const SalBitmap &rSourceBitmap, const SalBitmap *pAlphaBitmap, double fAlpha)=0
Implementation class for SalGraphics.
Definition: salgdiimpl.hxx:50
bool IsNativeControlSupported(ControlType, ControlPart)
Definition: salgdi.hxx:687
virtual void handleDamage(const tools::Rectangle &rDamagedRegion)
Handle damage done by drawing with a widget draw override.
Definition: salgdi.hxx:697
Return value of GetTTGlobalFontInfo()
Definition: sft.hxx:147
Color getPixel(tools::Long nX, tools::Long nY) override
Definition: salgdi.hxx:882
virtual bool drawPolygonBezier(sal_uInt32 nPoints, const Point *pPtAry, const PolyFlags *pFlgAry)=0
PolyFlags
bool drawAlphaBitmap(const SalTwoRect &rPosAry, const SalBitmap &rSourceBitmap, const SalBitmap &rAlphaBitmap) override
Render bitmap with alpha channel.
Definition: salgdi.hxx:898
SalLayoutFlags