LibreOffice Module vcl (master)  1
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
vcl::PDFWriterImpl Class Reference

#include <pdfwriter_impl.hxx>

Inheritance diagram for vcl::PDFWriterImpl:
[legend]
Collaboration diagram for vcl::PDFWriterImpl:
[legend]

Classes

struct  BitmapEmit
 
struct  BitmapID
 
struct  EmbedFont
 
struct  FontEmit
 
struct  FontSubset
 
struct  Glyph
 
class  GlyphEmit
 
struct  GradientEmit
 
struct  GraphicsState
 
struct  JPGEmit
 
struct  PDFAddStream
 
struct  PDFAnnotation
 
struct  PDFDest
 
struct  PDFEmbeddedFile
 A PDF embedded file. More...
 
struct  PDFGlyph
 
struct  PDFLink
 
struct  PDFNamedDest
 
struct  PDFNoteEntry
 
struct  PDFOutlineEntry
 
struct  PDFPage
 
struct  PDFScreen
 A PDF Screen annotation. More...
 
struct  PDFStructureAttribute
 
struct  PDFStructureElement
 
struct  PDFStructureElementKid
 
struct  PDFWidget
 
struct  ReferenceXObjectEmit
 Contains information to emit a reference XObject. More...
 
struct  ResourceDict
 
struct  StreamRedirect
 
struct  TilingEmit
 
struct  TransparencyEmit
 

Public Types

enum  ResourceKind {
  ResXObject,
  ResExtGState,
  ResShading,
  ResPattern
}
 
typedef std::map< OString, sal_Int32 > ResourceMap
 
typedef std::map< sal_GlyphId, GlyphEmitFontEmitMapping
 
typedef std::map< sal_GlyphId, GlyphFontMapping
 
typedef std::map< const PhysicalFontFace *, FontSubsetFontSubsetData
 
typedef std::map< const PhysicalFontFace *, EmbedFontFontEmbedData
 
typedef std::unordered_map< OString, SvMemoryStream * > PDFAppearanceStreams
 
typedef std::unordered_map< OString, PDFAppearanceStreamsPDFAppearanceMap
 
- Public Types inherited from VirtualDevice
enum  RefDevMode {
  RefDevMode::NONE = 0,
  RefDevMode::Dpi600 = 1,
  RefDevMode::MSO1 = 3,
  RefDevMode::PDF1 = 4,
  RefDevMode::Custom = 5
}
 

Public Member Functions

 PDFWriterImpl (const PDFWriter::PDFWriterContext &rContext, const css::uno::Reference< css::beans::XMaterialHolder > &, PDFWriter &)
 
 ~PDFWriterImpl () override
 
void dispose () override
 
void newPage (double nPageWidth, double nPageHeight, PDFWriter::Orientation eOrientation)
 
bool emit ()
 
const std::set< PDFWriter::ErrorCode > & getErrors () const
 
void insertError (PDFWriter::ErrorCode eErr)
 
void playMetafile (const GDIMetaFile &, vcl::PDFExtOutDevData *, const vcl::PDFWriter::PlayMetafileContext &, VirtualDevice *pDummyDev=nullptr)
 
Size getCurPageSize () const
 
PDFWriter::PDFVersion getVersion () const
 
void setDocumentLocale (const css::lang::Locale &rLoc)
 
void push (PushFlags nFlags)
 
void pop ()
 
void setFont (const Font &rFont)
 
void setMapMode (const MapMode &rMapMode)
 
const MapModegetMapMode ()
 
void setLineColor (const Color &rColor)
 
void setFillColor (const Color &rColor)
 
void setTextLineColor ()
 
void setTextLineColor (const Color &rColor)
 
void setOverlineColor ()
 
void setOverlineColor (const Color &rColor)
 
void setTextFillColor (const Color &rColor)
 
void setTextFillColor ()
 
void setTextColor (const Color &rColor)
 
void clearClipRegion ()
 
void setClipRegion (const basegfx::B2DPolyPolygon &rRegion)
 
void moveClipRegion (sal_Int32 nX, sal_Int32 nY)
 
void intersectClipRegion (const tools::Rectangle &rRect)
 
void intersectClipRegion (const basegfx::B2DPolyPolygon &rRegion)
 
void setLayoutMode (ComplexTextLayoutFlags nLayoutMode)
 
void setDigitLanguage (LanguageType eLang)
 
void setTextAlign (TextAlign eAlign)
 
void drawText (const Point &rPos, const OUString &rText, sal_Int32 nIndex, sal_Int32 nLen, bool bTextLines=true)
 
void drawTextArray (const Point &rPos, const OUString &rText, const long *pDXArray, sal_Int32 nIndex, sal_Int32 nLen)
 
void drawStretchText (const Point &rPos, sal_uLong nWidth, const OUString &rText, sal_Int32 nIndex, sal_Int32 nLen)
 
void drawText (const tools::Rectangle &rRect, const OUString &rOrigStr, DrawTextFlags nStyle)
 
void drawTextLine (const Point &rPos, long nWidth, FontStrikeout eStrikeout, FontLineStyle eUnderline, FontLineStyle eOverline, bool bUnderlineAbove)
 
void drawWaveTextLine (OStringBuffer &aLine, long nWidth, FontLineStyle eTextLine, Color aColor, bool bIsAbove)
 
void drawStraightTextLine (OStringBuffer &aLine, long nWidth, FontLineStyle eTextLine, Color aColor, bool bIsAbove)
 
void drawStrikeoutLine (OStringBuffer &aLine, long nWidth, FontStrikeout eStrikeout, Color aColor)
 
void drawStrikeoutChar (const Point &rPos, long nWidth, FontStrikeout eStrikeout)
 
void drawLine (const Point &rStart, const Point &rStop)
 
void drawLine (const Point &rStart, const Point &rStop, const LineInfo &rInfo)
 
void drawPolygon (const tools::Polygon &rPoly)
 
void drawPolyPolygon (const tools::PolyPolygon &rPolyPoly)
 
void drawPolyLine (const tools::Polygon &rPoly)
 
void drawPolyLine (const tools::Polygon &rPoly, const LineInfo &rInfo)
 
void drawPolyLine (const tools::Polygon &rPoly, const PDFWriter::ExtLineInfo &rInfo)
 
void drawPixel (const Point &rPt, const Color &rColor)
 
void drawRectangle (const tools::Rectangle &rRect)
 
void drawRectangle (const tools::Rectangle &rRect, sal_uInt32 nHorzRound, sal_uInt32 nVertRound)
 
void drawEllipse (const tools::Rectangle &rRect)
 
void drawArc (const tools::Rectangle &rRect, const Point &rStart, const Point &rStop, bool bWithPie, bool bWidthChord)
 
void drawBitmap (const Point &rDestPoint, const Size &rDestSize, const Bitmap &rBitmap, const Graphic &rGraphic)
 
void drawBitmap (const Point &rDestPoint, const Size &rDestSize, const BitmapEx &rBitmap)
 
void drawJPGBitmap (SvStream &rDCTData, bool bIsTrueColor, const Size &rSizePixel, const tools::Rectangle &rTargetArea, const Bitmap &rMask, const Graphic &rGraphic)
 
void createEmbeddedFile (const Graphic &rGraphic, ReferenceXObjectEmit &rEmit, sal_Int32 nBitmapObject)
 Stores the original PDF data from rGraphic as an embedded file. More...
 
void drawGradient (const tools::Rectangle &rRect, const Gradient &rGradient)
 
void drawHatch (const tools::PolyPolygon &rPolyPoly, const Hatch &rHatch)
 
void drawWallpaper (const tools::Rectangle &rRect, const Wallpaper &rWall)
 
void drawTransparent (const tools::PolyPolygon &rPolyPoly, sal_uInt32 nTransparentPercent)
 
void beginTransparencyGroup ()
 
void endTransparencyGroup (const tools::Rectangle &rBoundingBox, sal_uInt32 nTransparentPercent)
 
void emitComment (const char *pComment)
 
sal_Int32 createNamedDest (const OUString &sDestName, const tools::Rectangle &rRect, sal_Int32 nPageNr, PDFWriter::DestAreaType eType)
 
sal_Int32 emitOutputIntent ()
 
sal_Int32 emitDocumentMetadata ()
 
sal_Int32 createLink (const tools::Rectangle &rRect, sal_Int32 nPageNr)
 
sal_Int32 createDest (const tools::Rectangle &rRect, sal_Int32 nPageNr, PDFWriter::DestAreaType eType)
 
sal_Int32 registerDestReference (sal_Int32 nDestId, const tools::Rectangle &rRect, sal_Int32 nPageNr, PDFWriter::DestAreaType eType)
 
void setLinkDest (sal_Int32 nLinkId, sal_Int32 nDestId)
 
void setLinkURL (sal_Int32 nLinkId, const OUString &rURL)
 
void setLinkPropertyId (sal_Int32 nLinkId, sal_Int32 nPropertyId)
 
sal_Int32 createScreen (const tools::Rectangle &rRect, sal_Int32 nPageNr)
 
void setScreenURL (sal_Int32 nScreenId, const OUString &rURL)
 
void setScreenStream (sal_Int32 nScreenId, const OUString &rURL)
 
sal_Int32 createOutlineItem (sal_Int32 nParent, const OUString &rText, sal_Int32 nDestID)
 
void setOutlineItemParent (sal_Int32 nItem, sal_Int32 nNewParent)
 
void setOutlineItemText (sal_Int32 nItem, const OUString &rText)
 
void setOutlineItemDest (sal_Int32 nItem, sal_Int32 nDestID)
 
void createNote (const tools::Rectangle &rRect, const PDFNote &rNote, sal_Int32 nPageNr)
 
sal_Int32 beginStructureElement (PDFWriter::StructElement eType, const OUString &rAlias)
 
void endStructureElement ()
 
bool setCurrentStructureElement (sal_Int32 nElement)
 
bool setStructureAttribute (enum PDFWriter::StructAttribute eAttr, enum PDFWriter::StructAttributeValue eVal)
 
bool setStructureAttributeNumerical (enum PDFWriter::StructAttribute eAttr, sal_Int32 nValue)
 
void setStructureBoundingBox (const tools::Rectangle &rRect)
 
void setActualText (const OUString &rText)
 
void setAlternateText (const OUString &rText)
 
void setPageTransition (PDFWriter::PageTransition eType, sal_uInt32 nMilliSec, sal_Int32 nPageNr)
 
sal_Int32 createControl (const PDFWriter::AnyWidget &rControl, sal_Int32 nPageNr=-1)
 
void addStream (const OUString &rMimeType, PDFOutputStream *pStream)
 
void MARK (const char *pString)
 
- Public Member Functions inherited from VirtualDevice
 VirtualDevice (DeviceFormat eFormat=DeviceFormat::DEFAULT, DeviceFormat eAlphaFormat=DeviceFormat::NONE)
 Create a virtual device of size 1x1. More...
 
 VirtualDevice (const OutputDevice &rCompDev, DeviceFormat eFormat=DeviceFormat::DEFAULT)
 Create a virtual device of size 1x1. More...
 
 VirtualDevice (const OutputDevice &rCompDev, DeviceFormat eFormat, DeviceFormat eAlphaFormat)
 Create a virtual device of size 1x1 with alpha channel. More...
 
 VirtualDevice (const SystemGraphicsData &rData, const Size &rSize, DeviceFormat eFormat)
 Create a virtual device using an existing system dependent device or graphics context Any rendering will happen directly on the context and not on any intermediate bitmap. More...
 
virtual ~VirtualDevice () override
 
virtual void EnableRTL (bool bEnable=true) override
 
bool SetOutputSizePixel (const Size &rNewSize, bool bErase=true)
 
bool SetOutputSizePixelScaleOffsetAndBuffer (const Size &rNewSize, const Fraction &rScale, const Point &rNewOffset, sal_uInt8 *pBuffer)
 
bool SetOutputSize (const Size &rNewSize)
 
void SetReferenceDevice (RefDevMode)
 
void Compat_ZeroExtleadBug ()
 
void SetReferenceDevice (sal_Int32 i_nDPIX, sal_Int32 i_nDPIY)
 
virtual sal_uInt16 GetBitCount () const override
 
bool IsVirtual () const override
 
- Public Member Functions inherited from OutputDevice
SAL_DLLPRIVATE sal_Int32 GetDPIX () const
 Get the output device's DPI x-axis value. More...
 
SAL_DLLPRIVATE sal_Int32 GetDPIY () const
 Get the output device's DPI y-axis value. More...
 
SAL_DLLPRIVATE void SetDPIX (sal_Int32 nDPIX)
 
SAL_DLLPRIVATE void SetDPIY (sal_Int32 nDPIY)
 
float GetDPIScaleFactor () const
 
sal_Int32 GetDPIScalePercentage () const
 
OutDevType GetOutDevType () const
 
bool SupportsOperation (OutDevSupportType) const
 Query an OutputDevice to see whether it supports a specific operation. More...
 
void SetExtOutDevData (vcl::ExtOutDevData *pExtOutDevData)
 
vcl::ExtOutDevDataGetExtOutDevData () const
 
void DrawPixel (const Point &rPt)
 
void DrawPixel (const Point &rPt, const Color &rColor)
 
Color GetPixel (const Point &rPt) const
 
void DrawRect (const tools::Rectangle &rRect)
 
void DrawRect (const tools::Rectangle &rRect, sal_uLong nHorzRount, sal_uLong nVertRound)
 
void DrawCheckered (const Point &rPos, const Size &rSize, sal_uInt32 nLen=8, Color aStart=COL_WHITE, Color aEnd=COL_BLACK)
 Fill the given rectangle with checkered rectangles of size nLen x nLen using the colors aStart and aEnd. More...
 
void DrawGrid (const tools::Rectangle &rRect, const Size &rDist, DrawGridFlags nFlags)
 
void Invert (const tools::Rectangle &rRect, InvertFlags nFlags=InvertFlags::NONE)
 
void Invert (const tools::Polygon &rPoly, InvertFlags nFlags=InvertFlags::NONE)
 
void DrawEllipse (const tools::Rectangle &rRect)
 
void DrawArc (const tools::Rectangle &rRect, const Point &rStartPt, const Point &rEndPt)
 
void DrawPie (const tools::Rectangle &rRect, const Point &rStartPt, const Point &rEndPt)
 
void DrawChord (const tools::Rectangle &rRect, const Point &rStartPt, const Point &rEndPt)
 
SystemTextLayoutData GetSysTextLayoutData (const Point &rStartPt, const OUString &rStr, sal_Int32 nIndex, sal_Int32 nLen, const long *pDXAry) const
 OutputDevice::GetSysTextLayoutData. More...
 
SAL_DLLPRIVATE bool ImplIsAntiparallel () const
 
SAL_DLLPRIVATE void ReMirror (Point &rPoint) const
 
