LibreOffice Module vcl (master) 1
|
#include <print.hxx>
Public Member Functions | |
VCL_DLLPRIVATE void | ImplStartPage () |
VCL_DLLPRIVATE void | ImplEndPage () |
void | SetSystemTextColor (SystemTextColorFlags, bool) override |
void | DrawGradientEx (OutputDevice *pOut, const tools::Rectangle &rRect, const Gradient &rGradient) |
virtual Bitmap | GetBitmap (const Point &rSrcPt, const Size &rSize) const override |
virtual Size | GetButtonBorderSize () override |
virtual Color | GetMonochromeButtonColor () override |
bool | IsScreenComp () const override |
void | DrawBorder (tools::Rectangle aBorderRect) override |
css::awt::DeviceInfo | GetDeviceInfo () const override |
Printer () | |
Printer (const JobSetup &rJobSetup) | |
Printer (const QueueInfo &rQueueInfo) | |
Printer (const OUString &rPrinterName) | |
virtual | ~Printer () override |
virtual void | dispose () override |
virtual void | SetMetafileMapMode (const MapMode &rNewMapMode, bool) override |
const OUString & | GetName () const |
const OUString & | GetDriverName () const |
bool | IsDefPrinter () const |
bool | IsDisplayPrinter () const |
bool | IsValid () const |
sal_uInt32 | GetCapabilities (PrinterCapType nType) const |
bool | HasSupport (PrinterSupport eFeature) const |
bool | SetJobSetup (const JobSetup &rSetup) |
const JobSetup & | GetJobSetup () const |
bool | Setup (weld::Window *pWindow, PrinterSetupMode eMode=PrinterSetupMode::DocumentGlobal) |
bool | SetPrinterProps (const Printer *pPrinter) |
Color | GetBackgroundColor () const override |
Color | GetReadableFontColor (const Color &, const Color &) const override |
VCL_DLLPRIVATE void | SetPrinterOptions (const vcl::printer::Options &rOptions) |
SetPrinterOptions is used internally only now. More... | |
const vcl::printer::Options & | GetPrinterOptions () const |
bool | SetOrientation (Orientation eOrient) |
Orientation | GetOrientation () const |
void | SetDuplexMode (DuplexMode) |
DuplexMode | GetDuplexMode () const |
bool | SetPaperBin (sal_uInt16 nPaperBin) |
sal_uInt16 | GetPaperBin () const |
void | SetPaper (Paper ePaper) |
bool | SetPaperSizeUser (const Size &rSize) |
Paper | GetPaper () const |
Size | GetSizeOfPaper () const |
int | GetPaperInfoCount () const |
const PaperInfo & | GetPaperInfo (int nPaper) const |
sal_uInt16 | GetPaperBinCount () const |
OUString | GetPaperBinName (sal_uInt16 nPaperBin) const |
bool | GetPrinterSettingsPreferred () const |
void | SetPrinterSettingsPreferred (bool bPaperSizeFromSetup) |
const Size & | GetPaperSizePixel () const |
Size | GetPaperSize () const |
Size | GetPaperSize (int nPaper) const |
const Point & | GetPageOffsetPixel () const |
Point | GetPageOffset () const |
void | SetCopyCount (sal_uInt16 nCopy, bool bCollate) |
sal_uInt16 | GetCopyCount () const |
bool | IsCollateCopy () const |
void | SetSinglePrintJobs (bool bSinglePrintJobs) |
bool | IsSinglePrintJobs () const |
bool | IsPrinting () const |
bool | IsJobActive () const |
virtual bool | HasMirroredGraphics () const override |
virtual void | DrawOutDev (const Point &rDestPt, const Size &rDestSize, const Point &rSrcPt, const Size &rSrcSize) override |
virtual void | DrawOutDev (const Point &rDestPt, const Size &rDestSize, const Point &rSrcPt, const Size &rSrcSize, const OutputDevice &rOutDev) override |
virtual void | CopyArea (const Point &rDestPt, const Point &rSrcPt, const Size &rSrcSize, bool bWindowInvalidate=false) override |
virtual tools::Rectangle | GetBackgroundComponentBounds () 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 |
virtual bool | IsVirtual () 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) |
virtual bool | CanEnableNativeWidget () const |
Determine if native widgets can be enabled. More... | |
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 |
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 |
virtual void | EnableRTL (bool bEnable=true) |
bool | IsRTLEnabled () const |
bool | GetTextIsRTL (const OUString &, sal_Int32 nIndex, sal_Int32 nLen) const |
virtual void | Flush () |
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 |
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) |
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) |
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) |
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 |
virtual sal_uInt16 | GetBitCount () 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 |
Static Public Member Functions | |
static const std::vector< OUString > & | GetPrinterQueues () |
static const QueueInfo * | GetQueueInfo (const OUString &rPrinterName, bool bStatusUpdate) |
static OUString | GetDefaultPrinterName () |
static OUString | GetPaperName (Paper ePaper) |
static void | updatePrinters () |
Checks the printer list and updates it necessary. More... | |
static void | PrintJob (const std::shared_ptr< vcl::PrinterController > &i_pController, const JobSetup &i_rInitSetup) |
Execute a print job. More... | |
static bool | PreparePrintJob (std::shared_ptr< vcl::PrinterController > i_pController, const JobSetup &i_rInitSetup) |
static bool | ExecutePrintJob (const std::shared_ptr< vcl::PrinterController > &i_pController) |
static void | FinishPrintJob (const std::shared_ptr< vcl::PrinterController > &i_pController) |
static void VCL_DLLPRIVATE | ImplPrintJob (const std::shared_ptr< vcl::PrinterController > &i_pController, const JobSetup &i_rInitSetup) |
Implementation detail of PrintJob being asynchronous. More... | |
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) |
Protected Member Functions | |
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... | |
void | ImplReleaseGraphics (bool bRelease=true) |
virtual void | ImplReleaseFonts () override |
virtual tools::Long | GetGradientStepCount (tools::Long nMinRect) override |
virtual bool | UsePolyPolygonForComplexGradient () override |
virtual void | ClipAndDrawGradientMetafile (const Gradient &rGradient, const tools::PolyPolygon &rPolyPoly) override |
bool | CanSubsampleBitmap () const 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... | |
virtual void | DrawDeviceMask (const Bitmap &rMask, const Color &rMaskColor, const Point &rDestPt, const Size &rDestSize, const Point &rSrcPtPixel, const Size &rSrcSizePixel) override |
bool | DrawTransformBitmapExDirect (const basegfx::B2DHomMatrix &aFullTransform, const BitmapEx &rBitmapEx, double fAlpha=1.0) override |
Transform and draw a bitmap directly. More... | |
bool | TransformAndReduceBitmapExToTargetRange (const basegfx::B2DHomMatrix &aFullTransform, basegfx::B2DRange &aVisibleRange, double &fMaximumArea) override |
Transform and reduce the area that needs to be drawn of the bitmap and return the new visible range and the maximum area. More... | |
void | DrawDeviceBitmapEx (const Point &rDestPt, const Size &rDestSize, const Point &rSrcPtPixel, const Size &rSrcSizePixel, BitmapEx &rBitmapEx) override |
virtual void | EmulateDrawTransparent (const tools::PolyPolygon &rPolyPoly, sal_uInt16 nTransparencePercent) override |
virtual void | SetFontOrientation (LogicalFontInstance *const pFontInstance) const override |
bool | shouldDrawWavePixelAsRect (tools::Long) const override |
void | SetWaveLineColors (Color const &rColor, tools::Long) override |
Size | GetWaveLineSize (tools::Long nLineWidth) 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 tools::Long | GetFontExtLeading () const |
virtual void | ImplClearFontData (bool bNewFontLists) |
virtual void | ImplRefreshFontData (bool bNewFontLists) |
void | ReleaseFontCache () |
void | ReleaseFontCollection () |
void | SetFontCollectionFromSVData () |
void | ResetNewFontCache () |
virtual bool | ImplNewFont () const |
virtual void | CopyDeviceArea (SalTwoRect &aPosAry, bool bWindowInvalidate) |
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 | InitClipRegion () |
virtual void | ClipToPaintRegion (tools::Rectangle &rDstRect) |
virtual void | DrawHatchLine_DrawLine (const Point &rStartPoint, const Point &rEndPoint) |
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 void | ImplInitMapModeObjects () |
OutputDevice (OutDevType eOutDevType) | |
virtual | ~OutputDevice () override |
Protected Member Functions inherited from VclReferenceBase | |
VclReferenceBase () | |
virtual | ~VclReferenceBase () |
virtual void | dispose () |
Private Member Functions | |
VCL_DLLPRIVATE void | ImplInitData () |
VCL_DLLPRIVATE void | ImplInit (SalPrinterQueueInfo *pInfo) |
VCL_DLLPRIVATE void | ImplInitDisplay () |
VCL_DLLPRIVATE void | ImplUpdatePageData () |
VCL_DLLPRIVATE void | ImplUpdateFontList () |
VCL_DLLPRIVATE void | ImplFindPaperFormatForUserSize (JobSetup &) |
VCL_DLLPRIVATE bool | StartJob (const OUString &rJobName, std::shared_ptr< vcl::PrinterController > const &) |
SAL_DLLPRIVATE void | ImplPrintTransparent (const Bitmap &rBmp, const Point &rDestPt, const Size &rDestSize, const Point &rSrcPtPixel, const Size &rSrcSizePixel) |
VCL_DLLPRIVATE void | EndJob () |
Printer (const Printer &rPrinter)=delete | |
Printer & | operator= (const Printer &rPrinter)=delete |
Static Private Member Functions | |
static VCL_DLLPRIVATE SalPrinterQueueInfo * | ImplGetQueueInfo (const OUString &rPrinterName, const OUString *pDriver) |
static VCL_DLLPRIVATE ErrCode | ImplSalPrinterErrorCodeToVCL (SalPrinterError nError) |
Private Attributes | |
SalInfoPrinter * | mpInfoPrinter |
std::unique_ptr< SalPrinter > | mpPrinter |
SalGraphics * | mpJobGraphics |
VclPtr< Printer > | mpPrev |
VclPtr< Printer > | mpNext |
VclPtr< VirtualDevice > | mpDisplayDev |
std::unique_ptr< vcl::printer::Options > | mpPrinterOptions |
OUString | maPrinterName |
OUString | maDriver |
OUString | maPrintFile |
JobSetup | maJobSetup |
Point | maPageOffset |
Size | maPaperSize |
ErrCode | mnError |
sal_uInt16 | mnPageQueueSize |
sal_uInt16 | mnCopyCount |
bool | mbDefPrinter |
bool | mbPrinting |
bool | mbJobActive |
bool | mbCollateCopy |
bool | mbPrintFile |
bool | mbInPrintPage |
bool | mbNewJobSetup |
bool | mbSinglePrintJobs |
Friends | |
class | ::OutputDevice |
Additional Inherited Members | |
Public Types inherited from OutputDevice | |
typedef std::vector< FontMappingUseItem > | FontMappingUseData |
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 |
|
privatedelete |
Printer::Printer | ( | ) |
Definition at line 829 of file print.cxx.
References GetDefaultPrinterName(), ImplGetQueueInfo(), ImplInit(), ImplInitData(), ImplInitDisplay(), IsDisplayPrinter(), and mbDefPrinter.
Printer::Printer | ( | const JobSetup & | rJobSetup | ) |
Definition at line 844 of file print.cxx.
References ImplJobSetup::GetDriver(), ImplJobSetup::GetPrinterName(), JobSetup::ImplGetConstData(), ImplGetQueueInfo(), ImplInit(), ImplInitData(), ImplInitDisplay(), maJobSetup, and SetJobSetup().
Printer::Printer | ( | const QueueInfo & | rQueueInfo | ) |
Definition at line 865 of file print.cxx.
References QueueInfo::GetDriver(), QueueInfo::GetPrinterName(), ImplGetQueueInfo(), ImplInit(), ImplInitData(), and ImplInitDisplay().
Printer::Printer | ( | const OUString & | rPrinterName | ) |
Definition at line 877 of file print.cxx.
References ImplGetQueueInfo(), ImplInit(), ImplInitData(), and ImplInitDisplay().
|
overridevirtual |
Definition at line 888 of file print.cxx.
References VclReferenceBase::disposeOnce().
|
overrideprotectedvirtual |
Acquire a graphics device that the output device uses to draw on.
There is an LRU of OutputDevices that is used to get the graphics. The actual creation of a SalGraphics instance is done via the SalFrame implementation.
However, the SalFrame instance will only return a valid SalGraphics instance if it is not in use or there wasn't one in the first place. When this happens, AcquireGraphics finds the least recently used OutputDevice in a different frame and "steals" it (releases it then starts using it).
If there are no frames to steal an OutputDevice's SalGraphics instance from then it blocks until the graphics is released.
Once it has acquired a graphics instance, then we add the OutputDevice to the LRU.
Implements OutputDevice.
Definition at line 466 of file print.cxx.
References SalInfoPrinter::AcquireGraphics(), DBG_TESTSOLARMUTEX, Enable, ImplGetSVData(), Invert, ImplSVData::maGDIData, OutputDevice::mbInitClipRegion, OutputDevice::mbInitFillColor, OutputDevice::mbInitFont, OutputDevice::mbInitLineColor, OutputDevice::mbInitTextColor, OutputDevice::meRasterOp, OutputDevice::mnAntialiasing, mpDisplayDev, ImplSVGDIData::mpFirstPrnGraphics, ImplSVGDIData::mpFirstVirGraphics, OutputDevice::mpGraphics, mpInfoPrinter, mpJobGraphics, ImplSVGDIData::mpLastPrnGraphics, ImplSVGDIData::mpLastVirGraphics, OutputDevice::mpNextGraphics, OutputDevice::mpPrevGraphics, VirtualDevice::mpVirDev, ReleaseGraphics(), OutputDevice::ReleaseGraphics(), SalGraphics::setAntiAlias(), SalGraphics::SetXORMode(), and Xor.
Referenced by ImplInit(), and ImplUpdatePageData().
|
inlineoverrideprotectedvirtual |
Reimplemented from OutputDevice.
|
overrideprotectedvirtual |
Reimplemented from OutputDevice.
Definition at line 1612 of file print.cxx.
References vcl::CLIPREGION, OutputDevice::DrawGradient(), tools::PolyPolygon::GetBoundRect(), OutputDevice::IntersectClipRegion(), OutputDevice::Pop(), and OutputDevice::Push().
|
overrideprotectedvirtual |
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.
|
overridevirtual |
Reimplemented from OutputDevice.
Definition at line 893 of file print.cxx.
References VclPtr< reference_type >::clear(), SalInstance::DestroyInfoPrinter(), OutputDevice::dispose(), VclPtr< reference_type >::disposeAndClear(), ImplGetSVData(), ImplReleaseGraphics(), IsJobActive(), IsPrinting(), ImplSVData::maGDIData, ImplSVData::mpDefInst, mpDisplayDev, ImplSVGDIData::mpFirstPrinter, OutputDevice::mpFontFaceCollection, OutputDevice::mpFontInstance, mpInfoPrinter, mpNext, mpPrev, mpPrinterOptions, OutputDevice::mxFontCache, and SAL_WARN_IF.
|
inlineoverridevirtual |
Reimplemented from OutputDevice.
Definition at line 147 of file print.hxx.
References COL_BLACK(), OutputDevice::DrawRect(), and OutputDevice::SetLineColor().
|
overrideprotectedvirtual |
Reimplemented from OutputDevice.
Definition at line 191 of file print.cxx.
References Bitmap::Blend(), COL_WHITE(), OutputDevice::DrawBitmap(), BitmapEx::GetAlphaMask(), BitmapEx::GetBitmap(), ImplPrintTransparent(), and BitmapEx::IsAlpha().
|
overrideprotectedvirtual |
Reimplemented from OutputDevice.
Definition at line 673 of file print.cxx.
References Point::AdjustX(), Point::AdjustY(), COL_BLACK(), Bitmap::Convert(), Bitmap::CreateRegion(), Bitmap::Crop(), OutputDevice::DrawRect(), vcl::FILLCOLOR, FRound(), tools::Rectangle::GetHeight(), Bitmap::getPixelFormat(), vcl::Region::GetRegionRectangles(), Bitmap::GetSizePixel(), tools::Rectangle::GetWidth(), Size::Height(), Horizontal, OutputDevice::InitFillColor(), OutputDevice::InitLineColor(), Bitmap::IsEmpty(), vcl::LINECOLOR, OutputDevice::LogicToPixel(), OutputDevice::mbMap, Bitmap::Mirror(), OutputDevice::mpMetaFile, N1BitThreshold, vcl::N8_BPP, NONE, tools::Rectangle::Normalize(), OutputDevice::Pop(), OutputDevice::Push(), rectangle(), OutputDevice::SetFillColor(), Size::setHeight(), OutputDevice::SetLineColor(), Size::setWidth(), Vertical, Size::Width(), Point::X(), and Point::Y().
void Printer::DrawGradientEx | ( | OutputDevice * | pOut, |
const tools::Rectangle & | rRect, | ||
const Gradient & | rGradient | ||
) |
Definition at line 29 of file print2.cxx.
References vcl::FILLCOLOR, Color::GetBlue(), Gradient::GetEndColor(), Gradient::GetEndIntensity(), Color::GetGreen(), GetPrinterOptions(), Color::GetRed(), Gradient::GetStartColor(), Gradient::GetStartIntensity(), Gradient::GetSteps(), vcl::LINECOLOR, pOut, Gradient::SetSteps(), and vcl::printer::Stripes.
Referenced by OutputDevice::RemoveTransparenciesFromMetaFile().
|
overridevirtual |
|
overrideprotectedvirtual |
Transform and draw a bitmap directly.
aFullTransform | The B2DHomMatrix used for the transformation |
rBitmapEx | Reference to the bitmap to be transformed and drawn |
Reimplemented from OutputDevice.
|
overrideprotectedvirtual |
Reimplemented from OutputDevice.
Definition at line 211 of file print.cxx.
References tools::Rectangle::Bottom(), vcl::CLIPREGION, OutputDevice::DrawRect(), OutputDevice::EnableMapMode(), FRound(), OutputDevice::GetFillColor(), tools::Rectangle::GetHeight(), tools::Rectangle::GetWidth(), OutputDevice::IntersectClipRegion(), tools::Rectangle::Left(), vcl::LINECOLOR, OutputDevice::LogicToPixel(), OutputDevice::mbMap, tools::Rectangle::Move(), OutputDevice::mpAlphaVDev, OutputDevice::mpMetaFile, OutputDevice::Pop(), OutputDevice::Push(), tools::Rectangle::Right(), OutputDevice::SetLineColor(), tools::Rectangle::Top(), tools::Rectangle::TopLeft(), and Size::Width().
|
private |
Definition at line 1509 of file print.cxx.
References IsJobActive(), OutputDevice::mbDevOutput, mbInPrintPage, mbJobActive, mbPrinting, mpPrinter, ReleaseGraphics(), and SAL_WARN_IF.
|
static |
Definition at line 555 of file print3.cxx.
References xController.
|
static |
Definition at line 565 of file print3.cxx.
References xController.
|
inlineoverridevirtual |
|
overridevirtual |
Reimplemented from OutputDevice.
Definition at line 308 of file print.cxx.
References GetPageOffsetPixel(), and GetPaperSizePixel().
Reimplemented from OutputDevice.
Definition at line 1632 of file print.cxx.
References OutputDevice::GetBitmap(), and SAL_WARN.
|
overridevirtual |
Reimplemented from OutputDevice.
Definition at line 930 of file print.cxx.
References Size::Height(), OutputDevice::LogicToPixel(), Size::setHeight(), Size::setWidth(), and Size::Width().
sal_uInt32 Printer::GetCapabilities | ( | PrinterCapType | nType | ) | const |
Definition at line 943 of file print.cxx.
References SalInfoPrinter::GetCapabilities(), JobSetup::ImplGetConstData(), IsDisplayPrinter(), maJobSetup, mpInfoPrinter, and nType.
Referenced by HasSupport(), and queryFile().
|
static |
Definition at line 426 of file print.cxx.
References SalInstance::GetDefaultPrinter(), ImplGetSVData(), and ImplSVData::mpDefInst.
Referenced by IMPL_LINK(), ImplGetQueueInfo(), vcl::PrintDialog::PrintDialog(), Printer(), vcl::PrintDialog::storeToSettings(), and vcl::PrintDialog::updatePrinterText().
|
overridevirtual |
Reimplemented from OutputDevice.
Definition at line 1639 of file print.cxx.
References OutputDevice::GetCommonDeviceInfo(), OutputDevice::GetOutputSizePixel(), GetPageOffset(), GetPaperSizePixel(), Size::Height(), Size::Width(), Point::X(), and Point::Y().
|
inline |
Definition at line 195 of file print.hxx.
Referenced by SetPrinterProps().
DuplexMode Printer::GetDuplexMode | ( | ) | const |
Definition at line 1450 of file print.cxx.
References ImplJobSetup::GetDuplexMode(), JobSetup::ImplGetConstData(), and maJobSetup.
|
overrideprotectedvirtual |
Reimplemented from OutputDevice.
|
inline |
Definition at line 204 of file print.hxx.
Referenced by SetPrinterProps().
|
inlineoverridevirtual |
Reimplemented from OutputDevice.
Definition at line 143 of file print.hxx.
References COL_LIGHTGRAY().
|
inline |
Definition at line 194 of file print.hxx.
Referenced by vcl::PrinterController::setPrinter(), and SetPrinterProps().
Orientation Printer::GetOrientation | ( | ) | const |
Definition at line 1146 of file print.cxx.
References ImplJobSetup::GetOrientation(), JobSetup::ImplGetConstData(), and maJobSetup.
Referenced by vcl::PrinterController::setPrinter(), and vcl::PrinterController::setupPrinter().
|
inline |
Definition at line 253 of file print.hxx.
References OutputDevice::PixelToLogic().
Referenced by GetDeviceInfo().
|
inline |
Definition at line 252 of file print.hxx.
Referenced by GetBackgroundComponentBounds(), vcl::PrintDialog::preparePreview(), and OutputDevice::RemoveTransparenciesFromMetaFile().
Paper Printer::GetPaper | ( | ) | const |
Definition at line 1455 of file print.cxx.
References ImplJobSetup::GetPaperFormat(), JobSetup::ImplGetConstData(), and maJobSetup.
Referenced by IMPL_LINK(), vcl::PrintDialog::preparePreview(), and vcl::PrintDialog::setPaperSizes().
sal_uInt16 Printer::GetPaperBin | ( | ) | const |
Definition at line 1187 of file print.cxx.
References ImplJobSetup::GetPaperBin(), JobSetup::ImplGetConstData(), and maJobSetup.
Referenced by vcl::PrinterController::setupPrinter().
sal_uInt16 Printer::GetPaperBinCount | ( | ) | const |
Definition at line 1465 of file print.cxx.
References SalInfoPrinter::GetPaperBinCount(), JobSetup::ImplGetConstData(), IsDisplayPrinter(), maJobSetup, and mpInfoPrinter.
Referenced by GetPaperBinName(), and SetPaperBin().
OUString Printer::GetPaperBinName | ( | sal_uInt16 | nPaperBin | ) | const |
Definition at line 1473 of file print.cxx.
References GetPaperBinCount(), SalInfoPrinter::GetPaperBinName(), JobSetup::ImplGetConstData(), IsDisplayPrinter(), maJobSetup, and mpInfoPrinter.
Definition at line 1402 of file print.cxx.
References JobSetup::ImplGetConstData(), SalInfoPrinter::InitPaperFormats(), SalInfoPrinter::m_aPaperFormats, SalInfoPrinter::m_bPapersInit, maJobSetup, o3tl::make_unsigned(), and mpInfoPrinter.
Referenced by GetPaperSize(), IMPL_LINK(), ImplFindPaperFormatForUserSize(), and vcl::PrintDialog::setPaperSizes().
int Printer::GetPaperInfoCount | ( | ) | const |
Definition at line 1362 of file print.cxx.
References JobSetup::ImplGetConstData(), SalInfoPrinter::InitPaperFormats(), SalInfoPrinter::m_aPaperFormats, SalInfoPrinter::m_bPapersInit, maJobSetup, and mpInfoPrinter.
Referenced by IMPL_LINK(), ImplFindPaperFormatForUserSize(), and vcl::PrintDialog::setPaperSizes().
|
static |
Definition at line 1371 of file print.cxx.
References i, ImplGetSVData(), ImplSVData::maPaperNames, PAPER_10x11, PAPER_10x14, PAPER_12x11, PAPER_15x11, PAPER_16K_195x270, PAPER_16K_197x273, PAPER_9x11, PAPER_A0, PAPER_A1, PAPER_A10, PAPER_A2, PAPER_A3, PAPER_A4, PAPER_A4_PLUS, PAPER_A5, PAPER_A6, PAPER_A7, PAPER_A8, PAPER_A9, PAPER_A_PLUS, PAPER_ARCHA, PAPER_ARCHB, PAPER_ARCHC, PAPER_ARCHD, PAPER_ARCHE, PAPER_B0_ISO, PAPER_B10_ISO, PAPER_B1_ISO, PAPER_B2_ISO, PAPER_B3_ISO, PAPER_B4_ISO, PAPER_B4_JIS, PAPER_B5_ISO, PAPER_B5_JIS, PAPER_B6_ISO, PAPER_B6_JIS, PAPER_B7_ISO, PAPER_B8_ISO, PAPER_B9_ISO, PAPER_B_PLUS, PAPER_C, PAPER_D, PAPER_DOUBLEPOSTCARD_JP, PAPER_E, PAPER_ENV_10, PAPER_ENV_11, PAPER_ENV_12, PAPER_ENV_14, PAPER_ENV_9, PAPER_ENV_C2, PAPER_ENV_C3, PAPER_ENV_C4, PAPER_ENV_C5, PAPER_ENV_C6, PAPER_ENV_C65, PAPER_ENV_C7, PAPER_ENV_C8, PAPER_ENV_DL, PAPER_ENV_INVITE, PAPER_ENV_ITALY, PAPER_ENV_MONARCH, PAPER_ENV_PERSONAL, PAPER_EXECUTIVE, PAPER_FANFOLD_DE, PAPER_FANFOLD_LEGAL_DE, PAPER_FANFOLD_US, PAPER_KAI16, PAPER_KAI32, PAPER_KAI32BIG, PAPER_LEDGER, PAPER_LEGAL, PAPER_LETTER, PAPER_LETTER_PLUS, PAPER_ONSCREENSHOW_16_10, PAPER_ONSCREENSHOW_16_9, PAPER_ONSCREENSHOW_4_3, PAPER_POSTCARD_JP, PAPER_QUARTO, PAPER_SCREEN_16_10, PAPER_SCREEN_16_9, PAPER_SCREEN_4_3, PAPER_SLIDE_DIA, PAPER_STATEMENT, PAPER_TABLOID, PAPER_USER, PAPER_WIDESCREEN, SAL_N_ELEMENTS, and VclResId().
Referenced by vcl::PrintDialog::preparePreview(), and vcl::PrintDialog::setPaperSizes().
|
inline |
Definition at line 250 of file print.hxx.
References OutputDevice::PixelToLogic().
Referenced by vcl::PrintDialog::setPaperSizes(), vcl::PrinterController::setPrinter(), and vcl::PrinterController::setupPrinter().
Definition at line 1413 of file print.cxx.
References PaperInfo::getHeight(), GetPaperInfo(), PaperInfo::getWidth(), and OutputDevice::PixelToLogic().
|
inline |
Definition at line 249 of file print.hxx.
Referenced by GetBackgroundComponentBounds(), GetDeviceInfo(), vcl::PrintDialog::preparePreview(), and OutputDevice::RemoveTransparenciesFromMetaFile().
|
inline |
Definition at line 221 of file print.hxx.
Referenced by DrawGradientEx(), and vcl::PrintDialog::preparePreview().
|
static |
Definition at line 387 of file print.cxx.
References ImplGetSVData(), ImplInitPrnQueueList(), ImplSVData::maGDIData, and ImplSVGDIData::mpPrinterQueueList.
Referenced by vcl::PrintDialog::PrintDialog().
bool Printer::GetPrinterSettingsPreferred | ( | ) | const |
Definition at line 1192 of file print.cxx.
References ImplJobSetup::GetPapersizeFromSetup(), JobSetup::ImplGetConstData(), and maJobSetup.
Referenced by vcl::PrinterController::setupPrinter().
|
static |
Definition at line 396 of file print.cxx.
References SalInstance::GetPrinterQueueState(), ImplGetSVData(), ImplInitPrnQueueList(), ImplSVData::maGDIData, ImplSVData::mpDefInst, ImplSVGDIData::mpPrinterQueueList, ImplPrnQueueData::mpQueueInfo, and ImplPrnQueueData::mpSalQueueInfo.
Referenced by vcl::PrintDialog::updatePrinterText().
Size Printer::GetSizeOfPaper | ( | ) | const |
Definition at line 1460 of file print.cxx.
References ImplJobSetup::GetPaperHeight(), ImplJobSetup::GetPaperWidth(), JobSetup::ImplGetConstData(), and maJobSetup.
Referenced by vcl::PrintDialog::setPaperSizes().
|
overrideprotectedvirtual |
Reimplemented from OutputDevice.
Definition at line 1666 of file print.cxx.
References OutputDevice::mnDPIX, OutputDevice::mnDPIY, and nLineWidth.
|
overridevirtual |
Reimplemented from OutputDevice.
bool Printer::HasSupport | ( | PrinterSupport | eFeature | ) | const |
Definition at line 954 of file print.cxx.
References CollateCopies, CollateCopy, GetCapabilities(), SetOrientation, SetPaper, SetPaperSize, SetupDialog, and SupportDialog.
Referenced by ImplFindPaperFormatForUserSize().
void Printer::ImplEndPage | ( | ) |
Definition at line 1552 of file print.cxx.
References IsJobActive(), OutputDevice::mbDevOutput, mbInPrintPage, mbNewJobSetup, mpJobGraphics, mpPrinter, and ReleaseGraphics().
|
private |
Definition at line 1213 of file print.cxx.
References PaperInfo::getHeight(), SalInfoPrinter::GetLandscapeAngle(), ImplJobSetup::GetPaperFormat(), ImplJobSetup::GetPaperHeight(), GetPaperInfo(), GetPaperInfoCount(), ImplJobSetup::GetPaperWidth(), PaperInfo::getWidth(), HasSupport(), i, JobSetup::ImplGetConstData(), JobSetup::ImplGetData(), Landscape, maJobSetup, mpInfoPrinter, PAPER_USER, Portrait, SetOrientation, ImplJobSetup::SetOrientation(), ImplJobSetup::SetPaperFormat(), and PaperInfo::sloppyEqual().
Referenced by SetPaper(), and SetPaperSizeUser().
|
staticprivate |
Definition at line 759 of file print.cxx.
References ImplPrnQueueList::Get(), GetDefaultPrinterName(), ImplGetSVData(), ImplInitPrnQueueList(), ImplPrnQueueList::m_aQueueInfos, ImplSVData::maGDIData, ImplSVGDIData::mpPrinterQueueList, and ImplPrnQueueData::mpSalQueueInfo.
Referenced by Printer(), and SetPrinterProps().
|
private |
Definition at line 606 of file print.cxx.
References AcquireGraphics(), SalInstance::CreateInfoPrinter(), SalGraphics::GetDevFontList(), ImplJobSetup::GetDriver(), ImplJobSetup::GetDriverData(), ImplJobSetup::GetPrinterName(), SalInstance::GetPrinterQueueState(), JobSetup::ImplGetData(), ImplGetSVData(), ImplInitDisplay(), ImplUpdateJobSetupPaper(), ImplUpdatePageData(), maDriver, SalPrinterQueueInfo::maDriver, maJobSetup, maPrinterName, SalPrinterQueueInfo::maPrinterName, ImplSVData::mpDefInst, OutputDevice::mpGraphics, mpInfoPrinter, mpJobGraphics, mpPrinter, OutputDevice::mxFontCache, OutputDevice::mxFontCollection, ImplJobSetup::SetDriver(), ImplJobSetup::SetDriverData(), ImplJobSetup::SetDriverDataLen(), and ImplJobSetup::SetPrinterName().
Referenced by Printer(), and SetPrinterProps().
|
private |
Definition at line 438 of file print.cxx.
References ERRCODE_NONE, ImplGetSVData(), ImplSVData::maGDIData, mbCollateCopy, mbDefPrinter, OutputDevice::mbDevOutput, mbInPrintPage, mbJobActive, mbNewJobSetup, mbPrintFile, mbPrinting, mbSinglePrintJobs, mnCopyCount, mnError, mnPageQueueSize, mpDisplayDev, ImplSVGDIData::mpFirstPrinter, mpInfoPrinter, mpNext, mpPrev, mpPrinter, and mpPrinterOptions.
Referenced by Printer().
|
private |
Definition at line 658 of file print.cxx.
References VclPtr< reference_type >::Create(), ImplGetSVData(), ImplSVData::maGDIData, OutputDevice::mnDPIX, OutputDevice::mnDPIY, mpDisplayDev, mpInfoPrinter, mpJobGraphics, mpPrinter, OutputDevice::mxFontCache, OutputDevice::mxFontCollection, ImplSVGDIData::mxScreenFontCache, and ImplSVGDIData::mxScreenFontList.
Referenced by ImplInit(), Printer(), and SetPrinterProps().
|
static |
Implementation detail of PrintJob being asynchronous.
not exported, not usable outside vcl
Definition at line 571 of file print3.cxx.
References xController.
Referenced by IMPL_LINK_NOARG().
|
private |
Definition at line 97 of file print.cxx.
References Point::AdjustX(), Point::AdjustY(), Bitmap::Crop(), OutputDevice::DrawBitmap(), AlphaMask::Erase(), FRound(), tools::Rectangle::GetHeight(), tools::Rectangle::GetSize(), Bitmap::GetSizePixel(), tools::Rectangle::GetWidth(), Size::Height(), Horizontal, Bitmap::IsEmpty(), OutputDevice::LogicToPixel(), OutputDevice::mbMap, Bitmap::Mirror(), NONE, tools::Rectangle::Normalize(), rectangle(), Size::setHeight(), Size::setWidth(), Vertical, Size::Width(), Point::X(), and Point::Y().
Referenced by DrawDeviceBitmapEx().
|
overrideprotectedvirtual |
Reimplemented from OutputDevice.
Definition at line 538 of file print.cxx.
References OutputDevice::mbInitFont, OutputDevice::mbNewFont, OutputDevice::mpFontFaceCollection, OutputDevice::mpFontInstance, OutputDevice::mpGraphics, and SalGraphics::ReleaseFonts().
Referenced by ImplReleaseGraphics().
|
protected |
Definition at line 548 of file print.cxx.
References DBG_TESTSOLARMUTEX, VclPtr< reference_type >::get(), ImplGetSVData(), ImplReleaseFonts(), ImplSVData::maGDIData, mpDisplayDev, ImplSVGDIData::mpFirstPrnGraphics, ImplSVGDIData::mpFirstVirGraphics, OutputDevice::mpGraphics, mpInfoPrinter, mpJobGraphics, ImplSVGDIData::mpLastPrnGraphics, ImplSVGDIData::mpLastVirGraphics, OutputDevice::mpNextGraphics, OutputDevice::mpPrevGraphics, VirtualDevice::mpVirDev, and SalInfoPrinter::ReleaseGraphics().
Referenced by dispose(), and ReleaseGraphics().
|
staticprivate |
Definition at line 1490 of file print.cxx.
References Abort, ERRCODE_NONE, NONE, PRINTER_ABORT, and PRINTER_GENERALERROR.
void Printer::ImplStartPage | ( | ) |
Definition at line 1530 of file print.cxx.
References JobSetup::ImplGetData(), IsJobActive(), maJobSetup, OutputDevice::mbDevOutput, mbInPrintPage, mbNewJobSetup, mpJobGraphics, mpPrinter, and ReleaseGraphics().
|
private |
Definition at line 816 of file print.cxx.
References OutputDevice::ImplUpdateFontData().
Referenced by SetDuplexMode(), SetJobSetup(), SetOrientation(), SetPaper(), SetPaperBin(), SetPaperSizeUser(), and Setup().
|
private |
Definition at line 803 of file print.cxx.
References AcquireGraphics(), SalInfoPrinter::GetPageInfo(), SalGraphics::GetResolution(), JobSetup::ImplGetConstData(), maJobSetup, maPageOffset, maPaperSize, OutputDevice::mnDPIX, OutputDevice::mnDPIY, OutputDevice::mnOutHeight, OutputDevice::mnOutWidth, OutputDevice::mpGraphics, and mpInfoPrinter.
Referenced by ImplInit(), SetDuplexMode(), SetJobSetup(), SetOrientation(), SetPaper(), SetPaperBin(), SetPaperSizeUser(), and Setup().
|
inline |
Definition at line 197 of file print.hxx.
Referenced by GetCapabilities(), GetPaperBinCount(), GetPaperBinName(), Printer(), SetDuplexMode(), SetJobSetup(), SetOrientation(), SetPaper(), SetPaperBin(), SetPaperSizeUser(), SetPrinterProps(), and Setup().
|
inline |
Definition at line 263 of file print.hxx.
Referenced by dispose(), EndJob(), ImplEndPage(), ImplStartPage(), SetPrinterProps(), and Setup().
|
inline |
Definition at line 261 of file print.hxx.
Referenced by dispose(), SetPrinterProps(), and Setup().
|
inlineoverridevirtual |
Reimplemented from OutputDevice.
|
static |
Definition at line 341 of file print3.cxx.
References aBuf, vcl::PrinterController::MultiPageSetup::aPaperSize, vcl::PrinterController::MultiPageSetup::bDrawBorder, Application::CreateBuilder(), ExternalDialog, JobSetup::GetPrinterName(), vcl::PrintDialog::isPrintToFile(), vcl::PrintDialog::isSingleJobs(), vcl::PrinterController::MultiPageSetup::nBottomMargin, vcl::PrinterController::MultiPageSetup::nColumns, vcl::PrinterController::MultiPageSetup::nHorizontalSpacing, vcl::PrinterController::MultiPageSetup::nLeftMargin, vcl::PrinterController::MultiPageSetup::nOrder, vcl::PrinterController::MultiPageSetup::nRightMargin, vcl::PrinterController::MultiPageSetup::nRows, vcl::PrinterController::MultiPageSetup::nTopMargin, nValue, vcl::PrinterController::MultiPageSetup::nVerticalSpacing, queryFile(), weld::DialogController::run(), Size::setHeight(), Size::setWidth(), updatePrinters(), and xController.
|
static |
Execute a print job.
starts a print job asynchronously that is will return
Definition at line 324 of file print3.cxx.
References LINK, and Application::PostUserEvent().
|
overrideprotectedvirtual |
Release the graphics device, and remove it from the graphics device list.
bRelease | Determines whether to release the fonts of the physically released graphics device. |
Implements OutputDevice.
Definition at line 601 of file print.cxx.
References ImplReleaseGraphics().
Referenced by AcquireGraphics(), EndJob(), ImplEndPage(), ImplStartPage(), SetDuplexMode(), SetJobSetup(), SetOrientation(), SetPaper(), SetPaperBin(), SetPaperSizeUser(), SetPrinterProps(), and Setup().
void Printer::SetCopyCount | ( | sal_uInt16 | nCopy, |
bool | bCollate | ||
) |
Definition at line 1484 of file print.cxx.
References mbCollateCopy, and mnCopyCount.
void Printer::SetDuplexMode | ( | DuplexMode | eDuplex | ) |
Definition at line 1419 of file print.cxx.
References DUPLEXMODE, ImplJobSetup::GetDuplexMode(), JobSetup::ImplGetConstData(), JobSetup::ImplGetData(), ImplUpdateFontList(), ImplUpdateJobSetupPaper(), ImplUpdatePageData(), IsDisplayPrinter(), maJobSetup, mbInPrintPage, mbNewJobSetup, mpInfoPrinter, ReleaseGraphics(), SalInfoPrinter::SetData(), and ImplJobSetup::SetDuplexMode().
|
overrideprotectedvirtual |
Reimplemented from OutputDevice.
Definition at line 1622 of file print.cxx.
References LogicalFontInstance::mnOrientation, and LogicalFontInstance::mxFontMetric.
bool Printer::SetJobSetup | ( | const JobSetup & | rSetup | ) |
Definition at line 973 of file print.cxx.
References JobSetup::ImplGetData(), ImplUpdateFontList(), ImplUpdateJobSetupPaper(), ImplUpdatePageData(), IsDisplayPrinter(), maJobSetup, mbInPrintPage, mbNewJobSetup, mpInfoPrinter, ReleaseGraphics(), and SalInfoPrinter::SetPrinterData().
Referenced by Printer(), and SetPrinterProps().
|
inlineoverridevirtual |
Reimplemented from OutputDevice.
Definition at line 187 of file print.hxx.
References OutputDevice::SetMapMode().
bool Printer::SetOrientation | ( | Orientation | eOrient | ) |
Definition at line 1110 of file print.cxx.
References ImplJobSetup::GetOrientation(), JobSetup::ImplGetConstData(), JobSetup::ImplGetData(), ImplUpdateFontList(), ImplUpdateJobSetupPaper(), ImplUpdatePageData(), IsDisplayPrinter(), maJobSetup, mbInPrintPage, mbNewJobSetup, mpInfoPrinter, ORIENTATION, ReleaseGraphics(), SalInfoPrinter::SetData(), and ImplJobSetup::SetOrientation().
Referenced by vcl::PrintDialog::setPaperOrientation(), and vcl::PrinterController::setupPrinter().
void Printer::SetPaper | ( | Paper | ePaper | ) |
Definition at line 1264 of file print.cxx.
References PaperInfo::getHeight(), ImplJobSetup::GetPaperFormat(), PaperInfo::getWidth(), ImplFindPaperFormatForUserSize(), JobSetup::ImplGetConstData(), JobSetup::ImplGetData(), ImplUpdateFontList(), ImplUpdateJobSetupPaper(), ImplUpdatePageData(), IsDisplayPrinter(), maJobSetup, mbInPrintPage, mbNewJobSetup, mpInfoPrinter, ORIENTATION, PAPER_USER, PAPERSIZE, ReleaseGraphics(), SalInfoPrinter::SetData(), ImplJobSetup::SetPaperFormat(), ImplJobSetup::SetPaperHeight(), and ImplJobSetup::SetPaperWidth().
Referenced by IMPL_LINK().
bool Printer::SetPaperBin | ( | sal_uInt16 | nPaperBin | ) |
Definition at line 1151 of file print.cxx.
References ImplJobSetup::GetPaperBin(), GetPaperBinCount(), JobSetup::ImplGetConstData(), JobSetup::ImplGetData(), ImplUpdateFontList(), ImplUpdateJobSetupPaper(), ImplUpdatePageData(), IsDisplayPrinter(), maJobSetup, mbInPrintPage, mbNewJobSetup, mpInfoPrinter, PAPERBIN, ReleaseGraphics(), SalInfoPrinter::SetData(), and ImplJobSetup::SetPaperBin().
bool Printer::SetPaperSizeUser | ( | const Size & | rSize | ) |
Definition at line 1303 of file print.cxx.
References ImplJobSetup::GetPaperFormat(), ImplJobSetup::GetPaperHeight(), ImplJobSetup::GetPaperWidth(), Size::Height(), ImplFindPaperFormatForUserSize(), JobSetup::ImplGetConstData(), JobSetup::ImplGetData(), ImplUpdateFontList(), ImplUpdateJobSetupPaper(), ImplUpdatePageData(), IsDisplayPrinter(), OutputDevice::LogicToPixel(), maJobSetup, mbInPrintPage, mbNewJobSetup, mpInfoPrinter, ORIENTATION, PAPER_USER, PAPERSIZE, OutputDevice::PixelToLogic(), Portrait, ReleaseGraphics(), SalInfoPrinter::SetData(), ImplJobSetup::SetOrientation(), ImplJobSetup::SetPaperFormat(), ImplJobSetup::SetPaperHeight(), ImplJobSetup::SetPaperWidth(), and Size::Width().
Referenced by IMPL_LINK(), and vcl::PrinterController::setupPrinter().
void Printer::SetPrinterOptions | ( | const vcl::printer::Options & | rOptions | ) |
SetPrinterOptions is used internally only now.
in earlier times it was used only to set the options loaded directly from the configuration in SfxPrinter::InitJob, this is now handled internally should the need arise to set the printer options outside vcl, also a method would have to be devised to not override these again internally
Definition at line 315 of file print.cxx.
References mpPrinterOptions.
bool Printer::SetPrinterProps | ( | const Printer * | pPrinter | ) |
Definition at line 1034 of file print.cxx.
References SalInstance::DestroyInfoPrinter(), VclPtr< reference_type >::disposeAndClear(), GetDriverName(), GetJobSetup(), GetName(), ImplGetQueueInfo(), ImplGetSVData(), ImplInit(), ImplInitDisplay(), IsDisplayPrinter(), IsJobActive(), IsPrinting(), maPrintFile, mbCollateCopy, mbDefPrinter, OutputDevice::mbInitFont, OutputDevice::mbNewFont, mbPrintFile, mnCopyCount, mnPageQueueSize, ImplSVData::mpDefInst, mpDisplayDev, OutputDevice::mpFontFaceCollection, OutputDevice::mpFontInstance, mpInfoPrinter, mpPrinterOptions, OutputDevice::mxFontCache, OutputDevice::mxFontCollection, ReleaseGraphics(), and SetJobSetup().
void Printer::SetPrinterSettingsPreferred | ( | bool | bPaperSizeFromSetup | ) |
Definition at line 1199 of file print.cxx.
References ImplJobSetup::GetPapersizeFromSetup(), JobSetup::ImplGetConstData(), JobSetup::ImplGetData(), maJobSetup, mbNewJobSetup, and ImplJobSetup::SetPapersizeFromSetup().
|
inline |
|
overridevirtual |
Reimplemented from OutputDevice.
Definition at line 1673 of file print.cxx.
References COL_BLACK(), and OutputDevice::SetTextColor().
bool Printer::Setup | ( | weld::Window * | pWindow, |
PrinterSetupMode | eMode = PrinterSetupMode::DocumentGlobal |
||
) |
Definition at line 994 of file print.cxx.
References eMode, vcl::Window::GetFrameWeld(), JobSetup::ImplGetData(), ImplGetDefaultWindow(), ImplGetSVData(), ImplUpdateFontList(), ImplUpdateJobSetupPaper(), ImplUpdatePageData(), IsDisplayPrinter(), IsJobActive(), IsPrinting(), ImplSVData::maAppData, maJobSetup, mbNewJobSetup, ImplSVAppData::mnModalMode, mpInfoPrinter, nImplSysDialog, ReleaseGraphics(), ImplJobSetup::SetPrinterSetupMode(), and SalInfoPrinter::Setup().
Referenced by vcl::PrinterController::setupPrinter().
|
overrideprotectedvirtual |
Reimplemented from OutputDevice.
Definition at line 1654 of file print.cxx.
References OutputDevice::mbInitFillColor, OutputDevice::mbInitLineColor, OutputDevice::mbLineColor, OutputDevice::mpGraphics, SalGraphics::SetFillColor(), and SalGraphics::SetLineColor().
|
inlineoverrideprotectedvirtual |
Reimplemented from OutputDevice.
|
private |
Definition at line 581 of file print3.cxx.
References CollateCopies, Copies, SalInstance::CreatePrinter(), ERRCODE_NONE, vcl::SettingsConfigItem::get(), Application::GetDisplayName(), GetName(), ImplGetSVData(), ImplSVData::mpDefInst, PRINTER_ABORT, PRINTER_GENERALERROR, vcl::SettingsConfigItem::setValue(), and UsePullModel.
|
overrideprotectedvirtual |
Transform and reduce the area that needs to be drawn of the bitmap and return the new visible range and the maximum area.
aFullTransform | B2DHomMatrix used for transformation |
aVisibleRange | The new visible area of the bitmap |
fMaximumArea | The maximum area of the bitmap |
Reimplemented from OutputDevice.
|
static |
Checks the printer list and updates it necessary.
sends a DataChanged event of type DataChangedEventType::PRINTER if the printer list changed
Definition at line 1570 of file print.cxx.
References GetpApp(), SalInstance::GetPrinterQueueInfo(), i, Application::ImplCallEventListenersApplicationDataChanged(), ImplDeletePrnQueueList(), ImplGetSVData(), ImplPrnQueueList::m_aQueueInfos, ImplSVData::maGDIData, ImplSVData::mpDefInst, ImplSVGDIData::mpPrinterQueueList, ImplPrnQueueData::mpSalQueueInfo, Application::NotifyAllWindows(), and PRINTER.
Referenced by PreparePrintJob(), and vcl::PrintDialog::PrintDialog().
|
overrideprotectedvirtual |
Implements OutputDevice.
|
friend |
|
private |
Definition at line 78 of file print.hxx.
Referenced by ImplInit().
|
private |
Definition at line 80 of file print.hxx.
Referenced by GetCapabilities(), GetDuplexMode(), GetOrientation(), GetPaper(), GetPaperBin(), GetPaperBinCount(), GetPaperBinName(), GetPaperInfo(), GetPaperInfoCount(), GetPrinterSettingsPreferred(), GetSizeOfPaper(), ImplFindPaperFormatForUserSize(), ImplInit(), ImplStartPage(), ImplUpdatePageData(), Printer(), SetDuplexMode(), SetJobSetup(), SetOrientation(), SetPaper(), SetPaperBin(), SetPaperSizeUser(), SetPrinterSettingsPreferred(), and Setup().
|
private |
Definition at line 81 of file print.hxx.
Referenced by ImplUpdatePageData().
|
private |
Definition at line 82 of file print.hxx.
Referenced by ImplUpdatePageData().
|
private |
Definition at line 77 of file print.hxx.
Referenced by ImplInit().
|
private |
Definition at line 79 of file print.hxx.
Referenced by SetPrinterProps().
|
private |
Definition at line 89 of file print.hxx.
Referenced by ImplInitData(), SetCopyCount(), and SetPrinterProps().
|
private |
Definition at line 86 of file print.hxx.
Referenced by ImplInitData(), Printer(), and SetPrinterProps().
|
private |
Definition at line 91 of file print.hxx.
Referenced by EndJob(), ImplEndPage(), ImplInitData(), ImplStartPage(), SetDuplexMode(), SetJobSetup(), SetOrientation(), SetPaper(), SetPaperBin(), and SetPaperSizeUser().
|
private |
Definition at line 88 of file print.hxx.
Referenced by EndJob(), and ImplInitData().
|
private |
Definition at line 92 of file print.hxx.
Referenced by ImplEndPage(), ImplInitData(), ImplStartPage(), SetDuplexMode(), SetJobSetup(), SetOrientation(), SetPaper(), SetPaperBin(), SetPaperSizeUser(), SetPrinterSettingsPreferred(), and Setup().
|
private |
Definition at line 90 of file print.hxx.
Referenced by ImplInitData(), and SetPrinterProps().
|
private |
Definition at line 87 of file print.hxx.
Referenced by EndJob(), and ImplInitData().
|
private |
Definition at line 93 of file print.hxx.
Referenced by ImplInitData().
|
private |
Definition at line 85 of file print.hxx.
Referenced by ImplInitData(), SetCopyCount(), and SetPrinterProps().
|
private |
Definition at line 83 of file print.hxx.
Referenced by ImplInitData().
|
private |
Definition at line 84 of file print.hxx.
Referenced by ImplInitData(), and SetPrinterProps().
|
private |
Definition at line 75 of file print.hxx.
Referenced by AcquireGraphics(), dispose(), ImplInitData(), ImplInitDisplay(), ImplReleaseGraphics(), and SetPrinterProps().
|
private |
Definition at line 70 of file print.hxx.
Referenced by AcquireGraphics(), dispose(), GetCapabilities(), GetPaperBinCount(), GetPaperBinName(), GetPaperInfo(), GetPaperInfoCount(), ImplFindPaperFormatForUserSize(), ImplInit(), ImplInitData(), ImplInitDisplay(), ImplReleaseGraphics(), ImplUpdatePageData(), SetDuplexMode(), SetJobSetup(), SetOrientation(), SetPaper(), SetPaperBin(), SetPaperSizeUser(), SetPrinterProps(), and Setup().
|
private |
Definition at line 72 of file print.hxx.
Referenced by AcquireGraphics(), ImplEndPage(), ImplInit(), ImplInitDisplay(), ImplReleaseGraphics(), and ImplStartPage().
Definition at line 74 of file print.hxx.
Referenced by dispose(), ImplInitData(), and OutputDevice::ImplUpdateFontDataForAllFrames().
Definition at line 73 of file print.hxx.
Referenced by dispose(), and ImplInitData().
|
private |
Definition at line 71 of file print.hxx.
Referenced by EndJob(), ImplEndPage(), ImplInit(), ImplInitData(), ImplInitDisplay(), and ImplStartPage().
|
private |
Definition at line 76 of file print.hxx.
Referenced by dispose(), ImplInitData(), SetPrinterOptions(), and SetPrinterProps().