Inkscape
Vector Graphics Editor
Inkscape::Extension::Internal::PrintMetafile Class Referenceabstract

#include <metafile-print.h>

Inheritance diagram for Inkscape::Extension::Internal::PrintMetafile:
Inkscape::Extension::Implementation::Implementation Inkscape::Extension::Internal::PrintEmf Inkscape::Extension::Internal::PrintWmf

Classes

struct  GRADVALUES
 

Public Member Functions

 PrintMetafile ()=default
 
 ~PrintMetafile () override
 
bool textToPath (Inkscape::Extension::Print *ext) override
 Tell the printing engine whether text should be text or path. More...
 
unsigned int bind (Inkscape::Extension::Print *module, Geom::Affine const &transform, float opacity) override
 
unsigned int release (Inkscape::Extension::Print *module) override
 
- Public Member Functions inherited from Inkscape::Extension::Implementation::Implementation
 Implementation ()=default
 
virtual ~Implementation ()=default
 
virtual bool load (Inkscape::Extension::Extension *)
 
virtual void unload (Inkscape::Extension::Extension *)
 
virtual ImplementationDocumentCachenewDocCache (Inkscape::Extension::Extension *, SPDesktop *)
 Create a new document cache object. More...
 
virtual bool check (Inkscape::Extension::Extension *)
 Verify any dependencies. More...
 
virtual bool cancelProcessing ()
 
virtual void commitDocument ()
 
virtual SPDocumentnew_from_template (Inkscape::Extension::Template *)
 
virtual void get_template_presets (const Template *tmod, TemplatePresets &presets) const
 
virtual void resize_to_template (Inkscape::Extension::Template *tmod, SPDocument *doc, SPPage *page)
 
virtual bool match_template_size (Inkscape::Extension::Template *tmod, double width, double height)
 
virtual SPDocumentopen (Inkscape::Extension::Input *, gchar const *)
 
virtual void save (Inkscape::Extension::Output *, SPDocument *, gchar const *)
 Find out information about the file. More...
 
virtual void export_raster (Inkscape::Extension::Output *, const SPDocument *, std::string const &, gchar const *)
 
virtual Gtk::Widget * prefs_effect (Inkscape::Extension::Effect *module, SPDesktop *desktop, sigc::signal< void()> *changeSignal, ImplementationDocumentCache *docCache)
 Find out information about the file. More...
 
virtual void effect (Inkscape::Extension::Effect *, SPDesktop *, ImplementationDocumentCache *)
 
virtual void effect (Inkscape::Extension::Effect *, SPDocument *document)
 
virtual bool apply_filter (Inkscape::Extension::Effect *module, SPItem *item)
 
virtual unsigned setup (Inkscape::Extension::Print *)
 
virtual unsigned set_preview (Inkscape::Extension::Print *)
 
virtual unsigned begin (Inkscape::Extension::Print *, SPDocument *)
 
virtual unsigned finish (Inkscape::Extension::Print *)
 
virtual bool textToPath (Inkscape::Extension::Print *)
 Tell the printing engine whether text should be text or path. More...
 
virtual bool fontEmbedded (Inkscape::Extension::Print *)
 Get "fontEmbedded" param, i.e. More...
 
virtual unsigned bind (Inkscape::Extension::Print *, Geom::Affine const &, float)
 
virtual unsigned release (Inkscape::Extension::Print *)
 
virtual unsigned fill (Inkscape::Extension::Print *, Geom::PathVector const &, Geom::Affine const &, SPStyle const *, Geom::OptRect const &, Geom::OptRect const &, Geom::OptRect const &)
 
virtual unsigned stroke (Inkscape::Extension::Print *, Geom::PathVector const &, Geom::Affine const &, SPStyle const *, Geom::OptRect const &, Geom::OptRect const &, Geom::OptRect const &)
 
virtual unsigned image (Inkscape::Extension::Print *, unsigned char *, unsigned int, unsigned int, unsigned int, Geom::Affine const &, SPStyle const *)
 
virtual unsigned text (Inkscape::Extension::Print *, char const *, Geom::Point const &, SPStyle const *)
 
virtual void processPath (Inkscape::XML::Node *)
 
virtual void setDetachBase (bool detach)
 If detach = true, when saving to a file, don't store URIs relative to the filename. More...
 

Protected Member Functions

U_COLORREF avg_stop_color (SPGradient *gr)
 