SAL_DLLPRIVATE void ReMirror (tools::Rectangle &rRect) const
 
SAL_DLLPRIVATE void ReMirror (vcl::Region &rRegion) const
 
SAL_DLLPRIVATE bool ImplIsRecordLayout () const
 
virtual bool HasMirroredGraphics () const
 
std::unique_ptr< SalLayoutImplLayout (const OUString &, sal_Int32 nIndex, sal_Int32 nLen, const Point &rLogicPos=Point(0, 0), long nLogicWidth=0, const long *pLogicDXArray=nullptr, SalLayoutFlags flags=SalLayoutFlags::NONE, vcl::TextLayoutCache const *=nullptr, const SalLayoutGlyphs *pGlyphs=nullptr) const
 
SAL_DLLPRIVATE ImplLayoutArgs ImplPrepareLayoutArgs (OUString &, const sal_Int32 nIndex, const sal_Int32 nLen, DeviceCoordinate nPixelWidth, const DeviceCoordinate *pPixelDXArray, SalLayoutFlags flags=SalLayoutFlags::NONE, vcl::TextLayoutCache const *=nullptr) const
 
SAL_DLLPRIVATE std::unique_ptr< SalLayoutImplGlyphFallbackLayout (std::unique_ptr< SalLayout >, ImplLayoutArgs &) const
 
SAL_DLLPRIVATE std::unique_ptr< SalLayoutgetFallbackLayout (LogicalFontInstance *pLogicalFont, int nFallbackLevel, ImplLayoutArgs &rLayoutArgs) const
 
bool IsRTLEnabled () const
 
bool GetTextIsRTL (const OUString &, sal_Int32 nIndex, sal_Int32 nLen) const
 
bool IsNativeControlSupported (ControlType nType, ControlPart nPart) const
 Query the platform layer for control support. More...
 
bool HitTestNativeScrollbar (ControlPart nPart, const tools::Rectangle &rControlRegion, const Point &aPos, bool &rIsInside) const
 Query the native control to determine if it was acted upon. More...
 
bool DrawNativeControl (ControlType nType, ControlPart nPart, const tools::Rectangle &rControlRegion, ControlState nState, const ImplControlValue &aValue, const OUString &aCaption)
 Request rendering of a particular control and/or part. More...
 
bool GetNativeControlRegion (ControlType nType, ControlPart nPart, const tools::Rectangle &rControlRegion, ControlState nState, const ImplControlValue &aValue, tools::Rectangle &rNativeBoundingRegion, tools::Rectangle &rNativeContentRegion) const
 Query the native control's actual drawing region (including adornment) More...
 
bool DrawEPS (const Point &rPt, const Size &rSz, const GfxLink &rGfxLink, GDIMetaFile *pSubst=nullptr)
 
SalGraphics const * GetGraphics () const
 Get the graphic context that the output device uses to draw on. More...
 
SalGraphicsGetGraphics ()
 
void SetConnectMetaFile (GDIMetaFile *pMtf)
 
GDIMetaFileGetConnectMetaFile () const
 
virtual void SetSettings (const AllSettings &rSettings)
 
const AllSettingsGetSettings () const
 
SystemGraphicsData GetSystemGfxData () const
 
bool SupportsCairo () const
 
cairo::SurfaceSharedPtr CreateSurface (const cairo::CairoSurfaceSharedPtr &rSurface) const
 Create Surface from given cairo surface. More...
 
cairo::SurfaceSharedPtr CreateSurface (int x, int y, int width, int height) const
 Create surface with given dimensions. More...
 
cairo::SurfaceSharedPtr CreateBitmapSurface (const BitmapSystemData &rData, const Size &rSize) const
 Create Surface for given bitmap data. More...
 
css::uno::Any GetNativeSurfaceHandle (cairo::SurfaceSharedPtr &rSurface, const basegfx::B2ISize &rSize) const
 Return native handle for underlying surface. More...
 
css::uno::Any GetSystemGfxDataAny () const
 
void SetRefPoint ()
 
void SetRefPoint (const Point &rRefPoint)
 
const PointGetRefPoint () const
 
bool IsRefPoint () const
 
Size GetOutputSizePixel () const
 
long GetOutputWidthPixel () const
 
long GetOutputHeightPixel () const
 
long GetOutOffXPixel () const
 
long GetOutOffYPixel () const
 
void SetOutOffXPixel (long nOutOffX)
 
void SetOutOffYPixel (long nOutOffY)
 
Size GetOutputSize () const
 
css::uno::Reference< css::awt::XGraphics > CreateUnoGraphics ()
 
std::vector< VCLXGraphics * > * GetUnoGraphicsList () const
 
std::vector< VCLXGraphics * > * CreateUnoGraphicsList ()
 
virtual void Flush ()
 
virtual void DrawOutDev (const Point &rDestPt, const Size &rDestSize, const Point &rSrcPt, const Size &rSrcSize)
 
virtual void DrawOutDev (const Point &rDestPt, const Size &rDestSize, const Point &rSrcPt, const Size &rSrcSize, const OutputDevice &rOutDev)
 
virtual void CopyArea (const Point &rDestPt, const Point &rSrcPt, const Size &rSrcSize, bool bWindowInvalidate=false)
 
void Push (PushFlags nFlags=PushFlags::ALL)
 
void Pop ()
 
sal_uInt32 GetGCStackDepth () const
 
void EnableOutput (bool bEnable=true)
 
bool IsOutputEnabled () const
 
bool IsDeviceOutputNecessary () const
 
void SetAntialiasing (AntialiasingFlags nMode)
 
AntialiasingFlags GetAntialiasing () const
 
void SetDrawMode (DrawModeFlags nDrawMode)
 
DrawModeFlags GetDrawMode () const
 
void SetLayoutMode (ComplexTextLayoutFlags nTextLayoutMode)
 
ComplexTextLayoutFlags GetLayoutMode () const
 
void SetDigitLanguage (LanguageType)
 
LanguageType GetDigitLanguage () const
 
void SetRasterOp (RasterOp eRasterOp)
 
RasterOp GetRasterOp () const
 
void SetOutDevViewType (OutDevViewType eOutDevViewType)
 If this OutputDevice is used for displaying a Print Preview the OutDevViewType should be set to 'OutDevViewType::PrintPreview'. More...
 
OutDevViewType GetOutDevViewType () const
 
void SetLineColor ()
 
void SetLineColor (const Color &rColor)
 
const ColorGetLineColor () const
 
bool IsLineColor () const
 
void SetFillColor ()
 
void SetFillColor (const Color &rColor)
 
const ColorGetFillColor () const
 
bool IsFillColor () const
 
void SetBackground ()
 
void SetBackground (const Wallpaper &rBackground)
 
virtual void SaveBackground (VirtualDevice &rSaveDevice, const Point &rPos, const Size &rSize, const Size &rBackgroundSize) const
 
const WallpaperGetBackground () const
 
virtual Color GetBackgroundColor () const
 
virtual Color GetReadableFontColor (const Color &rFontColor, const Color &rBgColor) const
 
bool IsBackground () const
 
void SetFont (const vcl::Font &rNewFont)
 
const vcl::FontGetFont () const
 
vcl::Region GetClipRegion () const
 
void SetClipRegion ()
 
void SetClipRegion (const vcl::Region &rRegion)
 
bool SelectClipRegion (const vcl::Region &, SalGraphics *pGraphics=nullptr)
 
bool IsClipRegion () const
 
void MoveClipRegion (long nHorzMove, long nVertMove)
 
void IntersectClipRegion (const tools::Rectangle &rRect)
 
void IntersectClipRegion (const vcl::Region &rRegion)
 
virtual vcl::Region GetActiveClipRegion () const
 
void DrawLine (const Point &rStartPt, const Point &rEndPt)
 
void DrawLine (const Point &rStartPt, const Point &rEndPt, const LineInfo &rLineInfo)
 
void DrawPolyLine (const tools::Polygon &rPoly)
 Render the given polygon as a line stroke. More...
 
void DrawPolyLine (const basegfx::B2DPolygon &, double fLineWidth=0.0, basegfx::B2DLineJoin eLineJoin=basegfx::B2DLineJoin::Round, css::drawing::LineCap eLineCap=css::drawing::LineCap_BUTT, double fMiterMinimumAngle=basegfx::deg2rad(15.0))
 
void DrawPolyLine (const tools::Polygon &rPoly, const LineInfo &rLineInfo)
 Render the given polygon as a line stroke. More...
 
bool DrawPolyLineDirect (const basegfx::B2DHomMatrix &rObjectTransform, const basegfx::B2DPolygon &rB2DPolygon, double fLineWidth=0.0, double fTransparency=0.0, basegfx::B2DLineJoin eLineJoin=basegfx::B2DLineJoin::NONE, css::drawing::LineCap eLineCap=css::drawing::LineCap_BUTT, double fMiterMinimumAngle=basegfx::deg2rad(15.0), bool bBypassAACheck=false)
 
void DrawPolygon (const tools::Polygon &rPoly)
 Render the given polygon. More...
 
void DrawPolygon (const basegfx::B2DPolygon &)
 
void DrawPolyPolygon (const tools::PolyPolygon &rPolyPoly)
 Render the given poly-polygon. More...
 
void DrawPolyPolygon (const basegfx::B2DPolyPolygon &)
 
void DrawGradient (const tools::Rectangle &rRect, const Gradient &rGradient)
 
void DrawGradient (const tools::PolyPolygon &rPolyPoly, const Gradient &rGradient)
 
void AddGradientActions (const tools::Rectangle &rRect, const Gradient &rGradient, GDIMetaFile &rMtf)
 
void DrawHatch (const tools::PolyPolygon &rPolyPoly, const Hatch &rHatch)
 
void AddHatchActions (const tools::PolyPolygon &rPolyPoly, const Hatch &rHatch, GDIMetaFile &rMtf)
 
void DrawHatch (const tools::PolyPolygon &rPolyPoly, const Hatch &rHatch, bool bMtf)
 
void DrawWallpaper (const tools::Rectangle &rRect, const Wallpaper &rWallpaper)
 
void Erase ()
 
void Erase (const tools::Rectangle &rRect)
 
void DrawText (const Point &rStartPt, const OUString &rStr, sal_Int32 nIndex=0, sal_Int32 nLen=-1, MetricVector *pVector=nullptr, OUString *pDisplayText=nullptr, const SalLayoutGlyphs *pLayoutCache=nullptr)
 
void DrawText (const tools::Rectangle &rRect, const OUString &rStr, DrawTextFlags nStyle=DrawTextFlags::NONE, MetricVector *pVector=nullptr, OUString *pDisplayText=nullptr, vcl::ITextLayout *_pTextLayout=nullptr)
 
void ImplDrawText (SalLayout &)
 
void ImplDrawTextBackground (const SalLayout &)
 
void DrawCtrlText (const Point &rPos, const OUString &rStr, sal_Int32 nIndex=0, sal_Int32 nLen=-1, DrawTextFlags nStyle=DrawTextFlags::Mnemonic, MetricVector *pVector=nullptr, OUString *pDisplayText=nullptr, const SalLayoutGlyphs *pGlyphs=nullptr)
 
void DrawTextLine (const Point &rPos, long nWidth, FontStrikeout eStrikeout, FontLineStyle eUnderline, FontLineStyle eOverline, bool bUnderlineAbove=false)
 
void ImplDrawTextLine (long nBaseX, long nX, long nY, DeviceCoordinate nWidth, FontStrikeout eStrikeout, FontLineStyle eUnderline, FontLineStyle eOverline, bool bUnderlineAbove)
 
void ImplDrawTextLines (SalLayout &, FontStrikeout eStrikeout, FontLineStyle eUnderline, FontLineStyle eOverline, bool bWordLine, bool bUnderlineAbove)
 
void DrawWaveLine (const Point &rStartPos, const Point &rEndPos, long nLineWidth=1)
 
bool ImplDrawRotateText (SalLayout &)
 
tools::Rectangle GetTextRect (const tools::Rectangle &rRect, const OUString &rStr, DrawTextFlags nStyle=DrawTextFlags::WordBreak, TextRectInfo *pInfo=nullptr, const vcl::ITextLayout *_pTextLayout=nullptr) const
 
bool GetTextBoundRect (tools::Rectangle &rRect, const OUString &rStr, sal_Int32 nBase=0, sal_Int32 nIndex=0, sal_Int32 nLen=-1, sal_uLong nLayoutWidth=0, const long *pDXArray=nullptr, const SalLayoutGlyphs *pGlyphs=nullptr) const
 Return the exact bounding rectangle of rStr. More...
 
tools::Rectangle ImplGetTextBoundRect (const SalLayout &)
 
bool GetTextOutline (tools::PolyPolygon &, const OUString &rStr, sal_Int32 nLen=-1, sal_uLong nLayoutWidth=0, const long *pDXArray=nullptr) const
 
bool GetTextOutlines (PolyPolyVector &, const OUString &rStr, sal_Int32 nBase=0, sal_Int32 nIndex=0, sal_Int32 nLen=-1, sal_uLong nLayoutWidth=0, const long *pDXArray=nullptr) const
 
bool GetTextOutlines (basegfx::B2DPolyPolygonVector &rVector, const OUString &rStr, sal_Int32 nBase, sal_Int32 nIndex=0, sal_Int32 nLen=-1, sal_uLong nLayoutWidth=0, const long *pDXArray=nullptr) const
 
OUString GetEllipsisString (const OUString &rStr, long nMaxWidth, DrawTextFlags nStyle=DrawTextFlags::EndEllipsis) const
 
long GetCtrlTextWidth (const OUString &rStr, const SalLayoutGlyphs *pLayoutCache=nullptr) const
 
void AddTextRectActions (const tools::Rectangle &rRect, const OUString &rOrigStr, DrawTextFlags nStyle, GDIMetaFile &rMtf)
 Generate MetaTextActions for the text rect. More...
 
void SetTextColor (const Color &rColor)
 
const ColorGetTextColor () const
 
void SetTextFillColor ()
 
void SetTextFillColor (const Color &rColor)
 
Color GetTextFillColor () const
 
bool IsTextFillColor () const
 
void SetTextLineColor ()
 
void SetTextLineColor (const Color &rColor)
 
const ColorGetTextLineColor () const
 
bool IsTextLineColor () const
 
void SetOverlineColor ()
 
void SetOverlineColor (const Color &rColor)
 
const ColorGetOverlineColor () const
 
bool IsOverlineColor () const
 
void SetTextAlign (TextAlign eAlign)
 
TextAlign GetTextAlign () const
 
long GetTextWidth (const OUString &rStr, sal_Int32 nIndex=0, sal_Int32 nLen=-1, vcl::TextLayoutCache const *=nullptr, SalLayoutGlyphs const *const pLayoutCache=nullptr) const
 Width of the text. More...
 
