LibreOffice Module vcl (master) 1
|
#include <pdfwriter_impl.hxx>
Public Member Functions | |
const char * | getStructureTag (PDFWriter::StructElement) |
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 |
void | setDocumentLocale (const css::lang::Locale &rLoc) |
void | push (PushFlags nFlags) |
void | pop () |
void | setFont (const Font &rFont) |
void | setMapMode (const MapMode &rMapMode) |
const MapMode & | getMapMode () |
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 (vcl::text::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, KernArraySpan pDXArray, o3tl::span< const sal_Bool > pKashidaArray, sal_Int32 nIndex, sal_Int32 nLen) |
void | drawStretchText (const Point &rPos, sal_Int32 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, tools::Long nWidth, FontStrikeout eStrikeout, FontLineStyle eUnderline, FontLineStyle eOverline, bool bUnderlineAbove) |
void | drawWaveTextLine (OStringBuffer &aLine, tools::Long nWidth, FontLineStyle eTextLine, Color aColor, bool bIsAbove) |
void | drawStraightTextLine (OStringBuffer &aLine, tools::Long nWidth, FontLineStyle eTextLine, Color aColor, bool bIsAbove) |
void | drawStrikeoutLine (OStringBuffer &aLine, tools::Long nWidth, FontStrikeout eStrikeout, Color aColor) |
void | drawStrikeoutChar (const Point &rPos, tools::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 AlphaMask &rAlphaMask, 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, OUString const &rAltText) |
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, OUString const &rAltText, OUString const &rMimeType) |
void | setScreenURL (sal_Int32 nScreenId, const OUString &rURL) |
void | setScreenStream (sal_Int32 nScreenId, const OUString &rURL) |
sal_Int32 | createOutlineItem (sal_Int32 nParent, std::u16string_view rText, sal_Int32 nDestID) |
void | setOutlineItemParent (sal_Int32 nItem, sal_Int32 nNewParent) |
void | setOutlineItemText (sal_Int32 nItem, std::u16string_view rText) |
void | setOutlineItemDest (sal_Int32 nItem, sal_Int32 nDestID) |
void | createNote (const tools::Rectangle &rRect, const PDFNote &rNote, sal_Int32 nPageNr) |
sal_Int32 | ensureStructureElement () |
void | initStructureElement (sal_Int32 id, PDFWriter::StructElement eType, std::u16string_view rAlias) |
void | beginStructureElement (sal_Int32 id) |
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 | setStructureAnnotIds (::std::vector< sal_Int32 > const &rAnnotIds) |
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 | addDocumentAttachedFile (OUString const &rFileName, OUString const &rMimeType, OUString const &rDescription, std::unique_ptr< PDFOutputStream > rStream) |
sal_Int32 | addEmbeddedFile (BinaryDataContainer const &rDataContainer) |
sal_Int32 | addEmbeddedFile (std::unique_ptr< PDFOutputStream > rStream, OUString const &rMimeType) |
void | MARK (const char *pString) |
Public Member Functions inherited from VirtualDevice | |
VirtualDevice (DeviceFormat eFormat=DeviceFormat::WITHOUT_ALPHA) | |
Create a virtual device of size 1x1. More... | |
VirtualDevice (const OutputDevice &rCompDev, DeviceFormat eFormat=DeviceFormat::WITHOUT_ALPHA) | |
Create a virtual device of size 1x1. 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 | dispose () override |
bool | CanEnableNativeWidget () const override |
Determine if native widgets can be enabled. More... | |
virtual void | EnableRTL (bool bEnable=true) override |
bool | SetOutputSizePixel (const Size &rNewSize, bool bErase=true, bool bAlphaMaskTransparent=false) |
bool | SetOutputSizePixelScaleOffsetAndLOKBuffer (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 |
bool | IsScreenComp () const override |
Public Member Functions inherited from OutputDevice | |
virtual Size | GetButtonBorderSize () |
virtual Color | GetMonochromeButtonColor () |
virtual void | DrawBorder (tools::Rectangle aBorderRect) |
virtual css::awt::DeviceInfo | GetDeviceInfo () const |
virtual vcl::Window * | GetOwnerWindow () const |
Get the vcl::Window that this OutputDevice belongs to, if any. More... | |
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::ExtOutDevData * | GetExtOutDevData () 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) |
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, const Color &rBackgroundColor=COL_AUTO) |
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) |
FontMetric | GetFontMetricFromCollection (int nDevFontIndex) const |
int | GetFontFaceCollectionCount () const |
bool | IsFontAvailable (std::u16string_view rFontName) 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 |
bool | GetGlyphBoundRects (const Point &rOrigin, const OUString &rStr, int nIndex, int nLen, std::vector< tools::Rectangle > &rVector) const |
sal_Int32 | HasGlyphs (const vcl::Font &rFont, std::u16string_view rStr, sal_Int32 nIndex=0, sal_Int32 nLen=-1) const |
tools::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 () |
LogicalFontInstance const * | GetFontInstance () const |
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< SalLayout > | ImplLayout (const OUString &, sal_Int32 nIndex, sal_Int32 nLen, const Point &rLogicPos=Point(0, 0), tools::Long nLogicWidth=0, KernArraySpan aKernArray=KernArraySpan(), o3tl::span< const sal_Bool > pKashidaArray={}, SalLayoutFlags flags=SalLayoutFlags::NONE, vcl::text::TextLayoutCache const *=nullptr, const SalLayoutGlyphs *pGlyphs=nullptr) const |
SAL_DLLPRIVATE vcl::text::ImplLayoutArgs | ImplPrepareLayoutArgs (OUString &, const sal_Int32 nIndex, const sal_Int32 nLen, double nPixelWidth, SalLayoutFlags flags=SalLayoutFlags::NONE, vcl::text::TextLayoutCache const *=nullptr) const |
SAL_DLLPRIVATE std::unique_ptr< SalLayout > | ImplGlyphFallbackLayout (std::unique_ptr< SalLayout >, vcl::text::ImplLayoutArgs &, const SalLayoutGlyphs *) const |
SAL_DLLPRIVATE std::unique_ptr< SalLayout > | getFallbackLayout (LogicalFontInstance *pLogicalFont, int nFallbackLevel, vcl::text::ImplLayoutArgs &rLayoutArgs, const SalLayoutGlyphs *) const |
bool | IsRTLEnabled () const |
bool | GetTextIsRTL (const OUString &, sal_Int32 nIndex, sal_Int32 nLen) const |
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 (vcl::PushFlags nFlags=vcl::PushFlags::ALL) |
void | Pop () |
void | ClearStack () |
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 (vcl::text::ComplexTextLayoutFlags nTextLayoutMode) |
vcl::text::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 Color & | GetLineColor () const |
bool | IsLineColor () const |
void | SetFillColor () |
void | SetFillColor (const Color &rColor) |
const Color & | GetFillColor () 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 Wallpaper & | GetBackground () 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::Font & | GetFont () 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 (tools::Long nHorzMove, tools::Long nVertMove) |
void | IntersectClipRegion (const tools::Rectangle &rRect) |
void | IntersectClipRegion (const vcl::Region &rRegion) |
virtual vcl::Region | GetActiveClipRegion () const |
virtual vcl::Region | GetOutputBoundsClipRegion () 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, const std::vector< double > *=nullptr, basegfx::B2DLineJoin eLineJoin=basegfx::B2DLineJoin::NONE, css::drawing::LineCap eLineCap=css::drawing::LineCap_BUTT, double fMiterMinimumAngle=basegfx::deg2rad(15.0)) |
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 | 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, std::vector< tools::Rectangle > *pVector=nullptr, OUString *pDisplayText=nullptr, const SalLayoutGlyphs *pLayoutCache=nullptr) |
void | DrawText (const tools::Rectangle &rRect, const OUString &rStr, DrawTextFlags nStyle=DrawTextFlags::NONE, std::vector< tools::Rectangle > *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, std::vector< tools::Rectangle > *pVector=nullptr, OUString *pDisplayText=nullptr, const SalLayoutGlyphs *pGlyphs=nullptr) |
void | DrawTextLine (const Point &rPos, tools::Long nWidth, FontStrikeout eStrikeout, FontLineStyle eUnderline, FontLineStyle eOverline, bool bUnderlineAbove=false) |
void | ImplDrawTextLine (tools::Long nBaseX, tools::Long nX, tools::Long nY, double 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, tools::Long nLineWidth=1, tools::Long nWaveHeight=3) |
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, KernArraySpan aDXArray=KernArraySpan(), o3tl::span< const sal_Bool > pKashidaArray={}, const SalLayoutGlyphs *pGlyphs=nullptr) const |
Return the exact bounding rectangle of rStr. More... | |
tools::Rectangle | ImplGetTextBoundRect (const SalLayout &) const |
bool | GetTextOutline (tools::PolyPolygon &, const OUString &rStr) const |
bool | GetTextOutlines (PolyPolyVector &, const OUString &rStr, sal_Int32 nBase=0, sal_Int32 nIndex=0, sal_Int32 nLen=-1, sal_uLong nLayoutWidth=0, KernArraySpan aDXArray=KernArraySpan(), o3tl::span< const sal_Bool > pKashidaArray={}) const |
bool | GetTextOutlines (basegfx::B2DPolyPolygonVector &rVector, const OUString &rStr, sal_Int32 nBase, sal_Int32 nIndex=0, sal_Int32 nLen=-1, sal_uLong nLayoutWidth=0, KernArraySpan aDXArray=KernArraySpan(), o3tl::span< const sal_Bool > pKashidaArray={}) const |
OUString | GetEllipsisString (const OUString &rStr, tools::Long nMaxWidth, DrawTextFlags nStyle=DrawTextFlags::EndEllipsis) const |
tools::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) |
virtual void | SetSystemTextColor (SystemTextColorFlags nFlags, bool bEnabled) |
const Color & | GetTextColor () const |
void | SetTextFillColor () |
void | SetTextFillColor (const Color &rColor) |
Color | GetTextFillColor () const |
bool | IsTextFillColor () const |
void | SetTextLineColor () |
void | SetTextLineColor (const Color &rColor) |
const Color & | GetTextLineColor () const |
bool | IsTextLineColor () const |
void | SetOverlineColor () |
void | SetOverlineColor (const Color &rColor) |
const Color & | GetOverlineColor () const |
bool | IsOverlineColor () const |
void | SetTextAlign (TextAlign eAlign) |
TextAlign | GetTextAlign () const |
tools::Long | GetTextWidth (const OUString &rStr, sal_Int32 nIndex=0, sal_Int32 nLen=-1, vcl::text::TextLayoutCache const *=nullptr, SalLayoutGlyphs const *const pLayoutCache=nullptr) const |
Width of the text. More... | |
tools::Long | GetTextHeight () const |
Height where any character of the current font fits; in logic coordinates. More... | |
float | approximate_digit_width () const |
void | DrawTextArray (const Point &rStartPt, const OUString &rStr, KernArraySpan aKernArray, o3tl::span< const sal_Bool > pKashidaAry, sal_Int32 nIndex, sal_Int32 nLen, SalLayoutFlags flags=SalLayoutFlags::NONE, const SalLayoutGlyphs *pLayoutCache=nullptr) |
tools::Long | GetTextArray (const OUString &rStr, KernArray *pDXAry, sal_Int32 nIndex=0, sal_Int32 nLen=-1, bool bCaret=false, vcl::text::TextLayoutCache const *=nullptr, SalLayoutGlyphs const *const pLayoutCache=nullptr) const |
void | GetCaretPositions (const OUString &, KernArray &rCaretXArray, sal_Int32 nIndex, sal_Int32 nLen, const SalLayoutGlyphs *pGlyphs=nullptr) const |
void | DrawStretchText (const Point &rStartPt, sal_Int32 nWidth, const OUString &rStr, sal_Int32 nIndex=0, sal_Int32 nLen=-1) |
sal_Int32 | GetTextBreak (const OUString &rStr, tools::Long nTextWidth, sal_Int32 nIndex, sal_Int32 nLen=-1, tools::Long nCharExtra=0, vcl::text::TextLayoutCache const *=nullptr, const SalLayoutGlyphs *pGlyphs=nullptr) const |
sal_Int32 | GetTextBreak (const OUString &rStr, tools::Long nTextWidth, sal_Unicode nExtraChar, sal_Int32 &rExtraCharPos, sal_Int32 nIndex, sal_Int32 nLen, tools::Long nCharExtra, vcl::text::TextLayoutCache const *=nullptr, const SalLayoutGlyphs *pGlyphs=nullptr) const |
SAL_DLLPRIVATE SalLayoutFlags | GetBiDiLayoutFlags (std::u16string_view rStr, const sal_Int32 nMinIndex, const sal_Int32 nEndIndex) const |
void | DrawBitmap (const Point &rDestPt, const Bitmap &rBitmap) |
void | DrawBitmap (const Point &rDestPt, const Size &rDestSize, const Bitmap &rBitmap) |
void | DrawBitmap (const Point &rDestPt, const Size &rDestSize, const Point &rSrcPtPixel, const Size &rSrcSizePixel, const Bitmap &rBitmap) |
void | DrawBitmap (const Point &rDestPt, const Size &rDestSize, const Point &rSrcPtPixel, const Size &rSrcSizePixel, const Bitmap &rBitmap, MetaActionType nAction) |
void | DrawBitmapEx (const Point &rDestPt, const BitmapEx &rBitmapEx) |
void | DrawBitmapEx (const Point &rDestPt, const Size &rDestSize, const BitmapEx &rBitmapEx) |
void | DrawBitmapEx (const Point &rDestPt, const Size &rDestSize, const Point &rSrcPtPixel, const Size &rSrcSizePixel, const BitmapEx &rBitmapEx) |
void | DrawBitmapEx (const Point &rDestPt, const Size &rDestSize, const Point &rSrcPtPixel, const Size &rSrcSizePixel, const BitmapEx &rBitmapEx, MetaActionType nAction) |
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, double fAlpha=1.0) |
Draw BitmapEx transformed. More... | |
bool | HasFastDrawTransformedBitmap () const |
Return true if DrawTransformedBitmapEx() is fast. More... | |
bool | RemoveTransparenciesFromMetaFile (const GDIMetaFile &rInMtf, GDIMetaFile &rOutMtf, tools::Long nMaxBmpDPIX, tools::Long nMaxBmpDPIY, bool bReduceTransparency, bool bTransparencyAutoMode, bool bDownsampleBitmaps, const Color &rBackground=COL_TRANSPARENT) |
helper method removing transparencies from a metafile (e.g. More... | |
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 | EnableMapMode (bool bEnable=true) |
bool | IsMapModeEnabled () const |
void | SetMapMode () |
void | SetMapMode (const MapMode &rNewMapMode) |
void | SetRelativeMapMode (const MapMode &rNewMapMode) |
virtual void | SetMetafileMapMode (const MapMode &rNewMapMode, bool bIsRecord) |
const MapMode & | GetMapMode () 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... | |
SAL_WARN_UNUSED_RESULT Size | GetPixelOffset () const |
Get the offset in pixel. More... | |
SAL_WARN_UNUSED_RESULT Point | LogicToPixel (const Point &rLogicPt) const |
SAL_WARN_UNUSED_RESULT Size | LogicToPixel (const Size &rLogicSize) const |
SAL_WARN_UNUSED_RESULT tools::Rectangle | LogicToPixel (const tools::Rectangle &rLogicRect) const |
SAL_WARN_UNUSED_RESULT tools::Polygon | LogicToPixel (const tools::Polygon &rLogicPoly) const |
SAL_WARN_UNUSED_RESULT tools::PolyPolygon | LogicToPixel (const tools::PolyPolygon &rLogicPolyPoly) const |
SAL_WARN_UNUSED_RESULT basegfx::B2DPolyPolygon | LogicToPixel (const basegfx::B2DPolyPolygon &rLogicPolyPoly) const |
SAL_WARN_UNUSED_RESULT vcl::Region | LogicToPixel (const vcl::Region &rLogicRegion) const |
SAL_WARN_UNUSED_RESULT Point | LogicToPixel (const Point &rLogicPt, const MapMode &rMapMode) const |
SAL_WARN_UNUSED_RESULT Size | LogicToPixel (const Size &rLogicSize, const MapMode &rMapMode) const |
SAL_WARN_UNUSED_RESULT tools::Rectangle | LogicToPixel (const tools::Rectangle &rLogicRect, const MapMode &rMapMode) const |
SAL_WARN_UNUSED_RESULT tools::Polygon | LogicToPixel (const tools::Polygon &rLogicPoly, const MapMode &rMapMode) const |
SAL_WARN_UNUSED_RESULT basegfx::B2DPolyPolygon | LogicToPixel (const basegfx::B2DPolyPolygon &rLogicPolyPoly, const MapMode &rMapMode) const |
SAL_WARN_UNUSED_RESULT Point | PixelToLogic (const Point &rDevicePt) const |
SAL_WARN_UNUSED_RESULT Size | PixelToLogic (const Size &rDeviceSize) const |
SAL_WARN_UNUSED_RESULT tools::Rectangle | PixelToLogic (const tools::Rectangle &rDeviceRect) const |
SAL_WARN_UNUSED_RESULT tools::Polygon | PixelToLogic (const tools::Polygon &rDevicePoly) const |
SAL_WARN_UNUSED_RESULT tools::PolyPolygon | PixelToLogic (const tools::PolyPolygon &rDevicePolyPoly) const |
SAL_WARN_UNUSED_RESULT basegfx::B2DPolyPolygon | PixelToLogic (const basegfx::B2DPolyPolygon &rDevicePolyPoly) const |
SAL_WARN_UNUSED_RESULT vcl::Region | PixelToLogic (const vcl::Region &rDeviceRegion) const |
SAL_WARN_UNUSED_RESULT Point | PixelToLogic (const Point &rDevicePt, const MapMode &rMapMode) const |
SAL_WARN_UNUSED_RESULT Size | PixelToLogic (const Size &rDeviceSize, const MapMode &rMapMode) const |
SAL_WARN_UNUSED_RESULT tools::Rectangle | PixelToLogic (const tools::Rectangle &rDeviceRect, const MapMode &rMapMode) const |
SAL_WARN_UNUSED_RESULT tools::Polygon | PixelToLogic (const tools::Polygon &rDevicePoly, const MapMode &rMapMode) const |
SAL_WARN_UNUSED_RESULT basegfx::B2DPolygon | PixelToLogic (const basegfx::B2DPolygon &rDevicePoly, const MapMode &rMapMode) const |
SAL_WARN_UNUSED_RESULT basegfx::B2DPolyPolygon | PixelToLogic (const basegfx::B2DPolyPolygon &rDevicePolyPoly, const MapMode &rMapMode) const |
SAL_WARN_UNUSED_RESULT Point | LogicToLogic (const Point &rPtSource, const MapMode *pMapModeSource, const MapMode *pMapModeDest) const |
SAL_WARN_UNUSED_RESULT Size | LogicToLogic (const Size &rSzSource, const MapMode *pMapModeSource, const MapMode *pMapModeDest) const |
SAL_WARN_UNUSED_RESULT 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 basegfx::B2DPoint | ImplLogicToDeviceSubPixel (const Point &rLogicPt) const |
SAL_DLLPRIVATE tools::Long | ImplLogicWidthToDevicePixel (tools::Long nWidth) const |
Convert a logical width to a width in units of device pixels. More... | |
SAL_DLLPRIVATE double | ImplLogicWidthToDeviceSubPixel (tools::Long nWidth) const |
SAL_DLLPRIVATE tools::Long | ImplLogicHeightToDevicePixel (tools::Long nHeight) const |
Convert a logical height to a height in units of device pixels. More... | |
SAL_DLLPRIVATE double | ImplLogicHeightToDeviceSubPixel (tools::Long nHeight) const |
SAL_DLLPRIVATE Point | SubPixelToLogic (const basegfx::B2DPoint &rDevicePt) const |
SAL_DLLPRIVATE tools::Long | ImplDevicePixelToLogicWidth (tools::Long nWidth) const |
Convert device pixels to a width in logical units. More... | |
SAL_DLLPRIVATE tools::Long | ImplDevicePixelToLogicHeight (tools::Long nHeight) const |
Convert device pixels to a height in logical units. 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::basegfx::B2DPolygon | ImplLogicToDevicePixel (const ::basegfx::B2DPolygon &rLogicPoly) const |
Convert a logical B2DPolygon to a B2DPolygon 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... | |
SalGraphics const * | GetGraphics () const |
Get the graphic context that the output device uses to draw on. More... | |
SalGraphics * | GetGraphics () |
void | SetConnectMetaFile (GDIMetaFile *pMtf) |
GDIMetaFile * | GetConnectMetaFile () const |
virtual void | SetSettings (const AllSettings &rSettings) |
const AllSettings & | GetSettings () const |
SystemGraphicsData | GetSystemGfxData () const |
OUString | GetRenderBackendName () 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 Point & | GetRefPoint () const |
bool | IsRefPoint () const |
Size | GetOutputSizePixel () const |
tools::Long | GetOutputWidthPixel () const |
tools::Long | GetOutputHeightPixel () const |
tools::Long | GetOutOffXPixel () const |
tools::Long | GetOutOffYPixel () const |
void | SetOutOffXPixel (tools::Long nOutOffX) |
void | SetOutOffYPixel (tools::Long nOutOffY) |
Point | GetOutputOffPixel () const |
tools::Rectangle | GetOutputRectPixel () const |
Size | GetOutputSize () const |
css::uno::Reference< css::awt::XGraphics > | CreateUnoGraphics () |
std::vector< VCLXGraphics * > * | GetUnoGraphicsList () const |
std::vector< VCLXGraphics * > * | CreateUnoGraphicsList () |
virtual size_t | GetSyncCount () const |
css::uno::Reference< css::rendering::XCanvas > | GetCanvas () const |
request XCanvas render interface More... | |
css::uno::Reference< css::rendering::XSpriteCanvas > | GetSpriteCanvas () const |
request XSpriteCanvas render interface More... | |
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) |
void | DrawMask (const Point &rDestPt, const Size &rDestSize, const Point &rSrcPtPixel, const Size &rSrcSizePixel, const Bitmap &rBitmap, const Color &rMaskColor, MetaActionType nAction) |
Public Member Functions inherited from VclReferenceBase | |
void | acquire () const |
void | release () const |
sal_Int32 | getRefCount () const |
void | disposeOnce () |
bool | isDisposed () const |
Public Member Functions inherited from vcl::PDFObjectContainer | |
virtual sal_Int32 | createObject ()=0 |
virtual bool | updateObject (sal_Int32 n)=0 |
virtual bool | writeBufferBytes (const void *pBuffer, sal_uInt64 nBytes)=0 |
bool | writeBuffer (std::string_view aBuffer) |
virtual void | checkAndEnableStreamEncryption (sal_Int32 nObject)=0 |
virtual void | disableStreamEncryption ()=0 |
Static Public Member Functions | |
static const char * | getAttributeTag (PDFWriter::StructAttribute eAtr) |
static const char * | getAttributeValueTag (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 | 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 void | ImplClearAllFontData (bool bNewFontLists) |
static void | ImplRefreshAllFontData (bool bNewFontLists) |
static SAL_DLLPRIVATE void | ImplUpdateAllFontData (bool bNewFontLists) |
static void | StartTrackingFontMappingUse () |
static FontMappingUseData | FinishTrackingFontMappingUse () |
static void | ImplDrawText (OutputDevice &rTargetDevice, const tools::Rectangle &rRect, const OUString &rOrigStr, DrawTextFlags nStyle, std::vector< tools::Rectangle > *pVector, OUString *pDisplayText, vcl::ITextLayout &_rLayout) |
static std::shared_ptr< const vcl::text::TextLayoutCache > | CreateTextLayoutCache (OUString const &) |
static SAL_WARN_UNUSED_RESULT Point | LogicToLogic (const Point &rPtSource, const MapMode &rMapModeSource, const MapMode &rMapModeDest) |
static SAL_WARN_UNUSED_RESULT Size | LogicToLogic (const Size &rSzSource, const MapMode &rMapModeSource, const MapMode &rMapModeDest) |
static SAL_WARN_UNUSED_RESULT tools::Rectangle | LogicToLogic (const tools::Rectangle &rRectSource, const MapMode &rMapModeSource, const MapMode &rMapModeDest) |
static SAL_WARN_UNUSED_RESULT tools::Long | LogicToLogic (tools::Long nLongSource, MapUnit eUnitSource, MapUnit eUnitDest) |
static SAL_WARN_UNUSED_RESULT basegfx::B2DPolygon | LogicToLogic (const basegfx::B2DPolygon &rPoly, const MapMode &rMapModeSource, const MapMode &rMapModeDest) |
static SAL_WARN_UNUSED_RESULT basegfx::B2DHomMatrix | LogicToLogic (const MapMode &rMapModeSource, const MapMode &rMapModeDest) |
Private Types | |
enum class | EndMode { Default , OnlyStruct } |
Private Member Functions | |
bool | ImplNewFont () const override |
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 |
sal_uInt64 | getCurrentFilePosition () |
void | addRoleMap (OString aAlias, PDFWriter::StructElement eType) |
void | checkAndEnableStreamEncryption (sal_Int32 nObject) override |
void | disableStreamEncryption () override |
void | enableStringEncryption (sal_Int32 nObject) |
void | appendUnicodeTextStringEncrypt (const OUString &rInString, const sal_Int32 nInObjectNumber, OStringBuffer &rOutBuffer) |
void | appendLiteralStringEncrypt (std::u16string_view rInString, const sal_Int32 nInObjectNumber, OStringBuffer &rOutBuffer, rtl_TextEncoding nEnc=RTL_TEXTENCODING_ASCII_US) |
void | appendLiteralStringEncrypt (std::string_view rInString, const sal_Int32 nInObjectNumber, OStringBuffer &rOutBuffer) |
void | registerGlyph (const sal_GlyphId, const vcl::font::PhysicalFontFace *, const LogicalFontInstance *pFont, const std::vector< sal_Ucs > &, sal_Int32, sal_uInt8 &, sal_Int32 &) |
void | registerSimpleGlyph (const sal_GlyphId, const vcl::font::PhysicalFontFace *, const std::vector< sal_Ucs > &, sal_Int32, sal_uInt8 &, sal_Int32 &) |
void | drawVerticalGlyphs (const std::vector< PDFGlyph > &rGlyphs, OStringBuffer &rLine, const Point &rAlignOffset, const Matrix3 &rRotScale, double fAngle, double fXScale, sal_Int32 nFontHeight) |
void | drawHorizontalGlyphs (const std::vector< PDFGlyph > &rGlyphs, OStringBuffer &rLine, const Point &rAlignOffset, bool bFirst, double fAngle, double fXScale, 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=Mode::DEFAULT) |
void | writeTransparentObject (TransparencyEmit &rObject) |
bool | writeBitmapObject (const BitmapEmit &rObject, bool bMask=false) |
void | writeJPG (const JPGEmit &rEmit) |
void | writeReferenceXObject (const ReferenceXObjectEmit &rEmit) |
Writes the form XObject proxy for the image. More... | |
const BitmapEmit & | createBitmapEmit (const BitmapEx &rBitmapEx, const Graphic &rGraphic, std::list< BitmapEmit > &rBitmaps, ResourceDict &rResourceDict, std::list< StreamRedirect > &rOutputStreams) |
const BitmapEmit & | createBitmapEmit (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 vcl::font::PhysicalFontFace *, EmbedFont const &) |
bool | emitType3Font (const vcl::font::PhysicalFontFace *, const FontSubset &, std::map< sal_Int32, sal_Int32 > &) |
sal_Int32 | emitFontDescriptor (const vcl::font::PhysicalFontFace *, FontSubsetInfo const &, sal_Int32 nSubsetID, sal_Int32 nStream) |
sal_Int32 | createToUnicodeCMap (sal_uInt8 const *pEncoding, const std::vector< sal_Ucs > &CodeUnits, const sal_Int32 *pCodeUnitsPerGlyph, const sal_Int32 *pEncToUnicodeIndex, uint32_t 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 () |
void | emitTextAnnotationLine (OStringBuffer &aLine, PDFNoteEntry const &rNote) |
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 () |
template<typename T > | |
void | AppendAnnotKid (PDFStructureElement &i_rEle, T &rAnnot) |
OString | emitStructureAttributes (PDFStructureElement &rEle) |
void | addInternalStructureContainer (PDFStructureElement &rEle) |
sal_Int32 | emitStructure (PDFStructureElement &rEle) |
sal_Int32 | emitStructParentTree (sal_Int32 nTreeObject) |
sal_Int32 | emitStructIDTree (sal_Int32 nTreeObject) |
bool | emitCatalog () |
bool | emitSignature () |
bool | finalizeSignature () |
bool | emitTrailer () |
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 () override |
See vcl::PDFObjectContainer::createObject(). More... | |
bool | updateObject (sal_Int32 n) override |
See vcl::PDFObjectContainer::updateObject(). More... | |
bool | writeBufferBytes (const void *pBuffer, sal_uInt64 nBytes) override |
See vcl::PDFObjectContainer::writeBuffer(). More... | |
void | beginCompression () |
void | endCompression () |
void | beginRedirect (SvStream *pStream, const tools::Rectangle &) |
SvStream * | endRedirect () |
void | endPage () |
void | beginStructureElementMCSeq () |
void | endStructureElementMCSeq (EndMode=EndMode::Default) |
bool | checkEmitStructure () |
checks whether a non struct element lies in the ancestor hierarchy of the current structure element More... | |
void | drawEmphasisMark (tools::Long nX, tools::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 (tools::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 | pushResource (ResourceKind eKind, const OString &rResource, sal_Int32 nObject, ResourceDict &rResourceDict, std::list< StreamRedirect > &rOutputStreams) |
static void | emitPopupAnnotationLine (OStringBuffer &aLine, PDFPopupAnnotation const &rPopUp) |
static void | padPassword (std::u16string_view 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) |
Static Private Attributes | |
static const sal_uInt8 | s_nPadString [ENCRYPTED_PWD_SIZE] |
static const sal_uInt32 | ncMaxPDFArraySize = 8191 |
Friends | |
class | PDFStreamIf |
struct | vcl::pdf::PDFPage |
Additional Inherited Members | |
Public Types inherited from VirtualDevice | |
enum class | RefDevMode { NONE = 0 , Dpi600 = 1 , MSO1 = 3 , PDF1 = 4 , Custom = 5 } |
Public Types inherited from OutputDevice | |
typedef std::vector< FontMappingUseItem > | FontMappingUseData |
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, OutDevType eOutDevType) | |
Create a virtual device of size 1x1. More... | |
virtual bool | UsePolyPolygonForComplexGradient () override |
virtual tools::Long | GetFontExtLeading () const override |
Protected Member Functions inherited from OutputDevice | |
css::awt::DeviceInfo | GetCommonDeviceInfo (Size const &aDevSize) const |
SAL_DLLPRIVATE tools::Long | GetEmphasisAscent () const |
SAL_DLLPRIVATE tools::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 | CopyDeviceArea (SalTwoRect &aPosAry, bool bWindowInvalidate) |
virtual tools::Rectangle | GetBackgroundComponentBounds () const |
virtual const OutputDevice * | DrawOutDevDirectCheck (const OutputDevice &rSrcDev) const |
virtual void | DrawOutDevDirectProcess (const OutputDevice &rSrcDev, SalTwoRect &rPosAry, SalGraphics *pSrcGraphics) |
SAL_DLLPRIVATE void | drawOutDevDirect (const OutputDevice &rSrcDev, SalTwoRect &rPosAry) |
SAL_DLLPRIVATE bool | is_double_buffered_window () const |
virtual css::uno::Reference< css::rendering::XCanvas > | ImplGetCanvas (bool bSpriteCanvas) const |
SAL_DLLPRIVATE void | ImplDisposeCanvas () |
virtual void | ImplReleaseFonts () |
virtual void | InitClipRegion () |
virtual void | ClipToPaintRegion (tools::Rectangle &rDstRect) |
virtual tools::Long | GetGradientStepCount (tools::Long nMinRect) |
void | DrawGradientWallpaper (tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, const Wallpaper &rWallpaper) |
SAL_DLLPRIVATE void | ImplInitTextLineSize () |
SAL_DLLPRIVATE void | ImplInitAboveTextLineSize () |
SAL_DLLPRIVATE float | approximate_char_width () const |
virtual bool | shouldDrawWavePixelAsRect (tools::Long nLineWidth) const |
virtual void | SetWaveLineColors (Color const &rColor, tools::Long nLineWidth) |
virtual Size | GetWaveLineSize (tools::Long nLineWidth) const |
virtual void | DrawDeviceBitmapEx (const Point &rDestPt, const Size &rDestSize, const Point &rSrcPtPixel, const Size &rSrcSizePixel, BitmapEx &rBitmapEx) |
virtual bool | CanSubsampleBitmap () const |
virtual bool | DrawTransformBitmapExDirect (const basegfx::B2DHomMatrix &aFullTransform, const BitmapEx &rBitmapEx, double fAlpha=1.0) |
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) |
virtual void | ClipAndDrawGradientMetafile (const Gradient &rGradient, const tools::PolyPolygon &rPolyPoly) |
virtual void | ImplInitMapModeObjects () |
OutputDevice (OutDevType eOutDevType) | |
virtual | ~OutputDevice () override |
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 () |
virtual void | dispose () |
Protected Member Functions inherited from vcl::PDFObjectContainer | |
~PDFObjectContainer () noexcept=default | |
Static Protected Member Functions inherited from OutputDevice | |
static SAL_DLLPRIVATE tools::Long | ImplGetTextLines (const tools::Rectangle &rRect, tools::Long nTextHeight, ImplMultiTextLineInfo &rLineInfo, tools::Long nWidth, const OUString &rStr, DrawTextFlags nStyle, const vcl::ITextLayout &_rLayout) |
static SAL_DLLPRIVATE sal_Int32 | ImplBreakLinesWithIterator (const tools::Long nWidth, const OUString &rStr, const vcl::ITextLayout &_rLayout, const css::uno::Reference< css::linguistic2::XHyphenator > &xHyph, const css::uno::Reference< css::i18n::XBreakIterator > &xBI, const bool bHyphenate, const sal_Int32 nPos, sal_Int32 nBreakPos) |
static SAL_DLLPRIVATE sal_Int32 | ImplBreakLinesSimple (const tools::Long nWidth, const OUString &rStr, const vcl::ITextLayout &_rLayout, const sal_Int32 nPos, sal_Int32 nBreakPos, tools::Long &nLineWidth) |
Protected Attributes inherited from OutputDevice | |
std::shared_ptr< vcl::font::PhysicalFontCollection > | mxFontCollection |
std::shared_ptr< ImplFontCache > | mxFontCache |
Definition at line 690 of file pdfwriter_impl.hxx.
|
strongprivate |
Enumerator | |
---|---|
Default | |
OnlyStruct |
Definition at line 1066 of file pdfwriter_impl.hxx.
vcl::PDFWriterImpl::PDFWriterImpl | ( | const PDFWriter::PDFWriterContext & | rContext, |
const css::uno::Reference< css::beans::XMaterialHolder > & | xEnc, | ||
PDFWriter & | i_rOuterFace | ||
) |
Definition at line 1203 of file pdfwriter_impl.cxx.
References aBuffer, computeAccessPermissions(), vcl::PDFWriter::PDFWriterContext::DPIx, vcl::PDFWriter::PDFWriterContext::DPIy, vcl::PDFWriter::PDFEncryptionProperties::Encrypt(), ENCRYPTED_PWD_SIZE, vcl::PDFWriter::PDFWriterContext::Encryption, vcl::PDFWriter::PDFEncryptionProperties::EncryptionKey, get(), m_aCipher, m_aContext, m_aContext, m_aFile, vcl::pdf::GraphicsState::m_aFont, m_aGraphicsStack, vcl::pdf::GraphicsState::m_aMapMode, m_aMapMode, m_aOutline, m_aStructure, m_aWidgetStyleSettings, m_bIsPDF_A1, m_bIsPDF_A2, m_bIsPDF_A3, m_bIsPDF_UA, m_bOpen, m_nAccessPermissions, m_nKeyLength, m_nRC4KeyLength, MapPoint, MAXIMUM_RC4_KEY_LENGTH, MD5, vcl::PDFWriter::PDFEncryptionProperties::OValue, VirtualDevice::PDF1, vcl::PDFWriter::PDF_1_4, vcl::PDFWriter::PDF_1_5, vcl::PDFWriter::PDF_1_6, vcl::PDFWriter::PDF_1_7, vcl::PDFWriter::PDF_A_1, vcl::PDFWriter::PDF_A_2, vcl::PDFWriter::PDF_A_3, prepareEncryption(), vcl::Font::SetFamilyName(), vcl::Font::SetFontSize(), OutputDevice::SetMapMode(), VirtualDevice::SetOutputSizePixel(), VirtualDevice::SetReferenceDevice(), StyleSettings::SetStandardStyles(), setupDocInfo(), vcl::PDFWriter::PDFWriterContext::Tagged, vcl::PDFWriter::PDFWriterContext::UniversalAccessibilityCompliance, URL, vcl::PDFWriter::PDFEncryptionProperties::UValue, vcl::PDFWriter::PDFWriterContext::Version, WITHOUT_ALPHA, and vcl::PDFObjectContainer::writeBuffer().
|
override |
Definition at line 1348 of file pdfwriter_impl.cxx.
References VclReferenceBase::disposeOnce().
void vcl::PDFWriterImpl::addDocumentAttachedFile | ( | OUString const & | rFileName, |
OUString const & | rMimeType, | ||
OUString const & | rDescription, | ||
std::unique_ptr< PDFOutputStream > | rStream | ||
) |
Definition at line 3505 of file pdfwriter_impl.cxx.
References addEmbeddedFile(), createObject(), and m_aDocumentAttachedFiles.
sal_Int32 vcl::PDFWriterImpl::addEmbeddedFile | ( | BinaryDataContainer const & | rDataContainer | ) |
Definition at line 3526 of file pdfwriter_impl.cxx.
References createObject(), and m_aEmbeddedFiles.
Referenced by addDocumentAttachedFile(), and createEmbeddedFile().
sal_Int32 vcl::PDFWriterImpl::addEmbeddedFile | ( | std::unique_ptr< PDFOutputStream > | rStream, |
OUString const & | rMimeType | ||
) |
Definition at line 3516 of file pdfwriter_impl.cxx.
References createObject(), and m_aEmbeddedFiles.
|
private |
Definition at line 10977 of file pdfwriter_impl.cxx.
References addInternalStructureContainer(), addRoleMap(), createObject(), vcl::PDFWriter::Division, vcl::pdf::PDFStructureElement::m_aAlias, vcl::pdf::PDFStructureElement::m_aChildren, vcl::pdf::PDFStructureElement::m_aKids, m_aStructure, vcl::pdf::PDFStructureElement::m_nFirstPageObject, vcl::pdf::PDFStructureElement::m_nObject, vcl::pdf::PDFStructureElement::m_nOwnElement, vcl::pdf::PDFStructureElement::m_nParentElement, vcl::pdf::PDFStructureElement::m_oType, o3tl::make_unsigned(), ncMaxPDFArraySize, vcl::PDFWriter::NonStructElement, and SAL_INFO.
Referenced by addInternalStructureContainer(), and emitCatalog().
|
private |
Definition at line 10647 of file pdfwriter_impl.cxx.
References eType, getStructureTag(), and m_aRoleMap.
Referenced by addInternalStructureContainer(), and initStructureElement().
|
private |
Definition at line 1958 of file pdfwriter_impl.cxx.
References createObject(), vcl::pdf::PDFStructureElement::m_aKids, m_aStructParentTree, vcl::pdf::PDFStructureElement::m_nObject, updateObject(), and vcl::PDFObjectContainer::writeBuffer().
Referenced by emitStructure(), and emitStructureAttributes().
|
private |
Definition at line 3067 of file pdfwriter_impl.cxx.
References vcl::pdf::BuildinFontFace::Get(), vcl::pdf::BuildinFont::getNameObject(), and m_aBuildinFontToObjectMap.
Referenced by emitFonts(), and emitWidgetAnnotations().
|
private |
Definition at line 3464 of file pdfwriter_impl.cxx.
References tools::Rectangle::Bottom(), vcl::PDFWriter::FitRectangle, tools::Rectangle::Left(), m_aDests, m_aPages, vcl::pdf::PDFDest::m_aRect, vcl::pdf::PDFDest::m_eType, vcl::pdf::PDFDest::m_nPage, vcl::pdf::PDFPage::m_nPageObject, o3tl::make_unsigned(), tools::Rectangle::Right(), SAL_INFO, tools::Rectangle::Top(), and vcl::PDFWriter::XYZ.
Referenced by emitLinkAnnotations(), emitOutline(), and emitWidgetAnnotations().
|
inlineprivate |
Definition at line 1533 of file pdfwriter_impl.cxx.
References enableStringEncryption(), vcl::PDFWriter::PDFEncryptionProperties::Encrypt(), vcl::PDFWriter::PDFWriterContext::Encryption, m_aCipher, m_aContext, and m_vEncryptionBuffer.
|
private |
Definition at line 1551 of file pdfwriter_impl.cxx.
References aBuf, appendLiteralStringEncrypt(), i, and OUStringToOString().
Referenced by appendLiteralStringEncrypt(), emitCatalog(), emitInfoDict(), emitLinkAnnotations(), emitOutputIntent(), emitScreenAnnotations(), emitStructIDTree(), emitStructure(), and emitWidgetAnnotations().
|
private |
Definition at line 572 of file pdfwriter_impl.cxx.
References COL_TRANSPARENT(), vcl::PDFWriter::PDFWriterContext::ColorMode, vcl::PDFWriter::DrawGreyscale, and m_aContext.
Referenced by createDefaultCheckBoxAppearance(), createDefaultEditAppearance(), createDefaultListBoxAppearance(), createDefaultPushButtonAppearance(), createDefaultRadioButtonAppearance(), drawBitmap(), drawLayout(), drawStraightTextLine(), emitType3Font(), and updateGraphicsState().
|
private |
Definition at line 562 of file pdfwriter_impl.cxx.
References COL_TRANSPARENT(), vcl::PDFWriter::PDFWriterContext::ColorMode, vcl::PDFWriter::DrawGreyscale, and m_aContext.
Referenced by drawLayout(), drawStraightTextLine(), drawStrikeoutLine(), drawWaveTextLine(), and updateGraphicsState().
|
inlineprivate |
Definition at line 1501 of file pdfwriter_impl.cxx.
References vcl::PDFWriter::AppendUnicodeTextString(), enableStringEncryption(), vcl::PDFWriter::PDFEncryptionProperties::Encrypt(), vcl::PDFWriter::PDFWriterContext::Encryption, i, m_aCipher, m_aContext, and m_vEncryptionBuffer.
Referenced by emitInfoDict(), emitLinkAnnotations(), emitOutline(), emitScreenAnnotations(), emitStructure(), emitTextAnnotationLine(), and emitWidgetAnnotations().
|
private |
Definition at line 1603 of file pdfwriter_impl.cxx.
References g_bDebugDisableCompression, m_pCodec, and m_pMemStream.
Referenced by emitFonts(), emitOutputIntent(), writeBitmapObject(), and writeGradientFunction().
|
private |
Definition at line 8045 of file pdfwriter_impl.cxx.
References vcl::ALL, clearClipRegion(), COL_TRANSPARENT(), MapMode::GetOrigin(), tools::Rectangle::IsEmpty(), m_aCurrentPDFState, vcl::pdf::GraphicsState::m_aFillColor, m_aGraphicsStack, vcl::pdf::GraphicsState::m_aLineColor, m_aMapMode, m_aOutputStreams, m_aPages, m_nCurrentPage, vcl::pdf::pointToPixel(), push(), MapMode::SetOrigin(), Point::setY(), and updateGraphicsState().
Referenced by beginTransparencyGroup(), createDefaultCheckBoxAppearance(), createDefaultEditAppearance(), createDefaultListBoxAppearance(), and createDefaultRadioButtonAppearance().
void vcl::PDFWriterImpl::beginStructureElement | ( | sal_Int32 | id | ) |
Definition at line 10842 of file pdfwriter_impl.cxx.
References checkEmitStructure(), emitComment(), endStructureElementMCSeq(), g_bDebugDisableCompression, getStructureTag(), vcl::pdf::PDFStructureElement::m_aAlias, m_aContext, m_aStructure, m_bEmitStructure, m_nCurrentPage, m_nCurrentStructElement, vcl::pdf::PDFStructureElement::m_oType, m_StructElementStack, OnlyStruct, and vcl::PDFWriter::PDFWriterContext::Tagged.
|
private |
Definition at line 10656 of file pdfwriter_impl.cxx.
References vcl::appendStructureAttributeLine(), vcl::PDFWriter::Document, getStructureTag(), vcl::pdf::PDFStructureElement::m_aAlias, m_aContext, vcl::pdf::PDFStructureElement::m_aKids, m_aPages, m_aStructure, m_bEmitStructure, vcl::pdf::PDFStructureElement::m_bOpenMCSeq, m_nCurrentPage, m_nCurrentStructElement, vcl::pdf::PDFStructureElement::m_nFirstPageObject, vcl::pdf::PDFStructureElement::m_nObject, vcl::pdf::PDFStructureElement::m_oType, vcl::PDFWriter::NonStructElement, SAL_INFO, vcl::PDFWriter::PDFWriterContext::Tagged, and vcl::PDFObjectContainer::writeBuffer().
Referenced by MARK().
void vcl::PDFWriterImpl::beginTransparencyGroup | ( | ) |
Definition at line 8101 of file pdfwriter_impl.cxx.
References beginRedirect(), m_aContext, vcl::PDFWriter::PDF_1_4, updateGraphicsState(), and vcl::PDFWriter::PDFWriterContext::Version.
Referenced by drawPolyLine().
|
overrideprivatevirtual |
Implements vcl::PDFObjectContainer.
Definition at line 1127 of file pdfwriter_impl2.cxx.
References comphelper::Hash::calculateHash(), vcl::PDFWriter::PDFEncryptionProperties::Encrypt(), vcl::PDFWriter::PDFWriterContext::Encryption, vcl::PDFWriter::PDFEncryptionProperties::EncryptionKey, i, m_aCipher, m_aContext, m_bEncryptThisStream, m_nKeyLength, and m_nRC4KeyLength.
Referenced by createToUnicodeCMap(), emitAppearances(), emitEmbeddedFiles(), emitFonts(), emitOutputIntent(), emitTilings(), writeBitmapObject(), writeGradientFunction(), writeJPG(), writeReferenceXObject(), and writeTransparentObject().
|
private |
checks whether a non struct element lies in the ancestor hierarchy of the current structure element
Definition at line 10736 of file pdfwriter_impl.cxx.
References m_aContext, m_aStructure, m_nCurrentStructElement, o3tl::make_unsigned(), vcl::PDFWriter::NonStructElement, and vcl::PDFWriter::PDFWriterContext::Tagged.
Referenced by beginStructureElement(), endStructureElement(), and setCurrentStructureElement().
|
inline |
Definition at line 1227 of file pdfwriter_impl.hxx.
References vcl::pdf::ClipRegion, and m_aGraphicsStack.
Referenced by beginRedirect().
|
overrideprivatevirtual |
Perform actual rect clip against outdev dimensions, to generate empty clips whenever one of the values is completely off the device.
aRegion | region to be clipped to the device dimensions |
Reimplemented from OutputDevice.
Definition at line 2019 of file pdfwriter_impl2.cxx.
|
static |
Definition at line 1581 of file pdfwriter_impl.cxx.
References ZCodec::BeginCompression(), ZCodec::EndCompression(), g_bDebugDisableCompression, SvMemoryStream::GetData(), SvStream::Seek(), SvStream::SetStreamSize(), STREAM_SEEK_TO_BEGIN, SvStream::Tell(), SvMemoryStream::TellEnd(), ZCodec::Write(), and SvStream::WriteBytes().
Referenced by vcl::PDFObjectCopier::copyPageStreams(), emitAppearances(), emitTilings(), and writeTransparentObject().
|
staticprivate |
Definition at line 1219 of file pdfwriter_impl2.cxx.
References vcl::PDFWriter::PDFEncryptionProperties::CanAddOrModify, vcl::PDFWriter::PDFEncryptionProperties::CanAssemble, vcl::PDFWriter::PDFEncryptionProperties::CanCopyOrExtract, vcl::PDFWriter::PDFEncryptionProperties::CanExtractForAccessibility, vcl::PDFWriter::PDFEncryptionProperties::CanFillInteractive, vcl::PDFWriter::PDFEncryptionProperties::CanModifyTheContent, vcl::PDFWriter::PDFEncryptionProperties::CanPrintFull, vcl::PDFWriter::PDFEncryptionProperties::CanPrintTheDocument, and SECUR_128BIT_KEY.
Referenced by PDFWriterImpl(), and prepareEncryption().
|
staticprivate |
Definition at line 1401 of file pdfwriter_impl.cxx.
References vcl::PDFWriter::AppendUnicodeTextString(), vcl::PDFWriter::PDFDocInfo::Author, vcl::PDFWriter::PDFDocInfo::Creator, comphelper::Hash::finalize(), vcl::PDFWriter::PDFDocInfo::Keywords, vcl::PDFWriter::PDFDocInfo::Producer, vcl::PDFWriter::PDFDocInfo::Subject, vcl::PDFWriter::PDFDocInfo::Title, and comphelper::Hash::update().
Referenced by setupDocInfo().
|
staticprivate |
Definition at line 1279 of file pdfwriter_impl2.cxx.
References comphelper::Hash::calculateHash(), vcl::PDFWriter::PDFEncryptionProperties::DocumentIdentifier, vcl::PDFWriter::PDFEncryptionProperties::EncryptionKey, comphelper::Hash::finalize(), EncHashTransporter::getUDigest(), i, EncHashTransporter::invalidate(), MAXIMUM_RC4_KEY_LENGTH, MD5_DIGEST_SIZE, vcl::PDFWriter::PDFEncryptionProperties::OValue, and comphelper::Hash::update().
Referenced by computeUDictionaryValue().
|
staticprivate |
Definition at line 1336 of file pdfwriter_impl2.cxx.
References comphelper::Hash::calculateHash(), ENCRYPTED_PWD_SIZE, i, SECUR_128BIT_KEY, and y.
Referenced by initEncryption().
|
staticprivate |
Definition at line 1415 of file pdfwriter_impl2.cxx.
References computeEncryptionKey(), vcl::PDFWriter::PDFEncryptionProperties::DocumentIdentifier, ENCRYPTED_PWD_SIZE, vcl::PDFWriter::PDFEncryptionProperties::EncryptionKey, comphelper::Hash::finalize(), i, MD5_DIGEST_SIZE, s_nPadString, SECUR_128BIT_KEY, comphelper::Hash::update(), vcl::PDFWriter::PDFEncryptionProperties::UValue, and y.
Referenced by prepareEncryption().
|
static |
Definition at line 8474 of file pdfwriter_impl.cxx.
References basegfx::Bevel, vcl::PDFWriter::capButt, vcl::PDFWriter::capRound, vcl::PDFWriter::capSquare, Dash, vcl::PDFWriter::joinBevel, vcl::PDFWriter::joinMiter, vcl::PDFWriter::joinRound, vcl::PDFWriter::ExtLineInfo::m_aDashArray, 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, basegfx::Miter, basegfx::NONE, basegfx::Round, and SAL_WARN_IF.
Referenced by drawLine(), and drawPolyLine().
|
private |
Definition at line 9836 of file pdfwriter_impl.cxx.
References createBitmapEmit(), m_aBitmaps, m_aGlobalResourceDict, and m_aOutputStreams.
|
private |
Definition at line 9803 of file pdfwriter_impl.cxx.
References vcl::PDFWriter::PDFWriterContext::ColorMode, BitmapEx::Convert(), createEmbeddedFile(), createObject(), vcl::PDFWriter::DrawGreyscale, BitmapEx::GetAlphaMask(), BitmapEx::GetBitmap(), Bitmap::GetChecksum(), Bitmap::getPixelFormat(), BitmapEx::GetSizePixel(), Graphic::getVectorGraphicData(), BitmapEx::IsAlpha(), m_aContext, vcl::pdf::BitmapID::m_aPixelSize, vcl::pdf::BitmapID::m_nChecksum, vcl::pdf::BitmapID::m_nMaskChecksum, vcl::pdf::BitmapID::m_nSize, N8BitGreys, Pdf, vcl::pixelFormatBitCount(), pushResource(), and vcl::PDFWriter::PDFWriterContext::UseReferenceXObject.
Referenced by createBitmapEmit(), drawBitmap(), drawWallpaper(), and emitType3Font().
sal_Int32 vcl::PDFWriterImpl::createControl | ( | const PDFWriter::AnyWidget & | rControl, |
sal_Int32 | nPageNr = -1 |
||
) |
Definition at line 11657 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::EditWidget::CurrencySymbol, vcl::PDFWriter::EditWidget::DateFormat, vcl::PDFWriter::EditWidget::DecimalAccuracy, 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::EditWidget::Format, vcl::PDFWriter::AnyWidget::getType(), Left, vcl::PDFWriter::ListBox, vcl::PDFWriter::AnyWidget::Location, vcl::pdf::PDFWidget::m_aAppearances, vcl::pdf::PDFWidget::m_aCurrencySymbol, vcl::pdf::PDFWidget::m_aDateFormat, vcl::pdf::PDFWidget::m_aDescription, vcl::pdf::PDFWidget::m_aKids, vcl::pdf::PDFWidget::m_aKidsIndex, vcl::pdf::PDFWidget::m_aListEntries, vcl::pdf::PDFWidget::m_aOffValue, vcl::pdf::PDFWidget::m_aOnValue, m_aPages, vcl::pdf::PDFAnnotation::m_aRect, vcl::pdf::PDFWidget::m_aSelectedEntries, vcl::pdf::PDFWidget::m_aText, vcl::pdf::PDFWidget::m_aTimeFormat, vcl::pdf::PDFWidget::m_aValue, m_aWidgets, vcl::pdf::PDFWidget::m_bPrependCurrencySymbol, vcl::pdf::PDFWidget::m_bSubmit, vcl::pdf::PDFWidget::m_bSubmitGet, vcl::pdf::PDFWidget::m_eType, m_nCurrentPage, vcl::pdf::PDFWidget::m_nDecimalAccuracy, vcl::pdf::PDFWidget::m_nDest, vcl::pdf::PDFWidget::m_nFlags, vcl::pdf::PDFWidget::m_nFormat, vcl::pdf::PDFWidget::m_nMaxLen, vcl::pdf::PDFAnnotation::m_nObject, vcl::pdf::PDFWidget::m_nParent, vcl::pdf::PDFWidget::m_nRadioGroup, m_nSignatureObject, vcl::pdf::PDFWidget::m_nTabOrder, vcl::pdf::PDFWidget::m_nTextStyle, o3tl::make_unsigned(), vcl::PDFWriter::EditWidget::MaxLen, vcl::PDFWriter::EditWidget::MultiLine, MultiLine, vcl::PDFWriter::ListBoxWidget::MultiSelect, vcl::PDFWriter::AnyWidget::Name, NONE, vcl::PDFWriter::CheckBoxWidget::OffValue, vcl::PDFWriter::RadioButtonWidget::OffValue, vcl::PDFWriter::CheckBoxWidget::OnValue, vcl::PDFWriter::RadioButtonWidget::OnValue, vcl::PDFWriter::EditWidget::Password, vcl::PDFWriter::EditWidget::PrependCurrencySymbol, vcl::PDFWriter::PushButton, vcl::PDFWriter::RadioButton, vcl::PDFWriter::RadioButtonWidget::RadioGroup, vcl::PDFWriter::AnyWidget::ReadOnly, 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, vcl::PDFWriter::EditWidget::TimeFormat, Top, u, tools::Rectangle::Union(), vcl::PDFWriter::PushButtonWidget::URL, VCenter, and WordBreak.
Referenced by emit().
|
private |
Definition at line 4319 of file pdfwriter_impl.cxx.
References tools::Rectangle::AdjustBottom(), tools::Rectangle::AdjustRight(), tools::Rectangle::AdjustTop(), vcl::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(), drawRectangle(), drawText(), endRedirect(), StyleSettings::GetCheckedColor(), StyleSettings::GetFieldColor(), getFontDictObject(), LogicalFontInstance::GetFontFace(), OutputDevice::GetFontInstance(), vcl::Font::GetFontSize(), LogicalFontInstance::GetGlyphIndex(), LogicalFontInstance::GetGlyphWidth(), tools::Rectangle::GetHeight(), StyleSettings::GetRadioCheckFont(), StyleSettings::GetRadioCheckTextColor(), tools::Rectangle::GetWidth(), Size::Height(), tools::Rectangle::Left(), vcl::pdf::PDFWidget::m_aAppearances, vcl::pdf::PDFWidget::m_aDAString, vcl::pdf::PDFWidget::m_aDRDict, vcl::pdf::PDFWidget::m_aMKDict, vcl::pdf::PDFWidget::m_aMKDictCAString, m_aPages, vcl::pdf::PDFAnnotation::m_aRect, vcl::pdf::PDFWidget::m_aText, m_aWidgetStyleSettings, m_nCurrentPage, vcl::pdf::PDFWidget::m_nTextStyle, OutputDevice::Pop(), pop(), push(), OutputDevice::Push(), registerGlyph(), vcl::replaceColor(), replaceFont(), tools::Rectangle::SetBottom(), setFillColor(), setFont(), OutputDevice::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 vcl::PDFObjectContainer::writeBuffer().
Referenced by createControl().
|
private |
Definition at line 4230 of file pdfwriter_impl.cxx.
References vcl::ALL, appendNonStrokingColor(), beginRedirect(), drawFieldBorder(), endRedirect(), vcl::pdf::BuildinFontFace::Get(), getBestBuildinFont(), StyleSettings::GetFieldTextColor(), getFontDictObject(), vcl::Font::GetFontHeight(), vcl::pdf::PDFWidget::m_aAppearances, vcl::pdf::PDFWidget::m_aDAString, vcl::pdf::PDFWidget::m_aDRDict, m_aPages, vcl::pdf::PDFAnnotation::m_aRect, m_aWidgetStyleSettings, m_nCurrentPage, pop(), push(), vcl::replaceColor(), vcl::PDFWriter::AnyWidget::TextColor, and vcl::PDFObjectContainer::writeBuffer().
Referenced by createControl().
|
private |
Definition at line 4275 of file pdfwriter_impl.cxx.
References vcl::ALL, appendNonStrokingColor(), vcl::PDFWriter::AnyWidget::BackgroundColor, beginRedirect(), COL_TRANSPARENT(), drawFieldBorder(), drawRectangle(), endRedirect(), StyleSettings::GetFieldColor(), StyleSettings::GetFieldTextColor(), getFontDictObject(), vcl::Font::GetFontHeight(), getSystemFont(), vcl::pdf::PDFWidget::m_aAppearances, vcl::pdf::PDFWidget::m_aDAString, vcl::pdf::PDFWidget::m_aDRDict, m_aPages, vcl::pdf::PDFAnnotation::m_aRect, m_aWidgetStyleSettings, m_nCurrentPage, pop(), push(), vcl::replaceColor(), setFillColor(), setLineColor(), vcl::PDFWriter::AnyWidget::TextColor, and vcl::PDFObjectContainer::writeBuffer().
Referenced by createControl().
|
private |
Definition at line 4123 of file pdfwriter_impl.cxx.
References vcl::ALL, appendNonStrokingColor(), vcl::PDFWriter::AnyWidget::Background, vcl::PDFWriter::AnyWidget::BackgroundColor, vcl::PDFWriter::AnyWidget::Border, vcl::PDFWriter::AnyWidget::BorderColor, COL_TRANSPARENT(), drawRectangle(), drawText(), vcl::pdf::BuildinFontFace::Get(), getBestBuildinFont(), StyleSettings::GetButtonTextColor(), StyleSettings::GetDialogColor(), vcl::Font::GetFontHeight(), vcl::Font::GetFontSize(), StyleSettings::GetLightColor(), StyleSettings::GetPushButtonFont(), vcl::PDFWriter::AnyWidget::Location, vcl::pdf::PDFWidget::m_aAppearances, vcl::pdf::PDFWidget::m_aDAString, vcl::pdf::PDFWidget::m_aMKDict, vcl::pdf::PDFWidget::m_aMKDictCAString, m_aPages, vcl::pdf::PDFAnnotation::m_aRect, vcl::pdf::PDFWidget::m_aText, m_aWidgetStyleSettings, m_nCurrentPage, vcl::pdf::PDFWidget::m_nTextStyle, pop(), push(), vcl::replaceColor(), replaceFont(), setFillColor(), setFont(), setLineColor(), setTextColor(), vcl::PDFWriter::AnyWidget::TextColor, and vcl::PDFWriter::AnyWidget::TextFont.
Referenced by createControl().
|
private |
Definition at line 4449 of file pdfwriter_impl.cxx.
References tools::Rectangle::AdjustBottom(), tools::Rectangle::AdjustLeft(), tools::Rectangle::AdjustRight(), tools::Rectangle::AdjustTop(), vcl::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(), tools::Rectangle::GetWidth(), Size::Height(), tools::Rectangle::Left(), vcl::pdf::PDFWidget::m_aAppearances, vcl::pdf::PDFWidget::m_aMKDict, vcl::pdf::PDFWidget::m_aMKDictCAString, m_aPages, vcl::pdf::PDFAnnotation::m_aRect, vcl::pdf::PDFWidget::m_aText, m_aWidgetStyleSettings, m_nCurrentPage, vcl::pdf::PDFWidget::m_nTextStyle, pop(), push(), vcl::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 vcl::PDFObjectContainer::writeBuffer().
Referenced by createControl().
sal_Int32 vcl::PDFWriterImpl::createDest | ( | const tools::Rectangle & | rRect, |
sal_Int32 | nPageNr, | ||
PDFWriter::DestAreaType | eType | ||
) |
Definition at line 10468 of file pdfwriter_impl.cxx.
References eType, m_aDests, m_aPages, m_nCurrentPage, and o3tl::make_unsigned().
Referenced by registerDestReference().
void vcl::PDFWriterImpl::createEmbeddedFile | ( | const Graphic & | rGraphic, |
ReferenceXObjectEmit & | rEmit, | ||
sal_Int32 | nBitmapObject | ||
) |
Stores the original PDF data from rGraphic as an embedded file.
Definition at line 9654 of file pdfwriter_impl.cxx.
References addEmbeddedFile(), aIndex, createObject(), Graphic::GetPrefSize(), Graphic::getVectorGraphicData(), m_aContext, m_aExternalPDFStreams, vcl::pdf::ReferenceXObjectEmit::m_aPixelSize, vcl::pdf::ReferenceXObjectEmit::m_nBitmapObject, vcl::pdf::ReferenceXObjectEmit::m_nEmbeddedObject, vcl::pdf::ReferenceXObjectEmit::m_nExternalPDFDataIndex, vcl::pdf::ReferenceXObjectEmit::m_nExternalPDFPageIndex, vcl::pdf::ReferenceXObjectEmit::m_nFormObject, Pdf, vcl::ExternalPDFStreams::store(), and vcl::PDFWriter::PDFWriterContext::UseReferenceXObject.
Referenced by createBitmapEmit(), and drawJPGBitmap().
|
private |
Definition at line 9865 of file pdfwriter_impl.cxx.
References Size::AdjustHeight(), Size::AdjustWidth(), createObject(), m_aGradients, m_aGraphicsStack, and pushResource().
Referenced by drawGradient().
sal_Int32 vcl::PDFWriterImpl::createLink | ( | const tools::Rectangle & | rRect, |
sal_Int32 | nPageNr, | ||
OUString const & | rAltText | ||
) |
Definition at line 10401 of file pdfwriter_impl.cxx.
References createObject(), m_aLinks, m_aPages, m_nCurrentPage, and o3tl::make_unsigned().
sal_Int32 vcl::PDFWriterImpl::createNamedDest | ( | const OUString & | sDestName, |
const tools::Rectangle & | rRect, | ||
sal_Int32 | nPageNr, | ||
PDFWriter::DestAreaType | eType | ||
) |
Definition at line 10447 of file pdfwriter_impl.cxx.
References eType, m_aNamedDests, m_aPages, m_nCurrentPage, and o3tl::make_unsigned().
void vcl::PDFWriterImpl::createNote | ( | const tools::Rectangle & | rRect, |
const PDFNote & | rNote, | ||
sal_Int32 | nPageNr | ||
) |
Definition at line 10377 of file pdfwriter_impl.cxx.
References createObject(), m_aNotes, m_aPages, m_nCurrentPage, and o3tl::make_unsigned().
|
overrideprivatevirtual |
See vcl::PDFObjectContainer::createObject().
Implements vcl::PDFObjectContainer.
Definition at line 1760 of file pdfwriter_impl.cxx.
References m_aObjects, and U.
Referenced by addDocumentAttachedFile(), addEmbeddedFile(), addInternalStructureContainer(), AppendAnnotKid(), createBitmapEmit(), createControl(), createEmbeddedFile(), createGradient(), createLink(), createNote(), createScreen(), createToUnicodeCMap(), createWidgetFieldName(), drawJPGBitmap(), drawTransparent(), drawWallpaper(), emitAppearances(), emitBuildinFont(), emitCatalog(), emitDocumentMetadata(), emitEmbeddedFiles(), emitFontDescriptor(), emitFonts(), emitInfoDict(), emitNamedDestinations(), emitOutline(), emitOutputIntent(), emitStructure(), emitStructureAttributes(), emitSystemFont(), emitTrailer(), emitType3Font(), endTransparencyGroup(), findRadioGroupWidget(), getBestBuildinFont(), getFontDictObject(), getResourceDictObj(), initStructureElement(), setScreenStream(), writeBitmapObject(), writeGradientFunction(), writeJPG(), and writeReferenceXObject().
sal_Int32 vcl::PDFWriterImpl::createOutlineItem | ( | sal_Int32 | nParent, |
std::u16string_view | rText, | ||
sal_Int32 | nDestID | ||
) |
Definition at line 10549 of file pdfwriter_impl.cxx.
References m_aOutline, setOutlineItemDest(), setOutlineItemParent(), and setOutlineItemText().
sal_Int32 vcl::PDFWriterImpl::createScreen | ( | const tools::Rectangle & | rRect, |
sal_Int32 | nPageNr, | ||
OUString const & | rAltText, | ||
OUString const & | rMimeType | ||
) |
Definition at line 10424 of file pdfwriter_impl.cxx.
References createObject(), m_aPages, m_aScreens, m_nCurrentPage, and o3tl::make_unsigned().
|
private |
Definition at line 2879 of file pdfwriter_impl.cxx.
References ZCodec::BeginCompression(), CHECK_RETURN, checkAndEnableStreamEncryption(), createObject(), disableStreamEncryption(), emitComment(), ZCodec::EndCompression(), g_bDebugDisableCompression, SvMemoryStream::GetData(), n, nCount, nIndex, SvStream::Seek(), SvStream::Tell(), u, updateObject(), ZCodec::Write(), vcl::PDFObjectContainer::writeBuffer(), and writeBufferBytes().
Referenced by emitFonts(), and emitType3Font().
|
private |
Definition at line 320 of file pdfwriter_impl.cxx.
References aBuffer, vcl::PDFWriter::PDFWriterContext::AllowDuplicateFieldNames, aStr, createObject(), vcl::PDFWriter::AnyWidget::getType(), vcl::PDFWriter::Hierarchy, i, m_aContext, m_aFieldNameMap, vcl::pdf::PDFWidget::m_aKids, vcl::pdf::PDFWidget::m_aKidsIndex, m_aWidgets, vcl::pdf::PDFAnnotation::m_nObject, o3tl::make_unsigned(), vcl::PDFWriter::AnyWidget::Name, OUStringToOString(), and vcl::PDFWriter::RadioButton.
Referenced by createControl(), and findRadioGroupWidget().
|
inlineoverrideprivatevirtual |
Implements vcl::PDFObjectContainer.
Definition at line 876 of file pdfwriter_impl.hxx.
References m_bEncryptThisStream.
Referenced by createToUnicodeCMap(), emitAppearances(), emitEmbeddedFiles(), emitFonts(), emitOutputIntent(), emitTilings(), writeBitmapObject(), writeGradientFunction(), writeJPG(), writeReferenceXObject(), and writeTransparentObject().
|
overridevirtual |
Reimplemented from VirtualDevice.
Definition at line 1353 of file pdfwriter_impl.cxx.
References VirtualDevice::dispose(), m_aCipher, and m_aPages.
void vcl::PDFWriterImpl::drawArc | ( | const tools::Rectangle & | rRect, |
const Point & | rStart, | ||
const Point & | rStop, | ||
bool | bWithPie, | ||
bool | bWidthChord | ||
) |
Definition at line 8352 of file pdfwriter_impl.cxx.
References tools::Rectangle::Bottom(), vcl::calcAngle(), COL_TRANSPARENT(), basegfx::fTools::equal(), tools::Rectangle::GetHeight(), tools::Rectangle::GetWidth(), i, tools::Rectangle::Left(), m_aGraphicsStack, m_aPages, MARK(), tools::Rectangle::Right(), tools::Rectangle::Top(), updateGraphicsState(), and vcl::PDFObjectContainer::writeBuffer().
void vcl::PDFWriterImpl::drawBitmap | ( | const Point & | rDestPoint, |
const Size & | rDestSize, | ||
const Bitmap & | rBitmap, | ||
const Graphic & | rGraphic | ||
) |
Definition at line 9841 of file pdfwriter_impl.cxx.
References COL_TRANSPARENT(), createBitmapEmit(), drawBitmap(), Size::Height(), MARK(), and Size::Width().
void vcl::PDFWriterImpl::drawBitmap | ( | const Point & | rDestPoint, |
const Size & | rDestSize, | ||
const BitmapEx & | rBitmap | ||
) |
Definition at line 9853 of file pdfwriter_impl.cxx.
References COL_TRANSPARENT(), createBitmapEmit(), drawBitmap(), Size::Height(), MARK(), and Size::Width().
|
private |
Definition at line 9770 of file pdfwriter_impl.cxx.
References appendNonStrokingColor(), COL_TRANSPARENT(), vcl::pdf::ReferenceXObjectEmit::getObject(), Size::Height(), m_aPages, vcl::pdf::BitmapEmit::m_aReferenceXObject, vcl::pdf::BitmapEmit::m_nObject, updateGraphicsState(), Size::Width(), and vcl::PDFObjectContainer::writeBuffer().
Referenced by drawBitmap(), drawJPGBitmap(), and drawWallpaper().
void vcl::PDFWriterImpl::drawEllipse | ( | const tools::Rectangle & | rRect | ) |
Definition at line 8263 of file pdfwriter_impl.cxx.
References tools::Rectangle::Bottom(), COL_TRANSPARENT(), tools::Rectangle::GetHeight(), tools::Rectangle::GetWidth(), tools::Rectangle::Left(), m_aGraphicsStack, m_aPages, MARK(), tools::Rectangle::Right(), tools::Rectangle::Top(), updateGraphicsState(), vcl::PDFObjectContainer::writeBuffer(), X, and Y.
Referenced by createDefaultRadioButtonAppearance().
|
private |
Definition at line 7118 of file pdfwriter_impl.cxx.
References tools::PolyPolygon::Count(), drawPolyLine(), drawPolyPolygon(), drawRectangle(), tools::PolyPolygon::GetObject(), tools::Rectangle::GetSize(), tools::Rectangle::IsEmpty(), tools::Rectangle::Left(), tools::Polygon::Move(), tools::PolyPolygon::Move(), and tools::Rectangle::Top().
Referenced by drawLayout().
|
private |
Definition at line 4180 of file pdfwriter_impl.cxx.
References tools::Rectangle::AdjustBottom(), tools::Rectangle::AdjustLeft(), tools::Rectangle::AdjustRight(), tools::Rectangle::AdjustTop(), vcl::PDFWriter::AnyWidget::Background, vcl::PDFWriter::AnyWidget::BackgroundColor, vcl::PDFWriter::AnyWidget::Border, vcl::PDFWriter::AnyWidget::BorderColor, tools::Rectangle::Bottom(), tools::Rectangle::BottomRight(), COL_TRANSPARENT(), drawRectangle(), StyleSettings::GetDarkShadowColor(), OutputDevice::GetDPIX(), StyleSettings::GetFieldColor(), StyleSettings::GetFieldFont(), vcl::Font::GetFontHeight(), StyleSettings::GetLightBorderColor(), StyleSettings::GetLightColor(), StyleSettings::GetShadowColor(), tools::Rectangle::Left(), vcl::pdf::PDFAnnotation::m_aRect, vcl::replaceColor(), replaceFont(), tools::Rectangle::Right(), setFillColor(), setLineColor(), vcl::PDFWriter::AnyWidget::TextFont, tools::Rectangle::Top(), and tools::Rectangle::TopLeft().
Referenced by createDefaultEditAppearance(), and createDefaultListBoxAppearance().
void vcl::PDFWriterImpl::drawGradient | ( | const tools::Rectangle & | rRect, |
const Gradient & | rGradient | ||
) |
Definition at line 9896 of file pdfwriter_impl.cxx.
References tools::Rectangle::BottomLeft(), COL_TRANSPARENT(), createGradient(), tools::Rectangle::GetHeight(), tools::Rectangle::GetSize(), tools::Rectangle::GetWidth(), m_aGraphicsStack, m_aPages, MARK(), updateGraphicsState(), and vcl::PDFObjectContainer::writeBuffer().
Referenced by drawWallpaper().
void vcl::PDFWriterImpl::drawHatch | ( | const tools::PolyPolygon & | rPolyPoly, |
const Hatch & | rHatch | ||
) |
Definition at line 9935 of file pdfwriter_impl.cxx.
References tools::PolyPolygon::Count(), OutputDevice::DrawHatch(), Hatch::GetColor(), vcl::LINECOLOR, MARK(), tools::PolyPolygon::Optimize(), pop(), push(), setLineColor(), and updateGraphicsState().
|
overrideprivatevirtual |
Reimplemented from OutputDevice.
Definition at line 1981 of file pdfwriter_impl2.cxx.
References drawLine().
|
private |
Definition at line 6561 of file pdfwriter_impl.cxx.
References ARTIFICIAL_ITALIC_SKEW, basegfx::Tuple2D< typename TYPE >::getX(), i, vcl::pdf::Matrix3::invert(), m_aPages, nPos, vcl::pdf::Matrix3::rotate(), SAL_MAX_INT32, SAL_MIN_INT32, SAL_WARN_IF, vcl::pdf::Matrix3::scale(), vcl::pdf::Matrix3::skew(), OutputDevice::SubPixelToLogic(), vcl::pdf::Matrix3::transform(), vcl::pdf::Matrix3::translate(), Point::X(), and Point::Y().
Referenced by drawLayout().
void vcl::PDFWriterImpl::drawJPGBitmap | ( | SvStream & | rDCTData, |
bool | bIsTrueColor, | ||
const Size & | rSizePixel, | ||
const tools::Rectangle & | rTargetArea, | ||
const AlphaMask & | rAlphaMask, | ||
const Graphic & | rGraphic | ||
) |
Definition at line 9682 of file pdfwriter_impl.cxx.
References tools::Rectangle::BottomLeft(), vcl::PDFWriter::PDFWriterContext::ColorMode, createEmbeddedFile(), createObject(), drawBitmap(), vcl::PDFWriter::DrawGreyscale, BitmapEx::GetBitmap(), Graphic::GetBitmapEx(), Bitmap::GetChecksum(), tools::Rectangle::GetHeight(), tools::Rectangle::GetSize(), Bitmap::GetSizePixel(), Graphic::GetSizePixel(), Graphic::getVectorGraphicData(), tools::Rectangle::GetWidth(), Size::Height(), GraphicConverter::Import(), AlphaMask::IsEmpty(), JPG, vcl::pdf::JPGEmit::m_aAlphaMask, m_aContext, vcl::pdf::JPGEmit::m_aID, m_aJPGs, m_aPages, vcl::pdf::BitmapID::m_aPixelSize, vcl::pdf::JPGEmit::m_aReferenceXObject, vcl::pdf::JPGEmit::m_bTrueColor, vcl::pdf::BitmapID::m_nChecksum, vcl::pdf::BitmapID::m_nMaskChecksum, vcl::pdf::JPGEmit::m_nObject, vcl::pdf::BitmapID::m_nSize, vcl::pdf::JPGEmit::m_pStream, MARK(), Pdf, pushResource(), SvStream::Seek(), STREAM_SEEK_TO_BEGIN, STREAM_SEEK_TO_END, tools::Rectangle::TopLeft(), updateGraphicsState(), vcl::PDFWriter::PDFWriterContext::UseReferenceXObject, vcl_get_checksum(), Size::Width(), and vcl::PDFObjectContainer::writeBuffer().
|
private |
Definition at line 6672 of file pdfwriter_impl.cxx.
References tools::Rectangle::AdjustTop(), basegfx::Tuple2D< typename TYPE >::adjustX(), Point::AdjustY(), ALIGN_BOTTOM, ALIGN_TOP, vcl::ALL, appendNonStrokingColor(), appendStrokingColor(), GlyphItem::charCount(), GlyphItem::charPos(), COL_TRANSPARENT(), COL_WHITE(), drawEmphasisMark(), drawHorizontalGlyphs(), drawPolygon(), drawRectangle(), drawRelief(), drawShadow(), drawTextLine(), drawVerticalGlyphs(), vcl::FILLCOLOR, vcl::Font::GetAlignment(), FontMetric::GetAscent(), vcl::Font::GetAverageFontWidth(), vcl::Font::GetColor(), FontMetric::GetDescent(), OutputDevice::GetDPIY(), SalLayout::GetDrawPosition(), OutputDevice::GetEmphasisAscent(), OutputDevice::GetEmphasisDescent(), vcl::Font::GetEmphasisMark(), vcl::Font::GetEmphasisMarkStyle(), vcl::Font::GetFillColor(), LogicalFontInstance::GetFontFace(), vcl::Font::GetFontHeight(), OutputDevice::GetFontInstance(), OutputDevice::GetFontMetric(), LogicalFontInstance::GetFontSelectPattern(), GlyphItem::GetGlyphBoundRect(), LogicalFontInstance::GetGlyphWidth(), FontMetric::GetLineHeight(), MapMode::GetMapUnit(), SalLayout::GetNextGlyph(), vcl::Font::GetOrientation(), vcl::Font::GetOverline(), vcl::font::EmphasisMark::GetRect1(), vcl::font::EmphasisMark::GetRect2(), vcl::Font::GetRelief(), MapMode::GetScaleX(), MapMode::GetScaleY(), vcl::font::EmphasisMark::GetShape(), vcl::Font::GetStrikeout(), SalLayout::GetTextWidth(), vcl::Font::GetUnderline(), tools::Rectangle::GetWidth(), vcl::font::EmphasisMark::GetWidth(), vcl::font::EmphasisMark::GetYOffset(), GlyphItem::glyphId(), i, OutputDevice::ImplDevicePixelToLogicHeight(), OutputDevice::ImplDevicePixelToLogicWidth(), GlyphItem::IsClusterStart(), GlyphItem::IsInCluster(), vcl::Font::IsOutline(), vcl::Font::IsShadow(), vcl::font::EmphasisMark::IsShapePolyLine(), GlyphItem::IsSpacing(), vcl::Font::IsUnderlineAbove(), vcl::Font::IsVertical(), GlyphItem::IsVertical(), vcl::Font::IsWordLineMode(), tools::Rectangle::Left(), vcl::LINECOLOR, LINESTYLE_DONTKNOW, LINESTYLE_NONE, m_aCurrentPDFState, vcl::pdf::GraphicsState::m_aFillColor, vcl::pdf::GraphicsState::m_aFont, vcl::pdf::GraphicsState::m_aLineColor, vcl::pdf::GraphicsState::m_aMapMode, vcl::pdf::FontEmit::m_aMapping, m_aPages, m_aSubsets, vcl::font::FontSelectPattern::mnHeight, LogicalFontInstance::mnOrientation, n, GlyphItem::newWidth(), nIndex, NONE, GlyphItem::origWidth(), pop(), push(), registerGlyph(), tools::Polygon::Rotate(), vcl::pdf::Matrix3::rotate(), vcl::pdf::Matrix3::scale(), vcl::Font::SetAverageFontWidth(), setFillColor(), tools::Rectangle::setHeight(), setLineColor(), STRIKEOUT_DONTKNOW, STRIKEOUT_NONE, OutputDevice::SubPixelToLogic(), toRadians(), vcl::pdf::Matrix3::transform(), vcl::PDFObjectContainer::writeBuffer(), Point::X(), vcl::XUnits(), and Point::Y().
Referenced by drawRelief(), drawShadow(), drawStretchText(), drawText(), and drawTextArray().
Definition at line 7341 of file pdfwriter_impl.cxx.
References COL_TRANSPARENT(), m_aGraphicsStack, m_aPages, MARK(), updateGraphicsState(), and vcl::PDFObjectContainer::writeBuffer().
Referenced by DrawHatchLine_DrawLine(), and drawLine().
void vcl::PDFWriterImpl::drawLine | ( | const Point & | rStart, |
const Point & | rStop, | ||
const LineInfo & | rInfo | ||
) |
Definition at line 7359 of file pdfwriter_impl.cxx.
References COL_TRANSPARENT(), convertLineInfoToExtLineInfo(), drawLine(), drawPolyLine(), m_aGraphicsStack, m_aPages, MARK(), Solid, updateGraphicsState(), and vcl::PDFObjectContainer::writeBuffer().
Definition at line 8655 of file pdfwriter_impl.cxx.
References COL_TRANSPARENT(), OutputDevice::GetDPIX(), OutputDevice::GetDPIY(), m_aGraphicsStack, m_aPages, MARK(), setFillColor(), updateGraphicsState(), and vcl::PDFObjectContainer::writeBuffer().
void vcl::PDFWriterImpl::drawPolygon | ( | const tools::Polygon & | rPoly | ) |
Definition at line 7894 of file pdfwriter_impl.cxx.
References COL_TRANSPARENT(), tools::Polygon::GetSize(), m_aGraphicsStack, m_aPages, MARK(), updateGraphicsState(), and vcl::PDFObjectContainer::writeBuffer().
Referenced by drawLayout().
void vcl::PDFWriterImpl::drawPolyLine | ( | const tools::Polygon & | rPoly | ) |
Definition at line 8429 of file pdfwriter_impl.cxx.
References COL_TRANSPARENT(), tools::Polygon::GetSize(), m_aGraphicsStack, m_aPages, MARK(), updateGraphicsState(), and vcl::PDFObjectContainer::writeBuffer().
Referenced by drawEmphasisMark(), drawLine(), and drawPolyLine().
void vcl::PDFWriterImpl::drawPolyLine | ( | const tools::Polygon & | rPoly, |
const LineInfo & | rInfo | ||
) |
Definition at line 8449 of file pdfwriter_impl.cxx.
References COL_TRANSPARENT(), convertLineInfoToExtLineInfo(), drawPolyLine(), m_aGraphicsStack, m_aPages, MARK(), updateGraphicsState(), and vcl::PDFObjectContainer::writeBuffer().
void vcl::PDFWriterImpl::drawPolyLine | ( | const tools::Polygon & | rPoly, |
const PDFWriter::ExtLineInfo & | rInfo | ||
) |
Definition at line 8527 of file pdfwriter_impl.cxx.
References a, basegfx::utils::adaptiveSubdivideByAngle(), tools::Rectangle::AdjustBottom(), tools::Rectangle::AdjustLeft(), tools::Rectangle::AdjustRight(), tools::Rectangle::AdjustTop(), basegfx::utils::applyLineDashing(), beginTransparencyGroup(), vcl::PDFWriter::capButt, vcl::PDFWriter::capRound, vcl::PDFWriter::capSquare, COL_TRANSPARENT(), basegfx::B2DPolygon::count(), basegfx::B2DPolyPolygon::count(), drawPolyLine(), endTransparencyGroup(), FRound(), basegfx::B2DPolygon::getB2DPoint(), tools::Polygon::getB2DPolygon(), basegfx::B2DPolyPolygon::getB2DPolygon(), tools::Polygon::GetBoundRect(), basegfx::Tuple2D< typename TYPE >::getX(), basegfx::Tuple2D< typename TYPE >::getY(), basegfx::B2DPolygon::isClosed(), vcl::PDFWriter::joinBevel, vcl::PDFWriter::joinMiter, vcl::PDFWriter::joinRound, vcl::PDFWriter::ExtLineInfo::m_aDashArray, m_aGraphicsStack, m_aPages, 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, MARK(), updateGraphicsState(), and vcl::PDFObjectContainer::writeBuffer().
void vcl::PDFWriterImpl::drawPolyPolygon | ( | const tools::PolyPolygon & | rPolyPoly | ) |
Definition at line 7918 of file pdfwriter_impl.cxx.
References COL_TRANSPARENT(), tools::PolyPolygon::Count(), m_aGraphicsStack, m_aPages, MARK(), updateGraphicsState(), and vcl::PDFObjectContainer::writeBuffer().
Referenced by drawEmphasisMark(), and drawTransparent().
void vcl::PDFWriterImpl::drawRectangle | ( | const tools::Rectangle & | rRect | ) |
Definition at line 8149 of file pdfwriter_impl.cxx.
References COL_TRANSPARENT(), m_aGraphicsStack, m_aPages, MARK(), updateGraphicsState(), and vcl::PDFObjectContainer::writeBuffer().
Referenced by createDefaultCheckBoxAppearance(), createDefaultListBoxAppearance(), createDefaultPushButtonAppearance(), createDefaultRadioButtonAppearance(), drawEmphasisMark(), drawFieldBorder(), drawLayout(), drawRectangle(), and drawWallpaper().
void vcl::PDFWriterImpl::drawRectangle | ( | const tools::Rectangle & | rRect, |
sal_uInt32 | nHorzRound, | ||
sal_uInt32 | nVertRound | ||
) |
Definition at line 8173 of file pdfwriter_impl.cxx.
References tools::Rectangle::Bottom(), COL_TRANSPARENT(), drawRectangle(), tools::Rectangle::GetHeight(), tools::Rectangle::GetWidth(), tools::Rectangle::Left(), m_aGraphicsStack, m_aPages, MARK(), tools::Rectangle::Right(), tools::Rectangle::Top(), updateGraphicsState(), vcl::PDFObjectContainer::writeBuffer(), X, Y, and Point::Y().
|
private |
Definition at line 6411 of file pdfwriter_impl.cxx.
References vcl::ALL, COL_BLACK(), COL_LIGHTGRAY(), COL_WHITE(), drawLayout(), SalLayout::DrawOffset(), Engraved, vcl::Font::GetColor(), OutputDevice::GetDPIX(), vcl::Font::GetRelief(), m_aCurrentPDFState, vcl::pdf::GraphicsState::m_aFont, vcl::pdf::GraphicsState::m_aOverlineColor, vcl::pdf::GraphicsState::m_aTextLineColor, NONE, pop(), push(), vcl::Font::SetColor(), setFont(), setOverlineColor(), vcl::Font::SetRelief(), vcl::Font::SetShadow(), setTextLineColor(), and updateGraphicsState().
Referenced by drawLayout().
|
private |
Definition at line 6459 of file pdfwriter_impl.cxx.
References COL_BLACK(), COL_LIGHTGRAY(), SalLayout::DrawBase(), drawLayout(), vcl::Font::GetColor(), OutputDevice::GetFontInstance(), Color::GetLuminance(), vcl::Font::IsOutline(), m_aCurrentPDFState, vcl::pdf::GraphicsState::m_aFont, vcl::pdf::GraphicsState::m_aOverlineColor, vcl::pdf::GraphicsState::m_aTextLineColor, LogicalFontInstance::mnLineHeight, vcl::Font::SetColor(), setFont(), vcl::Font::SetOutline(), setOverlineColor(), vcl::Font::SetShadow(), setTextLineColor(), and updateGraphicsState().
Referenced by drawLayout().
void vcl::PDFWriterImpl::drawStraightTextLine | ( | OStringBuffer & | aLine, |
tools::Long | nWidth, | ||
FontLineStyle | eTextLine, | ||
Color | aColor, | ||
bool | bIsAbove | ||
) |
Definition at line 7467 of file pdfwriter_impl.cxx.
References appendNonStrokingColor(), appendStrokingColor(), COL_WHITE(), OutputDevice::GetFontInstance(), HCONV, OutputDevice::ImplInitAboveTextLineSize(), OutputDevice::ImplInitTextLineSize(), vcl::Font::IsOutline(), LINESTYLE_BOLD, LINESTYLE_BOLDDASH, LINESTYLE_BOLDDASHDOT, LINESTYLE_BOLDDASHDOTDOT, LINESTYLE_BOLDDOTTED, LINESTYLE_BOLDLONGDASH, LINESTYLE_BOLDWAVE, LINESTYLE_DASH, LINESTYLE_DASHDOT, LINESTYLE_DASHDOTDOT, LINESTYLE_DOTTED, LINESTYLE_DOUBLE, LINESTYLE_LONGDASH, LINESTYLE_SINGLE, m_aCurrentPDFState, vcl::pdf::GraphicsState::m_aFont, m_aPages, and LogicalFontInstance::mxFontMetric.
Referenced by drawTextLine().
void vcl::PDFWriterImpl::drawStretchText | ( | const Point & | rPos, |
sal_Int32 | nWidth, | ||
const OUString & | rText, | ||
sal_Int32 | nIndex, | ||
sal_Int32 | nLen | ||
) |
Definition at line 7193 of file pdfwriter_impl.cxx.
References drawLayout(), OutputDevice::ImplLayout(), MARK(), nIndex, NONE, SalLayoutGlyphsCache::self(), and updateGraphicsState().
void vcl::PDFWriterImpl::drawStrikeoutChar | ( | const Point & | rPos, |
tools::Long | nWidth, | ||
FontStrikeout | eStrikeout | ||
) |
Definition at line 7748 of file pdfwriter_impl.cxx.
References vcl::text::BiDiStrong, vcl::CLIPREGION, drawText(), FontMetric::GetAscent(), tools::Polygon::GetBoundRect(), FontMetric::GetDescent(), OutputDevice::GetFontInstance(), OutputDevice::GetFontMetric(), OutputDevice::GetLayoutMode(), OutputDevice::GetTextWidth(), intersectClipRegion(), vcl::Font::IsShadow(), tools::Rectangle::Left(), m_aCurrentPDFState, vcl::pdf::GraphicsState::m_aFont, LogicalFontInstance::mnOrientation, pop(), push(), tools::Polygon::Rotate(), tools::Rectangle::SetBottom(), setFont(), OutputDevice::SetLayoutMode(), tools::Rectangle::SetLeft(), tools::Rectangle::SetRight(), vcl::Font::SetShadow(), tools::Rectangle::SetTop(), STRIKEOUT_SLASH, updateGraphicsState(), Point::X(), and Point::Y().
Referenced by drawTextLine().
void vcl::PDFWriterImpl::drawStrikeoutLine | ( | OStringBuffer & | aLine, |
tools::Long | nWidth, | ||
FontStrikeout | eStrikeout, | ||
Color | aColor | ||
) |
Definition at line 7675 of file pdfwriter_impl.cxx.
References appendStrokingColor(), OutputDevice::GetFontInstance(), HCONV, OutputDevice::ImplInitTextLineSize(), m_aPages, LogicalFontInstance::mxFontMetric, STRIKEOUT_BOLD, STRIKEOUT_DOUBLE, STRIKEOUT_SINGLE, and STRIKEOUT_X.
Referenced by drawTextLine().
void vcl::PDFWriterImpl::drawText | ( | const Point & | rPos, |
const OUString & | rText, | ||
sal_Int32 | nIndex, | ||
sal_Int32 | nLen, | ||
bool | bTextLines = true |
||
) |
Definition at line 7157 of file pdfwriter_impl.cxx.
References drawLayout(), OutputDevice::ImplLayout(), MARK(), nIndex, NONE, SalLayoutGlyphsCache::self(), and updateGraphicsState().
Referenced by createDefaultCheckBoxAppearance(), createDefaultPushButtonAppearance(), createDefaultRadioButtonAppearance(), drawStrikeoutChar(), and drawText().
void vcl::PDFWriterImpl::drawText | ( | const tools::Rectangle & | rRect, |
const OUString & | rOrigStr, | ||
DrawTextFlags | nStyle | ||
) |
Definition at line 7211 of file pdfwriter_impl.cxx.
References Point::AdjustX(), Point::AdjustY(), aStr, Bottom, Center, convertLineEnd(), ImplMultiTextLineInfo::Count(), drawText(), EndEllipsis, OutputDevice::GetEllipsisString(), tools::Rectangle::GetHeight(), ImplTextLineInfo::GetIndex(), ImplTextLineInfo::GetLen(), ImplMultiTextLineInfo::GetLine(), OutputDevice::GetTextHeight(), OutputDevice::GetTextWidth(), tools::Rectangle::GetWidth(), ImplTextLineInfo::GetWidth(), i, OutputDevice::ImplGetTextLines(), tools::Rectangle::Left(), Left, LINEEND_LF, m_aPages, MARK(), Mnemonic, MultiLine, NewsEllipsis, nIndex, PathEllipsis, removeMnemonicFromString(), Right, Point::setX(), Top, tools::Rectangle::TopLeft(), updateGraphicsState(), VCenter, and vcl::PDFObjectContainer::writeBuffer().
void vcl::PDFWriterImpl::drawTextArray | ( | const Point & | rPos, |
const OUString & | rText, | ||
KernArraySpan | pDXArray, | ||
o3tl::span< const sal_Bool > | pKashidaArray, | ||
sal_Int32 | nIndex, | ||
sal_Int32 | nLen | ||
) |
Definition at line 7175 of file pdfwriter_impl.cxx.
References drawLayout(), OutputDevice::ImplLayout(), MARK(), nIndex, NONE, SalLayoutGlyphsCache::self(), and updateGraphicsState().
void vcl::PDFWriterImpl::drawTextLine | ( | const Point & | rPos, |
tools::Long | nWidth, | ||
FontStrikeout | eStrikeout, | ||
FontLineStyle | eUnderline, | ||
FontLineStyle | eOverline, | ||
bool | bUnderlineAbove | ||
) |
Definition at line 7806 of file pdfwriter_impl.cxx.
References Point::AdjustY(), ALIGN_BOTTOM, ALIGN_TOP, drawStraightTextLine(), drawStrikeoutChar(), drawStrikeoutLine(), drawWaveTextLine(), vcl::Font::GetAlignment(), vcl::Font::GetColor(), OutputDevice::GetFontInstance(), vcl::Font::GetOrientation(), HCONV, Color::IsTransparent(), LINESTYLE_BOLDWAVE, LINESTYLE_DONTKNOW, LINESTYLE_DOUBLEWAVE, LINESTYLE_NONE, LINESTYLE_SMALLWAVE, LINESTYLE_WAVE, m_aCurrentPDFState, vcl::pdf::GraphicsState::m_aFont, vcl::pdf::GraphicsState::m_aOverlineColor, m_aPages, vcl::pdf::GraphicsState::m_aTextLineColor, MARK(), LogicalFontInstance::mxFontMetric, vcl::pdf::Matrix3::rotate(), STRIKEOUT_DONTKNOW, STRIKEOUT_NONE, STRIKEOUT_SLASH, STRIKEOUT_X, toRadians(), vcl::pdf::Matrix3::translate(), updateGraphicsState(), vcl::PDFObjectContainer::writeBuffer(), Point::X(), and Point::Y().
Referenced by drawLayout().
void vcl::PDFWriterImpl::drawTransparent | ( | const tools::PolyPolygon & | rPolyPoly, |
sal_uInt32 | nTransparentPercent | ||
) |
Definition at line 7943 of file pdfwriter_impl.cxx.
References COL_TRANSPARENT(), createObject(), drawPolyPolygon(), tools::PolyPolygon::GetBoundRect(), m_aContext, m_aCurrentPDFState, m_aErrors, vcl::pdf::GraphicsState::m_aFillColor, m_aGraphicsStack, vcl::pdf::GraphicsState::m_aLineColor, m_aPages, m_aTransparentObjects, m_bIsPDF_A1, MARK(), vcl::PDFWriter::PDF_1_4, pushResource(), SAL_WARN_IF, updateGraphicsState(), vcl::PDFWriter::PDFWriterContext::Version, vcl::PDFWriter::Warning_Transparency_Omitted_PDF13, vcl::PDFWriter::Warning_Transparency_Omitted_PDFA, and vcl::PDFObjectContainer::writeBuffer().
|
private |
Definition at line 6490 of file pdfwriter_impl.cxx.
References ARTIFICIAL_ITALIC_SKEW, i, m_aPages, vcl::pdf::Matrix3::rotate(), vcl::pdf::Matrix3::scale(), vcl::pdf::Matrix3::skew(), OutputDevice::SubPixelToLogic(), vcl::pdf::Matrix3::transform(), vcl::pdf::Matrix3::translate(), Point::X(), and Point::Y().
Referenced by drawLayout().
void vcl::PDFWriterImpl::drawWallpaper | ( | const tools::Rectangle & | rRect, |
const Wallpaper & | rWall | ||
) |
Definition at line 9953 of file pdfwriter_impl.cxx.
References Point::AdjustX(), Point::AdjustY(), Bottom, BottomLeft, BottomRight, Center, COL_TRANSPARENT(), createBitmapEmit(), createObject(), drawBitmap(), drawGradient(), drawRectangle(), Wallpaper::GetBitmap(), Wallpaper::GetColor(), Wallpaper::GetGradient(), tools::Rectangle::GetHeight(), getMapMode(), BitmapEx::GetPrefMapMode(), BitmapEx::GetPrefSize(), Wallpaper::GetRect(), tools::Rectangle::GetSize(), Wallpaper::GetStyle(), tools::Rectangle::GetWidth(), Size::Height(), BitmapEx::IsAlpha(), Wallpaper::IsBitmap(), Wallpaper::IsGradient(), Wallpaper::IsRect(), tools::Rectangle::Left(), Left, m_aGraphicsStack, m_aPages, m_aTilings, vcl::pdf::BitmapEmit::m_nObject, MARK(), vcl::pdf::Pattern, pushResource(), Right, Scale, setFillColor(), setLineColor(), Tile, tools::Rectangle::Top(), Top, tools::Rectangle::TopLeft(), TopLeft, TopRight, updateGraphicsState(), Size::Width(), and vcl::PDFObjectContainer::writeBuffer().
void vcl::PDFWriterImpl::drawWaveTextLine | ( | OStringBuffer & | aLine, |
tools::Long | nWidth, | ||
FontLineStyle | eTextLine, | ||
Color | aColor, | ||
bool | bIsAbove | ||
) |
Definition at line 7397 of file pdfwriter_impl.cxx.
References appendStrokingColor(), OutputDevice::GetDPIX(), OutputDevice::GetFontInstance(), HCONV, OutputDevice::ImplInitAboveTextLineSize(), OutputDevice::ImplInitTextLineSize(), LINESTYLE_BOLDWAVE, LINESTYLE_DOUBLEWAVE, LINESTYLE_SMALLWAVE, m_aPages, LogicalFontInstance::mxFontMetric, and nLineWidth.
Referenced by drawTextLine().
bool vcl::PDFWriterImpl::emit | ( | ) |
Definition at line 6205 of file pdfwriter_impl.cxx.
References CHECK_RETURN, createControl(), emitCatalog(), emitSignature(), emitTrailer(), endPage(), vcl::PDFWriter::Error_Signature_Failed, finalizeSignature(), m_aContext, m_aErrors, m_aFile, m_bOpen, m_nSignatureObject, vcl::PDFWriter::AnyWidget::Name, vcl::PDFWriter::PDFWriterContext::SignPDF, and sortWidgets().
|
private |
Definition at line 5049 of file pdfwriter_impl.cxx.
References CHECK_RETURN, emitLinkAnnotations(), emitNoteAnnotations(), emitScreenAnnotations(), emitWidgetAnnotations(), and m_aPages.
Referenced by emitCatalog().
|
private |
Definition at line 4545 of file pdfwriter_impl.cxx.
References CHECK_RETURN, checkAndEnableStreamEncryption(), vcl::PDFWriter::CheckBox, compressStream(), createObject(), disableStreamEncryption(), emitComment(), g_bDebugDisableCompression, SvMemoryStream::GetData(), tools::Rectangle::GetHeight(), getResourceDictObj(), tools::Rectangle::GetWidth(), vcl::pdf::PDFWidget::m_aAppearances, vcl::pdf::PDFAnnotation::m_aRect, vcl::pdf::PDFWidget::m_aValue, m_bIsPDF_A1, m_bIsPDF_A2, m_bIsPDF_A3, vcl::pdf::PDFWidget::m_eType, OUStringToOString(), vcl::PDFWriter::PushButton, vcl::PDFWriter::RadioButton, SvStream::Seek(), STREAM_SEEK_TO_BEGIN, SvMemoryStream::TellEnd(), updateObject(), vcl::PDFObjectContainer::writeBuffer(), and writeBufferBytes().
Referenced by emitWidgetAnnotations().
|
private |
Definition at line 2386 of file pdfwriter_impl.cxx.
References CHECK_RETURN, createObject(), vcl::pdf::BuildinFontFace::GetBuildinFont(), vcl::pdf::BuildinFont::m_eCharSet, vcl::pdf::BuildinFont::m_pPSName, updateObject(), and vcl::PDFObjectContainer::writeBuffer().
Referenced by emitFonts().
|
private |
Definition at line 5160 of file pdfwriter_impl.cxx.
References vcl::PDFWriter::ActionDefault, vcl::PDFWriter::ActionZoom, addInternalStructureContainer(), appendLiteralStringEncrypt(), vcl::PDFWriter::AppendUnicodeTextString(), 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, vcl::pdf::g_nInheritedPageHeight, vcl::pdf::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_aDocumentAttachedFiles, m_aPages, m_aStructure, m_aWidgets, m_bIsPDF_A1, m_bIsPDF_A2, m_bIsPDF_A3, m_nCatalogObject, m_nSignatureObject, o3tl::make_unsigned(), vcl::PDFWriter::ModeDefault, vcl::PDFWriter::PDFWriterContext::OpenInFullScreenMode, vcl::PDFWriter::PDFWriterContext::PageLayout, vcl::PDFWriter::PDF_1_7, 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, vcl::PDFObjectContainer::writeBuffer(), and vcl::PDFWriter::PDFWriterContext::Zoom.
Referenced by emit().
void vcl::PDFWriterImpl::emitComment | ( | const char * | pComment | ) |
Definition at line 1575 of file pdfwriter_impl.cxx.
References vcl::PDFObjectContainer::writeBuffer().
Referenced by beginStructureElement(), createToUnicodeCMap(), emitAppearances(), emitFonts(), emitStructureAttributes(), emitSystemFont(), emitTilings(), emitType3Font(), endStructureElement(), MARK(), setCurrentStructureElement(), writeBitmapObject(), writeGradientFunction(), writeJPG(), writeReferenceXObject(), and writeTransparentObject().
sal_Int32 vcl::PDFWriterImpl::emitDocumentMetadata | ( | ) |
Definition at line 5910 of file pdfwriter_impl.cxx.
References vcl::PDFWriter::PDFDocInfo::Author, createObject(), vcl::PDFWriter::PDFDocInfo::Creator, vcl::PDFWriter::PDFWriterContext::DocumentInfo, vcl::pdf::XmpMetadata::getData(), vcl::pdf::XmpMetadata::getSize(), vcl::PDFWriter::PDFDocInfo::Keywords, vcl::lcl_assignMeta(), m_aContext, m_aCreationMetaDateString, m_bIsPDF_A1, m_bIsPDF_A2, m_bIsPDF_A3, m_bIsPDF_UA, vcl::pdf::XmpMetadata::m_sCreateDate, vcl::pdf::XmpMetadata::m_sCreatorTool, vcl::pdf::XmpMetadata::mbPDF_UA, vcl::pdf::XmpMetadata::mnPDF_A, vcl::pdf::XmpMetadata::msAuthor, vcl::pdf::XmpMetadata::msKeywords, vcl::pdf::XmpMetadata::msProducer, vcl::pdf::XmpMetadata::msSubject, vcl::pdf::XmpMetadata::msTitle, vcl::PDFWriter::PDFDocInfo::Producer, vcl::PDFWriter::PDFDocInfo::Subject, vcl::PDFWriter::PDFDocInfo::Title, updateObject(), vcl::PDFObjectContainer::writeBuffer(), and writeBufferBytes().
Referenced by emitCatalog().
|
private |
Writes embedded files.
Definition at line 5084 of file pdfwriter_impl.cxx.
References CHECK_RETURN, checkAndEnableStreamEncryption(), createObject(), disableStreamEncryption(), getCurrentFilePosition(), m_aEmbeddedFiles, PDFStreamIf, updateObject(), vcl::PDFObjectContainer::writeBuffer(), writeBufferBytes(), and xStream.
Referenced by emitCatalog().
|
private |
Definition at line 2987 of file pdfwriter_impl.cxx.
References ANY_TYPE1, vcl::appendSubsetName(), tools::Rectangle::Bottom(), CHECK_RETURN, createObject(), FAMILY_ROMAN, FAMILY_SCRIPT, FontAttributes::GetFamilyType(), FontAttributes::GetItalic(), FontAttributes::GetPitch(), ITALIC_NORMAL, ITALIC_OBLIQUE, tools::Rectangle::Left(), FontSubsetInfo::m_aFontBBox, FontSubsetInfo::m_aPSName, FontSubsetInfo::m_nAscent, FontSubsetInfo::m_nCapHeight, FontSubsetInfo::m_nDescent, FontSubsetInfo::m_nFontType, PITCH_FIXED, tools::Rectangle::Right(), SFNT_TTF, tools::Rectangle::Top(), TYPE1_PFA, TYPE1_PFB, updateObject(), and vcl::PDFObjectContainer::writeBuffer().
Referenced by emitFonts(), emitSystemFont(), and emitType3Font().
|
private |
Definition at line 3078 of file pdfwriter_impl.cxx.
References aBuffer, aData, ANY_TYPE1, appendBuildinFontsToDict(), vcl::appendSubsetName(), beginCompression(), CFF_FONT, checkAndEnableStreamEncryption(), createObject(), createToUnicodeCMap(), disableStreamEncryption(), emitBuildinFont(), emitComment(), emitFontDescriptor(), emitSystemFont(), emitType3Font(), endCompression(), g_bDebugDisableCompression, getFontDictObject(), vcl::getPfbSegmentLengths(), i, ITALIC_NORMAL, ITALIC_OBLIQUE, m_aBuildinFontToObjectMap, m_aFile, FontSubsetInfo::m_aPSName, m_aSubsets, m_aSystemFonts, m_aType3Fonts, FontSubsetInfo::m_nFontType, OUStringToOString(), SAL_INFO, SFNT_TTF, TYPE1_PFB, u, updateObject(), vcl::PDFObjectContainer::writeBuffer(), and writeBufferBytes().
Referenced by emitResources().
|
private |
Definition at line 2281 of file pdfwriter_impl.cxx.
References m_aGradients, and writeGradientFunction().
Referenced by emitResources().
|
private |
Definition at line 5688 of file pdfwriter_impl.cxx.
References appendLiteralStringEncrypt(), appendUnicodeTextStringEncrypt(), vcl::PDFWriter::PDFDocInfo::Author, createObject(), vcl::PDFWriter::PDFDocInfo::Creator, vcl::PDFWriter::PDFWriterContext::DocumentInfo, vcl::PDFWriter::PDFDocInfo::Keywords, m_aContext, m_aCreationDateString, vcl::PDFWriter::PDFDocInfo::Producer, vcl::PDFWriter::PDFDocInfo::Subject, vcl::PDFWriter::PDFDocInfo::Title, updateObject(), and vcl::PDFObjectContainer::writeBuffer().
Referenced by emitTrailer().
|
private |
Definition at line 3661 of file pdfwriter_impl.cxx.
References appendDest(), appendLiteralStringEncrypt(), appendUnicodeTextStringEncrypt(), aTargetURL, aURL, vcl::PDFWriter::PDFWriterContext::BaseURL, tools::Rectangle::Bottom(), CHECK_RETURN, vcl::PDFWriter::PDFWriterContext::ConvertOOoTargetToPDFTarget, vcl::PDFWriter::PDFWriterContext::DefaultLinkAction, vcl::PDFWriter::PDFWriterContext::ForcePDFAction, INetURLObject::GetProtocol(), INetURLObject::GetRelURL(), i, vcl::PDFWriter::LaunchAction, tools::Rectangle::Left(), m_aContext, m_aLinks, vcl::pdf::PDFLink::m_AltText, vcl::pdf::PDFAnnotation::m_aRect, vcl::pdf::PDFLink::m_aURL, m_bIsPDF_A1, m_bIsPDF_A2, m_bIsPDF_A3, vcl::pdf::PDFLink::m_nDest, vcl::pdf::PDFAnnotation::m_nObject, vcl::pdf::PDFLink::m_nStructParent, MARK(), INetURLObject::NONE, vcl::PDFWriter::PDFWriterContext::RelFsys, URIHelper::resolveIdnaHost(), tools::Rectangle::Right(), tools::Rectangle::Top(), u, updateObject(), vcl::PDFWriter::URIAction, vcl::PDFWriter::URIActionDestination, INetURLObject::WasEncoded, INetURLObject::WithCharset, and vcl::PDFObjectContainer::writeBuffer().
Referenced by emitAnnotations().
|
private |
Definition at line 5748 of file pdfwriter_impl.cxx.
References aName, tools::Rectangle::Bottom(), createObject(), vcl::PDFWriter::FitRectangle, INetURLObject::GetMark(), tools::Rectangle::Left(), vcl::pdf::PDFNamedDest::m_aDestName, m_aNamedDests, m_aPages, vcl::pdf::PDFNamedDest::m_aRect, vcl::pdf::PDFNamedDest::m_eType, vcl::pdf::PDFNamedDest::m_nPage, vcl::pdf::PDFPage::m_nPageObject, nCount, INetURLObject::NONE, tools::Rectangle::Right(), INetURLObject::SetMark(), tools::Rectangle::Top(), u, updateObject(), vcl::PDFObjectContainer::writeBuffer(), and vcl::PDFWriter::XYZ.
Referenced by emitCatalog().
|
private |
Definition at line 4014 of file pdfwriter_impl.cxx.
References emitPopupAnnotationLine(), emitTextAnnotationLine(), i, m_aNotes, vcl::pdf::PDFNoteEntry::m_aPopUpAnnotation, vcl::pdf::PDFAnnotation::m_nObject, updateObject(), and vcl::PDFObjectContainer::writeBuffer().
Referenced by emitAnnotations().
|
private |
Definition at line 3366 of file pdfwriter_impl.cxx.
References appendDest(), appendUnicodeTextStringEncrypt(), CHECK_RETURN, createObject(), i, vcl::pdf::PDFOutlineEntry::m_aChildren, m_aDests, m_aOutline, vcl::pdf::PDFOutlineEntry::m_aTitle, vcl::pdf::PDFOutlineEntry::m_nDestID, vcl::pdf::PDFOutlineEntry::m_nNextObject, vcl::pdf::PDFOutlineEntry::m_nObject, vcl::pdf::PDFOutlineEntry::m_nParentObject, vcl::pdf::PDFOutlineEntry::m_nPrevObject, o3tl::make_unsigned(), n, updateObject(), updateOutlineItemCount(), and vcl::PDFObjectContainer::writeBuffer().
Referenced by emitCatalog().
sal_Int32 vcl::PDFWriterImpl::emitOutputIntent | ( | ) |
Definition at line 5823 of file pdfwriter_impl.cxx.
References aBuffer, appendLiteralStringEncrypt(), beginCompression(), checkAndEnableStreamEncryption(), createObject(), disableStreamEncryption(), endCompression(), g_bDebugDisableCompression, m_aFile, m_bIsPDF_A1, m_bIsPDF_A2, m_bIsPDF_A3, updateObject(), vcl::PDFObjectContainer::writeBuffer(), and writeBufferBytes().
Referenced by emitCatalog().
|
staticprivate |
Definition at line 4004 of file pdfwriter_impl.cxx.
References vcl::pdf::PDFAnnotation::m_nObject, and vcl::pdf::PDFPopupAnnotation::m_nParentObject.
Referenced by emitNoteAnnotations().
|
private |
Definition at line 3300 of file pdfwriter_impl.cxx.
References vcl::pdf::ResourceDict::append(), CHECK_RETURN, emitFonts(), emitGradients(), emitTilings(), getFontDictObject(), getResourceDictObj(), m_aGlobalResourceDict, m_aGradients, m_aTilings, updateObject(), and vcl::PDFObjectContainer::writeBuffer().
Referenced by emitCatalog().
|
private |
Definition at line 3535 of file pdfwriter_impl.cxx.
References appendLiteralStringEncrypt(), appendUnicodeTextStringEncrypt(), tools::Rectangle::Bottom(), CHECK_RETURN, SvMemoryStream::GetData(), SvMemoryStream::GetSize(), i, tools::Rectangle::Left(), m_aContext, vcl::pdf::PDFScreen::m_AltText, m_aPages, vcl::pdf::PDFAnnotation::m_aRect, m_aScreens, vcl::pdf::PDFScreen::m_aTempFileURL, vcl::pdf::PDFScreen::m_aURL, vcl::pdf::PDFScreen::m_MimeType, vcl::pdf::PDFAnnotation::m_nObject, vcl::pdf::PDFAnnotation::m_nPage, vcl::pdf::PDFScreen::m_nStructParent, vcl::pdf::PDFScreen::m_nTempFileObject, vcl::PDFWriter::PDF_1_6, vcl::PDFWriter::PDF_1_7, tools::Rectangle::Right(), tools::Rectangle::Top(), updateObject(), vcl::PDFWriter::PDFWriterContext::Version, vcl::PDFObjectContainer::writeBuffer(), writeBufferBytes(), and SvStream::WriteStream().
Referenced by emitAnnotations().
|
private |
Referenced by emit().
|
private |
Definition at line 1815 of file pdfwriter_impl.cxx.
References appendLiteralStringEncrypt(), CHECK_RETURN, vcl::GenerateID(), m_StructElemObjsWithID, n, updateObject(), and vcl::PDFObjectContainer::writeBuffer().
Referenced by emitStructure().
|
private |
Definition at line 1786 of file pdfwriter_impl.cxx.
References CHECK_RETURN, m_aStructParentTree, n, updateObject(), and vcl::PDFObjectContainer::writeBuffer().
Referenced by emitStructure().
|
private |
Definition at line 2087 of file pdfwriter_impl.cxx.
References AppendAnnotKid(), appendLiteralStringEncrypt(), appendUnicodeTextStringEncrypt(), CHECK_RETURN, createObject(), emitStructIDTree(), emitStructParentTree(), emitStructure(), emitStructureAttributes(), vcl::PDFWriter::Form, vcl::GenerateID(), LanguageTag::getIsoLanguageScriptCountry(), getStructureTag(), i, tools::Rectangle::IsEmpty(), vcl::pdf::PDFStructureElement::m_aActualText, vcl::pdf::PDFStructureElement::m_aAlias, vcl::pdf::PDFStructureElement::m_aAltText, vcl::pdf::PDFStructureElement::m_aAttributes, vcl::pdf::PDFStructureElement::m_aBBox, vcl::pdf::PDFStructureElement::m_aChildren, vcl::pdf::PDFStructureElement::m_aKids, m_aLinkPropertyMap, vcl::pdf::PDFStructureElement::m_aLocale, vcl::pdf::PDFStructureElement::m_AnnotIds, m_aRoleMap, m_aScreens, m_aStructure, m_aWidgets, vcl::pdf::PDFStructureElement::m_nFirstPageObject, vcl::pdf::PDFStructureElement::m_nObject, vcl::pdf::PDFStructureElement::m_nOwnElement, vcl::pdf::PDFStructureElement::m_nParentElement, vcl::pdf::PDFStructureElement::m_oType, m_StructElemObjsWithID, o3tl::make_unsigned(), vcl::PDFWriter::NonStructElement, SAL_INFO, updateObject(), and vcl::PDFObjectContainer::writeBuffer().
Referenced by emitCatalog(), and emitStructure().
|
private |
Definition at line 1982 of file pdfwriter_impl.cxx.
References AppendAnnotKid(), vcl::appendStructureAttributeLine(), attribute, tools::Rectangle::Bottom(), vcl::PDFWriter::ColSpan, createObject(), emitComment(), g_bDebugDisableCompression, tools::Rectangle::IsEmpty(), tools::Rectangle::Left(), vcl::PDFWriter::LinkAnnotation, vcl::PDFWriter::ListNumbering, vcl::pdf::PDFStructureElement::m_aAttributes, vcl::pdf::PDFStructureElement::m_aBBox, m_aLinkPropertyMap, m_aLinks, o3tl::make_unsigned(), pName, tools::Rectangle::Right(), vcl::PDFWriter::Role, vcl::PDFWriter::RowSpan, SAL_INFO, vcl::PDFWriter::Scope, tools::Rectangle::Top(), updateObject(), and vcl::PDFObjectContainer::writeBuffer().
Referenced by emitStructure().
|
private |
Definition at line 2416 of file pdfwriter_impl.cxx.
References aBuffer, vcl::font::PhysicalFontFace::CreateFontSubset(), createObject(), emitComment(), emitFontDescriptor(), g_bDebugDisableCompression, FontAttributes::GetFamilyName(), LogicalFontInstance::GetGlyphIndex(), LogicalFontInstance::GetGlyphWidth(), i, FontAttributes::IsMicrosoftSymbolEncoded(), FontSubsetInfo::m_aFontBBox, FontSubsetInfo::m_aPSName, FontSubsetInfo::m_nAscent, FontSubsetInfo::m_nCapHeight, FontSubsetInfo::m_nDescent, vcl::pdf::EmbedFont::m_nNormalFontID, vcl::pdf::EmbedFont::m_pFontInstance, vcl::font::PhysicalFontFace::UnitsPerEm(), updateObject(), vcl::PDFObjectContainer::writeBuffer(), and vcl::XUnits().
Referenced by emitFonts().
|
private |
Definition at line 3912 of file pdfwriter_impl.cxx.
References vcl::PDFNote::annotColor, appendUnicodeTextStringEncrypt(), vcl::PDFNote::Contents, convertMm100ToPoint(), i, vcl::PDFNote::interiorColor, vcl::PDFNote::isFreeText, vcl::pdf::PDFNoteEntry::m_aContents, m_aPages, vcl::pdf::PDFNoteEntry::m_aPopUpAnnotation, vcl::pdf::PDFAnnotation::m_aRect, m_bIsPDF_A1, m_bIsPDF_A2, m_bIsPDF_A3, vcl::pdf::PDFAnnotation::m_nObject, vcl::pdf::PDFAnnotation::m_nPage, vcl::PDFNote::maModificationDate, vcl::PDFNote::maPolygons, and vcl::PDFNote::Title.
Referenced by emitNoteAnnotations().
|
private |
Definition at line 2290 of file pdfwriter_impl.cxx.
References checkAndEnableStreamEncryption(), compressStream(), disableStreamEncryption(), emitComment(), g_bDebugDisableCompression, getFontDictObject(), m_aTilings, SAL_WARN_IF, STREAM_SEEK_TO_BEGIN, updateObject(), vcl::PDFObjectContainer::writeBuffer(), and writeBufferBytes().
Referenced by emitResources().
|
private |
Definition at line 5963 of file pdfwriter_impl.cxx.
References CHECK_RETURN, createObject(), vcl::PDFWriter::PDFEncryptionProperties::DocumentIdentifier, emitInfoDict(), vcl::PDFWriter::PDFEncryptionProperties::Encrypt(), vcl::PDFWriter::PDFWriterContext::Encryption, comphelper::Hash::finalize(), i, m_aContext, m_aDocumentAttachedFiles, m_aFile, m_aObjects, m_DocDigest, m_nAccessPermissions, m_nCatalogObject, vcl::PDFWriter::PDFEncryptionProperties::OValue, SAL_WARN_IF, updateObject(), vcl::PDFWriter::PDFEncryptionProperties::UValue, and vcl::PDFObjectContainer::writeBuffer().
Referenced by emit().
|
private |
Definition at line 2525 of file pdfwriter_impl.cxx.
References aBuffer, aName, vcl::pdf::ResourceDict::append(), appendNonStrokingColor(), tools::Rectangle::Bottom(), createBitmapEmit(), vcl::font::PhysicalFontFace::CreateFontSubset(), createObject(), createToUnicodeCMap(), emitComment(), emitFontDescriptor(), g_bDebugDisableCompression, vcl::font::PhysicalFontFace::GetColorPalettes(), OutputDevice::GetDPIX(), OutputDevice::GetDPIY(), vcl::font::PhysicalFontFace::GetGlyphName(), tools::Rectangle::GetHeight(), tools::Rectangle::GetWidth(), tools::Rectangle::getX(), tools::Rectangle::getY(), i, tools::Rectangle::Left(), m_aContext, m_aErrors, FontSubsetInfo::m_aFontBBox, vcl::pdf::FontEmit::m_aMapping, m_aPages, FontSubsetInfo::m_aPSName, vcl::pdf::FontSubset::m_aSubsets, m_bIsPDF_A1, vcl::pdf::FontEmit::m_nFontID, vcl::PDFWriter::PDF_1_4, pushResource(), vcl::PngImageReader::read(), tools::Rectangle::Right(), tools::Rectangle::Top(), u, vcl::font::PhysicalFontFace::UnitsPerEm(), updateObject(), vcl::PDFWriter::PDFWriterContext::Version, vcl::PDFWriter::Warning_Transparency_Omitted_PDFA, writeBitmapObject(), and vcl::PDFObjectContainer::writeBuffer().
Referenced by emitFonts().
|
private |
Definition at line 4648 of file pdfwriter_impl.cxx.
References a, aBuf, appendBuildinFontsToDict(), appendDest(), appendLiteralStringEncrypt(), appendUnicodeTextStringEncrypt(), tools::Rectangle::Bottom(), Center, CHECK_RETURN, vcl::PDFWriter::CheckBox, vcl::PDFWriter::ComboBox, vcl::PDFWriter::Date, vcl::PDFWriter::Edit, emitAppearances(), ensureUniqueRadioOnValues(), vcl::PDFWriter::FDF, vcl::PDFWriter::Hierarchy, vcl::PDFWriter::HTML, i, tools::Rectangle::Left(), vcl::PDFWriter::ListBox, vcl::pdf::PDFWidget::m_aAppearances, m_aContext, vcl::pdf::PDFWidget::m_aCurrencySymbol, vcl::pdf::PDFWidget::m_aDAString, vcl::pdf::PDFWidget::m_aDateFormat, vcl::pdf::PDFWidget::m_aDescription, m_aDestinationIdTranslation, vcl::pdf::PDFWidget::m_aDRDict, m_aErrors, vcl::pdf::PDFWidget::m_aKids, vcl::pdf::PDFWidget::m_aListEntries, vcl::pdf::PDFWidget::m_aMKDict, vcl::pdf::PDFWidget::m_aMKDictCAString, vcl::pdf::PDFWidget::m_aName, vcl::pdf::PDFWidget::m_aOffValue, vcl::pdf::PDFWidget::m_aOnValue, m_aPages, vcl::pdf::PDFAnnotation::m_aRect, vcl::pdf::PDFWidget::m_aSelectedEntries, vcl::pdf::PDFWidget::m_aTimeFormat, vcl::pdf::PDFWidget::m_aValue, m_aWidgets, m_bIsPDF_A1, m_bIsPDF_A2, m_bIsPDF_A3, vcl::pdf::PDFWidget::m_bPrependCurrencySymbol, vcl::pdf::PDFWidget::m_bSubmit, vcl::pdf::PDFWidget::m_bSubmitGet, vcl::pdf::PDFWidget::m_eType, vcl::pdf::PDFWidget::m_nDecimalAccuracy, vcl::pdf::PDFWidget::m_nDest, vcl::pdf::PDFWidget::m_nFlags, vcl::pdf::PDFWidget::m_nFormat, vcl::pdf::PDFWidget::m_nMaxLen, vcl::pdf::PDFAnnotation::m_nObject, vcl::pdf::PDFAnnotation::m_nPage, vcl::pdf::PDFWidget::m_nParent, vcl::pdf::PDFWidget::m_nRadioGroup, vcl::pdf::PDFWidget::m_nStructParent, vcl::pdf::PDFWidget::m_nTextStyle, o3tl::make_unsigned(), vcl::PDFWriter::Number, OUStringToOString(), vcl::PDFWriter::PDF, vcl::PDFWriter::PushButton, vcl::PDFWriter::RadioButton, tools::Rectangle::Right(), Right, SAL_INFO, vcl::PDFWriter::Signature, vcl::PDFWriter::PDFWriterContext::SubmitFormat, o3tl::temporary(), vcl::PDFWriter::Time, tools::Rectangle::Top(), updateObject(), vcl::PDFWriter::Warning_FormAction_Omitted_PDFA, vcl::PDFObjectContainer::writeBuffer(), and vcl::PDFWriter::XML.
Referenced by emitAnnotations().
|
private |
Definition at line 1147 of file pdfwriter_impl2.cxx.
References comphelper::Hash::calculateHash(), vcl::PDFWriter::PDFEncryptionProperties::Encrypt(), vcl::PDFWriter::PDFWriterContext::Encryption, vcl::PDFWriter::PDFEncryptionProperties::EncryptionKey, i, m_aCipher, m_aContext, m_nKeyLength, and m_nRC4KeyLength.
Referenced by appendLiteralStringEncrypt(), appendUnicodeTextStringEncrypt(), and writeBitmapObject().
|
private |
Definition at line 1613 of file pdfwriter_impl.cxx.
References g_bDebugDisableCompression, m_pCodec, m_pMemStream, and writeBufferBytes().
Referenced by emitFonts(), emitOutputIntent(), writeBitmapObject(), and writeGradientFunction().
|
private |
Definition at line 1700 of file pdfwriter_impl.cxx.
References endStructureElementMCSeq(), m_aBitmaps, m_aCurrentPDFState, m_aGraphicsStack, m_aJPGs, m_aMapMode, m_aOutputStreams, m_aPages, m_aTransparentObjects, vcl::Font::SetFamilyName(), vcl::Font::SetFontSize(), MapMode::SetOrigin(), updateGraphicsState(), writeBitmapObject(), writeJPG(), and writeTransparentObject().
|
private |
Definition at line 8080 of file pdfwriter_impl.cxx.
References COL_TRANSPARENT(), m_aCurrentPDFState, vcl::pdf::GraphicsState::m_aFillColor, vcl::pdf::GraphicsState::m_aLineColor, m_aMapMode, m_aOutputStreams, pop(), and updateGraphicsState().
Referenced by createDefaultCheckBoxAppearance(), createDefaultEditAppearance(), createDefaultListBoxAppearance(), createDefaultRadioButtonAppearance(), and endTransparencyGroup().
void vcl::PDFWriterImpl::endStructureElement | ( | ) |
Definition at line 10880 of file pdfwriter_impl.cxx.
References checkEmitStructure(), emitComment(), endStructureElementMCSeq(), g_bDebugDisableCompression, getStructureTag(), m_aContext, m_aStructure, m_bEmitStructure, m_nCurrentPage, m_nCurrentStructElement, m_StructElementStack, and vcl::PDFWriter::PDFWriterContext::Tagged.
|
private |
Definition at line 10722 of file pdfwriter_impl.cxx.
References m_aStructure, m_bEmitStructure, m_nCurrentStructElement, vcl::PDFWriter::NonStructElement, OnlyStruct, and vcl::PDFObjectContainer::writeBuffer().
Referenced by beginStructureElement(), endPage(), endStructureElement(), and setCurrentStructureElement().
void vcl::PDFWriterImpl::endTransparencyGroup | ( | const tools::Rectangle & | rBoundingBox, |
sal_uInt32 | nTransparentPercent | ||
) |
Definition at line 8108 of file pdfwriter_impl.cxx.
References createObject(), endRedirect(), m_aContext, m_aPages, m_aTransparentObjects, vcl::PDFWriter::PDF_1_4, pushResource(), SAL_WARN_IF, vcl::PDFWriter::PDFWriterContext::Version, and vcl::PDFObjectContainer::writeBuffer().
Referenced by drawPolyLine().
sal_Int32 vcl::PDFWriterImpl::ensureStructureElement | ( | ) |
Definition at line 10757 of file pdfwriter_impl.cxx.
References m_aContext, m_aPages, m_aStructure, m_nCurrentPage, m_nCurrentStructElement, vcl::pdf::PDFStructureElement::m_nFirstPageObject, vcl::pdf::PDFStructureElement::m_nOwnElement, vcl::pdf::PDFStructureElement::m_nParentElement, and vcl::PDFWriter::PDFWriterContext::Tagged.
|
private |
Definition at line 11542 of file pdfwriter_impl.cxx.
References aBuf, group, vcl::pdf::PDFWidget::m_aAppearances, vcl::pdf::PDFWidget::m_aKidsIndex, vcl::pdf::PDFWidget::m_aOffValue, vcl::pdf::PDFWidget::m_aOnValue, m_aRadioGroupWidgets, vcl::pdf::PDFWidget::m_aValue, m_aWidgets, and SAL_INFO.
Referenced by emitWidgetAnnotations().
|
private |
Referenced by emit().
|
private |
Definition at line 11630 of file pdfwriter_impl.cxx.
References createObject(), createWidgetFieldName(), m_aRadioGroupWidgets, m_aWidgets, m_nCurrentPage, vcl::PDFWriter::RadioButton, and vcl::PDFWriter::RadioButtonWidget::RadioGroup.
Referenced by createControl().
|
static |
Definition at line 1846 of file pdfwriter_impl.cxx.
References vcl::PDFWriter::BaselineShift, vcl::PDFWriter::BlockAlign, vcl::PDFWriter::ColSpan, vcl::PDFWriter::EndIndent, vcl::PDFWriter::Height, vcl::PDFWriter::InlineAlign, vcl::PDFWriter::LineHeight, vcl::PDFWriter::LinkAnnotation, vcl::PDFWriter::ListNumbering, vcl::PDFWriter::Placement, vcl::PDFWriter::Role, vcl::PDFWriter::RowSpan, SAL_INFO, vcl::PDFWriter::Scope, vcl::PDFWriter::SpaceAfter, vcl::PDFWriter::SpaceBefore, vcl::PDFWriter::StartIndent, vcl::PDFWriter::Subtype, vcl::PDFWriter::TextAlign, vcl::PDFWriter::TextDecorationType, vcl::PDFWriter::TextIndent, vcl::PDFWriter::Type, vcl::PDFWriter::Width, and vcl::PDFWriter::WritingMode.
Referenced by vcl::appendStructureAttributeLine(), setStructureAttribute(), and setStructureAttributeNumerical().
|
static |
Definition at line 1882 of file pdfwriter_impl.cxx.
References vcl::PDFWriter::After, vcl::PDFWriter::Auto, vcl::PDFWriter::Background, vcl::PDFWriter::Before, vcl::PDFWriter::Block, vcl::PDFWriter::Both, vcl::PDFWriter::Cb, vcl::PDFWriter::Center, vcl::PDFWriter::Circle, vcl::PDFWriter::Column, vcl::PDFWriter::Decimal, vcl::PDFWriter::Disc, vcl::PDFWriter::End, vcl::PDFWriter::Footer, vcl::PDFWriter::Header, vcl::PDFWriter::Inline, vcl::PDFWriter::Justify, vcl::PDFWriter::Layout, vcl::PDFWriter::LineThrough, vcl::PDFWriter::LowerAlpha, vcl::PDFWriter::LowerRoman, vcl::PDFWriter::LrTb, vcl::PDFWriter::Middle, vcl::PDFWriter::NONE, vcl::PDFWriter::Normal, vcl::PDFWriter::Overline, vcl::PDFWriter::Page, vcl::PDFWriter::Pagination, vcl::PDFWriter::Pb, vcl::PDFWriter::Rb, vcl::PDFWriter::RlTb, vcl::PDFWriter::Row, SAL_INFO, vcl::PDFWriter::Square, vcl::PDFWriter::Start, vcl::PDFWriter::TbRl, vcl::PDFWriter::Tv, vcl::PDFWriter::Underline, vcl::PDFWriter::UpperAlpha, vcl::PDFWriter::UpperRoman, and vcl::PDFWriter::Watermark.
Referenced by vcl::appendStructureAttributeLine(), and setStructureAttribute().
|
private |
Definition at line 4083 of file pdfwriter_impl.cxx.
References createObject(), FAMILY_ROMAN, vcl::Font::GetFamilyName(), vcl::Font::GetFamilyType(), vcl::Font::GetItalic(), vcl::Font::GetWeight(), ITALIC_NORMAL, ITALIC_OBLIQUE, m_aBuildinFontToObjectMap, and WEIGHT_MEDIUM.
Referenced by createDefaultEditAppearance(), and createDefaultPushButtonAppearance().
|
inline |
Definition at line 1156 of file pdfwriter_impl.hxx.
References m_aPages, m_nCurrentPage, vcl::pdf::PDFPage::m_nPageHeight, vcl::pdf::PDFPage::m_nPageWidth, and o3tl::make_unsigned().
|
inlineprivate |
Definition at line 835 of file pdfwriter_impl.hxx.
References m_aFile, and m_bOpen.
Referenced by emitEmbeddedFiles().
|
inline |
Definition at line 1152 of file pdfwriter_impl.hxx.
References m_aErrors.
|
inlineprivate |
Definition at line 952 of file pdfwriter_impl.hxx.
References createObject(), and m_nFontDictObject.
Referenced by createDefaultCheckBoxAppearance(), createDefaultEditAppearance(), createDefaultListBoxAppearance(), emitFonts(), emitResources(), and emitTilings().
|
inline |
Definition at line 1175 of file pdfwriter_impl.hxx.
References m_aGraphicsStack.
Referenced by drawWallpaper(), and replaceFont().
|
inlineprivate |
Definition at line 945 of file pdfwriter_impl.hxx.
References createObject(), and m_nResourceDict.
Referenced by emitAppearances(), emitCatalog(), emitResources(), and writeTransparentObject().
const char * vcl::PDFWriterImpl::getStructureTag | ( | PDFWriter::StructElement | eType | ) |
Definition at line 10593 of file pdfwriter_impl.cxx.
References vcl::PDFWriter::Annot, vcl::PDFWriter::Article, vcl::PDFWriter::BibEntry, vcl::PDFWriter::BlockQuote, vcl::PDFWriter::Caption, vcl::PDFWriter::Code, vcl::PDFWriter::Division, vcl::PDFWriter::Document, eType, vcl::PDFWriter::Figure, vcl::PDFWriter::Form, vcl::PDFWriter::Formula, vcl::PDFWriter::H1, vcl::PDFWriter::H2, vcl::PDFWriter::H3, vcl::PDFWriter::H4, vcl::PDFWriter::H5, vcl::PDFWriter::H6, vcl::PDFWriter::Heading, vcl::PDFWriter::Index, vcl::PDFWriter::LIBody, vcl::PDFWriter::LILabel, vcl::PDFWriter::Link, vcl::PDFWriter::List, vcl::PDFWriter::ListItem, m_aContext, vcl::PDFWriter::NonStructElement, vcl::PDFWriter::Note, vcl::PDFWriter::Paragraph, vcl::PDFWriter::Part, vcl::PDFWriter::PDF_1_5, vcl::PDFWriter::Quote, vcl::PDFWriter::Reference, vcl::PDFWriter::Section, vcl::PDFWriter::Span, vcl::PDFWriter::Table, vcl::PDFWriter::TableData, vcl::PDFWriter::TableHeader, vcl::PDFWriter::TableRow, vcl::PDFWriter::TOC, vcl::PDFWriter::TOCI, and vcl::PDFWriter::PDFWriterContext::Version.
Referenced by addRoleMap(), beginStructureElement(), beginStructureElementMCSeq(), emitStructure(), endStructureElement(), setCurrentStructureElement(), setStructureAttribute(), and setStructureAttributeNumerical().
|
private |
Definition at line 6258 of file pdfwriter_impl.cxx.
References LogicalFontInstance::GetFontFace(), OutputDevice::GetFontInstance(), m_aSystemFonts, m_nNextFID, OutputDevice::Pop(), OutputDevice::Push(), and OutputDevice::SetFont().
Referenced by createDefaultListBoxAppearance().
|
overrideprivatevirtual |
Reimplemented from OutputDevice.
Definition at line 2000 of file pdfwriter_impl2.cxx.
References VirtualDevice::AcquireGraphics(), OutputDevice::ImplClearFontData(), OutputDevice::ReleaseFontCache(), and OutputDevice::ReleaseFontCollection().
|
overrideprivatevirtual |
Reimplemented from OutputDevice.
Definition at line 1361 of file pdfwriter_impl.cxx.
References ImplGetSVData(), OutputDevice::ImplNewFont(), OutputDevice::ImplUpdateFontData(), ImplSVData::maGDIData, OutputDevice::mxFontCache, OutputDevice::mxFontCollection, ImplSVGDIData::mxScreenFontCache, and ImplSVGDIData::mxScreenFontList.
|
overrideprivatevirtual |
Reimplemented from OutputDevice.
Definition at line 2010 of file pdfwriter_impl2.cxx.
References VirtualDevice::AcquireGraphics(), OutputDevice::ResetNewFontCache(), and OutputDevice::SetFontCollectionFromSVData().
|
private |
Definition at line 74 of file pdfwriter_impl2.cxx.
References Point::AdjustX(), Point::AdjustY(), BestQuality, vcl::PDFWriter::PDFWriterContext::ColorMode, BitmapEx::Convert(), vcl::PDFWriter::DrawBitmap(), vcl::PDFWriter::DrawBitmapEx(), vcl::PDFWriter::DrawGreyscale, vcl::PDFWriter::DrawJPGBitmap(), o3tl::lru_map< typename Key, typename Value, class KeyHash, class KeyEqual, class ValueSize >::end(), eType, o3tl::lru_map< typename Key, typename Value, class KeyHash, class KeyEqual, class ValueSize >::find(), FRound(), BitmapEx::GetAlphaMask(), BitmapEx::GetBitmap(), Graphic::GetBitmapEx(), BitmapEx::GetChecksum(), SvStream::GetCompressMode(), Graphic::GetGfxLink(), Size::getHeight(), comphelper::getProcessComponentContext(), BitmapEx::GetSizePixel(), GfxLink::GetType(), Graphic::GetType(), Size::getWidth(), Graphic::GetXGraphic(), Size::Height(), Horizontal, o3tl::in, o3tl::lru_map< typename Key, typename Value, class KeyHash, class KeyEqual, class ValueSize >::insert(), BitmapEx::IsAlpha(), BitmapEx::IsEmpty(), OutputDevice::LogicToPixel(), m_aContext, m_aPDFBmpCache, vcl::PDFWriter::PlayMetafileContext::m_bOnlyLosslessCompression, vcl::PDFWriter::PlayMetafileContext::m_nJPEGQuality, vcl::PDFWriter::PlayMetafileContext::m_nMaxImageResolution, m_rOuterFace, comphelper::makePropertyValue(), BitmapEx::Mirror(), N8BitGreys, NativeJpg, NativePng, NONE, OutputDevice::PixelToLogic(), BitmapEx::Scale(), SvStream::SetCompressMode(), BitmapEx::SetEmpty(), Size::setHeight(), SvStream::SetVersion(), Size::setWidth(), SOFFICE_FILEFORMAT_40, STREAM_SEEK_TO_END, SvMemoryStream::TellEnd(), o3tl::twip, Vertical, Size::Width(), WriteDIBBitmapEx(), and xStream.
Referenced by playMetafile().
|
private |
Definition at line 60 of file pdfwriter_impl2.cxx.
References Gradient::AddGradientActions(), tools::PolyPolygon::getB2DPolyPolygon(), tools::PolyPolygon::GetBoundRect(), vcl::PDFWriter::IntersectClipRegion(), m_rOuterFace, playMetafile(), vcl::PDFWriter::Pop(), and vcl::PDFWriter::Push().
Referenced by playMetafile().
|
static |
Definition at line 1170 of file pdfwriter_impl2.cxx.
References computeODictionaryValue(), ENCRYPTED_PWD_SIZE, padPassword(), and SECUR_128BIT_KEY.
Referenced by vcl::PDFWriter::InitEncryption().
void vcl::PDFWriterImpl::initStructureElement | ( | sal_Int32 | id, |
PDFWriter::StructElement | eType, | ||
std::u16string_view | rAlias | ||
) |
Definition at line 10774 of file pdfwriter_impl.cxx.
References addRoleMap(), createObject(), vcl::PDFWriter::Document, eType, vcl::pdf::PDFStructureElement::m_aAlias, m_aContext, m_aPages, m_aStructure, m_bEmitStructure, m_nCurrentPage, m_nCurrentStructElement, vcl::pdf::PDFStructureElement::m_nFirstPageObject, vcl::pdf::PDFStructureElement::m_nObject, vcl::pdf::PDFStructureElement::m_nParentElement, vcl::pdf::PDFStructureElement::m_oType, m_StructElemObjsWithID, vcl::PDFWriter::NonStructElement, vcl::PDFWriter::Note, SAL_WARN, and vcl::PDFWriter::PDFWriterContext::Tagged.
|
inline |
Definition at line 1153 of file pdfwriter_impl.hxx.
References m_aErrors.
void vcl::PDFWriterImpl::intersectClipRegion | ( | const basegfx::B2DPolyPolygon & | rRegion | ) |
Definition at line 10354 of file pdfwriter_impl.cxx.
References OutputDevice::GetInverseViewTransformation(), OutputDevice::GetViewTransformation(), m_aGraphicsStack, m_aMapMode, basegfx::utils::prepareForPolygonOperation(), basegfx::utils::solvePolygonOperationAnd(), and basegfx::B2DPolyPolygon::transform().
void vcl::PDFWriterImpl::intersectClipRegion | ( | const tools::Rectangle & | rRect | ) |
Definition at line 10347 of file pdfwriter_impl.cxx.
References vcl::unotools::b2DRectangleFromRectangle(), basegfx::utils::createPolygonFromRect(), and intersectClipRegion().
Referenced by drawStrikeoutChar(), and intersectClipRegion().
void vcl::PDFWriterImpl::MARK | ( | const char * | pString | ) |
Definition at line 11865 of file pdfwriter_impl.cxx.
References beginStructureElementMCSeq(), emitComment(), and g_bDebugDisableCompression.
Referenced by drawArc(), drawBitmap(), drawEllipse(), drawGradient(), drawHatch(), drawJPGBitmap(), drawLine(), drawPixel(), drawPolygon(), drawPolyLine(), drawPolyPolygon(), drawRectangle(), drawStretchText(), drawText(), drawTextArray(), drawTextLine(), drawTransparent(), drawWallpaper(), and emitLinkAnnotations().
void vcl::PDFWriterImpl::moveClipRegion | ( | sal_Int32 | nX, |
sal_Int32 | nY | ||
) |
void vcl::PDFWriterImpl::newPage | ( | double | nPageWidth, |
double | nPageHeight, | ||
PDFWriter::Orientation | eOrientation | ||
) |
Definition at line 1677 of file pdfwriter_impl.cxx.
References aBuf, endPage(), OutputDevice::GetDPIX(), m_aMapMode, m_aPages, m_nCurrentPage, vcl::pdf::pointToPixel(), and vcl::PDFObjectContainer::writeBuffer().
|
staticprivate |
Definition at line 1251 of file pdfwriter_impl2.cxx.
References ENCRYPTED_PWD_SIZE, i, OUStringToOString(), s_nPadString, and y.
Referenced by initEncryption().
void PDFWriterImpl::playMetafile | ( | const GDIMetaFile & | i_rMtf, |
vcl::PDFExtOutDevData * | i_pOutDevData, | ||
const vcl::PDFWriter::PlayMetafileContext & | i_rContext, | ||
VirtualDevice * | pDummyDev = nullptr |
||
) |
Definition at line 269 of file pdfwriter_impl2.cxx.
References a, ARC, vcl::PDFWriter::BeginTransparencyGroup(), AlphaMask::BlendWith(), BMP, BMPEX, BMPEXSCALE, BMPEXSCALEPART, BMPSCALE, BMPSCALEPART, SvtGraphicStroke::capButt, vcl::PDFWriter::capButt, SvtGraphicStroke::capRound, vcl::PDFWriter::capRound, SvtGraphicStroke::capSquare, vcl::PDFWriter::capSquare, CHORD, CLIPREGION, COMMENT, tools::PolyPolygon::Count(), BitmapEx::Crop(), Default, VclPtr< reference_type >::disposeAndClear(), ScopedVclPtr< reference_type >::disposeAndReset(), vcl::PDFWriter::DrawArc(), vcl::PDFWriter::DrawChord(), vcl::PDFWriter::DrawEllipse(), vcl::PDFWriter::DrawGradient(), vcl::PDFWriter::DrawHatch(), vcl::PDFWriter::DrawLine(), vcl::PDFWriter::DrawPie(), vcl::PDFWriter::DrawPixel(), vcl::PDFWriter::DrawPolygon(), vcl::PDFWriter::DrawPolyLine(), vcl::PDFWriter::DrawPolyPolygon(), vcl::PDFWriter::DrawRect(), vcl::PDFWriter::DrawStretchText(), vcl::PDFWriter::DrawText(), vcl::PDFWriter::DrawTextArray(), vcl::PDFWriter::DrawTextLine(), vcl::PDFWriter::DrawTransparent(), vcl::PDFWriter::DrawWallpaper(), ELLIPSE, OutputDevice::EnableOutput(), vcl::PDFWriter::EndTransparencyGroup(), EPS, Execute(), FILLCOLOR, SvtGraphicFill::fillEvenOdd, SvtGraphicFill::fillSolid, FLOATTRANSPARENT, FONT, VclPtr< reference_type >::get(), GDIMetaFile::GetAction(), GDIMetaFile::GetActionSize(), BitmapEx::GetAlphaMask(), vcl::Region::GetAsB2DPolyPolygon(), MetaBmpAction::GetBitmap(), MetaBmpScaleAction::GetBitmap(), MetaBmpScalePartAction::GetBitmap(), BitmapEx::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(), MetaPushAction::GetFlags(), tools::Polygon::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(), MetaTextArrayAction::GetKashidaArray(), MetaLayoutModeAction::GetLayoutMode(), MetaTextAction::GetLen(), MetaTextArrayAction::GetLen(), MetaStretchTextAction::GetLen(), MetaLineAction::GetLineInfo(), MetaPolyLineAction::GetLineInfo(), Color::GetLuminance(), OutputDevice::GetMapMode(), SvtGraphicStroke::getMiterLimit(), MapMode::GetOrigin(), 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(), BitmapEx::GetPrefMapMode(), GDIMetaFile::GetPrefMapMode(), BitmapEx::GetPrefSize(), GDIMetaFile::GetPrefSize(), 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(), BitmapEx::GetSizePixel(), 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, implWriteBitmapEx(), implWriteGradient(), o3tl::in, vcl::PDFWriter::IntersectClipRegion(), Bitmap::Invert(), BitmapEx::IsAlpha(), MetaClipRegionAction::IsClipping(), ISECTRECTCLIPREGION, ISECTREGIONCLIPREGION, vcl::Region::IsEmpty(), MetaLineColorAction::IsSetting(), MetaFillColorAction::IsSetting(), MetaTextFillColorAction::IsSetting(), MetaTextLineColorAction::IsSetting(), MetaOverlineColorAction::IsSetting(), SkiaHelper::isVCLSkiaEnabled(), 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, m_rOuterFace, MAPMODE, MASK, MASKSCALE, MASKSCALEPART, GDIMetaFile::Move(), MOVECLIPREGION, vcl::PDFWriter::MoveClipRegion(), nCount, nType, OVERLINECOLOR, pData, PIE, PIXEL, OutputDevice::PixelToLogic(), GDIMetaFile::Play(), playMetafile(), vcl::PDFExtOutDevData::PlaySyncPageAct(), POINT, POLYGON, POLYLINE, POLYPOLYGON, POP, OutputDevice::Pop(), vcl::PDFWriter::Pop(), PUSH, vcl::PDFWriter::Push(), OutputDevice::Push(), RASTEROP, ReadSvtGraphicFill(), ReadSvtGraphicStroke(), RECT, REFPOINT, ROUNDRECT, SAL_WARN, GDIMetaFile::Scale(), vcl::PDFWriter::SetClipRegion(), vcl::PDFWriter::SetDigitLanguage(), vcl::PDFWriter::SetFillColor(), vcl::PDFWriter::SetFont(), vcl::PDFWriter::SetLayoutMode(), vcl::PDFWriter::SetLineColor(), OutputDevice::SetMapMode(), vcl::PDFWriter::SetMapMode(), MapMode::SetOrigin(), vcl::PDFWriter::SetOverlineColor(), GDIMetaFile::SetPrefMapMode(), MapMode::SetScaleX(), MapMode::SetScaleY(), vcl::PDFWriter::SetTextAlign(), vcl::PDFWriter::SetTextColor(), vcl::PDFWriter::SetTextFillColor(), vcl::PDFWriter::SetTextLineColor(), STRETCHTEXT, TEXT, TEXTALIGN, TEXTARRAY, TEXTCOLOR, TEXTFILLCOLOR, TEXTLANGUAGE, TEXTLINE, TEXTLINECOLOR, TEXTRECT, Transparent, o3tl::twip, WALLPAPER, Size::Width(), GDIMetaFile::WindStart(), WITH_ALPHA, Point::X(), and Point::Y().
Referenced by implWriteGradient(), and playMetafile().
void vcl::PDFWriterImpl::pop | ( | ) |
Definition at line 10253 of file pdfwriter_impl.cxx.
References vcl::pdf::All, vcl::CLIPREGION, vcl::FILLCOLOR, vcl::FONT, vcl::Font::GetAlignment(), vcl::Font::GetColor(), vcl::Font::GetFillColor(), vcl::LINECOLOR, vcl::pdf::GraphicsState::m_aClipRegion, vcl::pdf::GraphicsState::m_aFillColor, vcl::pdf::GraphicsState::m_aFont, m_aGraphicsStack, vcl::pdf::GraphicsState::m_aLineColor, vcl::pdf::GraphicsState::m_aMapMode, vcl::pdf::GraphicsState::m_aOverlineColor, vcl::pdf::GraphicsState::m_aTextLineColor, vcl::pdf::GraphicsState::m_bClipRegion, vcl::pdf::GraphicsState::m_nFlags, vcl::MAPMODE, vcl::OVERLINECOLOR, vcl::REFPOINT, setFillColor(), setFont(), setLineColor(), setMapMode(), setOverlineColor(), setTextAlign(), setTextColor(), setTextFillColor(), setTextLineColor(), vcl::TEXTALIGN, vcl::TEXTCOLOR, vcl::TEXTFILLCOLOR, and vcl::TEXTLINECOLOR.
Referenced by createDefaultCheckBoxAppearance(), createDefaultEditAppearance(), createDefaultListBoxAppearance(), createDefaultPushButtonAppearance(), createDefaultRadioButtonAppearance(), drawHatch(), drawLayout(), drawRelief(), drawStrikeoutChar(), and endRedirect().
|
private |
Definition at line 1199 of file pdfwriter_impl2.cxx.
References computeAccessPermissions(), computeUDictionaryValue(), vcl::PDFWriter::PDFWriterContext::Encryption, vcl::PDFWriter::PDFEncryptionProperties::EncryptionKey, EncHashTransporter::getEncHashTransporter(), EncHashTransporter::getOValue(), m_aContext, vcl::PDFWriter::PDFEncryptionProperties::OValue, and vcl::PDFWriter::PDFEncryptionProperties::UValue.
Referenced by PDFWriterImpl().
void vcl::PDFWriterImpl::push | ( | PushFlags | nFlags | ) |
Definition at line 10246 of file pdfwriter_impl.cxx.
References m_aGraphicsStack.
Referenced by beginRedirect(), createDefaultCheckBoxAppearance(), createDefaultEditAppearance(), createDefaultListBoxAppearance(), createDefaultPushButtonAppearance(), createDefaultRadioButtonAppearance(), drawHatch(), drawLayout(), drawRelief(), and drawStrikeoutChar().
|
private |
Definition at line 8040 of file pdfwriter_impl.cxx.
References m_aGlobalResourceDict, m_aOutputStreams, and pushResource().
|
staticprivate |
Definition at line 8010 of file pdfwriter_impl.cxx.
References vcl::pdf::ResourceDict::m_aExtGStates, vcl::pdf::ResourceDict::m_aPatterns, vcl::pdf::ResourceDict::m_aShadings, vcl::pdf::ResourceDict::m_aXObjects, and vcl::pdf::Pattern.
Referenced by createBitmapEmit(), createGradient(), drawJPGBitmap(), drawTransparent(), drawWallpaper(), emitType3Font(), endTransparencyGroup(), and pushResource().
|
private |
Definition at line 1624 of file pdfwriter_impl2.cxx.
References BitStreamState::flush(), BitStreamState::getByte(), BitStreamState::mnBuffer, BitStreamState::mnNextBitPos, and writeBufferBytes().
Referenced by putG4Span(), and writeG4Stream().
|
private |
Definition at line 1871 of file pdfwriter_impl2.cxx.
References BlackPixelCodes, putG4Bits(), and WhitePixelCodes.
Referenced by writeG4Stream().
sal_Int32 vcl::PDFWriterImpl::registerDestReference | ( | sal_Int32 | nDestId, |
const tools::Rectangle & | rRect, | ||
sal_Int32 | nPageNr, | ||
PDFWriter::DestAreaType | eType | ||
) |
Definition at line 10488 of file pdfwriter_impl.cxx.
References createDest(), eType, and m_aDestinationIdTranslation.
|
private |
Definition at line 6326 of file pdfwriter_impl.cxx.
References vcl::font::PhysicalFontFace::GetGlyphColorBitmap(), vcl::font::PhysicalFontFace::GetGlyphColorLayers(), LogicalFontInstance::GetGlyphOutlineUntransformed(), vcl::font::PhysicalFontFace::GetRawFontData(), vcl::font::PhysicalFontFace::GetVariations(), vcl::font::PhysicalFontFace::IsColorFont(), vcl::pdf::FontEmit::m_aMapping, m_aType3Fonts, vcl::pdf::FontEmit::m_nFontID, vcl::pdf::Glyph::m_nFontID, m_nNextFID, vcl::pdf::Glyph::m_nSubsetGlyphID, and registerSimpleGlyph().
Referenced by createDefaultCheckBoxAppearance(), and drawLayout().
|
private |
Definition at line 6282 of file pdfwriter_impl.cxx.
References vcl::pdf::GlyphEmit::addCode(), vcl::pdf::FontSubset::m_aMapping, vcl::pdf::FontSubset::m_aSubsets, m_aSubsets, vcl::pdf::Glyph::m_nFontID, m_nNextFID, vcl::pdf::Glyph::m_nSubsetGlyphID, vcl::pdf::GlyphEmit::setGlyphId(), vcl::pdf::GlyphEmit::setGlyphWidth(), vcl::font::PhysicalFontFace::UnitsPerEm(), and vcl::XUnits().
Referenced by registerGlyph().
|
private |
Definition at line 4051 of file pdfwriter_impl.cxx.
References Application::GetDefaultDevice(), vcl::Font::GetFamilyName(), vcl::Font::GetFontHeight(), vcl::Font::GetFontSize(), vcl::Font::GetItalic(), getMapMode(), OutputDevice::GetMapMode(), vcl::Font::GetWeight(), ITALIC_DONTKNOW, OutputDevice::LogicToLogic(), vcl::Font::SetFontSize(), vcl::Font::SetItalic(), vcl::Font::SetWeight(), and WEIGHT_DONTKNOW.
Referenced by createDefaultCheckBoxAppearance(), createDefaultPushButtonAppearance(), createDefaultRadioButtonAppearance(), and drawFieldBorder().
void vcl::PDFWriterImpl::setActualText | ( | const OUString & | rText | ) |
Definition at line 11514 of file pdfwriter_impl.cxx.
References m_aContext, m_aStructure, m_bEmitStructure, m_nCurrentStructElement, and vcl::PDFWriter::PDFWriterContext::Tagged.
void vcl::PDFWriterImpl::setAlternateText | ( | const OUString & | rText | ) |
Definition at line 11522 of file pdfwriter_impl.cxx.
References m_aContext, m_aStructure, m_bEmitStructure, m_nCurrentStructElement, and vcl::PDFWriter::PDFWriterContext::Tagged.
void vcl::PDFWriterImpl::setClipRegion | ( | const basegfx::B2DPolyPolygon & | rRegion | ) |
Definition at line 10305 of file pdfwriter_impl.cxx.
References OutputDevice::GetInverseViewTransformation(), OutputDevice::GetViewTransformation(), m_aGraphicsStack, m_aMapMode, and basegfx::B2DPolyPolygon::transform().
bool vcl::PDFWriterImpl::setCurrentStructureElement | ( | sal_Int32 | nElement | ) |
Definition at line 11070 of file pdfwriter_impl.cxx.
References checkEmitStructure(), emitComment(), endStructureElementMCSeq(), g_bDebugDisableCompression, getStructureTag(), m_aContext, m_aStructure, m_bEmitStructure, m_nCurrentStructElement, o3tl::make_unsigned(), and vcl::PDFWriter::PDFWriterContext::Tagged.
|
inline |
Definition at line 1248 of file pdfwriter_impl.hxx.
References vcl::pdf::DigitLanguage, and m_aGraphicsStack.
|
inline |
Definition at line 1164 of file pdfwriter_impl.hxx.
References vcl::PDFWriter::PDFWriterContext::DocumentLocale, and m_aContext.
|
inline |
Definition at line 1183 of file pdfwriter_impl.hxx.
References COL_TRANSPARENT(), vcl::pdf::FillColor, Color::IsTransparent(), and m_aGraphicsStack.
Referenced by createDefaultCheckBoxAppearance(), createDefaultListBoxAppearance(), createDefaultPushButtonAppearance(), createDefaultRadioButtonAppearance(), drawFieldBorder(), drawLayout(), drawPixel(), drawWallpaper(), and pop().
void vcl::PDFWriterImpl::setFont | ( | const Font & | rFont | ) |
Definition at line 10236 of file pdfwriter_impl.cxx.
References COL_TRANSPARENT(), vcl::pdf::Font, vcl::Font::GetColor(), and m_aGraphicsStack.
Referenced by createDefaultCheckBoxAppearance(), createDefaultPushButtonAppearance(), createDefaultRadioButtonAppearance(), drawRelief(), drawShadow(), drawStrikeoutChar(), and pop().
|
inline |
Definition at line 1242 of file pdfwriter_impl.hxx.
References vcl::pdf::LayoutMode, and m_aGraphicsStack.
|
inline |
Definition at line 1177 of file pdfwriter_impl.hxx.
References COL_TRANSPARENT(), Color::IsTransparent(), vcl::pdf::LineColor, and m_aGraphicsStack.
Referenced by createDefaultCheckBoxAppearance(), createDefaultListBoxAppearance(), createDefaultPushButtonAppearance(), createDefaultRadioButtonAppearance(), drawFieldBorder(), drawHatch(), drawLayout(), drawWallpaper(), and pop().
void vcl::PDFWriterImpl::setLinkDest | ( | sal_Int32 | nLinkId, |
sal_Int32 | nDestId | ||
) |
Definition at line 10494 of file pdfwriter_impl.cxx.
References m_aDests, m_aLinks, and o3tl::make_unsigned().
void vcl::PDFWriterImpl::setLinkPropertyId | ( | sal_Int32 | nLinkId, |
sal_Int32 | nPropertyId | ||
) |
Definition at line 10544 of file pdfwriter_impl.cxx.
References m_aLinkPropertyMap, and nPropertyId.
void vcl::PDFWriterImpl::setLinkURL | ( | sal_Int32 | nLinkId, |
const OUString & | rURL | ||
) |
Definition at line 10504 of file pdfwriter_impl.cxx.
References aURL, comphelper::getProcessComponentContext(), m_aLinks, m_xTrans, and o3tl::make_unsigned().
void vcl::PDFWriterImpl::setMapMode | ( | const MapMode & | rMapMode | ) |
Definition at line 10298 of file pdfwriter_impl.cxx.
References m_aCurrentPDFState, m_aGraphicsStack, vcl::pdf::GraphicsState::m_aMapMode, and OutputDevice::SetMapMode().
Referenced by pop().
void vcl::PDFWriterImpl::setOutlineItemDest | ( | sal_Int32 | nItem, |
sal_Int32 | nDestID | ||
) |
Definition at line 10584 of file pdfwriter_impl.cxx.
References m_aDests, m_aOutline, and o3tl::make_unsigned().
Referenced by createOutlineItem().
void vcl::PDFWriterImpl::setOutlineItemParent | ( | sal_Int32 | nItem, |
sal_Int32 | nNewParent | ||
) |
Definition at line 10563 of file pdfwriter_impl.cxx.
References m_aOutline, and o3tl::make_unsigned().
Referenced by createOutlineItem().
void vcl::PDFWriterImpl::setOutlineItemText | ( | sal_Int32 | nItem, |
std::u16string_view | rText | ||
) |
Definition at line 10576 of file pdfwriter_impl.cxx.
References m_aOutline, o3tl::make_unsigned(), and psp::WhitespaceToSpace().
Referenced by createOutlineItem().
|
inline |
Definition at line 1199 of file pdfwriter_impl.hxx.
References COL_TRANSPARENT(), and m_aGraphicsStack.
Referenced by drawRelief(), drawShadow(), and pop().
|
inline |
Definition at line 1204 of file pdfwriter_impl.hxx.
References m_aGraphicsStack.
void vcl::PDFWriterImpl::setPageTransition | ( | PDFWriter::PageTransition | eType, |
sal_uInt32 | nMilliSec, | ||
sal_Int32 | nPageNr | ||
) |
Definition at line 11530 of file pdfwriter_impl.cxx.
References eType, m_aPages, m_nCurrentPage, and o3tl::make_unsigned().
void vcl::PDFWriterImpl::setScreenStream | ( | sal_Int32 | nScreenId, |
const OUString & | rURL | ||
) |
Definition at line 10535 of file pdfwriter_impl.cxx.
References createObject(), m_aScreens, and o3tl::make_unsigned().
void vcl::PDFWriterImpl::setScreenURL | ( | sal_Int32 | nScreenId, |
const OUString & | rURL | ||
) |
Definition at line 10527 of file pdfwriter_impl.cxx.
References m_aScreens, and o3tl::make_unsigned().
void vcl::PDFWriterImpl::setStructureAnnotIds | ( | ::std::vector< sal_Int32 > const & | rAnnotIds | ) |
Definition at line 11502 of file pdfwriter_impl.cxx.
References m_aContext, m_aPages, m_aStructure, m_bEmitStructure, m_nCurrentPage, m_nCurrentStructElement, o3tl::make_unsigned(), and vcl::PDFWriter::PDFWriterContext::Tagged.
bool vcl::PDFWriterImpl::setStructureAttribute | ( | enum PDFWriter::StructAttribute | eAttr, |
enum PDFWriter::StructAttributeValue | eVal | ||
) |
Definition at line 11105 of file pdfwriter_impl.cxx.
References vcl::PDFWriter::After, vcl::PDFWriter::Auto, vcl::PDFWriter::Before, vcl::PDFWriter::BibEntry, vcl::PDFWriter::Block, vcl::PDFWriter::BlockAlign, vcl::PDFWriter::Both, vcl::PDFWriter::Cb, vcl::PDFWriter::Center, vcl::PDFWriter::Circle, vcl::PDFWriter::Code, vcl::PDFWriter::Column, vcl::PDFWriter::Decimal, vcl::PDFWriter::Disc, vcl::PDFWriter::End, eType, vcl::PDFWriter::Figure, vcl::PDFWriter::Footer, vcl::PDFWriter::Form, vcl::PDFWriter::Formula, getAttributeTag(), getAttributeValueTag(), getStructureTag(), vcl::PDFWriter::H1, vcl::PDFWriter::H2, vcl::PDFWriter::H3, vcl::PDFWriter::H4, vcl::PDFWriter::H5, vcl::PDFWriter::H6, vcl::PDFWriter::Header, vcl::PDFWriter::Heading, vcl::PDFWriter::Height, vcl::PDFWriter::Inline, vcl::PDFWriter::InlineAlign, vcl::PDFWriter::Justify, vcl::PDFWriter::Layout, vcl::PDFWriter::LIBody, vcl::PDFWriter::LILabel, vcl::PDFWriter::LineHeight, vcl::PDFWriter::LineThrough, vcl::PDFWriter::Link, vcl::PDFWriter::List, vcl::PDFWriter::ListItem, vcl::PDFWriter::ListNumbering, vcl::PDFWriter::LowerAlpha, vcl::PDFWriter::LowerRoman, vcl::PDFWriter::LrTb, m_aContext, m_aStructure, m_bEmitStructure, m_nCurrentStructElement, vcl::PDFWriter::Middle, vcl::PDFWriter::NONE, vcl::PDFWriter::NonStructElement, vcl::PDFWriter::Normal, vcl::PDFWriter::Note, vcl::PDFWriter::Overline, vcl::PDFWriter::Page, vcl::PDFWriter::Pagination, vcl::PDFWriter::Paragraph, vcl::PDFWriter::Pb, vcl::PDFWriter::PDF_1_5, vcl::PDFWriter::PDF_1_7, vcl::PDFWriter::Placement, vcl::PDFWriter::Quote, vcl::PDFWriter::Rb, vcl::PDFWriter::Reference, vcl::PDFWriter::RlTb, vcl::PDFWriter::Role, vcl::PDFWriter::Row, SAL_INFO, vcl::PDFWriter::Scope, vcl::PDFWriter::Span, vcl::PDFWriter::Square, vcl::PDFWriter::Start, vcl::PDFWriter::Subtype, vcl::PDFWriter::Table, vcl::PDFWriter::TableData, vcl::PDFWriter::TableHeader, vcl::PDFWriter::TableRow, vcl::PDFWriter::PDFWriterContext::Tagged, vcl::PDFWriter::TbRl, vcl::PDFWriter::TextAlign, vcl::PDFWriter::TextDecorationType, vcl::PDFWriter::Tv, vcl::PDFWriter::Type, vcl::PDFWriter::Underline, vcl::PDFWriter::UpperAlpha, vcl::PDFWriter::UpperRoman, vcl::PDFWriter::PDFWriterContext::Version, vcl::PDFWriter::Watermark, vcl::PDFWriter::Width, and vcl::PDFWriter::WritingMode.
bool vcl::PDFWriterImpl::setStructureAttributeNumerical | ( | enum PDFWriter::StructAttribute | eAttr, |
sal_Int32 | nValue | ||
) |
Definition at line 11346 of file pdfwriter_impl.cxx.
References vcl::PDFWriter::BaselineShift, vcl::PDFWriter::BibEntry, vcl::PDFWriter::Code, vcl::PDFWriter::ColSpan, vcl::PDFWriter::EndIndent, eType, vcl::PDFWriter::Figure, vcl::PDFWriter::Form, vcl::PDFWriter::Formula, getAttributeTag(), LanguageTag::getLocale(), getStructureTag(), vcl::PDFWriter::H1, vcl::PDFWriter::H2, vcl::PDFWriter::H3, vcl::PDFWriter::H4, vcl::PDFWriter::H5, vcl::PDFWriter::H6, vcl::PDFWriter::Heading, vcl::PDFWriter::Height, vcl::PDFWriter::Language, vcl::PDFWriter::LIBody, vcl::PDFWriter::LILabel, vcl::PDFWriter::LineHeight, vcl::PDFWriter::Link, vcl::PDFWriter::LinkAnnotation, vcl::PDFWriter::List, vcl::PDFWriter::ListItem, m_aContext, m_aStructure, m_bEmitStructure, m_nCurrentStructElement, vcl::PDFWriter::Note, nValue, vcl::PDFWriter::Paragraph, vcl::PDFWriter::Quote, vcl::PDFWriter::Reference, vcl::PDFWriter::RowSpan, SAL_INFO, vcl::PDFWriter::SpaceAfter, vcl::PDFWriter::SpaceBefore, vcl::PDFWriter::Span, vcl::PDFWriter::StartIndent, vcl::PDFWriter::Table, vcl::PDFWriter::TableData, vcl::PDFWriter::TableHeader, vcl::PDFWriter::TableRow, vcl::PDFWriter::PDFWriterContext::Tagged, vcl::PDFWriter::TextIndent, and vcl::PDFWriter::Width.
void vcl::PDFWriterImpl::setStructureBoundingBox | ( | const tools::Rectangle & | rRect | ) |
Definition at line 11479 of file pdfwriter_impl.cxx.
References vcl::PDFWriter::Division, eType, vcl::PDFWriter::Figure, vcl::PDFWriter::Form, vcl::PDFWriter::Formula, m_aContext, m_aPages, m_aStructure, m_bEmitStructure, m_nCurrentPage, m_nCurrentStructElement, o3tl::make_unsigned(), vcl::PDFWriter::Table, and vcl::PDFWriter::PDFWriterContext::Tagged.
|
inline |
Definition at line 1254 of file pdfwriter_impl.hxx.
References vcl::pdf::Font, and m_aGraphicsStack.
Referenced by pop().
|
inline |
Definition at line 1221 of file pdfwriter_impl.hxx.
References vcl::pdf::Font, and m_aGraphicsStack.
Referenced by createDefaultCheckBoxAppearance(), createDefaultPushButtonAppearance(), createDefaultRadioButtonAppearance(), and pop().
|
inline |
Definition at line 1215 of file pdfwriter_impl.hxx.
References COL_TRANSPARENT(), vcl::pdf::Font, and m_aGraphicsStack.
Referenced by pop().
|
inline |
Definition at line 1209 of file pdfwriter_impl.hxx.
References vcl::pdf::Font, Color::IsTransparent(), and m_aGraphicsStack.
|
inline |
Definition at line 1189 of file pdfwriter_impl.hxx.
References COL_TRANSPARENT(), and m_aGraphicsStack.
Referenced by drawRelief(), drawShadow(), and pop().
|
inline |
Definition at line 1194 of file pdfwriter_impl.hxx.
References m_aGraphicsStack.
|
private |
Definition at line 1374 of file pdfwriter_impl.cxx.
References computeDocumentIdentifier(), vcl::PDFWriter::PDFEncryptionProperties::DocumentIdentifier, vcl::PDFWriter::PDFWriterContext::DocumentInfo, vcl::PDFWriter::PDFWriterContext::Encryption, vcl::PDFWriter::GetDateTime(), m_aContext, m_aCreationDateString, and m_aCreationMetaDateString.
Referenced by PDFWriterImpl().
|
private |
Definition at line 6151 of file pdfwriter_impl.cxx.
References vcl::pdf::PDFPage::m_aAnnotations, m_aPages, m_aWidgets, vcl::pdf::PDFWidget::m_eType, vcl::pdf::PDFAnnotation::m_nObject, vcl::pdf::PDFAnnotation::m_nPage, vcl::pdf::PDFWidget::m_nTabOrder, vcl::PDFWriter::RadioButton, SAL_INFO, and SAL_WARN.
Referenced by emit().
|
private |
Definition at line 10122 of file pdfwriter_impl.cxx.
References appendNonStrokingColor(), appendStrokingColor(), COL_TRANSPARENT(), basegfx::B2DPolyPolygon::count(), vcl::pdf::FillColor, vcl::pdf::Font, vcl::pdf::LayoutMode, vcl::pdf::LineColor, vcl::pdf::GraphicsState::m_aClipRegion, m_aContext, m_aCurrentPDFState, vcl::pdf::GraphicsState::m_aDigitLanguage, vcl::pdf::GraphicsState::m_aFillColor, vcl::pdf::GraphicsState::m_aFont, m_aGraphicsStack, vcl::pdf::GraphicsState::m_aLineColor, vcl::pdf::GraphicsState::m_aMapMode, m_aMapMode, m_aPages, vcl::pdf::GraphicsState::m_bClipRegion, vcl::pdf::GraphicsState::m_nLayoutMode, vcl::pdf::GraphicsState::m_nUpdateFlags, vcl::pdf::MapMode, mode, vcl::PDFWriter::PDF_1_4, OutputDevice::SetDigitLanguage(), OutputDevice::SetFont(), OutputDevice::SetLayoutMode(), OutputDevice::SetMapMode(), vcl::PDFWriter::PDFWriterContext::Version, and vcl::PDFObjectContainer::writeBuffer().
Referenced by beginRedirect(), beginTransparencyGroup(), drawArc(), drawBitmap(), drawEllipse(), drawGradient(), drawHatch(), drawJPGBitmap(), drawLine(), drawPixel(), drawPolygon(), drawPolyLine(), drawPolyPolygon(), drawRectangle(), drawRelief(), drawShadow(), drawStretchText(), drawStrikeoutChar(), drawText(), drawTextArray(), drawTextLine(), drawTransparent(), drawWallpaper(), endPage(), and endRedirect().
|
overrideprivatevirtual |
See vcl::PDFObjectContainer::updateObject().
Implements vcl::PDFObjectContainer.
Definition at line 1766 of file pdfwriter_impl.cxx.
References m_aFile, m_aObjects, m_bOpen, n, SAL_WARN_IF, and U.
Referenced by AppendAnnotKid(), createToUnicodeCMap(), emitAppearances(), emitBuildinFont(), emitCatalog(), emitDocumentMetadata(), emitEmbeddedFiles(), emitFontDescriptor(), emitFonts(), emitInfoDict(), emitLinkAnnotations(), emitNamedDestinations(), emitNoteAnnotations(), emitOutline(), emitOutputIntent(), emitResources(), emitScreenAnnotations(), emitStructIDTree(), emitStructParentTree(), emitStructure(), emitStructureAttributes(), emitSystemFont(), emitTilings(), emitTrailer(), emitType3Font(), emitWidgetAnnotations(), writeBitmapObject(), writeGradientFunction(), writeJPG(), writeReferenceXObject(), and writeTransparentObject().
|
private |
Definition at line 3325 of file pdfwriter_impl.cxx.
References i, vcl::pdf::PDFOutlineEntry::m_aChildren, m_aContext, m_aOutline, nCount, vcl::PDFWriter::PDFWriterContext::OpenBookmarkLevels, and updateOutlineItemCount().
Referenced by emitOutline(), and updateOutlineItemCount().
|
private |
Definition at line 9390 of file pdfwriter_impl.cxx.
References beginCompression(), CHECK_RETURN, checkAndEnableStreamEncryption(), COL_BLACK(), COL_WHITE(), Bitmap::Convert(), createObject(), disableStreamEncryption(), emitComment(), enableStringEncryption(), vcl::PDFWriter::PDFEncryptionProperties::Encrypt(), vcl::PDFWriter::PDFWriterContext::Encryption, endCompression(), g_bDebugDisableCompression, vcl::ScopedBitmapAccess< Access, Bitmap, Acquire >::get(), BitmapEx::GetAlphaMask(), BitmapInfoAccess::GetBestPaletteIndex(), BitmapInfoAccess::GetBitCount(), AlphaMask::GetBitmap(), BitmapEx::GetBitmap(), Color::GetBlue(), BitmapReadAccess::GetColor(), Color::GetGreen(), BitmapInfoAccess::GetPalette(), BitmapInfoAccess::GetPaletteColor(), BitmapInfoAccess::GetPaletteEntryCount(), Bitmap::getPixelFormat(), Color::GetRed(), BitmapReadAccess::GetScanline(), BitmapInfoAccess::GetScanlineFormat(), Bitmap::GetSizePixel(), vcl::pdf::ReferenceXObjectEmit::hasExternalPDFData(), Bitmap::HasGreyPaletteAny(), Size::Height(), BitmapInfoAccess::Height(), i, vcl::INVALID, BitmapEx::IsAlpha(), vcl::pdf::BitmapEmit::m_aBitmap, m_aCipher, m_aContext, m_aErrors, m_aFile, vcl::pdf::BitmapEmit::m_aReferenceXObject, m_bIsPDF_A1, vcl::pdf::BitmapEmit::m_nObject, m_vEncryptionBuffer, N1BitThreshold, vcl::N24_BPP, N24BitTcRgb, vcl::N32_BPP, vcl::N8_BPP, N8BitGreys, vcl::PDFWriter::PDF_1_4, vcl::pixelFormatBitCount(), SAL_WARN_IF, updateObject(), vcl::PDFWriter::PDFWriterContext::UseReferenceXObject, vcl::PDFWriter::PDFWriterContext::Version, vcl::PDFWriter::Warning_Transparency_Omitted_PDFA, Size::Width(), BitmapInfoAccess::Width(), writeBitmapObject(), vcl::PDFObjectContainer::writeBuffer(), writeBufferBytes(), writeG4Stream(), writeReferenceXObject(), x, and y.
Referenced by emitType3Font(), endPage(), writeBitmapObject(), and writeJPG().
|
overrideprivatevirtual |
See vcl::PDFObjectContainer::writeBuffer().
Implements vcl::PDFObjectContainer.
Definition at line 1626 of file pdfwriter_impl.cxx.
References m_aCipher, m_aFile, m_aOutputStreams, m_bEncryptThisStream, m_bOpen, m_DocDigest, m_pCodec, m_pMemStream, m_vEncryptionBuffer, STREAM_SEEK_TO_END, and comphelper::Hash::update().
Referenced by createToUnicodeCMap(), emitAppearances(), emitDocumentMetadata(), emitEmbeddedFiles(), emitFonts(), emitOutputIntent(), emitScreenAnnotations(), emitTilings(), endCompression(), putG4Bits(), writeBitmapObject(), writeG4Stream(), writeGradientFunction(), writeJPG(), and writeTransparentObject().
|
private |
Definition at line 1892 of file pdfwriter_impl2.cxx.
References findBitRun(), BitStreamState::flush(), BitmapInfoAccess::GetBitCount(), BitStreamState::getByte(), BitmapReadAccess::GetScanline(), BitmapInfoAccess::Height(), isSet(), BitStreamState::mnNextBitPos, putG4Bits(), putG4Span(), BitmapInfoAccess::Width(), and writeBufferBytes().
Referenced by writeBitmapObject().
|
private |
Definition at line 8763 of file pdfwriter_impl.cxx.
References tools::Rectangle::AdjustBottom(), tools::Rectangle::AdjustTop(), beginCompression(), tools::Rectangle::BottomCenter(), CHECK_RETURN, checkAndEnableStreamEncryption(), vcl::PDFWriter::PDFWriterContext::ColorMode, createObject(), disableStreamEncryption(), vcl::PDFWriter::DrawGreyscale, emitComment(), endCompression(), g_bDebugDisableCompression, Gradient::GetAngle(), Color::GetBlue(), Gradient::GetBorder(), Gradient::GetBoundRect(), BitmapReadAccess::GetColor(), Gradient::GetEndColor(), Color::GetGreen(), tools::Rectangle::GetHeight(), Color::GetRed(), Bitmap::GetSizePixel(), Gradient::GetStartColor(), Gradient::GetStyle(), GrayBitmap, GrayFill, GrayGradient, GrayLine, GrayText, Size::Height(), m_aContext, m_aFile, vcl::pdf::GradientEmit::m_aGradient, vcl::pdf::GradientEmit::m_aSize, vcl::pdf::GradientEmit::m_nObject, tools::Polygon::Rotate(), tools::Rectangle::SetBottom(), tools::Rectangle::SetLeft(), tools::Rectangle::SetRight(), tools::Rectangle::SetTop(), tools::Rectangle::TopCenter(), updateObject(), Size::Width(), vcl::PDFObjectContainer::writeBuffer(), writeBufferBytes(), x, X, Y, and y.
Referenced by emitGradients().
|
private |
Definition at line 8977 of file pdfwriter_impl.cxx.
References CHECK_RETURN2, checkAndEnableStreamEncryption(), createObject(), disableStreamEncryption(), emitComment(), g_bDebugDisableCompression, vcl::pdf::ReferenceXObjectEmit::hasExternalPDFData(), Size::Height(), AlphaMask::IsEmpty(), vcl::pdf::JPGEmit::m_aAlphaMask, vcl::pdf::BitmapEmit::m_aBitmap, m_aContext, m_aErrors, vcl::pdf::JPGEmit::m_aID, vcl::pdf::BitmapID::m_aPixelSize, vcl::pdf::JPGEmit::m_aReferenceXObject, m_bIsPDF_A1, vcl::pdf::JPGEmit::m_bTrueColor, vcl::pdf::BitmapEmit::m_nObject, vcl::pdf::JPGEmit::m_nObject, vcl::pdf::JPGEmit::m_pStream, nLength, vcl::PDFWriter::PDF_1_4, STREAM_SEEK_TO_BEGIN, updateObject(), vcl::PDFWriter::PDFWriterContext::UseReferenceXObject, vcl::PDFWriter::PDFWriterContext::Version, vcl::PDFWriter::Warning_Transparency_Omitted_PDF13, vcl::PDFWriter::Warning_Transparency_Omitted_PDFA, Size::Width(), writeBitmapObject(), vcl::PDFObjectContainer::writeBuffer(), writeBufferBytes(), and writeReferenceXObject().
Referenced by endPage().
|
private |
Writes the form XObject proxy for the image.
Definition at line 9051 of file pdfwriter_impl.cxx.
References basegfx::B2DHomMatrix::a(), aMap, basegfx::B2DHomMatrix::b(), basegfx::B2DHomMatrix::c(), CHECK_RETURN2, checkAndEnableStreamEncryption(), vcl::PDFObjectCopier::copyExternalResource(), vcl::PDFObjectCopier::copyPageResources(), vcl::PDFObjectCopier::copyPageStreams(), createObject(), basegfx::B2DHomMatrix::d(), basegfx::deg2rad(), disableStreamEncryption(), basegfx::B2DHomMatrix::e(), emitComment(), basegfx::B2DHomMatrix::f(), g_bDebugDisableCompression, vcl::ExternalPDFStreams::get(), SvMemoryStream::GetData(), vcl::pdf::getDefaultPdfResolutionDpi(), vcl::filter::PDFObjectElement::GetDocument(), OutputDevice::GetDPIX(), OutputDevice::GetDPIY(), vcl::filter::PDFDocument::GetEditBuffer(), basegfx::Range2D< typename TYPE, typename TRAITS >::getHeight(), MapMode::GetMapUnit(), vcl::ExternalPDFStream::getPDFDocument(), SvMemoryStream::GetSize(), basegfx::Range2D< typename TYPE, typename TRAITS >::getWidth(), Size::Height(), vcl::filter::PDFObjectElement::Lookup(), vcl::filter::PDFObjectElement::LookupObject(), m_aContext, m_aExternalPDFStreams, m_aMapMode, m_aPages, vcl::pdf::ReferenceXObjectEmit::m_aPixelSize, vcl::pdf::ReferenceXObjectEmit::m_nBitmapObject, vcl::pdf::ReferenceXObjectEmit::m_nEmbeddedObject, vcl::pdf::ReferenceXObjectEmit::m_nExternalPDFDataIndex, vcl::pdf::ReferenceXObjectEmit::m_nExternalPDFPageIndex, vcl::pdf::ReferenceXObjectEmit::m_nFormObject, nLength, vcl::PDFWriter::PDF_1_7, OutputDevice::PixelToLogic(), pObject, basegfx::B2DHomMatrix::rotate(), SAL_WARN, OutputDevice::SetDPIX(), OutputDevice::SetDPIY(), basegfx::B2DRange::transform(), basegfx::B2DHomMatrix::translate(), updateObject(), vcl::PDFWriter::PDFWriterContext::UseReferenceXObject, vcl::PDFWriter::PDFWriterContext::Version, Size::Width(), and vcl::PDFObjectContainer::writeBuffer().
Referenced by writeBitmapObject(), and writeJPG().
|
private |
Definition at line 8683 of file pdfwriter_impl.cxx.
References tools::Rectangle::Bottom(), CHECK_RETURN2, checkAndEnableStreamEncryption(), compressStream(), disableStreamEncryption(), emitComment(), g_bDebugDisableCompression, getResourceDictObj(), tools::Rectangle::Left(), vcl::pdf::TransparencyEmit::m_aBoundRect, m_aErrors, m_bIsPDF_A1, vcl::pdf::TransparencyEmit::m_fAlpha, vcl::pdf::TransparencyEmit::m_nExtGStateObject, vcl::pdf::TransparencyEmit::m_nObject, vcl::pdf::TransparencyEmit::m_pContentStream, tools::Rectangle::Right(), STREAM_SEEK_TO_BEGIN, tools::Rectangle::Top(), updateObject(), vcl::PDFWriter::Warning_Transparency_Omitted_PDFA, vcl::PDFObjectContainer::writeBuffer(), and writeBufferBytes().
Referenced by endPage().
|
friend |
Definition at line 692 of file pdfwriter_impl.hxx.
Referenced by emitEmbeddedFiles().
|
friend |
Definition at line 695 of file pdfwriter_impl.hxx.
|
private |
Definition at line 721 of file pdfwriter_impl.hxx.
Referenced by createBitmapEmit(), and endPage().
|
private |
Definition at line 812 of file pdfwriter_impl.hxx.
Referenced by appendBuildinFontsToDict(), emitFonts(), and getBestBuildinFont().
|
private |
Definition at line 850 of file pdfwriter_impl.hxx.
Referenced by appendLiteralStringEncrypt(), appendUnicodeTextStringEncrypt(), checkAndEnableStreamEncryption(), dispose(), enableStringEncryption(), PDFWriterImpl(), writeBitmapObject(), and writeBufferBytes().
|
private |
Definition at line 814 of file pdfwriter_impl.hxx.
Referenced by appendLiteralStringEncrypt(), appendNonStrokingColor(), appendStrokingColor(), appendUnicodeTextStringEncrypt(), beginStructureElement(), beginStructureElementMCSeq(), beginTransparencyGroup(), checkAndEnableStreamEncryption(), checkEmitStructure(), createBitmapEmit(), createEmbeddedFile(), createWidgetFieldName(), drawJPGBitmap(), drawTransparent(), emit(), emitCatalog(), emitDocumentMetadata(), emitInfoDict(), emitLinkAnnotations(), emitScreenAnnotations(), emitTrailer(), emitType3Font(), emitWidgetAnnotations(), enableStringEncryption(), endStructureElement(), endTransparencyGroup(), ensureStructureElement(), getStructureTag(), implWriteBitmapEx(), initStructureElement(), PDFWriterImpl(), prepareEncryption(), setActualText(), setAlternateText(), setCurrentStructureElement(), setDocumentLocale(), setStructureAnnotIds(), setStructureAttribute(), setStructureAttributeNumerical(), setStructureBoundingBox(), setupDocInfo(), updateGraphicsState(), updateOutlineItemCount(), writeBitmapObject(), writeGradientFunction(), writeJPG(), and writeReferenceXObject().
|
private |
Definition at line 865 of file pdfwriter_impl.hxx.
Referenced by emitInfoDict(), and setupDocInfo().
|
private |
Definition at line 867 of file pdfwriter_impl.hxx.
Referenced by emitDocumentMetadata(), and setupDocInfo().
|
private |
Definition at line 826 of file pdfwriter_impl.hxx.
Referenced by beginRedirect(), drawLayout(), drawRelief(), drawShadow(), drawStraightTextLine(), drawStrikeoutChar(), drawTextLine(), drawTransparent(), endPage(), endRedirect(), setMapMode(), and updateGraphicsState().
|
private |
contains destinations accessible via a public Id, instead of being linked to by an ordinary link
Definition at line 734 of file pdfwriter_impl.hxx.
Referenced by emitWidgetAnnotations(), and registerDestReference().
|
private |
Definition at line 731 of file pdfwriter_impl.hxx.
Referenced by appendDest(), createDest(), emitOutline(), setLinkDest(), and setOutlineItemDest().
|
private |
Definition at line 744 of file pdfwriter_impl.hxx.
Referenced by addDocumentAttachedFile(), emitCatalog(), and emitTrailer().
|
private |
Contains embedded files.
Definition at line 742 of file pdfwriter_impl.hxx.
Referenced by addEmbeddedFile(), and emitEmbeddedFiles().
|
private |
Definition at line 831 of file pdfwriter_impl.hxx.
Referenced by drawTransparent(), emit(), emitType3Font(), emitWidgetAnnotations(), getErrors(), insertError(), writeBitmapObject(), writeJPG(), and writeTransparentObject().
|
private |
Definition at line 818 of file pdfwriter_impl.hxx.
Referenced by createEmbeddedFile(), and writeReferenceXObject().
|
private |
Definition at line 784 of file pdfwriter_impl.hxx.
Referenced by createWidgetFieldName().
|
private |
Definition at line 815 of file pdfwriter_impl.hxx.
Referenced by emit(), emitFonts(), emitOutputIntent(), emitTrailer(), getCurrentFilePosition(), PDFWriterImpl(), updateObject(), writeBitmapObject(), writeBufferBytes(), and writeGradientFunction().
|
private |
Definition at line 810 of file pdfwriter_impl.hxx.
Referenced by createBitmapEmit(), emitResources(), and pushResource().
|
private |
Definition at line 788 of file pdfwriter_impl.hxx.
Referenced by createGradient(), emitGradients(), and emitResources().
|
private |
Definition at line 825 of file pdfwriter_impl.hxx.
Referenced by beginRedirect(), clearClipRegion(), createGradient(), drawArc(), drawEllipse(), drawGradient(), drawLine(), drawPixel(), drawPolygon(), drawPolyLine(), drawPolyPolygon(), drawRectangle(), drawTransparent(), drawWallpaper(), endPage(), getMapMode(), intersectClipRegion(), moveClipRegion(), PDFWriterImpl(), pop(), push(), setClipRegion(), setDigitLanguage(), setFillColor(), setFont(), setLayoutMode(), setLineColor(), setMapMode(), setOverlineColor(), setTextAlign(), setTextColor(), setTextFillColor(), setTextLineColor(), and updateGraphicsState().
|
private |
Definition at line 723 of file pdfwriter_impl.hxx.
Referenced by drawJPGBitmap(), and endPage().
|
private |
Definition at line 752 of file pdfwriter_impl.hxx.
Referenced by emitStructure(), emitStructureAttributes(), and setLinkPropertyId().
|
private |
Definition at line 738 of file pdfwriter_impl.hxx.
Referenced by createLink(), emitLinkAnnotations(), emitStructureAttributes(), setLinkDest(), and setLinkURL().
|
private |
Definition at line 714 of file pdfwriter_impl.hxx.
Referenced by beginRedirect(), endPage(), endRedirect(), intersectClipRegion(), moveClipRegion(), newPage(), PDFWriterImpl(), setClipRegion(), updateGraphicsState(), and writeReferenceXObject().
|
private |
Definition at line 727 of file pdfwriter_impl.hxx.
Referenced by createNamedDest(), and emitNamedDestinations().
|
private |
Definition at line 759 of file pdfwriter_impl.hxx.
Referenced by createNote(), and emitNoteAnnotations().
|
private |
Definition at line 718 of file pdfwriter_impl.hxx.
Referenced by createObject(), emitTrailer(), and updateObject().
|
private |
Definition at line 756 of file pdfwriter_impl.hxx.
Referenced by createOutlineItem(), emitOutline(), PDFWriterImpl(), setOutlineItemDest(), setOutlineItemParent(), setOutlineItemText(), and updateOutlineItemCount().
|
private |
Definition at line 823 of file pdfwriter_impl.hxx.
Referenced by beginRedirect(), createBitmapEmit(), endPage(), endRedirect(), pushResource(), and writeBufferBytes().
|
private |
Definition at line 716 of file pdfwriter_impl.hxx.
Referenced by appendDest(), beginRedirect(), beginStructureElementMCSeq(), createControl(), createDefaultCheckBoxAppearance(), createDefaultEditAppearance(), createDefaultListBoxAppearance(), createDefaultPushButtonAppearance(), createDefaultRadioButtonAppearance(), createDest(), createLink(), createNamedDest(), createNote(), createScreen(), dispose(), drawArc(), drawBitmap(), drawEllipse(), drawGradient(), drawHorizontalGlyphs(), drawJPGBitmap(), drawLayout(), drawLine(), drawPixel(), drawPolygon(), drawPolyLine(), drawPolyPolygon(), drawRectangle(), drawStraightTextLine(), drawStrikeoutLine(), drawText(), drawTextLine(), drawTransparent(), drawVerticalGlyphs(), drawWallpaper(), drawWaveTextLine(), emitAnnotations(), emitCatalog(), emitNamedDestinations(), emitScreenAnnotations(), emitTextAnnotationLine(), emitType3Font(), emitWidgetAnnotations(), endPage(), endTransparencyGroup(), ensureStructureElement(), getCurPageSize(), initStructureElement(), newPage(), setPageTransition(), setStructureAnnotIds(), setStructureBoundingBox(), sortWidgets(), updateGraphicsState(), and writeReferenceXObject().
|
private |
Cache some most recent bitmaps we've exported, in case we encounter them again..
Definition at line 800 of file pdfwriter_impl.hxx.
Referenced by implWriteBitmapEx().
|
private |
Definition at line 782 of file pdfwriter_impl.hxx.
Referenced by ensureUniqueRadioOnValues(), and findRadioGroupWidget().
|
private |
Definition at line 774 of file pdfwriter_impl.hxx.
Referenced by addRoleMap(), and emitStructure().
|
private |
Contains all screen annotations.
Definition at line 740 of file pdfwriter_impl.hxx.
Referenced by createScreen(), emitScreenAnnotations(), emitStructure(), setScreenStream(), and setScreenURL().
|
private |
Definition at line 768 of file pdfwriter_impl.hxx.
Referenced by AppendAnnotKid(), and emitStructParentTree().
|
private |
Definition at line 762 of file pdfwriter_impl.hxx.
Referenced by addInternalStructureContainer(), beginStructureElement(), beginStructureElementMCSeq(), checkEmitStructure(), emitCatalog(), emitStructure(), endStructureElement(), endStructureElementMCSeq(), ensureStructureElement(), initStructureElement(), PDFWriterImpl(), setActualText(), setAlternateText(), setCurrentStructureElement(), setStructureAnnotIds(), setStructureAttribute(), setStructureAttributeNumerical(), and setStructureBoundingBox().
|
private |
Definition at line 793 of file pdfwriter_impl.hxx.
Referenced by drawLayout(), emitFonts(), and registerSimpleGlyph().
|
private |
Definition at line 794 of file pdfwriter_impl.hxx.
Referenced by emitFonts(), and getSystemFont().
|
private |
Definition at line 790 of file pdfwriter_impl.hxx.
Referenced by drawWallpaper(), emitResources(), and emitTilings().
|
private |
Definition at line 791 of file pdfwriter_impl.hxx.
Referenced by drawTransparent(), endPage(), and endTransparencyGroup().
|
private |
Definition at line 795 of file pdfwriter_impl.hxx.
Referenced by emitFonts(), and registerGlyph().
|
private |
Definition at line 780 of file pdfwriter_impl.hxx.
Referenced by createControl(), createWidgetFieldName(), emitCatalog(), emitStructure(), emitWidgetAnnotations(), ensureUniqueRadioOnValues(), findRadioGroupWidget(), and sortWidgets().
|
private |
Definition at line 715 of file pdfwriter_impl.hxx.
Referenced by createDefaultCheckBoxAppearance(), createDefaultEditAppearance(), createDefaultListBoxAppearance(), createDefaultPushButtonAppearance(), createDefaultRadioButtonAppearance(), and PDFWriterImpl().
|
private |
Definition at line 771 of file pdfwriter_impl.hxx.
Referenced by beginStructureElement(), beginStructureElementMCSeq(), endStructureElement(), endStructureElementMCSeq(), initStructureElement(), setActualText(), setAlternateText(), setCurrentStructureElement(), setStructureAnnotIds(), setStructureAttribute(), setStructureAttributeNumerical(), and setStructureBoundingBox().
|
private |
Definition at line 860 of file pdfwriter_impl.hxx.
Referenced by checkAndEnableStreamEncryption(), disableStreamEncryption(), and writeBufferBytes().
|
private |
Definition at line 1082 of file pdfwriter_impl.hxx.
Referenced by drawTransparent(), emitAppearances(), emitCatalog(), emitDocumentMetadata(), emitLinkAnnotations(), emitOutputIntent(), emitTextAnnotationLine(), emitType3Font(), emitWidgetAnnotations(), PDFWriterImpl(), writeBitmapObject(), writeJPG(), and writeTransparentObject().
|
private |
Definition at line 1084 of file pdfwriter_impl.hxx.
Referenced by emitAppearances(), emitCatalog(), emitDocumentMetadata(), emitLinkAnnotations(), emitOutputIntent(), emitTextAnnotationLine(), emitWidgetAnnotations(), and PDFWriterImpl().
|
private |
Definition at line 1089 of file pdfwriter_impl.hxx.
Referenced by emitAppearances(), emitCatalog(), emitDocumentMetadata(), emitLinkAnnotations(), emitOutputIntent(), emitTextAnnotationLine(), emitWidgetAnnotations(), and PDFWriterImpl().
|
private |
Definition at line 1087 of file pdfwriter_impl.hxx.
Referenced by emitDocumentMetadata(), and PDFWriterImpl().
|
private |
Definition at line 816 of file pdfwriter_impl.hxx.
Referenced by emit(), getCurrentFilePosition(), PDFWriterImpl(), updateObject(), and writeBufferBytes().
|
private |
Definition at line 833 of file pdfwriter_impl.hxx.
Referenced by emitTrailer(), and writeBufferBytes().
|
private |
Definition at line 863 of file pdfwriter_impl.hxx.
Referenced by emitTrailer(), and PDFWriterImpl().
|
private |
Definition at line 804 of file pdfwriter_impl.hxx.
Referenced by emitCatalog(), and emitTrailer().
|
private |
Definition at line 802 of file pdfwriter_impl.hxx.
Referenced by beginRedirect(), beginStructureElement(), beginStructureElementMCSeq(), createControl(), createDefaultCheckBoxAppearance(), createDefaultEditAppearance(), createDefaultListBoxAppearance(), createDefaultPushButtonAppearance(), createDefaultRadioButtonAppearance(), createDest(), createLink(), createNamedDest(), createNote(), createScreen(), endStructureElement(), ensureStructureElement(), findRadioGroupWidget(), getCurPageSize(), initStructureElement(), newPage(), setPageTransition(), setStructureAnnotIds(), and setStructureBoundingBox().
|
private |
Definition at line 765 of file pdfwriter_impl.hxx.
Referenced by beginStructureElement(), beginStructureElementMCSeq(), checkEmitStructure(), endStructureElement(), endStructureElementMCSeq(), ensureStructureElement(), initStructureElement(), setActualText(), setAlternateText(), setCurrentStructureElement(), setStructureAnnotIds(), setStructureAttribute(), setStructureAttributeNumerical(), and setStructureBoundingBox().
|
private |
Definition at line 811 of file pdfwriter_impl.hxx.
Referenced by getFontDictObject().
|
private |
Definition at line 856 of file pdfwriter_impl.hxx.
Referenced by checkAndEnableStreamEncryption(), enableStringEncryption(), and PDFWriterImpl().
|
private |
Definition at line 796 of file pdfwriter_impl.hxx.
Referenced by getSystemFont(), registerGlyph(), and registerSimpleGlyph().
|
private |
Definition at line 857 of file pdfwriter_impl.hxx.
Referenced by checkAndEnableStreamEncryption(), enableStringEncryption(), and PDFWriterImpl().
|
private |
Definition at line 809 of file pdfwriter_impl.hxx.
Referenced by getResourceDictObj().
|
private |
Definition at line 807 of file pdfwriter_impl.hxx.
|
private |
Definition at line 808 of file pdfwriter_impl.hxx.
|
private |
Definition at line 806 of file pdfwriter_impl.hxx.
Referenced by createControl(), emit(), and emitCatalog().
|
private |
Definition at line 828 of file pdfwriter_impl.hxx.
Referenced by beginCompression(), endCompression(), and writeBufferBytes().
|
private |
Definition at line 829 of file pdfwriter_impl.hxx.
Referenced by beginCompression(), endCompression(), and writeBufferBytes().
|
private |
Definition at line 1091 of file pdfwriter_impl.hxx.
Referenced by implWriteBitmapEx(), implWriteGradient(), and playMetafile().
|
private |
Definition at line 766 of file pdfwriter_impl.hxx.
Referenced by beginStructureElement(), and endStructureElement().
|
private |
Definition at line 776 of file pdfwriter_impl.hxx.
Referenced by emitStructIDTree(), emitStructure(), and initStructureElement().
|
private |
Definition at line 869 of file pdfwriter_impl.hxx.
Referenced by appendLiteralStringEncrypt(), appendUnicodeTextStringEncrypt(), writeBitmapObject(), and writeBufferBytes().
|
private |
Definition at line 748 of file pdfwriter_impl.hxx.
Referenced by setLinkURL().
|
staticprivate |
Definition at line 1003 of file pdfwriter_impl.hxx.
Referenced by addInternalStructureContainer().
|
staticprivate |
Definition at line 852 of file pdfwriter_impl.hxx.
Referenced by computeUDictionaryValue(), and padPassword().