U_COLORREF weight_opacity (U_COLORREF c1)
 
U_COLORREF weight_colors (U_COLORREF c1, U_COLORREF c2, double t)
 
void hatch_classify (char *name, int *hatchType, U_COLORREF *hatchColor, U_COLORREF *bkColor)
 
void brush_classify (SPObject *parent, int depth, Inkscape::Pixbuf const **epixbuf, int *hatchType, U_COLORREF *hatchColor, U_COLORREF *bkColor)
 
int hold_gradient (void *gr, int mode)
 
virtual int create_brush (SPStyle const *style, PU_COLORREF fcolor)=0
 
virtual void destroy_brush ()=0
 
virtual int create_pen (SPStyle const *style, const Geom::Affine &transform)=0
 
virtual void destroy_pen ()=0
 

Static Protected Member Functions

static void _lookup_ppt_fontfix (Glib::ustring const &fontname, FontfixParams &)
 
static U_COLORREF _gethexcolor (uint32_t color)
 
static uint32_t _translate_weight (unsigned inkweight)
 
static void swapRBinRGBA (char *px, int pixels)
 
static int snprintf_dots (char *s, size_t n, const char *format,...)
 
static Geom::PathVector center_ellipse_as_SVG_PathV (Geom::Point ctr, double rx, double ry, double F)
 
static Geom::PathVector center_elliptical_ring_as_SVG_PathV (Geom::Point ctr, double rx1, double ry1, double rx2, double ry2, double F)
 
static Geom::PathVector center_elliptical_hole_as_SVG_PathV (Geom::Point ctr, double rx, double ry, double F)
 
static Geom::PathVector rect_cutter (Geom::Point ctr, Geom::Point pos, Geom::Point neg, Geom::Point width)
 
static FillRule SPWR_to_LVFR (SPWindRule wr)
 

Protected Attributes

double _width
 
double _height
 
double _doc_unit_scale
 
U_RECTL rc
 
uint32_t htextalignment
 
uint32_t hpolyfillmode
 
float htextcolor_rgb [3]
 
std::stack< Geom::Affinem_tr_stack
 
Geom::PathVector fill_pathv
 
Geom::Affine fill_transform
 
bool use_stroke
 
bool use_fill
 
bool simple_shape
 
bool usebk
 
GRADVALUES gv
 

Detailed Description

Definition at line 45 of file metafile-print.h.

Constructor & Destructor Documentation

◆ PrintMetafile()

Inkscape::Extension::Internal::PrintMetafile::PrintMetafile ( )
default

◆ ~PrintMetafile()

Inkscape::Extension::Internal::PrintMetafile::~PrintMetafile ( )
override

Definition at line 34 of file metafile-print.cpp.

Member Function Documentation

◆ _gethexcolor()

U_COLORREF Inkscape::Extension::Internal::PrintMetafile::_gethexcolor ( uint32_t  color)
staticprotected

◆ _lookup_ppt_fontfix()

void Inkscape::Extension::Internal::PrintMetafile::_lookup_ppt_fontfix ( Glib::ustring const &  fontname,
FontfixParams params 
)
staticprotected

◆ _translate_weight()

◆ avg_stop_color()

◆ bind()

unsigned int Inkscape::Extension::Internal::PrintMetafile::bind ( Inkscape::Extension::Print module,
Geom::Affine const &  transform,
float  opacity 
)
overridevirtual

Reimplemented from Inkscape::Extension::Implementation::Implementation.

Definition at line 81 of file metafile-print.cpp.

References m_tr_stack.

◆ brush_classify()

void Inkscape::Extension::Internal::PrintMetafile::brush_classify ( SPObject parent,
int  depth,
Inkscape::Pixbuf const **  epixbuf,
int *  hatchType,
U_COLORREF hatchColor,
U_COLORREF bkColor 
)
protected

◆ center_ellipse_as_SVG_PathV()

Geom::PathVector Inkscape::Extension::Internal::PrintMetafile::center_ellipse_as_SVG_PathV ( Geom::Point  ctr,
double  rx,
double  ry,
double  F 
)
staticprotected

◆ center_elliptical_hole_as_SVG_PathV()

Geom::PathVector Inkscape::Extension::Internal::PrintMetafile::center_elliptical_hole_as_SVG_PathV ( Geom::Point  ctr,
double  rx,
double  ry,
double  F 
)
staticprotected