long GetTextHeight () const
 Height where any character of the current font fits; in logic coordinates. More...
 
float approximate_char_width () const
 
float approximate_digit_width () const
 
void DrawTextArray (const Point &rStartPt, const OUString &rStr, const long *pDXAry, sal_Int32 nIndex=0, sal_Int32 nLen=-1, SalLayoutFlags flags=SalLayoutFlags::NONE, const SalLayoutGlyphs *pLayoutCache=nullptr)
 
long GetTextArray (const OUString &rStr, long *pDXAry, sal_Int32 nIndex=0, sal_Int32 nLen=-1, vcl::TextLayoutCache const *=nullptr, SalLayoutGlyphs const *const pLayoutCache=nullptr) const
 
void GetCaretPositions (const OUString &, long *pCaretXArray, sal_Int32 nIndex, sal_Int32 nLen, const SalLayoutGlyphs *pGlyphs=nullptr) const
 
void DrawStretchText (const Point &rStartPt, sal_uLong nWidth, const OUString &rStr, sal_Int32 nIndex=0, sal_Int32 nLen=-1)
 
sal_Int32 GetTextBreak (const OUString &rStr, long nTextWidth, sal_Int32 nIndex, sal_Int32 nLen=-1, long nCharExtra=0, vcl::TextLayoutCache const *=nullptr, const SalLayoutGlyphs *pGlyphs=nullptr) const
 
sal_Int32 GetTextBreak (const OUString &rStr, long nTextWidth, sal_Unicode nExtraChar, sal_Int32 &rExtraCharPos, sal_Int32 nIndex, sal_Int32 nLen, long nCharExtra, vcl::TextLayoutCache const *=nullptr) const
 
FontMetric GetDevFont (int nDevFontIndex) const
 
int GetDevFontCount () const
 
bool IsFontAvailable (const OUString &rFontName) const
 
Size GetDevFontSize (const vcl::Font &rFont, int nSizeIndex) const
 
int GetDevFontSizeCount (const vcl::Font &) const
 
bool AddTempDevFont (const OUString &rFileURL, const OUString &rFontName)
 
void RefreshFontData (const bool bNewFontLists)
 
FontMetric GetFontMetric () const
 
FontMetric GetFontMetric (const vcl::Font &rFont) const
 
bool GetFontCharMap (FontCharMapRef &rxFontCharMap) const
 
bool GetFontCapabilities (vcl::FontCapabilities &rFontCapabilities) const
 
bool GetFontFeatures (std::vector< vcl::font::Feature > &rFontFeatures) const
 
SystemFontData GetSysFontData (int nFallbacklevel) const
 Retrieve detailed font information in platform independent structure. More...
 
SAL_DLLPRIVATE void ImplGetEmphasisMark (tools::PolyPolygon &rPolyPoly, bool &rPolyLine, tools::Rectangle &rRect1, tools::Rectangle &rRect2, long &rYOff, long &rWidth, FontEmphasisMark eEmphasis, long nHeight)
 
bool GetGlyphBoundRects (const Point &rOrigin, const OUString &rStr, int nIndex, int nLen, MetricVector &rVector)
 
sal_Int32 HasGlyphs (const vcl::Font &rFont, const OUString &rStr, sal_Int32 nIndex=0, sal_Int32 nLen=-1) const
 
long GetMinKashida () const
 
sal_Int32 ValidateKashidas (const OUString &rTxt, sal_Int32 nIdx, sal_Int32 nLen, sal_Int32 nKashCount, const sal_Int32 *pKashidaPos, sal_Int32 *pKashidaPosDropped) const
 
SAL_DLLPRIVATE void ImplInitFontList () const
 
SAL_DLLPRIVATE void ImplUpdateFontData ()
 
void DrawBitmap (const Point &rDestPt, const Bitmap &rBitmap)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. void DrawBitmap( const Point& rDestPt, const Size& rDestSize, const Point& rSrcPtPixel, const Size& rSecSizePixel, const Bitmap& rBitmap, MetaActionType nAction = MetaActionType::BMPSCALEPART) More...
 
void DrawBitmap (const Point &rDestPt, const Size &rDestSize, const Bitmap &rBitmap)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. void DrawBitmap( const Point& rDestPt, const Size& rDestSize, const Point& rSrcPtPixel, const Size& rSecSizePixel, const Bitmap& rBitmap, MetaActionType nAction = MetaActionType::BMPSCALEPART) More...
 
void DrawBitmap (const Point &rDestPt, const Size &rDestSize, const Point &rSrcPtPixel, const Size &rSrcSizePixel, const Bitmap &rBitmap, MetaActionType nAction=MetaActionType::BMPSCALEPART)
 
void DrawBitmapEx (const Point &rDestPt, const BitmapEx &rBitmapEx)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. void DrawBitmapEx( const Point& rDestPt, const Size& rDestSize, const Point& rSrcPtPixel, const Size& rSecSizePixel, const BitmapEx& rBitmapEx, MetaActionType nAction = MetaActionType::BMPEXSCALEPART) More...
 
void DrawBitmapEx (const Point &rDestPt, const Size &rDestSize, const BitmapEx &rBitmapEx)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. void DrawBitmapEx( const Point& rDestPt, const Size& rDestSize, const Point& rSrcPtPixel, const Size& rSecSizePixel, const BitmapEx& rBitmapEx, MetaActionType nAction = MetaActionType::BMPEXSCALEPART) More...
 
void DrawBitmapEx (const Point &rDestPt, const Size &rDestSize, const Point &rSrcPtPixel, const Size &rSrcSizePixel, const BitmapEx &rBitmapEx, MetaActionType nAction=MetaActionType::BMPEXSCALEPART)
 
void DrawImage (const Point &rPos, const Image &rImage, DrawImageFlags nStyle=DrawImageFlags::NONE)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. virtual void DrawImage( const Point& rPos, const Size& rSize, const Image& rImage, sal_uInt16 nStyle = 0) More...
 
void DrawImage (const Point &rPos, const Size &rSize, const Image &rImage, DrawImageFlags nStyle=DrawImageFlags::NONE)
 
virtual Bitmap GetBitmap (const Point &rSrcPt, const Size &rSize) const
 
BitmapEx GetBitmapEx (const Point &rSrcPt, const Size &rSize) const
 Query extended bitmap (with alpha channel, if available). More...
 
void DrawTransformedBitmapEx (const basegfx::B2DHomMatrix &rTransformation, const BitmapEx &rBitmapEx)
 Draw BitmapEx transformed. More...
 
void DrawShadowBitmapEx (const BitmapEx &rBitmapEx,::Color aShadowColor)
 
