Inkscape
Vector Graphics Editor
|
#include <latex-pstricks.h>
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. | |
![]() | |
Implementation ()=default | |
virtual | ~Implementation ()=default |
virtual bool | load (Inkscape::Extension::Extension *) |
virtual void | unload (Inkscape::Extension::Extension *) |
virtual ImplementationDocumentCache * | newDocCache (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< SPDocument > | new_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< SPDocument > | open (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::Affine > | m_tr_stack |
Definition at line 27 of file latex-pstricks.h.
Inkscape::Extension::Internal::PrintLatex::PrintLatex | ( | ) |
Definition at line 36 of file latex-pstricks.cpp.
|
override |
Definition at line 43 of file latex-pstricks.cpp.
References _stream.
|
overridevirtual |
@fixme hardcoded doc2dt transform
Reimplemented from Inkscape::Extension::Implementation::Implementation.
Definition at line 53 of file latex-pstricks.cpp.
References _height, _stream, _width, Inkscape::IO::dump_fopen_call(), Inkscape::IO::fopen_utf8name(), SPDocument::getHeight(), SPDocument::getWidth(), m_tr_stack, Inkscape::SVGOStringStream::setf(), Inkscape::SVGOStringStream::str(), Inkscape::Util::Quantity::value(), and Inkscape::version_string.
|
overridevirtual |
Reimplemented from Inkscape::Extension::Implementation::Implementation.
Definition at line 138 of file latex-pstricks.cpp.
References m_tr_stack.
|
overridevirtual |
Reimplemented from Inkscape::Extension::Implementation::Implementation.
Definition at line 156 of file latex-pstricks.cpp.
References _stream, SPStyle::fill, SPStyle::fill_opacity, print_pathvector(), Inkscape::Colors::Space::RGB, rgb, Inkscape::SVGOStringStream::setf(), and Inkscape::SVGOStringStream::str().
|
overridevirtual |
Reimplemented from Inkscape::Extension::Implementation::Implementation.
Definition at line 124 of file latex-pstricks.cpp.
References _stream.
|
static |
Definition at line 298 of file latex-pstricks.cpp.
References Inkscape::Extension::build_from_mem().
Referenced by Inkscape::Extension::init().
|
private |
Definition at line 265 of file latex-pstricks.cpp.
References c, Geom::cubicbezierpath_from_sbasis(), is_straight_curve(), print_2geomcurve(), Geom::X, and Geom::Y.
Referenced by print_2geomcurve(), and print_pathvector().
|
private |
Definition at line 238 of file latex-pstricks.cpp.
References Geom::PathVector::empty(), m_tr_stack, print_2geomcurve(), Geom::X, and Geom::Y.
|
overridevirtual |
Reimplemented from Inkscape::Extension::Implementation::Implementation.
Definition at line 150 of file latex-pstricks.cpp.
References m_tr_stack.
|
overridevirtual |
Reimplemented from Inkscape::Extension::Implementation::Implementation.
Definition at line 48 of file latex-pstricks.cpp.
|
overridevirtual |
Reimplemented from Inkscape::Extension::Implementation::Implementation.
Definition at line 190 of file latex-pstricks.cpp.
References _stream, Geom::Affine::descrim(), m_tr_stack, print_pathvector(), Inkscape::Colors::Space::RGB, rgb, scale, Inkscape::SVGOStringStream::setf(), Inkscape::SVGOStringStream::str(), SPStyle::stroke, SPStyle::stroke_dasharray, SPStyle::stroke_opacity, and SPStyle::stroke_width.
|
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)
true | Render the text as a path |
false | Render 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().
|
private |
Definition at line 30 of file latex-pstricks.h.
Referenced by begin().
|
private |
Definition at line 31 of file latex-pstricks.h.
Referenced by begin(), fill(), finish(), stroke(), and ~PrintLatex().
|
private |
Definition at line 29 of file latex-pstricks.h.
Referenced by begin().
|
private |
Definition at line 33 of file latex-pstricks.h.
Referenced by begin(), bind(), print_pathvector(), release(), and stroke().