◆ center_elliptical_ring_as_SVG_PathV()

Geom::PathVector Inkscape::Extension::Internal::PrintMetafile::center_elliptical_ring_as_SVG_PathV ( Geom::Point  ctr,
double  rx1,
double  ry1,
double  rx2,
double  ry2,
double  F 
)
staticprotected

◆ create_brush()

virtual int Inkscape::Extension::Internal::PrintMetafile::create_brush ( SPStyle const *  style,
PU_COLORREF  fcolor 
)
protectedpure virtual

◆ create_pen()

virtual int Inkscape::Extension::Internal::PrintMetafile::create_pen ( SPStyle const *  style,
const Geom::Affine transform 
)
protectedpure virtual

◆ destroy_brush()

virtual void Inkscape::Extension::Internal::PrintMetafile::destroy_brush ( )
protectedpure virtual

◆ destroy_pen()

virtual void Inkscape::Extension::Internal::PrintMetafile::destroy_pen ( )
protectedpure virtual

◆ hatch_classify()

void Inkscape::Extension::Internal::PrintMetafile::hatch_classify ( char *  name,
int *  hatchType,
U_COLORREF hatchColor,
U_COLORREF bkColor 
)
protected

Definition at line 208 of file metafile-print.cpp.

References _gethexcolor(), and usebk.

Referenced by brush_classify().

◆ hold_gradient()

◆ rect_cutter()

Geom::PathVector Inkscape::Extension::Internal::PrintMetafile::rect_cutter ( Geom::Point  ctr,
Geom::Point  pos,
Geom::Point  neg,
Geom::Point  width 
)
staticprotected

◆ release()

unsigned int Inkscape::Extension::Internal::PrintMetafile::release ( Inkscape::Extension::Print module)
overridevirtual

Reimplemented from Inkscape::Extension::Implementation::Implementation.

Definition at line 93 of file metafile-print.cpp.

References m_tr_stack.

◆ snprintf_dots()

static int Inkscape::Extension::Internal::PrintMetafile::snprintf_dots ( char *  s,
size_t  n,
const char *  format,
  ... 
)
staticprotected

◆ SPWR_to_LVFR()

FillRule Inkscape::Extension::Internal::PrintMetafile::SPWR_to_LVFR ( SPWindRule  wr)
staticprotected

◆ swapRBinRGBA()

void Inkscape::Extension::Internal::PrintMetafile::swapRBinRGBA ( char *  px,
int  pixels 
)
staticprotected

◆ textToPath()

bool Inkscape::Extension::Internal::PrintMetafile::textToPath ( Inkscape::Extension::Print )
overridevirtual

Tell the printing engine whether text should be text or path.

Default value is false because most printing engines will support paths more than they'll support text. (at least they do today)

Return values
trueRender the text as a path
falseRender text using the text function (above)

Reimplemented from Inkscape::Extension::Implementation::Implementation.

Definition at line 76 of file metafile-print.cpp.

References Inkscape::Extension::Extension::get_param_bool().

◆ weight_colors()

U_COLORREF Inkscape::Extension::Internal::PrintMetafile::weight_colors ( U_COLORREF  c1,
U_COLORREF  c2,
double  t 
)
protected

◆ weight_opacity()

Member Data Documentation

◆ _doc_unit_scale

double Inkscape::Extension::Internal::PrintMetafile::_doc_unit_scale
protected

◆ _height

double Inkscape::Extension::Internal::PrintMetafile::_height
protected

Definition at line 69 of file metafile-print.h.

◆ _width

double Inkscape::Extension::Internal::PrintMetafile::_width
protected

Definition at line 68 of file metafile-print.h.

◆ fill_pathv

Geom::PathVector Inkscape::Extension::Internal::PrintMetafile::fill_pathv
protected

Definition at line 79 of file metafile-print.h.

◆ fill_transform

Geom::Affine Inkscape::Extension::Internal::PrintMetafile::fill_transform
protected

◆ gv

◆ hpolyfillmode

◆ htextalignment

◆ htextcolor_rgb

◆ m_tr_stack

◆ rc

U_RECTL Inkscape::Extension::Internal::PrintMetafile::rc
protected

Definition at line 72 of file metafile-print.h.

◆ simple_shape

◆ use_fill

◆ use_stroke

◆ usebk


The documentation for this class was generated from the following files: