Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
Inkscape::Extension::Internal::PrintLatex Class Reference

#include <latex-pstricks.h>

Inheritance diagram for Inkscape::Extension::Internal::PrintLatex:
Inkscape::Extension::Implementation::Implementation

Public Member Functions

 PrintLatex ()
 
 ~PrintLatex () override
 
unsigned int setup (Inkscape::Extension::Print *module) override
 
unsigned int begin (Inkscape::Extension::Print *module, SPDocument *doc) override
 
unsigned int finish (Inkscape::Extension::Print *module) override
 
unsigned int bind (Inkscape::Extension::Print *module, Geom::Affine const &transform, float opacity) override
 
unsigned int release (Inkscape::Extension::Print *module) override
 
unsigned int fill (Inkscape::Extension::Print *module, Geom::PathVector const &pathv, Geom::Affine const &ctm, SPStyle const *style, Geom::OptRect const &pbox, Geom::OptRect const &dbox, Geom::OptRect const &bbox) override
 
unsigned int stroke (Inkscape::Extension::Print *module, Geom::PathVector const &pathv, Geom::Affine const &ctm, SPStyle const *style, Geom::OptRect const &pbox, Geom::OptRect const &dbox, Geom::OptRect const &bbox) override
 
bool textToPath (Inkscape::Extension::Print *ext) override
 Tell the printing engine whether text should be text or path.
 
- 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.
 
virtual bool check (Inkscape::Extension::Extension *)
 Verify any dependencies.
 
virtual bool cancelProcessing ()
 
virtual void commitDocument ()
 
virtual std::unique_ptr< 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 std::unique_ptr< SPDocumentopen (Inkscape::Extension::Input *module, char const *filename, bool is_importing)
 Open a file.
 
virtual void save (Inkscape::Extension::Output *, SPDocument *, gchar const *)
 Find out information about the file.
 
virtual void export_raster (Inkscape::Extension::Output *module, const SPDocument *doc, std::string const &png_file, gchar const *filename)
 Convert from PNG to raster format.
 
virtual Gtk::Widget * prefs_effect (Inkscape::Extension::Effect *module, SPDesktop *desktop, sigc::signal< void()> *changeSignal, ImplementationDocumentCache *docCache)
 Find out information about the file.
 
virtual void effect (Inkscape::Extension::Effect *, ExecutionEnv *, SPDesktop *, ImplementationDocumentCache *)
 
virtual void effect (Inkscape::Extension::Effect *, ExecutionEnv *, SPDocument *document)
 
virtual bool apply_filter (Inkscape::Extension::Effect *module, SPItem *item)
 
virtual unsigned set_preview (Inkscape::Extension::Print *)
 
virtual bool fontEmbedded (Inkscape::Extension::Print *)
 Get "fontEmbedded" param, i.e.
 
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.
 

Static Public Member Functions

static void init ()
 

Private Member Functions

void print_pathvector (SVGOStringStream &os, Geom::PathVector const &pathv_in, const Geom::Affine &)
 
void print_2geomcurve (SVGOStringStream &os, Geom::Curve const &c)
 

Private Attributes

float _width
 
float _height
 
FILE * _stream
 
std::stack< Geom::Affinem_tr_stack
 

Detailed Description

Definition at line 27 of file latex-pstricks.h.

Constructor & Destructor Documentation

◆ PrintLatex()

Inkscape::Extension::Internal::PrintLatex::PrintLatex ( )

Definition at line 36 of file latex-pstricks.cpp.

◆ ~PrintLatex()

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

Definition at line 43 of file latex-pstricks.cpp.

References _stream.

Member Function Documentation

◆ begin()

◆ bind()

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

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

Definition at line 138 of file latex-pstricks.cpp.

References m_tr_stack.

◆ fill()

unsigned int Inkscape::Extension::Internal::PrintLatex::fill ( Inkscape::Extension::Print module,
Geom::PathVector const &  pathv,
Geom::Affine const &  ctm,
SPStyle const *  style,
Geom::OptRect const &  pbox,
Geom::OptRect const &  dbox,
Geom::OptRect const &  bbox 
)
overridevirtual

◆ finish()

unsigned int Inkscape::Extension::Internal::PrintLatex::finish ( Inkscape::Extension::Print module)
overridevirtual

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

Definition at line 124 of file latex-pstricks.cpp.

References _stream.

◆ init()

void Inkscape::Extension::Internal::PrintLatex::init ( )
static

Definition at line 298 of file latex-pstricks.cpp.

References Inkscape::Extension::build_from_mem().

Referenced by Inkscape::Extension::init().

◆ print_2geomcurve()

void Inkscape::Extension::Internal::PrintLatex::print_2geomcurve ( SVGOStringStream os,
Geom::Curve const &  c 
)
private

◆ print_pathvector()

void Inkscape::Extension::Internal::PrintLatex::print_pathvector ( SVGOStringStream os,
Geom::PathVector const &  pathv_in,
const Geom::Affine  
)
private

Definition at line 238 of file latex-pstricks.cpp.

References Geom::PathVector::empty(), m_tr_stack, print_2geomcurve(), Geom::X, and Geom::Y.

Referenced by fill(), and stroke().

◆ release()

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

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

Definition at line 150 of file latex-pstricks.cpp.

References m_tr_stack.

◆ setup()

unsigned int Inkscape::Extension::Internal::PrintLatex::setup ( Inkscape::Extension::Print module)
overridevirtual

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

Definition at line 48 of file latex-pstricks.cpp.

◆ stroke()

unsigned int Inkscape::Extension::Internal::PrintLatex::stroke ( Inkscape::Extension::Print module,
Geom::PathVector const &  pathv,
Geom::Affine const &  ctm,
SPStyle const *  style,
Geom::OptRect const &  pbox,
Geom::OptRect const &  dbox,
Geom::OptRect const &  bbox 
)
overridevirtual

◆ textToPath()

bool Inkscape::Extension::Internal::PrintLatex::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 291 of file latex-pstricks.cpp.

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

Member Data Documentation

◆ _height

float Inkscape::Extension::Internal::PrintLatex::_height
private

Definition at line 30 of file latex-pstricks.h.

Referenced by begin().

◆ _stream

FILE* Inkscape::Extension::Internal::PrintLatex::_stream
private

Definition at line 31 of file latex-pstricks.h.

Referenced by begin(), fill(), finish(), stroke(), and ~PrintLatex().

◆ _width

float Inkscape::Extension::Internal::PrintLatex::_width
private

Definition at line 29 of file latex-pstricks.h.

Referenced by begin().

◆ m_tr_stack

std::stack<Geom::Affine> Inkscape::Extension::Internal::PrintLatex::m_tr_stack
private

Definition at line 33 of file latex-pstricks.h.

Referenced by begin(), bind(), print_pathvector(), release(), and stroke().


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