bool RemoveTransparenciesFromMetaFile (const GDIMetaFile &rInMtf, GDIMetaFile &rOutMtf, long nMaxBmpDPIX, long nMaxBmpDPIY, bool bReduceTransparency, bool bTransparencyAutoMode, bool bDownsampleBitmaps, const Color &rBackground=COL_TRANSPARENT)
 helper method removing transparencies from a metafile (e.g. More...
 
SAL_DLLPRIVATE void ImplPrintTransparent (const Bitmap &rBmp, const Bitmap &rMask, const Point &rDestPt, const Size &rDestSize, const Point &rSrcPtPixel, const Size &rSrcSizePixel)
 
SAL_DLLPRIVATE Color ImplDrawModeToColor (const Color &rColor) const
 
void DrawTransparent (const tools::PolyPolygon &rPolyPoly, sal_uInt16 nTransparencePercent)
 
void DrawTransparent (const basegfx::B2DHomMatrix &rObjectTransform, const basegfx::B2DPolyPolygon &rB2DPolyPoly, double fTransparency)
 
void DrawTransparent (const GDIMetaFile &rMtf, const Point &rPos, const Size &rSize, const Gradient &rTransparenceGradient)
 
void DrawMask (const Point &rDestPt, const Bitmap &rBitmap, const Color &rMaskColor)
 
void DrawMask (const Point &rDestPt, const Size &rDestSize, const Bitmap &rBitmap, const Color &rMaskColor)
 
void DrawMask (const Point &rDestPt, const Size &rDestSize, const Point &rSrcPtPixel, const Size &rSrcSizePixel, const Bitmap &rBitmap, const Color &rMaskColor, MetaActionType nAction)
 
void EnableMapMode (bool bEnable=true)
 
bool IsMapModeEnabled () const
 
void SetMapMode ()
 
virtual void SetMapMode (const MapMode &rNewMapMode)
 
void SetRelativeMapMode (const MapMode &rNewMapMode)
 
const MapModeGetMapMode () const
 
basegfx::B2DHomMatrix GetViewTransformation () const
 
basegfx::B2DHomMatrix GetInverseViewTransformation () const
 
basegfx::B2DHomMatrix GetViewTransformation (const MapMode &rMapMode) const
 
basegfx::B2DHomMatrix GetInverseViewTransformation (const MapMode &rMapMode) const
 
void SetPixelOffset (const Size &rOffset)
 Set an offset in pixel. More...
 
Size GetPixelOffset () const
 Get the offset in pixel. More...
 
Point LogicToPixel (const Point &rLogicPt) const
 
Size LogicToPixel (const Size &rLogicSize) const
 
tools::Rectangle LogicToPixel (const tools::Rectangle &rLogicRect) const
 
tools::Polygon LogicToPixel (const tools::Polygon &rLogicPoly) const
 
tools::PolyPolygon LogicToPixel (const tools::PolyPolygon &rLogicPolyPoly) const
 
basegfx::B2DPolyPolygon LogicToPixel (const basegfx::B2DPolyPolygon &rLogicPolyPoly) const
 
vcl::Region LogicToPixel (const vcl::Region &rLogicRegion) const
 
Point LogicToPixel (const Point &rLogicPt, const MapMode &rMapMode) const
 
Size LogicToPixel (const Size &rLogicSize, const MapMode &rMapMode) const
 
tools::Rectangle LogicToPixel (const tools::Rectangle &rLogicRect, const MapMode &rMapMode) const
 
tools::Polygon LogicToPixel (const tools::Polygon &rLogicPoly, const MapMode &rMapMode) const
 
basegfx::B2DPolyPolygon LogicToPixel (const basegfx::B2DPolyPolygon &rLogicPolyPoly, const MapMode &rMapMode) const
 
Point PixelToLogic (const Point &rDevicePt) const
 
Size PixelToLogic (const Size &rDeviceSize) const
 
tools::Rectangle PixelToLogic (const tools::Rectangle &rDeviceRect) const
 
tools::Polygon PixelToLogic (const tools::Polygon &rDevicePoly) const
 
tools::PolyPolygon PixelToLogic (const tools::PolyPolygon &rDevicePolyPoly) const
 
basegfx::B2DPolyPolygon PixelToLogic (const basegfx::B2DPolyPolygon &rDevicePolyPoly) const
 
vcl::Region PixelToLogic (const vcl::Region &rDeviceRegion) const
 
Point PixelToLogic (const Point &rDevicePt, const MapMode &rMapMode) const
 
Size PixelToLogic (const Size &rDeviceSize, const MapMode &rMapMode) const
 
tools::Rectangle PixelToLogic (const tools::Rectangle &rDeviceRect, const MapMode &rMapMode) const
 
tools::Polygon PixelToLogic (const tools::Polygon &rDevicePoly, const MapMode &rMapMode) const
 
basegfx::B2DPolygon PixelToLogic (const basegfx::B2DPolygon &rDevicePoly, const MapMode &rMapMode) const
 
basegfx::B2DPolyPolygon PixelToLogic (const basegfx::B2DPolyPolygon &rDevicePolyPoly, const MapMode &rMapMode) const
 
Point LogicToLogic (const Point &rPtSource, const MapMode *pMapModeSource, const MapMode *pMapModeDest) const
 
Size LogicToLogic (const Size &rSzSource, const MapMode *pMapModeSource, const MapMode *pMapModeDest) const
 
tools::Rectangle LogicToLogic (const tools::Rectangle &rRectSource, const MapMode *pMapModeSource, const MapMode *pMapModeDest) const
 
SAL_DLLPRIVATE tools::Rectangle ImplLogicToDevicePixel (const tools::Rectangle &rLogicRect) const
 Convert a logical rectangle to a rectangle in physical device pixel units. More...
 
SAL_DLLPRIVATE Point ImplLogicToDevicePixel (const Point &rLogicPt) const
 Convert a logical point to a physical point on the device. More...
 
SAL_DLLPRIVATE long ImplLogicWidthToDevicePixel (long nWidth) const
 Convert a logical width to a width in units of device pixels. More...
 
SAL_DLLPRIVATE DeviceCoordinate LogicWidthToDeviceCoordinate (long nWidth) const
 
SAL_DLLPRIVATE long ImplLogicXToDevicePixel (long nX) const
 Convert a logical X coordinate to a device pixel's X coordinate. More...
 
SAL_DLLPRIVATE long ImplLogicYToDevicePixel (long nY) const
 Convert a logical Y coordinate to a device pixel's Y coordinate. More...
 
SAL_DLLPRIVATE long ImplLogicHeightToDevicePixel (long nHeight) const
 Convert a logical height to a height in units of device pixels. More...
 
SAL_DLLPRIVATE long ImplDevicePixelToLogicWidth (long nWidth) const
 Convert device pixels to a width in logical units. More...
 
SAL_DLLPRIVATE long ImplDevicePixelToLogicHeight (long nHeight) const
 Convert device pixels to a height in logical units. More...
 
SAL_DLLPRIVATE float ImplFloatLogicHeightToDevicePixel (float fLogicHeight) const
 Convert logical height to device pixels, with exact sub-pixel value. More...
 
SAL_DLLPRIVATE Size ImplLogicToDevicePixel (const Size &rLogicSize) const
 Convert a logical size to the size on the physical device. More...
 
SAL_DLLPRIVATE tools::Rectangle ImplDevicePixelToLogic (const tools::Rectangle &rPixelRect) const
 Convert a rectangle in physical pixel units to a rectangle in physical pixel units and coords. More...
 
SAL_DLLPRIVATE tools::Polygon ImplLogicToDevicePixel (const tools::Polygon &rLogicPoly) const
 Convert a logical polygon to a polygon in physical device pixel units. More...
 
SAL_DLLPRIVATE tools::PolyPolygon ImplLogicToDevicePixel (const tools::PolyPolygon &rLogicPolyPoly) const
 Convert a logical polypolygon to a polypolygon in physical device pixel units. More...
 
SAL_DLLPRIVATE LineInfo ImplLogicToDevicePixel (const LineInfo &rLineInfo) const
 Convert a line in logical units to a line in physical device pixel units. More...
 
SAL_DLLPRIVATE vcl::Region ImplPixelToDevicePixel (const vcl::Region &rRegion) const
 Convert a region in pixel units to a region in device pixel units and coords. More...
 
SAL_DLLPRIVATE void ImplInvalidateViewTransform ()
 Invalidate the view transformation. More...
 
SAL_DLLPRIVATE basegfx::B2DHomMatrix ImplGetDeviceTransformation () const
 Get device transformation. More...
 
- Public Member Functions inherited from VclReferenceBase
void acquire () const
 
void release () const
 
sal_Int32 getRefCount () const
 
void disposeOnce ()
 
bool isDisposed () const
 

Static Public Member Functions

static const sal_ChargetStructureTag (PDFWriter::StructElement)
 
static const sal_ChargetAttributeTag (PDFWriter::StructAttribute eAtr)
 
static const sal_ChargetAttributeValueTag (PDFWriter::StructAttributeValue eVal)
 
static bool compressStream (SvMemoryStream *)
 
static void convertLineInfoToExtLineInfo (const LineInfo &rIn, PDFWriter::ExtLineInfo &rOut)
 
static css::uno::Reference< css::beans::XMaterialHolder > initEncryption (const OUString &i_rOwnerPassword, const OUString &i_rUserPassword)
 
- Static Public Member Functions inherited from OutputDevice
static void ImplDrawText (OutputDevice &rTargetDevice, const tools::Rectangle &rRect, const OUString &rOrigStr, DrawTextFlags nStyle, MetricVector *pVector, OUString *pDisplayText, vcl::ITextLayout &_rLayout)
 
static OUString GetNonMnemonicString (const OUString &rStr, sal_Int32 &rMnemonicPos)
 
static OUString GetNonMnemonicString (const OUString &rStr)
 
static std::shared_ptr< vcl::TextLayoutCacheCreateTextLayoutCache (OUString const &)
 
static SAL_DLLPRIVATE FontEmphasisMark ImplGetEmphasisMarkStyle (const vcl::Font &rFont)
 
static void BeginFontSubstitution ()
 
static void EndFontSubstitution ()
 
static void AddFontSubstitute (const OUString &rFontName, const OUString &rReplaceFontName, AddFontSubstituteFlags nFlags)
 
static void RemoveFontsSubstitute ()
 
static vcl::Font GetDefaultFont (DefaultFontType nType, LanguageType eLang, GetDefaultFontFlags nFlags, const OutputDevice *pOutDev=nullptr)
 
static SAL_DLLPRIVATE void ImplClearAllFontData (bool bNewFontLists)
 
static SAL_DLLPRIVATE void ImplRefreshAllFontData (bool bNewFontLists)
 
static SAL_DLLPRIVATE void ImplUpdateAllFontData (bool bNewFontLists)
 
static void LockFontUpdates (bool bLock)
 
static Point LogicToLogic (const Point &rPtSource, const MapMode &rMapModeSource, const MapMode &rMapModeDest)
 
static Size LogicToLogic (const Size &rSzSource, const MapMode &rMapModeSource, const MapMode &rMapModeDest)
 
static tools::Rectangle LogicToLogic (const tools::Rectangle &rRectSource, const MapMode &rMapModeSource, const MapMode &rMapModeDest)
 
static long LogicToLogic (long nLongSource, MapUnit eUnitSource, MapUnit eUnitDest)
 
static basegfx::B2DPolygon LogicToLogic (const basegfx::B2DPolygon &rPoly, const MapMode &rMapModeSource, const MapMode &rMapModeDest)
 
static basegfx::B2DHomMatrix LogicToLogic (const MapMode &rMapModeSource, const MapMode &rMapModeDest)
 

Protected Member Functions

void ImplClearFontData (bool bNewFontLists) override
 
void ImplRefreshFontData (bool bNewFontLists) override
 
vcl::Region ClipToDeviceBounds (vcl::Region aRegion) const override
 Perform actual rect clip against outdev dimensions, to generate empty clips whenever one of the values is completely off the device. More...
 
void DrawHatchLine_DrawLine (const Point &rStartPoint, const Point &rEndPoint) override
 
- Protected Member Functions inherited from VirtualDevice
virtual bool AcquireGraphics () const override
 Acquire a graphics device that the output device uses to draw on. More...
 
virtual void ReleaseGraphics (bool bRelease=true) override
 Release the graphics device, and remove it from the graphics device list. More...
 
 VirtualDevice (const OutputDevice *pCompDev, DeviceFormat eFormat, DeviceFormat eAlphaFormat, OutDevType eOutDevType)
 Create a virtual device of size 1x1. More...
 
virtual bool UsePolyPolygonForComplexGradient () override
 
virtual long GetFontExtLeading () const override
 
- Protected Member Functions inherited from OutputDevice
 OutputDevice (OutDevType eOutDevType)
 
virtual ~OutputDevice () override
 
virtual void CopyDeviceArea (SalTwoRect &aPosAry, bool bWindowInvalidate)
 
SAL_DLLPRIVATE void drawOutDevDirect (const OutputDevice *pSrcDev, SalTwoRect &rPosAry)
 
SAL_DLLPRIVATE bool is_double_buffered_window () const
 
virtual void ImplReleaseFonts ()
 
virtual void InitClipRegion ()
 
virtual void ClipToPaintRegion (tools::Rectangle &rDstRect)
 
virtual long GetGradientStepCount (long nMinRect)
 
void DrawGradientWallpaper (long nX, long nY, long nWidth, long nHeight, const Wallpaper &rWallpaper)
 
SAL_DLLPRIVATE void ImplInitTextLineSize ()
 
SAL_DLLPRIVATE void ImplInitAboveTextLineSize ()
 
SAL_DLLPRIVATE const LogicalFontInstanceGetFontInstance () const
 
SAL_DLLPRIVATE long GetEmphasisAscent () const
 
SAL_DLLPRIVATE long GetEmphasisDescent () const
 
SAL_DLLPRIVATE bool InitFont () const
 
virtual void SetFontOrientation (LogicalFontInstance *const pFontInstance) const
 
void ReleaseFontCache ()
 
void ReleaseFontCollection ()
 
void SetFontCollectionFromSVData ()
 
void ResetNewFontCache ()
 
virtual void DrawDeviceBitmap (const Point &rDestPt, const Size &rDestSize, const Point &rSrcPtPixel, const Size &rSrcSizePixel, BitmapEx &rBitmapEx)
 
virtual void ScaleBitmap (Bitmap &rBmp, SalTwoRect &rPosAry)
 
virtual bool DrawTransformBitmapExDirect (const basegfx::B2DHomMatrix &aFullTransform, const BitmapEx &rBitmapEx)
 Transform and draw a bitmap directly. More...
 
virtual bool TransformAndReduceBitmapExToTargetRange (const basegfx::B2DHomMatrix &aFullTransform, basegfx::B2DRange &aVisibleRange, double &fMaximumArea)
 Transform and reduce the area that needs to be drawn of the bitmap and return the new visible range and the maximum area. More...
 
virtual void EmulateDrawTransparent (const tools::PolyPolygon &rPolyPoly, sal_uInt16 nTransparencePercent)
 
void DrawInvisiblePolygon (const tools::PolyPolygon &rPolyPoly)
 
virtual void ClipAndDrawGradientMetafile (const Gradient &rGradient, const tools::PolyPolygon &rPolyPoly)
 
virtual void DrawDeviceMask (const Bitmap &rMask, const Color &rMaskColor, const Point &rDestPt, const Size &rDestSize, const Point &rSrcPtPixel, const Size &rSrcSizePixel)
 
- Protected Member Functions inherited from VclReferenceBase
 VclReferenceBase ()
 
virtual ~VclReferenceBase ()
 

Private Types

enum  Mode {
  DEFAULT,
  NOWRITE
}
 

Private Member Functions

void checkAndEnableStreamEncryption (sal_Int32 nObject)
 
void disableStreamEncryption ()
 
void enableStringEncryption (sal_Int32 nObject)
 
void appendUnicodeTextStringEncrypt (const OUString &rInString, const sal_Int32 nInObjectNumber, OStringBuffer &rOutBuffer)
 
void appendLiteralStringEncrypt (const OUString &rInString, const sal_Int32 nInObjectNumber, OStringBuffer &rOutBuffer, rtl_TextEncoding nEnc=RTL_TEXTENCODING_ASCII_US)
 
void appendLiteralStringEncrypt (const OString &rInString, const sal_Int32 nInObjectNumber, OStringBuffer &rOutBuffer)
 
void appendLiteralStringEncrypt (OStringBuffer const &rInString, const sal_Int32 nInObjectNumber, OStringBuffer &rOutBuffer)
 
void registerGlyph (const GlyphItem *pGlyph, const PhysicalFontFace *pFont, const std::vector< sal_Ucs > &rCodeUnits, sal_uInt8 &nMappedGlyph, sal_Int32 &nMappedFontObject)
 
void drawVerticalGlyphs (const std::vector< PDFGlyph > &rGlyphs, OStringBuffer &rLine, const Point &rAlignOffset, const Matrix3 &rRotScale, double fAngle, double fXScale, double fSkew, sal_Int32 nFontHeight)
 
void drawHorizontalGlyphs (const std::vector< PDFGlyph > &rGlyphs, OStringBuffer &rLine, const Point &rAlignOffset, bool bFirst, double fAngle, double fXScale, double fSkew, sal_Int32 nFontHeight, sal_Int32 nPixelFontHeight)
 
void drawLayout (SalLayout &rLayout, const OUString &rText, bool bTextLines)
 
void drawRelief (SalLayout &rLayout, const OUString &rText, bool bTextLines)
 
void drawShadow (SalLayout &rLayout, const OUString &rText, bool bTextLines)
 
void updateGraphicsState (Mode mode=DEFAULT)
 
void writeTransparentObject (TransparencyEmit &rObject)
 
bool writeBitmapObject (BitmapEmit &rObject, bool bMask=false)
 
void writeJPG (JPGEmit &rEmit)
 
void writeReferenceXObject (ReferenceXObjectEmit &rEmit)
 Writes the form XObject proxy for the image. More...
 
OString copyExternalResources (filter::PDFObjectElement &rPage, const OString &rKind, std::map< sal_Int32, sal_Int32 > &rCopiedResources)
 Copies resources of a given kind from an external page to the output, returning what has to be included in the new resource dictionary. More...
 
sal_Int32 copyExternalResource (SvMemoryStream &rDocBuffer, filter::PDFObjectElement &rObject, std::map< sal_Int32, sal_Int32 > &rCopiedResources)
 Copies a single resource from an external document, returns the new object ID in our document. More...
 
const BitmapEmitcreateBitmapEmit (const BitmapEx &rBitmapEx, const Graphic &rGraphic)
 
void drawBitmap (const Point &rDestPt, const Size &rDestSize, const BitmapEmit &rBitmap, const Color &rFillColor)
 
bool writeGradientFunction (GradientEmit const &rObject)
 
sal_Int32 createGradient (const Gradient &rGradient, const Size &rSize)
 
bool emitTilings ()
 
bool emitGradients ()
 
sal_Int32 emitBuildinFont (const pdf::BuildinFontFace *, sal_Int32 nObject)
 
std::map< sal_Int32, sal_Int32 > emitSystemFont (const PhysicalFontFace *, EmbedFont const &)
 
sal_Int32 emitFontDescriptor (const PhysicalFontFace *, FontSubsetInfo const &, sal_Int32 nSubsetID, sal_Int32 nStream)
 
sal_Int32 createToUnicodeCMap (sal_uInt8 const *pEncoding, const sal_Ucs *pCodeUnits, const sal_Int32 *pCodeUnitsPerGlyph, const sal_Int32 *pEncToUnicodeIndex, int nGlyphs)
 
sal_Int32 getResourceDictObj ()
 
sal_Int32 getFontDictObject ()
 
void pushResource (ResourceKind eKind, const OString &rResource, sal_Int32 nObject)
 
void appendBuildinFontsToDict (OStringBuffer &rDict) const
 
bool emitFonts ()
 
sal_Int32 emitResources ()
 
bool appendDest (sal_Int32 nDestID, OStringBuffer &rBuffer)
 
bool emitLinkAnnotations ()
 
bool emitScreenAnnotations ()
 Write all screen annotations. More...
 
bool emitNoteAnnotations ()
 
bool emitAppearances (PDFWidget &rWidget, OStringBuffer &rAnnotDict)
 
void ensureUniqueRadioOnValues ()
 
bool emitWidgetAnnotations ()
 
bool emitAnnotations ()
 
bool emitEmbeddedFiles ()
 Writes embedded files. More...
 
sal_Int32 emitNamedDestinations ()
 
sal_Int32 emitOutline ()
 
OString emitStructureAttributes (PDFStructureElement &rEle)
 
void addInternalStructureContainer (PDFStructureElement &rEle)
 
sal_Int32 emitStructure (PDFStructureElement &rEle)
 
sal_Int32 emitStructParentTree (sal_Int32 nTreeObject)
 
bool emitCatalog ()
 
bool emitSignature ()
 
bool finalizeSignature ()
 
bool emitTrailer ()
 
bool emitAdditionalStreams ()
 
sal_Int32 emitInfoDict ()
 
void sortWidgets ()
 
sal_Int32 updateOutlineItemCount (std::vector< sal_Int32 > &rCounts, sal_Int32 nItemLevel, sal_Int32 nCurrentItemId)
 
sal_Int32 findRadioGroupWidget (const PDFWriter::RadioButtonWidget &rRadio)
 
Font replaceFont (const Font &rControlFont, const Font &rAppSetFont)
 
sal_Int32 getBestBuildinFont (const Font &rFont)
 
sal_Int32 getSystemFont (const Font &i_rFont)
 
Font drawFieldBorder (PDFWidget &, const PDFWriter::AnyWidget &, const StyleSettings &)
 
void createDefaultPushButtonAppearance (PDFWidget &, const PDFWriter::PushButtonWidget &rWidget)
 
void createDefaultCheckBoxAppearance (PDFWidget &, const PDFWriter::CheckBoxWidget &rWidget)
 
void createDefaultRadioButtonAppearance (PDFWidget &, const PDFWriter::RadioButtonWidget &rWidget)
 
void createDefaultEditAppearance (PDFWidget &, const PDFWriter::EditWidget &rWidget)
 
void createDefaultListBoxAppearance (PDFWidget &, const PDFWriter::ListBoxWidget &rWidget)
 
void createWidgetFieldName (sal_Int32 i_nWidgetsIndex, const PDFWriter::AnyWidget &i_rInWidget)
 
sal_Int32 createObject ()
 
bool updateObject (sal_Int32 n)
 
bool writeBuffer (const void *pBuffer, sal_uInt64 nBytes)
 
void beginCompression ()
 
void endCompression ()
 
void beginRedirect (SvStream *pStream, const tools::Rectangle &)
 
SvStreamendRedirect ()
 
void endPage ()
 
void beginStructureElementMCSeq ()
 
void endStructureElementMCSeq ()
 
bool checkEmitStructure ()
 checks whether a non struct element lies in the ancestor hierarchy of the current structure element More...
 
void drawEmphasisMark (long nX, long nY, const tools::PolyPolygon &rPolyPoly, bool bPolyLine, const tools::Rectangle &rRect1, const tools::Rectangle &rRect2)
 
void setupDocInfo ()
 
bool prepareEncryption (const css::uno::Reference< css::beans::XMaterialHolder > &)
 
void implWriteGradient (const tools::PolyPolygon &rPolyPoly, const Gradient &rGradient, VirtualDevice *pDummyVDev, const vcl::PDFWriter::PlayMetafileContext &)
 
void implWriteBitmapEx (const Point &rPoint, const Size &rSize, const BitmapEx &rBitmapEx, const Graphic &i_pGraphic, VirtualDevice const *pDummyVDev, const vcl::PDFWriter::PlayMetafileContext &)
 
void putG4Bits (sal_uInt32 i_nLength, sal_uInt32 i_nCode, BitStreamState &io_rState)
 
void putG4Span (long i_nSpan, bool i_bWhitePixel, BitStreamState &io_rState)
 
void writeG4Stream (BitmapReadAccess const *i_pBitmap)
 
void appendStrokingColor (const Color &rColor, OStringBuffer &rBuffer)
 
void appendNonStrokingColor (const Color &rColor, OStringBuffer &rBuffer)
 

Static Private Member Functions

static void padPassword (const OUString &i_rPassword, sal_uInt8 *o_pPaddedPW)
 
static bool computeEncryptionKey (EncHashTransporter *, vcl::PDFWriter::PDFEncryptionProperties &io_rProperties, sal_Int32 i_nAccessPermissions)
 
static bool computeODictionaryValue (const sal_uInt8 *i_pPaddedOwnerPassword, const sal_uInt8 *i_pPaddedUserPassword, std::vector< sal_uInt8 > &io_rOValue, sal_Int32 i_nKeyLength)
 
static bool computeUDictionaryValue (EncHashTransporter *i_pTransporter, vcl::PDFWriter::PDFEncryptionProperties &io_rProperties, sal_Int32 i_nKeyLength, sal_Int32 i_nAccessPermissions)
 
static void computeDocumentIdentifier (std::vector< sal_uInt8 > &o_rIdentifier, const vcl::PDFWriter::PDFDocInfo &i_rDocInfo, const OString &i_rCString1, OString &o_rCString2)
 
static sal_Int32 computeAccessPermissions (const vcl::PDFWriter::PDFEncryptionProperties &i_rProperties, sal_Int32 &o_rKeyLength, sal_Int32 &o_rRC4KeyLength)
 

Private Attributes

MapMode m_aMapMode
 
std::vector< PDFPagem_aPages
 
std::vector< sal_uInt64 > m_aObjects
 
std::list< BitmapEmitm_aBitmaps
 
std::vector< JPGEmitm_aJPGs
 
std::vector< PDFNamedDestm_aNamedDests
 
std::vector< PDFDestm_aDests
 
::std::map< sal_Int32, sal_Int32 > m_aDestinationIdTranslation
 contains destinations accessible via a public Id, instead of being linked to by an ordinary link More...
 
std::vector< PDFLinkm_aLinks
 
std::vector< PDFScreenm_aScreens
 Contains all screen annotations. More...
 
std::vector< PDFEmbeddedFilem_aEmbeddedFiles
 Contains embedded files. More...
 
css::uno::Reference< css::util::XURLTransformer > m_xTrans
 
std::map< sal_Int32, sal_Int32 > m_aLinkPropertyMap
 
std::vector< PDFOutlineEntrym_aOutline
 
std::vector< PDFNoteEntrym_aNotes
 
std::vector< PDFStructureElementm_aStructure
 
sal_Int32 m_nCurrentStructElement
 
std::vector< OString > m_aStructParentTree
 
bool m_bEmitStructure
 
std::unordered_map< OString, OString > m_aRoleMap
 
std::vector< PDFWidgetm_aWidgets
 
std::map< sal_Int32, sal_Int32 > m_aRadioGroupWidgets
 
std::unordered_map< OString, sal_Int32 > m_aFieldNameMap
 
std::list< GradientEmitm_aGradients
 
std::vector< TilingEmitm_aTilings
 
std::list< TransparencyEmitm_aTransparentObjects
 
FontSubsetData m_aSubsets
 
FontEmbedData m_aSystemFonts
 
sal_Int32 m_nNextFID
 
PDFFontCache m_aFontCache
 
sal_Int32 m_nCurrentPage
 
sal_Int32 m_nCatalogObject
 
sal_Int32 m_nSignatureObject
 
sal_Int64 m_nSignatureContentOffset
 
sal_Int64 m_nSignatureLastByteRangeNoOffset
 
sal_Int32 m_nResourceDict
 
ResourceDict m_aGlobalResourceDict
 
sal_Int32 m_nFontDictObject
 
std::map< sal_Int32, sal_Int32 > m_aBuildinFontToObjectMap
 
PDFWriter::PDFWriterContext m_aContext
 
osl::File m_aFile
 
bool m_bOpen
 
std::list< StreamRedirectm_aOutputStreams
 
std::list< GraphicsStatem_aGraphicsStack
 
GraphicsState m_aCurrentPDFState
 
std::unique_ptr< ZCodecm_pCodec
 
std::unique_ptr< SvMemoryStreamm_pMemStream
 
std::vector< PDFAddStreamm_aAdditionalStreams
 
std::set< PDFWriter::ErrorCodem_aErrors
 
::comphelper::Hash m_DocDigest
 
rtlCipher m_aCipher
 
sal_Int32 m_nKeyLength
 
sal_Int32 m_nRC4KeyLength
 
bool m_bEncryptThisStream
 
sal_Int32 m_nAccessPermissions
 
OString m_aCreationDateString
 
OString m_aCreationMetaDateString
 
std::vector< sal_uInt8m_vEncryptionBuffer
 
bool m_bIsPDF_A1
 
bool m_bIsPDF_A2
 
PDFWriterm_rOuterFace
 

Static Private Attributes

static constexpr sal_Int32 g_nInheritedPageWidth = 595
 
static constexpr sal_Int32 g_nInheritedPageHeight = 842
 
static const sal_uInt8 s_nPadString [ENCRYPTED_PWD_SIZE]
 
static const sal_uInt32 ncMaxPDFArraySize = 8191
 

Friends

class PDFStreamIf
 
struct PDFPage
 

Additional Inherited Members

- Static Protected Member Functions inherited from OutputDevice
static SAL_DLLPRIVATE long ImplGetTextLines (ImplMultiTextLineInfo &rLineInfo, long nWidth, const OUString &rStr, DrawTextFlags nStyle, const vcl::ITextLayout &_rLayout)
 

Detailed Description

Definition at line 97 of file pdfwriter_impl.hxx.

Member Typedef Documentation

Definition at line 343 of file pdfwriter_impl.hxx.

Definition at line 317 of file pdfwriter_impl.hxx.

Definition at line 330 of file pdfwriter_impl.hxx.

Definition at line 336 of file pdfwriter_impl.hxx.

typedef std::unordered_map< OString, PDFAppearanceStreams > vcl::PDFWriterImpl::PDFAppearanceMap

Definition at line 443 of file pdfwriter_impl.hxx.

typedef std::unordered_map< OString, SvMemoryStream* > vcl::PDFWriterImpl::PDFAppearanceStreams

Definition at line 442 of file pdfwriter_impl.hxx.

typedef std::map< OString, sal_Int32 > vcl::PDFWriterImpl::ResourceMap

Definition at line 103 of file pdfwriter_impl.hxx.

Member Enumeration Documentation

Enumerator
DEFAULT 
NOWRITE 

Definition at line 800 of file pdfwriter_impl.hxx.

Enumerator
ResXObject 
ResExtGState 
ResShading 
ResPattern 

Definition at line 102 of file pdfwriter_impl.hxx.

Constructor & Destructor Documentation

PDFWriterImpl::PDFWriterImpl ( const PDFWriter::PDFWriterContext rContext,
const css::uno::Reference< css::beans::XMaterialHolder > &  xEnc,
PDFWriter i_rOuterFace 
)
PDFWriterImpl::~PDFWriterImpl ( )
override

Definition at line 1412 of file pdfwriter_impl.cxx.

References VclReferenceBase::disposeOnce().

Member Function Documentation

void PDFWriterImpl::addInternalStructureContainer ( PDFStructureElement rEle)
private
void PDFWriterImpl::addStream ( const OUString &  rMimeType,
PDFOutputStream pStream 
)
void PDFWriterImpl::appendBuildinFontsToDict ( OStringBuffer &  rDict) const
private
bool PDFWriterImpl::appendDest ( sal_Int32  nDestID,
OStringBuffer &  rBuffer 
)
private
void PDFWriterImpl::appendLiteralStringEncrypt ( const OUString &  rInString,
const sal_Int32  nInObjectNumber,
OStringBuffer &  rOutBuffer,
rtl_TextEncoding  nEnc = RTL_TEXTENCODING_ASCII_US 
)
private
void PDFWriterImpl::appendLiteralStringEncrypt ( const OString &  rInString,
const sal_Int32  nInObjectNumber,
OStringBuffer &  rOutBuffer 
)
inlineprivate

Definition at line 1634 of file pdfwriter_impl.cxx.

References appendLiteralStringEncrypt().

void PDFWriterImpl::appendLiteralStringEncrypt ( OStringBuffer const &  rInString,
const sal_Int32  nInObjectNumber,
OStringBuffer &  rOutBuffer 
)
inlineprivate
void PDFWriterImpl::appendNonStrokingColor ( const Color rColor,
OStringBuffer &  rBuffer 
)
private
void PDFWriterImpl::appendStrokingColor ( const Color rColor,
OStringBuffer &  rBuffer 
)
private
void PDFWriterImpl::appendUnicodeTextStringEncrypt ( const OUString &  rInString,
const sal_Int32  nInObjectNumber,
OStringBuffer &  rOutBuffer 
)
inlineprivate
void PDFWriterImpl::beginCompression ( )
private
void PDFWriterImpl::beginRedirect ( SvStream pStream,
const tools::Rectangle rTargetRect 
)
private
sal_Int32 PDFWriterImpl::beginStructureElement ( PDFWriter::StructElement  eType,
const OUString &  rAlias 
)
void PDFWriterImpl::beginStructureElementMCSeq ( )
private
void PDFWriterImpl::beginTransparencyGroup ( )
void PDFWriterImpl::checkAndEnableStreamEncryption ( sal_Int32  nObject)
private
bool PDFWriterImpl::checkEmitStructure ( )
private

checks whether a non struct element lies in the ancestor hierarchy of the current structure element

Returns
true if no NonStructElement was found in ancestor path and tagged PDF output is enabled false else

Definition at line 10387 of file pdfwriter_impl.cxx.

References m_aContext, m_aStructure, m_eType, m_nCurrentStructElement, vcl::PDFWriter::NonStructElement, and vcl::PDFWriter::PDFWriterContext::Tagged.

Referenced by beginStructureElement(), endStructureElement(), and setCurrentStructureElement().

void vcl::PDFWriterImpl::clearClipRegion ( )
inline

Definition at line 1124 of file pdfwriter_impl.hxx.

References ClipRegion.

Referenced by beginRedirect().

vcl::Region PDFWriterImpl::ClipToDeviceBounds ( vcl::Region  aRegion) const
overrideprotectedvirtual

Perform actual rect clip against outdev dimensions, to generate empty clips whenever one of the values is completely off the device.

Parameters
aRegionregion to be clipped to the device dimensions
Returns
region clipped to the device bounds

Reimplemented from OutputDevice.

Definition at line 2043 of file pdfwriter_impl2.cxx.

bool PDFWriterImpl::compressStream ( SvMemoryStream pStream)
static
sal_Int32 PDFWriterImpl::computeAccessPermissions ( const vcl::PDFWriter::PDFEncryptionProperties i_rProperties,
sal_Int32 &  o_rKeyLength,
sal_Int32 &  o_rRC4KeyLength 
)
staticprivate
void PDFWriterImpl::computeDocumentIdentifier ( std::vector< sal_uInt8 > &  o_rIdentifier,
const vcl::PDFWriter::PDFDocInfo i_rDocInfo,
const OString &  i_rCString1,
OString &  o_rCString2 
)
staticprivate
bool PDFWriterImpl::computeEncryptionKey ( EncHashTransporter i_pTransporter,
vcl::PDFWriter::PDFEncryptionProperties io_rProperties,
sal_Int32  i_nAccessPermissions 
)
staticprivate
bool PDFWriterImpl::computeODictionaryValue ( const sal_uInt8 i_pPaddedOwnerPassword,
const sal_uInt8 i_pPaddedUserPassword,
std::vector< sal_uInt8 > &  io_rOValue,
sal_Int32  i_nKeyLength 
)
staticprivate
bool PDFWriterImpl::computeUDictionaryValue ( EncHashTransporter i_pTransporter,
vcl::PDFWriter::PDFEncryptionProperties io_rProperties,
sal_Int32  i_nKeyLength,
sal_Int32  i_nAccessPermissions 
)
staticprivate
void PDFWriterImpl::convertLineInfoToExtLineInfo ( const LineInfo rIn,
PDFWriter::ExtLineInfo rOut 
)
static
sal_Int32 PDFWriterImpl::copyExternalResource ( SvMemoryStream rDocBuffer,
filter::PDFObjectElement rObject,
std::map< sal_Int32, sal_Int32 > &  rCopiedResources 
)
private
OString PDFWriterImpl::copyExternalResources ( filter::PDFObjectElement rPage,
const OString &  rKind,
std::map< sal_Int32, sal_Int32 > &  rCopiedResources 
)
private

Copies resources of a given kind from an external page to the output, returning what has to be included in the new resource dictionary.

Definition at line 8696 of file pdfwriter_impl.cxx.

References copyExternalResource(), vcl::filter::PDFObjectElement::GetDictionaryItems(), vcl::filter::PDFObjectElement::GetDocument(), vcl::filter::PDFDocument::GetEditBuffer(), vcl::filter::PDFObjectElement::Lookup(), vcl::filter::PDFObjectElement::LookupObject(), and pObject.

Referenced by writeReferenceXObject().

const PDFWriterImpl::BitmapEmit & PDFWriterImpl::createBitmapEmit ( const BitmapEx rBitmapEx,
const Graphic rGraphic 
)
private
sal_Int32 PDFWriterImpl::createControl ( const PDFWriter::AnyWidget rControl,
sal_Int32  nPageNr = -1 
)

Definition at line 11129 of file pdfwriter_impl.cxx.

References vcl::PDFWriter::AnyWidget::Background, vcl::PDFWriter::AnyWidget::BackgroundColor, vcl::PDFWriter::AnyWidget::Border, vcl::PDFWriter::AnyWidget::BorderColor, Bottom, Center, vcl::PDFWriter::CheckBox, vcl::PDFWriter::CheckBoxWidget::Checked, vcl::PDFWriter::ComboBox, createDefaultCheckBoxAppearance(), createDefaultEditAppearance(), createDefaultListBoxAppearance(), createDefaultPushButtonAppearance(), createDefaultRadioButtonAppearance(), createObject(), createWidgetFieldName(), vcl::PDFWriter::AnyWidget::Description, vcl::PDFWriter::PushButtonWidget::Dest, vcl::PDFWriter::ListBoxWidget::DropDown, vcl::PDFWriter::Edit, vcl::PDFWriter::ListBoxWidget::Entries, vcl::PDFWriter::ComboBoxWidget::Entries, vcl::PDFWriter::EditWidget::FileSelect, findRadioGroupWidget(), vcl::PDFWriter::AnyWidget::getType(), Left, vcl::PDFWriter::ListBox, vcl::PDFWriter::AnyWidget::Location, vcl::PDFWriterImpl::PDFWidget::m_aAppearances, m_aContext, vcl::PDFWriterImpl::PDFWidget::m_aDescription, vcl::PDFWriterImpl::PDFWidget::m_aKids, vcl::PDFWriterImpl::PDFWidget::m_aKidsIndex, vcl::PDFWriterImpl::PDFWidget::m_aListEntries, vcl::PDFWriterImpl::PDFWidget::m_aOnValue, m_aPages, vcl::PDFWriterImpl::PDFAnnotation::m_aRect, vcl::PDFWriterImpl::PDFWidget::m_aSelectedEntries, vcl::PDFWriterImpl::PDFWidget::m_aText, vcl::PDFWriterImpl::PDFWidget::m_aValue, m_aWidgets, vcl::PDFWriterImpl::PDFWidget::m_bSubmit, vcl::PDFWriterImpl::PDFWidget::m_bSubmitGet, vcl::PDFWriterImpl::PDFWidget::m_eType, m_nCurrentPage, vcl::PDFWriterImpl::PDFWidget::m_nDest, vcl::PDFWriterImpl::PDFWidget::m_nFlags, vcl::PDFWriterImpl::PDFWidget::m_nMaxLen, vcl::PDFWriterImpl::PDFAnnotation::m_nObject, vcl::PDFWriterImpl::PDFWidget::m_nParent, vcl::PDFWriterImpl::PDFWidget::m_nRadioGroup, m_nSignatureObject, vcl::PDFWriterImpl::PDFWidget::m_nTabOrder, vcl::PDFWriterImpl::PDFWidget::m_nTextStyle, vcl::PDFWriter::EditWidget::MaxLen, MultiLine, vcl::PDFWriter::EditWidget::MultiLine, vcl::PDFWriter::ListBoxWidget::MultiSelect, vcl::PDFWriter::AnyWidget::Name, NONE, vcl::PDFWriter::RadioButtonWidget::OnValue, vcl::PDFWriter::EditWidget::Password, vcl::PDFWriter::PDF_1_3, vcl::PDFWriter::PushButton, vcl::PDFWriter::RadioButton, vcl::PDFWriter::RadioButtonWidget::RadioGroup, vcl::PDFWriter::AnyWidget::ReadOnly, rEdit, Right, SAL_WARN_IF, vcl::PDFWriter::RadioButtonWidget::Selected, vcl::PDFWriter::ListBoxWidget::SelectedEntries, vcl::PDFWriter::Signature, vcl::PDFWriter::PushButtonWidget::Submit, vcl::PDFWriter::PushButtonWidget::SubmitGet, vcl::PDFWriter::AnyWidget::TabOrder, vcl::PDFWriter::AnyWidget::Text, vcl::PDFWriter::AnyWidget::TextColor, vcl::PDFWriter::AnyWidget::TextFont, vcl::PDFWriter::AnyWidget::TextStyle, Top, tools::Rectangle::Union(), vcl::PDFWriter::PushButtonWidget::URL, VCenter, vcl::PDFWriter::PDFWriterContext::Version, and WordBreak.

Referenced by emit().

void PDFWriterImpl::createDefaultCheckBoxAppearance ( PDFWidget rBox,
const PDFWriter::CheckBoxWidget rWidget 
)
private

Definition at line 3849 of file pdfwriter_impl.cxx.

References tools::Rectangle::AdjustBottom(), tools::Rectangle::AdjustRight(), tools::Rectangle::AdjustTop(), ALL, appendHex(), appendNonStrokingColor(), vcl::PDFWriter::AnyWidget::Background, vcl::PDFWriter::AnyWidget::BackgroundColor, beginRedirect(), vcl::PDFWriter::AnyWidget::Border, vcl::PDFWriter::AnyWidget::BorderColor, tools::Rectangle::Bottom(), COL_BLACK(), COL_TRANSPARENT(), drawRectangle(), drawText(), endRedirect(), StyleSettings::GetCheckedColor(), StyleSettings::GetFieldColor(), OutputDevice::GetFontCharMap(), getFontDictObject(), LogicalFontInstance::GetFontFace(), OutputDevice::GetFontInstance(), vcl::Font::GetFontSize(), FontCharMap::GetGlyphIndex(), tools::Rectangle::GetHeight(), StyleSettings::GetRadioCheckFont(), StyleSettings::GetRadioCheckTextColor(), Application::GetSettings(), AllSettings::GetStyleSettings(), tools::Rectangle::GetWidth(), Size::Height(), tools::Rectangle::Left(), vcl::PDFWriterImpl::PDFWidget::m_aAppearances, vcl::PDFWriterImpl::PDFWidget::m_aDAString, vcl::PDFWriterImpl::PDFWidget::m_aDRDict, vcl::PDFWriterImpl::PDFWidget::m_aMKDict, vcl::PDFWriterImpl::PDFWidget::m_aMKDictCAString, m_aPages, vcl::PDFWriterImpl::PDFAnnotation::m_aRect, vcl::PDFWriterImpl::PDFWidget::m_aText, m_nCurrentPage, vcl::PDFWriterImpl::PDFWidget::m_nTextStyle, NONE, OutputDevice::Pop(), pop(), OutputDevice::Push(), push(), registerGlyph(), replaceColor(), replaceFont(), tools::Rectangle::SetBottom(), setFillColor(), OutputDevice::SetFont(), setFont(), Size::setHeight(), tools::Rectangle::SetLeft(), setLineColor(), tools::Rectangle::SetRight(), setTextColor(), tools::Rectangle::SetTop(), vcl::PDFWriter::AnyWidget::TextColor, vcl::PDFWriter::AnyWidget::TextFont, tools::Rectangle::Top(), and writeBuffer().

Referenced by createControl().

void PDFWriterImpl::createDefaultEditAppearance ( PDFWidget rEdit,
const PDFWriter::EditWidget rWidget 
)
private
void PDFWriterImpl::createDefaultListBoxAppearance ( PDFWidget rBox,
const PDFWriter::ListBoxWidget rWidget 
)
private
void PDFWriterImpl::createDefaultPushButtonAppearance ( PDFWidget rButton,
const PDFWriter::PushButtonWidget rWidget 
)
private
void PDFWriterImpl::createDefaultRadioButtonAppearance ( PDFWidget rBox,
const PDFWriter::RadioButtonWidget rWidget 
)
private

Definition at line 3982 of file pdfwriter_impl.cxx.

References tools::Rectangle::AdjustBottom(), tools::Rectangle::AdjustLeft(), tools::Rectangle::AdjustRight(), tools::Rectangle::AdjustTop(), ALL, appendNonStrokingColor(), vcl::PDFWriter::AnyWidget::Background, vcl::PDFWriter::AnyWidget::BackgroundColor, beginRedirect(), vcl::PDFWriter::AnyWidget::Border, vcl::PDFWriter::AnyWidget::BorderColor, tools::Rectangle::Bottom(), COL_BLACK(), COL_TRANSPARENT(), drawEllipse(), drawRectangle(), drawText(), endRedirect(), StyleSettings::GetCheckedColor(), StyleSettings::GetFieldColor(), vcl::Font::GetFontSize(), tools::Rectangle::GetHeight(), StyleSettings::GetRadioCheckFont(), StyleSettings::GetRadioCheckTextColor(), Application::GetSettings(), AllSettings::GetStyleSettings(), tools::Rectangle::GetWidth(), Size::Height(), tools::Rectangle::Left(), vcl::PDFWriterImpl::PDFWidget::m_aAppearances, vcl::PDFWriterImpl::PDFWidget::m_aDAString, vcl::PDFWriterImpl::PDFWidget::m_aMKDict, vcl::PDFWriterImpl::PDFWidget::m_aMKDictCAString, m_aPages, vcl::PDFWriterImpl::PDFAnnotation::m_aRect, vcl::PDFWriterImpl::PDFWidget::m_aText, m_nCurrentPage, vcl::PDFWriterImpl::PDFWidget::m_nTextStyle, pop(), push(), replaceColor(), replaceFont(), tools::Rectangle::SetBottom(), setFillColor(), setFont(), Size::setHeight(), tools::Rectangle::SetLeft(), setLineColor(), tools::Rectangle::SetRight(), setTextColor(), tools::Rectangle::SetTop(), vcl::PDFWriter::AnyWidget::TextColor, vcl::PDFWriter::AnyWidget::TextFont, tools::Rectangle::Top(), and writeBuffer().

Referenced by createControl().

sal_Int32 PDFWriterImpl::createDest ( const tools::Rectangle rRect,
sal_Int32  nPageNr,
PDFWriter::DestAreaType  eType 
)

Definition at line 10158 of file pdfwriter_impl.cxx.

References m_aDests, m_aPages, and m_nCurrentPage.

Referenced by registerDestReference().

void PDFWriterImpl::createEmbeddedFile ( const Graphic rGraphic,
ReferenceXObjectEmit rEmit,
sal_Int32  nBitmapObject 
)
sal_Int32 PDFWriterImpl::createGradient ( const Gradient rGradient,
const Size rSize 
)
private
sal_Int32 PDFWriterImpl::createLink ( const tools::Rectangle rRect,
sal_Int32  nPageNr 
)

Definition at line 10091 of file pdfwriter_impl.cxx.

References createObject(), m_aLinks, m_aPages, and m_nCurrentPage.

sal_Int32 PDFWriterImpl::createNamedDest ( const OUString &  sDestName,
const tools::Rectangle rRect,
sal_Int32  nPageNr,
PDFWriter::DestAreaType  eType 
)

Definition at line 10137 of file pdfwriter_impl.cxx.

References m_aNamedDests, m_aPages, and m_nCurrentPage.

void PDFWriterImpl::createNote ( const tools::Rectangle rRect,
const PDFNote rNote,
sal_Int32  nPageNr 
)

Definition at line 10072 of file pdfwriter_impl.cxx.

References createObject(), m_aNotes, m_aPages, and m_nCurrentPage.

sal_Int32 PDFWriterImpl::createObject ( )
private
sal_Int32 PDFWriterImpl::createOutlineItem ( sal_Int32  nParent,
const OUString &  rText,
sal_Int32  nDestID 
)
sal_Int32 PDFWriterImpl::createScreen ( const tools::Rectangle rRect,
sal_Int32  nPageNr 
)

Definition at line 10114 of file pdfwriter_impl.cxx.

References createObject(), m_aPages, m_aScreens, and m_nCurrentPage.

sal_Int32 PDFWriterImpl::createToUnicodeCMap ( sal_uInt8 const *  pEncoding,
const sal_Ucs pCodeUnits,
const sal_Int32 *  pCodeUnitsPerGlyph,
const sal_Int32 *  pEncToUnicodeIndex,
int  nGlyphs 
)
private
void PDFWriterImpl::createWidgetFieldName ( sal_Int32  i_nWidgetsIndex,
const PDFWriter::AnyWidget i_rInWidget 
)
private
void vcl::PDFWriterImpl::disableStreamEncryption ( )
inlineprivate
void PDFWriterImpl::dispose ( void  )
overridevirtual

Reimplemented from VirtualDevice.

Definition at line 1417 of file pdfwriter_impl.cxx.

References VirtualDevice::dispose(), m_aCipher, and m_aPages.

void PDFWriterImpl::drawArc ( const tools::Rectangle rRect,
const Point rStart,
const Point rStop,
bool  bWithPie,
bool  bWidthChord 
)
void PDFWriterImpl::drawBitmap ( const Point rDestPt,
const Size rDestSize,
const BitmapEmit rBitmap,
const Color rFillColor 
)
private
void PDFWriterImpl::drawBitmap ( const Point rDestPoint,
const Size rDestSize,
const Bitmap rBitmap,
const Graphic rGraphic 
)
void PDFWriterImpl::drawBitmap ( const Point rDestPoint,
const Size rDestSize,
const BitmapEx rBitmap 
)
void PDFWriterImpl::drawEllipse ( const tools::Rectangle rRect)
void PDFWriterImpl::drawEmphasisMark ( long  nX,
long  nY,
const tools::PolyPolygon rPolyPoly,
bool  bPolyLine,
const tools::Rectangle rRect1,
const tools::Rectangle rRect2 
)
private
Font PDFWriterImpl::drawFieldBorder ( PDFWidget rIntern,
const PDFWriter::AnyWidget rWidget,
const StyleSettings rSettings 
)
private
void PDFWriterImpl::drawGradient ( const tools::Rectangle rRect,
const Gradient rGradient 
)
void PDFWriterImpl::drawHatch ( const tools::PolyPolygon rPolyPoly,
const Hatch rHatch 
)
void PDFWriterImpl::DrawHatchLine_DrawLine ( const Point rStartPoint,
const Point rEndPoint 
)
overrideprotectedvirtual

Reimplemented from OutputDevice.

Definition at line 2005 of file pdfwriter_impl2.cxx.

References drawLine().

void PDFWriterImpl::drawHorizontalGlyphs ( const std::vector< PDFGlyph > &  rGlyphs,
OStringBuffer &  rLine,
const Point rAlignOffset,
bool  bFirst,
double  fAngle,
double  fXScale,
double  fSkew,
sal_Int32  nFontHeight,
sal_Int32  nPixelFontHeight 
)
private
void PDFWriterImpl::drawJPGBitmap ( SvStream rDCTData,
bool  bIsTrueColor,
const Size rSizePixel,
const tools::Rectangle rTargetArea,
const Bitmap rMask,
const Graphic rGraphic 
)
void PDFWriterImpl::drawLayout ( SalLayout rLayout,
const OUString &  rText,
bool  bTextLines 
)
private

Definition at line 6109 of file pdfwriter_impl.cxx.

References Point::AdjustX(), Point::AdjustY(), ALIGN_BOTTOM, ALIGN_TOP, ALL, appendHex(), appendNonStrokingColor(), appendStrokingColor(), GlyphItem::charCount(), GlyphItem::charPos(), COL_TRANSPARENT(), COL_WHITE(), drawEmphasisMark(), drawHorizontalGlyphs(), drawPolygon(), drawRectangle(), drawRelief(), drawShadow(), drawTextLine(), drawVerticalGlyphs(), FILLCOLOR, vcl::Font::GetAlignment(), FontMetric::GetAscent(), vcl::Font::GetAverageFontWidth(), vcl::Font::GetColor(), FontMetric::GetDescent(), SalLayout::GetDrawPosition(), OutputDevice::GetEmphasisAscent(), OutputDevice::GetEmphasisDescent(), vcl::Font::GetEmphasisMark(), vcl::Font::GetFillColor(), LogicalFontInstance::GetFontFace(), vcl::Font::GetFontHeight(), OutputDevice::GetFontInstance(), OutputDevice::GetFontMetric(), LogicalFontInstance::GetFontSelectPattern(), vcl::PDFFontCache::getGlyphWidth(), OutputDevice::GetGraphics(), FontAttributes::GetItalic(), vcl::Font::GetItalic(), FontMetric::GetLineHeight(), MapMode::GetMapUnit(), SalLayout::GetNextGlyph(), vcl::Font::GetOrientation(), vcl::Font::GetOverline(), vcl::Font::GetRelief(), MapMode::GetScaleX(), MapMode::GetScaleY(), vcl::Font::GetStrikeout(), SalLayout::GetTextWidth(), vcl::Font::GetUnderline(), SalLayout::GetUnitsPerPixel(), tools::Rectangle::getY(), GlyphItem::glyphId(), i, OutputDevice::ImplDevicePixelToLogicHeight(), OutputDevice::ImplDevicePixelToLogicWidth(), OutputDevice::ImplGetEmphasisMark(), OutputDevice::ImplGetEmphasisMarkStyle(), GlyphItem::IsClusterStart(), GlyphItem::IsInCluster(), vcl::Font::IsOutline(), vcl::Font::IsShadow(), GlyphItem::IsSpacing(), vcl::Font::IsUnderlineAbove(), GlyphItem::IsVertical(), vcl::Font::IsVertical(), vcl::Font::IsWordLineMode(), ITALIC_NORMAL, ITALIC_OBLIQUE, LINECOLOR, LINESTYLE_DONTKNOW, LINESTYLE_NONE, m_aCurrentPDFState, vcl::PDFWriterImpl::GraphicsState::m_aFillColor, vcl::PDFWriterImpl::GraphicsState::m_aFont, m_aFontCache, vcl::PDFWriterImpl::GraphicsState::m_aLineColor, vcl::PDFWriterImpl::GraphicsState::m_aMapMode, m_aPages, m_aSubsets, GlyphItem::m_nNewWidth, FontSelectPattern::mnHeight, LogicalFontInstance::mnOrientation, n, nIndex, NONE, OutputDevice::PixelToLogic(), pop(), push(), registerGlyph(), tools::Polygon::Rotate(), vcl::Matrix3::rotate(), vcl::Matrix3::scale(), vcl::Font::SetAverageFontWidth(), setFillColor(), tools::Rectangle::setHeight(), setLineColor(), tools::Rectangle::SetPos(), tools::Rectangle::SetSize(), tools::Rectangle::setY(), STRIKEOUT_DONTKNOW, STRIKEOUT_NONE, vcl::Matrix3::transform(), WEIGHT_MEDIUM, writeBuffer(), Point::X(), and Point::Y().

Referenced by drawRelief(), drawShadow(), drawStretchText(), drawText(), and drawTextArray().

void PDFWriterImpl::drawLine ( const Point rStart,
const Point rStop 
)
void PDFWriterImpl::drawLine ( const Point rStart,
const Point rStop,
const LineInfo rInfo 
)
void PDFWriterImpl::drawPixel ( const Point rPt,
const Color rColor 
)
void PDFWriterImpl::drawPolygon ( const tools::Polygon rPoly)
void PDFWriterImpl::drawPolyLine ( const tools::Polygon rPoly)
void PDFWriterImpl::drawPolyLine ( const tools::Polygon rPoly,
const LineInfo rInfo 
)
void PDFWriterImpl::drawPolyLine ( const tools::Polygon rPoly,
const PDFWriter::ExtLineInfo rInfo 
)
void PDFWriterImpl::drawPolyPolygon ( const tools::PolyPolygon rPolyPoly)
void PDFWriterImpl::drawRectangle ( const tools::Rectangle rRect)
void PDFWriterImpl::drawRectangle ( const tools::Rectangle rRect,
sal_uInt32  nHorzRound,
sal_uInt32  nVertRound 
)
void PDFWriterImpl::drawRelief ( SalLayout rLayout,
const OUString &  rText,
bool  bTextLines 
)
private
void PDFWriterImpl::drawShadow ( SalLayout rLayout,
const OUString &  rText,
bool  bTextLines 
)
private
void PDFWriterImpl::drawStraightTextLine ( OStringBuffer &  aLine,
long  nWidth,
FontLineStyle  eTextLine,
Color  aColor,
bool  bIsAbove 
)
void PDFWriterImpl::drawStretchText ( const Point rPos,
sal_uLong  nWidth,
const OUString &  rText,
sal_Int32  nIndex,
sal_Int32  nLen 
)
void PDFWriterImpl::drawStrikeoutChar ( const Point rPos,
long  nWidth,
FontStrikeout  eStrikeout 
)
void PDFWriterImpl::drawStrikeoutLine ( OStringBuffer &  aLine,
long  nWidth,
FontStrikeout  eStrikeout,
Color  aColor 
)
void PDFWriterImpl::drawText ( const Point rPos,
const OUString &  rText,
sal_Int32  nIndex,
sal_Int32  nLen,
bool  bTextLines = true 
)
void PDFWriterImpl::drawText ( const tools::Rectangle rRect,
const OUString &  rOrigStr,
DrawTextFlags  nStyle 
)
void PDFWriterImpl::drawTextArray ( const Point rPos,
const OUString &  rText,
const long *  pDXArray,
sal_Int32  nIndex,
sal_Int32  nLen 
)
void PDFWriterImpl::drawTextLine ( const Point rPos,
long  nWidth,
FontStrikeout  eStrikeout,
FontLineStyle  eUnderline,
FontLineStyle  eOverline,
bool  bUnderlineAbove 
)
void PDFWriterImpl::drawTransparent ( const tools::PolyPolygon rPolyPoly,
sal_uInt32  nTransparentPercent 
)
void PDFWriterImpl::drawVerticalGlyphs ( const std::vector< PDFGlyph > &  rGlyphs,
OStringBuffer &  rLine,
const Point rAlignOffset,
const Matrix3 rRotScale,
double  fAngle,
double  fXScale,
double  fSkew,
sal_Int32  nFontHeight 
)
private
void PDFWriterImpl::drawWallpaper ( const tools::Rectangle rRect,
const Wallpaper rWall 
)
void PDFWriterImpl::drawWaveTextLine ( OStringBuffer &  aLine,
long  nWidth,
FontLineStyle  eTextLine,
Color  aColor,
bool  bIsAbove 
)
bool PDFWriterImpl::emit ( )
bool PDFWriterImpl::emitAdditionalStreams ( )
private
bool PDFWriterImpl::emitAnnotations ( )
private
bool PDFWriterImpl::emitAppearances ( PDFWidget rWidget,
OStringBuffer &  rAnnotDict 
)
private
sal_Int32 PDFWriterImpl::emitBuildinFont ( const pdf::BuildinFontFace pFD,
sal_Int32  nObject 
)
private
bool PDFWriterImpl::emitCatalog ( )
private

Definition at line 4517 of file pdfwriter_impl.cxx.

References vcl::PDFWriter::ActionDefault, vcl::PDFWriter::ActionZoom, addInternalStructureContainer(), appendLiteralStringEncrypt(), vcl::PDFWriter::PDFWriterContext::CenterWindow, CHECK_RETURN, vcl::PDFWriter::Continuous, vcl::PDFWriter::ContinuousFacing, createObject(), vcl::PDFWriter::DefaultLayout, vcl::PDFWriter::PDFWriterContext::DisplayPDFDocumentTitle, vcl::PDFWriter::PDFWriterContext::DocumentInfo, vcl::PDFWriter::PDFWriterContext::DocumentLocale, emitAnnotations(), emitDocumentMetadata(), emitEmbeddedFiles(), emitNamedDestinations(), emitOutline(), emitOutputIntent(), emitResources(), emitStructure(), vcl::PDFWriter::PDFWriterContext::FirstPageLeft, vcl::PDFWriter::FitInWindow, vcl::PDFWriter::FitVisible, vcl::PDFWriter::FitWidth, vcl::PDFWriter::PDFWriterContext::FitWindow, g_nInheritedPageHeight, g_nInheritedPageWidth, LanguageTag::getIsoLanguageScriptCountry(), getResourceDictObj(), vcl::PDFWriter::PDFWriterContext::HideViewerMenubar, vcl::PDFWriter::PDFWriterContext::HideViewerToolbar, vcl::PDFWriter::PDFWriterContext::HideViewerWindowControls, i, vcl::PDFWriter::PDFWriterContext::InitialPage, m_aContext, m_aPages, m_aStructure, m_aWidgets, m_bIsPDF_A1, m_bIsPDF_A2, m_nCatalogObject, m_nSignatureObject, vcl::PDFWriter::ModeDefault, vcl::PDFWriter::PDFWriterContext::OpenInFullScreenMode, vcl::PDFWriter::PDFWriterContext::PageLayout, vcl::PDFWriter::PDF_1_3, vcl::PDFWriter::PDFWriterContext::PDFDocumentAction, vcl::PDFWriter::PDFWriterContext::PDFDocumentMode, vcl::PDFWriter::SinglePage, vcl::PDFWriter::PDFWriterContext::Tagged, vcl::PDFWriter::PDFDocInfo::Title, updateObject(), vcl::PDFWriter::UseOutlines, vcl::PDFWriter::UseThumbs, vcl::PDFWriter::PDFWriterContext::Version, writeBuffer(), and vcl::PDFWriter::PDFWriterContext::Zoom.

Referenced by emit().

void PDFWriterImpl::emitComment ( const char *  pComment)
sal_Int32 PDFWriterImpl::emitDocumentMetadata ( )
bool PDFWriterImpl::emitEmbeddedFiles ( )
private

Writes embedded files.

Definition at line 4490 of file pdfwriter_impl.cxx.

References CHECK_RETURN, m_aEmbeddedFiles, updateObject(), and writeBuffer().

Referenced by emitCatalog().

sal_Int32 PDFWriterImpl::emitFontDescriptor ( const PhysicalFontFace pFont,
FontSubsetInfo const &  rInfo,
sal_Int32  nSubsetID,
sal_Int32  nStream 
)
private
bool PDFWriterImpl::emitFonts ( )
private
bool PDFWriterImpl::emitGradients ( )
private

Definition at line 2285 of file pdfwriter_impl.cxx.

References m_aGradients, and writeGradientFunction().

Referenced by emitResources().

sal_Int32 PDFWriterImpl::emitInfoDict ( )
private
bool PDFWriterImpl::emitLinkAnnotations ( )
private
sal_Int32 PDFWriterImpl::emitNamedDestinations ( )
private
bool PDFWriterImpl::emitNoteAnnotations ( )
private
sal_Int32 PDFWriterImpl::emitOutline ( )
private
sal_Int32 PDFWriterImpl::emitOutputIntent ( )
sal_Int32 PDFWriterImpl::emitResources ( )
private
bool PDFWriterImpl::emitScreenAnnotations ( )
private
bool vcl::PDFWriterImpl::emitSignature ( )
private

Referenced by emit().

sal_Int32 PDFWriterImpl::emitStructParentTree ( sal_Int32  nTreeObject)
private

Definition at line 1867 of file pdfwriter_impl.cxx.

References CHECK_RETURN, m_aStructParentTree, n, updateObject(), and writeBuffer().

Referenced by emitStructure().

sal_Int32 PDFWriterImpl::emitStructure ( PDFStructureElement rEle)
private
OString PDFWriterImpl::emitStructureAttributes ( PDFStructureElement rEle)
private
std::map< sal_Int32, sal_Int32 > PDFWriterImpl::emitSystemFont ( const PhysicalFontFace pFont,
EmbedFont const &  rEmbed 
)
private
bool PDFWriterImpl::emitTilings ( )
private
bool PDFWriterImpl::emitTrailer ( )
private
bool PDFWriterImpl::emitWidgetAnnotations ( )
private

Definition at line 4183 of file pdfwriter_impl.cxx.

References a, appendBuildinFontsToDict(), appendDest(), appendFixedInt(), appendLiteralStringEncrypt(), appendName(), appendUnicodeTextStringEncrypt(), tools::Rectangle::Bottom(), Center, CHECK_RETURN, vcl::PDFWriter::CheckBox, vcl::PDFWriter::ComboBox, vcl::PDFWriter::Edit, emitAppearances(), ensureUniqueRadioOnValues(), vcl::PDFWriter::FDF, vcl::PDFWriter::Hierarchy, vcl::PDFWriter::HTML, i, tools::Rectangle::Left(), vcl::PDFWriter::ListBox, m_aContext, vcl::PDFWriterImpl::PDFWidget::m_aDAString, vcl::PDFWriterImpl::PDFWidget::m_aDescription, m_aDestinationIdTranslation, vcl::PDFWriterImpl::PDFWidget::m_aDRDict, m_aErrors, vcl::PDFWriterImpl::PDFWidget::m_aKids, vcl::PDFWriterImpl::PDFWidget::m_aListEntries, vcl::PDFWriterImpl::PDFWidget::m_aMKDict, vcl::PDFWriterImpl::PDFWidget::m_aMKDictCAString, vcl::PDFWriterImpl::PDFWidget::m_aName, m_aPages, vcl::PDFWriterImpl::PDFAnnotation::m_aRect, vcl::PDFWriterImpl::PDFWidget::m_aSelectedEntries, vcl::PDFWriterImpl::PDFWidget::m_aValue, m_aWidgets, m_bIsPDF_A1, m_bIsPDF_A2, vcl::PDFWriterImpl::PDFWidget::m_bSubmit, vcl::PDFWriterImpl::PDFWidget::m_bSubmitGet, vcl::PDFWriterImpl::PDFWidget::m_eType, vcl::PDFWriterImpl::PDFWidget::m_nDest, vcl::PDFWriterImpl::PDFWidget::m_nFlags, vcl::PDFWriterImpl::PDFWidget::m_nMaxLen, vcl::PDFWriterImpl::PDFAnnotation::m_nObject, vcl::PDFWriterImpl::PDFAnnotation::m_nPage, vcl::PDFWriterImpl::PDFWidget::m_nParent, vcl::PDFWriterImpl::PDFWidget::m_nRadioGroup, vcl::PDFWriterImpl::PDFWidget::m_nTextStyle, OUStringToOString(), vcl::PDFWriter::PDF, vcl::PDFWriter::PDF_1_2, vcl::PDFWriter::PDF_1_3, vcl::PDFWriter::PushButton, vcl::PDFWriter::RadioButton, tools::Rectangle::Right(), Right, vcl::PDFWriter::Signature, vcl::PDFWriter::PDFWriterContext::SubmitFormat, tools::Rectangle::Top(), updateObject(), vcl::PDFWriter::PDFWriterContext::Version, vcl::PDFWriter::Warning_FormAction_Omitted_PDFA, writeBuffer(), and vcl::PDFWriter::XML.

Referenced by emitAnnotations().

void PDFWriterImpl::enableStringEncryption ( sal_Int32  nObject)
private
void PDFWriterImpl::endCompression ( )
private
void PDFWriterImpl::endPage ( )
private
SvStream * PDFWriterImpl::endRedirect ( )
private
void PDFWriterImpl::endStructureElement ( )
void PDFWriterImpl::endStructureElementMCSeq ( )
private
void PDFWriterImpl::endTransparencyGroup ( const tools::Rectangle rBoundingBox,
sal_uInt32  nTransparentPercent 
)
void PDFWriterImpl::ensureUniqueRadioOnValues ( )
private
bool vcl::PDFWriterImpl::finalizeSignature ( )
private

Referenced by emit().

sal_Int32 PDFWriterImpl::findRadioGroupWidget ( const PDFWriter::RadioButtonWidget rRadio)
private
const sal_Char * PDFWriterImpl::getAttributeTag ( PDFWriter::StructAttribute  eAtr)
static
const sal_Char * PDFWriterImpl::getAttributeValueTag ( PDFWriter::StructAttributeValue  eVal)
static
sal_Int32 PDFWriterImpl::getBestBuildinFont ( const Font rFont)
private
Size vcl::PDFWriterImpl::getCurPageSize ( ) const
inline

Definition at line 1051 of file pdfwriter_impl.hxx.

const std::set< PDFWriter::ErrorCode >& vcl::PDFWriterImpl::getErrors ( ) const
inline

Definition at line 1047 of file pdfwriter_impl.hxx.

References m_aErrors.

sal_Int32 vcl::PDFWriterImpl::getFontDictObject ( )
inlineprivate
const MapMode& vcl::PDFWriterImpl::getMapMode ( )
inline

Definition at line 1072 of file pdfwriter_impl.hxx.

Referenced by drawWallpaper(), and replaceFont().

sal_Int32 vcl::PDFWriterImpl::getResourceDictObj ( )
inlineprivate
const sal_Char * PDFWriterImpl::getStructureTag ( PDFWriter::StructElement  eType)
static
sal_Int32 PDFWriterImpl::getSystemFont ( const Font i_rFont)
private
PDFWriter::PDFVersion vcl::PDFWriterImpl::getVersion ( ) const
inline

Definition at line 1059 of file pdfwriter_impl.hxx.

References vcl::PDFWriter::PDFWriterContext::Version.

void PDFWriterImpl::ImplClearFontData ( bool  bNewFontLists)
overrideprotectedvirtual

Reimplemented from OutputDevice.

Definition at line 2024 of file pdfwriter_impl2.cxx.

References OutputDevice::ImplClearFontData().

void PDFWriterImpl::ImplRefreshFontData ( bool  bNewFontLists)
overrideprotectedvirtual

Reimplemented from OutputDevice.

Definition at line 2034 of file pdfwriter_impl2.cxx.

void PDFWriterImpl::implWriteBitmapEx ( const Point rPoint,
const Size rSize,
const BitmapEx rBitmapEx,
const Graphic i_pGraphic,
VirtualDevice const *  pDummyVDev,
const vcl::PDFWriter::PlayMetafileContext i_rContext 
)
private
void PDFWriterImpl::implWriteGradient ( const tools::PolyPolygon rPolyPoly,
const Gradient rGradient,
VirtualDevice pDummyVDev,
const vcl::PDFWriter::PlayMetafileContext i_rContext 
)
private
uno::Reference< beans::XMaterialHolder > PDFWriterImpl::initEncryption ( const OUString &  i_rOwnerPassword,
const OUString &  i_rUserPassword 
)
static
void vcl::PDFWriterImpl::insertError ( PDFWriter::ErrorCode  eErr)
inline

Definition at line 1048 of file pdfwriter_impl.hxx.

void PDFWriterImpl::intersectClipRegion ( const tools::Rectangle rRect)
void PDFWriterImpl::intersectClipRegion ( const basegfx::B2DPolyPolygon rRegion)
void PDFWriterImpl::MARK ( const char *  pString)
void PDFWriterImpl::moveClipRegion ( sal_Int32  nX,
sal_Int32  nY 
)
void PDFWriterImpl::newPage ( double  nPageWidth,
double  nPageHeight,
PDFWriter::Orientation  eOrientation 
)
void PDFWriterImpl::padPassword ( const OUString &  i_rPassword,
sal_uInt8 o_pPaddedPW 
)
staticprivate

Definition at line 1275 of file pdfwriter_impl2.cxx.

References ENCRYPTED_PWD_SIZE, i, OUStringToOString(), and y.

void PDFWriterImpl::playMetafile ( const GDIMetaFile i_rMtf,
vcl::PDFExtOutDevData i_pOutDevData,
const vcl::PDFWriter::PlayMetafileContext i_rContext,
VirtualDevice pDummyDev = nullptr 
)

Definition at line 255 of file pdfwriter_impl2.cxx.

References a, ARC, BMP, BMPEX, BMPEXSCALE, BMPEXSCALEPART, BMPSCALE, BMPSCALEPART, SvtGraphicStroke::capButt, vcl::PDFWriter::capButt, SvtGraphicStroke::capRound, vcl::PDFWriter::capRound, SvtGraphicStroke::capSquare, vcl::PDFWriter::capSquare, CHORD, CLIPREGION, COL_BLACK(), COL_WHITE(), COMMENT, tools::PolyPolygon::Count(), BitmapEx::Crop(), Default, ScopedVclPtr< reference_type >::disposeAndReset(), ELLIPSE, OutputDevice::EnableOutput(), EPS, Execute, FILLCOLOR, SvtGraphicFill::fillEvenOdd, SvtGraphicFill::fillSolid, FLOATTRANSPARENT, FONT, VclPtr< reference_type >::get(), GDIMetaFile::GetAction(), GDIMetaFile::GetActionSize(), MetaBmpAction::GetBitmap(), MetaBmpScaleAction::GetBitmap(), MetaBmpScalePartAction::GetBitmap(), MetaBmpExAction::GetBitmapEx(), MetaBmpExScaleAction::GetBitmapEx(), MetaBmpExScalePartAction::GetBitmapEx(), SvtGraphicStroke::getCapType(), MetaPixelAction::GetColor(), MetaLineColorAction::GetColor(), MetaFillColorAction::GetColor(), MetaTextColorAction::GetColor(), MetaTextFillColorAction::GetColor(), MetaTextLineColorAction::GetColor(), MetaOverlineColorAction::GetColor(), MetaCommentAction::GetComment(), tools::Polygon::GetConstFlagAry(), tools::Polygon::GetConstPointAry(), vcl::PDFExtOutDevData::GetCurrentGraphic(), SvtGraphicStroke::getDashArray(), MetaCommentAction::GetData(), MetaCommentAction::GetDataSize(), MetaBmpScalePartAction::GetDestPoint(), MetaBmpExScalePartAction::GetDestPoint(), MetaBmpScalePartAction::GetDestSize(), MetaBmpExScalePartAction::GetDestSize(), MetaTextArrayAction::GetDXArray(), SvtGraphicStroke::getEndArrow(), Gradient::GetEndColor(), MetaLineAction::GetEndPoint(), MetaArcAction::GetEndPoint(), MetaChordAction::GetEndPoint(), SvtGraphicFill::getFillRule(), SvtGraphicFill::getFillType(), tools::Polygon::GetFlags(), MetaPushAction::GetFlags(), MetaFontAction::GetFont(), MetaFloatTransparentAction::GetGDIMetaFile(), MetaGradientAction::GetGradient(), MetaGradientExAction::GetGradient(), MetaFloatTransparentAction::GetGradient(), MetaHatchAction::GetHatch(), MetaMoveClipRegionAction::GetHorzMove(), MetaRoundRectAction::GetHorzRound(), MetaTextAction::GetIndex(), MetaTextArrayAction::GetIndex(), MetaStretchTextAction::GetIndex(), SvtGraphicStroke::getJoinType(), MetaLayoutModeAction::GetLayoutMode(), MetaTextAction::GetLen(), MetaTextArrayAction::GetLen(), MetaStretchTextAction::GetLen(), MetaLineAction::GetLineInfo(), MetaPolyLineAction::GetLineInfo(), Color::GetLuminance(), OutputDevice::GetMapMode(), SvtGraphicStroke::getMiterLimit(), MetaTextLineAction::GetOverline(), SvtGraphicStroke::getPath(), SvtGraphicFill::getPath(), MetaPixelAction::GetPoint(), MetaPointAction::GetPoint(), MetaTextAction::GetPoint(), MetaTextArrayAction::GetPoint(), MetaStretchTextAction::GetPoint(), MetaBmpAction::GetPoint(), MetaBmpScaleAction::GetPoint(), MetaBmpExAction::GetPoint(), MetaBmpExScaleAction::GetPoint(), MetaFloatTransparentAction::GetPoint(), MetaEPSAction::GetPoint(), MetaPolyLineAction::GetPolygon(), MetaPolygonAction::GetPolygon(), MetaPolyPolygonAction::GetPolyPolygon(), MetaGradientExAction::GetPolyPolygon(), MetaHatchAction::GetPolyPolygon(), MetaTransparentAction::GetPolyPolygon(), GDIMetaFile::GetPrefMapMode(), MetaRectAction::GetRect(), MetaRoundRectAction::GetRect(), MetaEllipseAction::GetRect(), MetaArcAction::GetRect(), MetaChordAction::GetRect(), MetaTextRectAction::GetRect(), MetaGradientAction::GetRect(), MetaWallpaperAction::GetRect(), MetaISectRectClipRegionAction::GetRect(), MetaClipRegionAction::GetRegion(), MetaISectRegionClipRegionAction::GetRegion(), tools::Polygon::GetSize(), MetaBmpScaleAction::GetSize(), MetaBmpExScaleAction::GetSize(), MetaFloatTransparentAction::GetSize(), MetaEPSAction::GetSize(), MetaBmpScalePartAction::GetSrcPoint(), MetaBmpExScalePartAction::GetSrcPoint(), MetaBmpScalePartAction::GetSrcSize(), MetaBmpExScalePartAction::GetSrcSize(), SvtGraphicStroke::getStartArrow(), Gradient::GetStartColor(), MetaLineAction::GetStartPoint(), MetaArcAction::GetStartPoint(), MetaChordAction::GetStartPoint(), MetaTextLineAction::GetStartPoint(), MetaTextLineAction::GetStrikeout(), SvtGraphicStroke::getStrokeWidth(), MetaTextRectAction::GetStyle(), MetaEPSAction::GetSubstitute(), MetaTextAction::GetText(), MetaTextArrayAction::GetText(), MetaStretchTextAction::GetText(), MetaTextRectAction::GetText(), MetaTextAlignAction::GetTextAlign(), MetaTextLanguageAction::GetTextLanguage(), MetaTransparentAction::GetTransparence(), SvtGraphicStroke::getTransparency(), SvtGraphicFill::getTransparency(), MetaAction::GetType(), MetaTextLineAction::GetUnderline(), MetaMoveClipRegionAction::GetVertMove(), MetaRoundRectAction::GetVertRound(), MetaWallpaperAction::GetWallpaper(), MetaStretchTextAction::GetWidth(), MetaTextLineAction::GetWidth(), GRADIENT, GRADIENTEX, GrayGradient, tools::Polygon::HasFlags(), HATCH, Size::Height(), i, MetaClipRegionAction::IsClipping(), ISECTRECTCLIPREGION, ISECTREGIONCLIPREGION, vcl::Region::IsEmpty(), MetaLineColorAction::IsSetting(), MetaFillColorAction::IsSetting(), MetaTextFillColorAction::IsSetting(), MetaTextLineColorAction::IsSetting(), MetaOverlineColorAction::IsSetting(), SvtGraphicStroke::joinBevel, vcl::PDFWriter::joinBevel, SvtGraphicStroke::joinMiter, vcl::PDFWriter::joinMiter, SvtGraphicStroke::joinNone, SvtGraphicStroke::joinRound, vcl::PDFWriter::joinRound, LAYOUTMODE, lcl_canUsePDFAxialShading(), LINE, LINECOLOR, OutputDevice::LogicToLogic(), OutputDevice::LogicToPixel(), vcl::PDFWriter::ExtLineInfo::m_aDashArray, vcl::PDFWriter::PlayMetafileContext::m_bTransparenciesWereRemoved, vcl::PDFWriter::ExtLineInfo::m_eCap, vcl::PDFWriter::ExtLineInfo::m_eJoin, vcl::PDFWriter::ExtLineInfo::m_fLineWidth, vcl::PDFWriter::ExtLineInfo::m_fMiterLimit, vcl::PDFWriter::ExtLineInfo::m_fTransparency, vcl::PDFWriter::PlayMetafileContext::m_nMaxImageResolution, MAPMODE, MASK, MASKSCALE, MASKSCALEPART, Point::Move(), MOVECLIPREGION, nCount, nType, OVERLINECOLOR, pData, PIE, PIXEL, OutputDevice::PixelToLogic(), vcl::PDFExtOutDevData::PlaySyncPageAct(), POINT, POLYGON, POLYLINE, POLYPOLYGON, POP, OutputDevice::Pop(), PUSH, OutputDevice::Push(), RASTEROP, ReadSvtGraphicFill(), ReadSvtGraphicStroke(), RECT, REFPOINT, ROUNDRECT, SAL_WARN, OutputDevice::SetMapMode(), MapMode::SetOrigin(), STRETCHTEXT, TEXT, TEXTALIGN, TEXTARRAY, TEXTCOLOR, TEXTFILLCOLOR, TEXTLANGUAGE, TEXTLINE, TEXTLINECOLOR, TEXTRECT, Transparent, WALLPAPER, WhiteBitmap, WhiteFill, WhiteGradient, WhiteLine, WhiteText, and Size::Width().

void PDFWriterImpl::pop ( )
bool PDFWriterImpl::prepareEncryption ( const css::uno::Reference< css::beans::XMaterialHolder > &  )
private
void PDFWriterImpl::push ( PushFlags  nFlags)