Inkscape
Vector Graphics Editor
|
#include <wmf-inout.h>
Public Member Functions | |
bool | check (Inkscape::Extension::Extension *module) override |
Verify any dependencies. | |
void | save (Inkscape::Extension::Output *mod, SPDocument *doc, char const *filename) override |
std::unique_ptr< SPDocument > | open (Inkscape::Extension::Input *mod, char const *uri, bool is_importing) override |
Open a file. | |
![]() | |
Metafile ()=default | |
~Metafile () override | |
![]() | |
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 | 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 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 | 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. | |
virtual bool | fontEmbedded (Inkscape::Extension::Print *) |
Get "fontEmbedded" param, i.e. | |
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. | |
Static Public Member Functions | |
static void | init () |
Static Protected Member Functions | |
static void | print_document_to_file (SPDocument *doc, const gchar *filename) |
static double | current_scale (PWMF_CALLBACK_DATA d) |
static std::string | current_matrix (PWMF_CALLBACK_DATA d, double x, double y, int useoffset) |
static double | current_rotation (PWMF_CALLBACK_DATA d) |
static void | enlarge_hatches (PWMF_CALLBACK_DATA d) |
static int | in_hatches (PWMF_CALLBACK_DATA d, char *test) |
static uint32_t | add_hatch (PWMF_CALLBACK_DATA d, uint32_t hatchType, U_COLORREF hatchColor) |
static void | enlarge_images (PWMF_CALLBACK_DATA d) |
static int | in_images (PWMF_CALLBACK_DATA d, char *test) |
static uint32_t | add_dib_image (PWMF_CALLBACK_DATA d, const char *dib, uint32_t iUsage) |
static uint32_t | add_bm16_image (PWMF_CALLBACK_DATA d, U_BITMAP16 Bm16, const char *px) |
static void | enlarge_clips (PWMF_CALLBACK_DATA d) |
static int | in_clips (PWMF_CALLBACK_DATA d, const char *test) |
static void | add_clips (PWMF_CALLBACK_DATA d, const char *clippath, unsigned int logic) |
static void | output_style (PWMF_CALLBACK_DATA d) |
static double | _pix_x_to_point (PWMF_CALLBACK_DATA d, double px) |
static double | _pix_y_to_point (PWMF_CALLBACK_DATA d, double py) |
static double | pix_to_x_point (PWMF_CALLBACK_DATA d, double px, double py) |
static double | pix_to_y_point (PWMF_CALLBACK_DATA d, double px, double py) |
static double | pix_to_abs_size (PWMF_CALLBACK_DATA d, double px) |
static std::string | pix_to_xy (PWMF_CALLBACK_DATA d, double x, double y) |
static void | select_brush (PWMF_CALLBACK_DATA d, int index) |
static void | select_font (PWMF_CALLBACK_DATA d, int index) |
static void | select_pen (PWMF_CALLBACK_DATA d, int index) |
static int | insertable_object (PWMF_CALLBACK_DATA d) |
static void | delete_object (PWMF_CALLBACK_DATA d, int index) |
static int | insert_object (PWMF_CALLBACK_DATA d, int type, const char *record) |
static uint32_t * | unknown_chars (size_t count) |
static void | common_dib_to_image (PWMF_CALLBACK_DATA d, const char *dib, double dx, double dy, double dw, double dh, int sx, int sy, int sw, int sh, uint32_t iUsage) |
store SVG for an image given the pixmap and various coordinate information | |
static void | common_bm16_to_image (PWMF_CALLBACK_DATA d, U_BITMAP16 Bm16, const char *px, double dx, double dy, double dw, double dh, int sx, int sy, int sw, int sh) |
store SVG for an image given the pixmap and various coordinate information | |
static int | myMetaFileProc (const char *contents, unsigned int length, PWMF_CALLBACK_DATA d) |
static void | free_wmf_strings (WMF_STRINGS name) |
![]() | |
static uint32_t | sethexcolor (U_COLORREF color) |
static pixel_t * | pixel_at (bitmap_t *bitmap, int x, int y) |
Construct a PNG in memory from an RGB from the EMF file. | |
static void | my_png_write_data (png_structp png_ptr, png_bytep data, png_size_t length) |
static void | toPNG (PMEMPNG accum, int width, int height, const char *px) |
static gchar * | bad_image_png () |
static void | setViewBoxIfMissing (SPDocument *doc) |
static int | combine_ops_to_livarot (const int op) |
Definition at line 157 of file wmf-inout.h.
|
staticprotected |
Definition at line 869 of file wmf-inout.cpp.
References Inkscape::Extension::Internal::WMF_CALLBACK_DATA::D2PscaleX, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::dc, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::level, scale, Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::ScaleInX, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::ulCornerOutX, Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::vieworg, Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::winorg, and U_POINT16::x.
Referenced by pix_to_x_point().
|
staticprotected |
Definition at line 879 of file wmf-inout.cpp.
References Inkscape::Extension::Internal::WMF_CALLBACK_DATA::D2PscaleY, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::dc, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::E2IdirY, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::level, scale, Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::ScaleInY, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::ulCornerOutY, Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::vieworg, Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::winorg, and U_POINT16::y.
Referenced by pix_to_y_point().
|
staticprotected |
Definition at line 525 of file wmf-inout.cpp.
References Inkscape::Extension::Internal::Metafile::bad_image_png(), U_BITMAP16::BitsPixel, Inkscape::Extension::Internal::MEMPNG::buffer, Inkscape::Extension::Internal::WMF_STRINGS::count, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::defs, enlarge_images(), height, U_BITMAP16::Height, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::images, in_images(), invert(), Inkscape::Extension::Internal::MEMPNG::size, Inkscape::Extension::Internal::WMF_STRINGS::size, Inkscape::Extension::Internal::WMF_STRINGS::strings, Inkscape::Extension::Internal::Metafile::toPNG(), width, and U_BITMAP16::Width.
Referenced by select_brush().
|
staticprotected |
Definition at line 637 of file wmf-inout.cpp.
References Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::clip_id, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::clips, Inkscape::Extension::Internal::Metafile::combine_ops_to_livarot(), Inkscape::Extension::Internal::WMF_STRINGS::count, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::dc, enlarge_clips(), fill_oddEven, in_clips(), Inkscape::Extension::Internal::WMF_CALLBACK_DATA::level, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::outdef, Inkscape::Extension::Internal::WMF_STRINGS::size, sp_pathvector_boolop(), sp_svg_read_pathv(), sp_svg_write_path(), Inkscape::SVGOStringStream::str(), and Inkscape::Extension::Internal::WMF_STRINGS::strings.
Referenced by myMetaFileProc().
|
staticprotected |
Definition at line 424 of file wmf-inout.cpp.
References Inkscape::Extension::Internal::Metafile::bad_image_png(), Inkscape::Extension::Internal::MEMPNG::buffer, Inkscape::Extension::Internal::WMF_STRINGS::count, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::defs, enlarge_images(), height, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::images, in_images(), invert(), Inkscape::Extension::Internal::MEMPNG::size, Inkscape::Extension::Internal::WMF_STRINGS::size, Inkscape::Extension::Internal::WMF_STRINGS::strings, Inkscape::Extension::Internal::Metafile::toPNG(), and width.
Referenced by select_brush().
|
staticprotected |
Definition at line 224 of file wmf-inout.cpp.
References Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::bkColor, Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::bkMode, Inkscape::Extension::Internal::WMF_STRINGS::count, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::dc, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::defs, enlarge_hatches(), Inkscape::Extension::Internal::WMF_CALLBACK_DATA::hatches, in_hatches(), Inkscape::Extension::Internal::WMF_CALLBACK_DATA::level, Inkscape::Extension::Internal::Metafile::sethexcolor(), Inkscape::Extension::Internal::WMF_STRINGS::size, Inkscape::Extension::Internal::WMF_STRINGS::strings, and Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::textColor.
Referenced by select_brush().
|
overridevirtual |
Verify any dependencies.
Reimplemented from Inkscape::Extension::Implementation::Implementation.
Definition at line 61 of file wmf-inout.cpp.
References Inkscape::Extension::db, Inkscape::Extension::DB::get(), and PRINT_WMF.
|
staticprotected |
store SVG for an image given the pixmap and various coordinate information
d | |
Bm16 | core Bitmap16 header |
px | pointer to Bitmap16 image data |
dx | (double) destination x in inkscape pixels |
dy | (double) destination y in inkscape pixels |
dw | (double) destination width in inkscape pixels |
dh | (double) destination height in inkscape pixels |
sx | (int) source x in src image pixels |
sy | (int) source y in src image pixels |
iUsage |
Definition at line 1357 of file wmf-inout.cpp.
References Inkscape::Extension::Internal::Metafile::bad_image_png(), U_BITMAP16::BitsPixel, Inkscape::Extension::Internal::MEMPNG::buffer, Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::clip_id, current_matrix(), Inkscape::Extension::Internal::WMF_CALLBACK_DATA::dc, height, U_BITMAP16::Height, invert(), Inkscape::Extension::Internal::WMF_CALLBACK_DATA::level, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::outsvg, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::path, Inkscape::Extension::Internal::MEMPNG::size, Inkscape::SVGOStringStream::str(), Inkscape::Extension::Internal::Metafile::toPNG(), width, and U_BITMAP16::Width.
Referenced by myMetaFileProc().
|
staticprotected |
store SVG for an image given the pixmap and various coordinate information
d | |
dib | packed DIB in memory |
dx | (double) destination x in inkscape pixels |
dy | (double) destination y in inkscape pixels |
dw | (double) destination width in inkscape pixels |
dh | (double) destination height in inkscape pixels |
sx | (int) source x in src image pixels |
sy | (int) source y in src image pixels |
iUsage |
Definition at line 1255 of file wmf-inout.cpp.
References Inkscape::Extension::Internal::Metafile::bad_image_png(), Inkscape::Extension::Internal::MEMPNG::buffer, Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::clip_id, current_matrix(), Inkscape::Extension::Internal::WMF_CALLBACK_DATA::dc, height, invert(), Inkscape::Extension::Internal::WMF_CALLBACK_DATA::level, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::outsvg, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::path, Inkscape::Extension::Internal::MEMPNG::size, Inkscape::SVGOStringStream::str(), Inkscape::Extension::Internal::Metafile::toPNG(), and width.
Referenced by myMetaFileProc().
|
staticprotected |
Definition at line 162 of file wmf-inout.cpp.
References current_scale(), scale, and Inkscape::SVGOStringStream::str().
Referenced by common_bm16_to_image(), and common_dib_to_image().
|
staticprotected |
Definition at line 177 of file wmf-inout.cpp.
Referenced by myMetaFileProc().
|
staticprotected |
Definition at line 157 of file wmf-inout.cpp.
Referenced by current_matrix(), and pix_to_abs_size().
|
staticprotected |
Definition at line 1175 of file wmf-inout.cpp.
References Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::active_brush, Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::active_font, Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::active_pen, SPStyle::baseline_shift, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::dc, Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::fill_set, Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::font_name, SPStyle::font_size, SPStyle::font_style, SPStyle::font_weight, index, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::level, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::low_water, Inkscape::Extension::Internal::WMF_OBJECT::record, SP_CSS_FONT_STYLE_NORMAL, SP_CSS_FONT_WEIGHT_400, SP_STROKE_LINECAP_SQUARE, SP_STROKE_LINEJOIN_MITER, SPStyle::stroke, SPStyle::stroke_dasharray, SPStyle::stroke_linecap, SPStyle::stroke_linejoin, Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::stroke_set, SPStyle::stroke_width, Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::style, SPStyle::text_decoration_line, Inkscape::Extension::Internal::WMF_OBJECT::type, and Inkscape::Extension::Internal::WMF_CALLBACK_DATA::wmf_obj.
Referenced by myMetaFileProc(), and open().
|
staticprotected |
Definition at line 618 of file wmf-inout.cpp.
References Inkscape::Extension::Internal::WMF_CALLBACK_DATA::clips, Inkscape::Extension::Internal::WMF_STRINGS::size, and Inkscape::Extension::Internal::WMF_STRINGS::strings.
Referenced by add_clips().
|
staticprotected |
Definition at line 183 of file wmf-inout.cpp.
References Inkscape::Extension::Internal::WMF_CALLBACK_DATA::hatches, Inkscape::Extension::Internal::WMF_STRINGS::size, and Inkscape::Extension::Internal::WMF_STRINGS::strings.
Referenced by add_hatch().
|
staticprotected |
Definition at line 405 of file wmf-inout.cpp.
References Inkscape::Extension::Internal::WMF_CALLBACK_DATA::images, Inkscape::Extension::Internal::WMF_STRINGS::size, and Inkscape::Extension::Internal::WMF_STRINGS::strings.
Referenced by add_bm16_image(), and add_dib_image().
|
staticprotected |
|
staticprotected |
Definition at line 625 of file wmf-inout.cpp.
References Inkscape::Extension::Internal::WMF_CALLBACK_DATA::clips, Inkscape::Extension::Internal::WMF_STRINGS::count, Inkscape::Extension::Internal::WMF_STRINGS::strings, and test().
Referenced by add_clips().
|
staticprotected |
Definition at line 190 of file wmf-inout.cpp.
References Inkscape::Extension::Internal::WMF_STRINGS::count, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::hatches, Inkscape::Extension::Internal::WMF_STRINGS::strings, and test().
Referenced by add_hatch().
|
staticprotected |
Definition at line 412 of file wmf-inout.cpp.
References Inkscape::Extension::Internal::WMF_STRINGS::count, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::images, Inkscape::Extension::Internal::WMF_STRINGS::strings, and test().
Referenced by add_bm16_image(), and add_dib_image().
|
static |
Definition at line 3145 of file wmf-inout.cpp.
References Inkscape::Extension::build_from_mem().
Referenced by Inkscape::Extension::init().
|
staticprotected |
Definition at line 1219 of file wmf-inout.cpp.
References index, insertable_object(), Inkscape::Extension::Internal::WMF_OBJECT::level, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::level, Inkscape::Extension::Internal::WMF_OBJECT::record, Inkscape::Extension::Internal::WMF_OBJECT::type, and Inkscape::Extension::Internal::WMF_CALLBACK_DATA::wmf_obj.
Referenced by myMetaFileProc().
|
staticprotected |
Definition at line 1165 of file wmf-inout.cpp.
References index, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::low_water, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::n_obj, Inkscape::Extension::Internal::WMF_OBJECT::record, and Inkscape::Extension::Internal::WMF_CALLBACK_DATA::wmf_obj.
Referenced by insert_object().
|
staticprotected |
Definition at line 1447 of file wmf-inout.cpp.
References add_clips(), Inkscape::Extension::Internal::WMF_CALLBACK_DATA::arcdir, Geom::are_near(), SPStyle::baseline_shift, Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::bkColor, Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::bkMode, Inkscape::Extension::Internal::BLTmode, U_COLORREF::Blue, TRCOLORREF::Blue, TCHUNK_SPECS::boff, U_RECT16::bottom, Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::clip_id, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::clips, Inkscape::Extension::Internal::clipset, TCHUNK_SPECS::co, TCHUNK_SPECS::color, common_bm16_to_image(), common_dib_to_image(), TCHUNK_SPECS::condensed, Inkscape::Util::Quantity::convert(), Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::cur, current_rotation(), Inkscape::Extension::Internal::WMF_CALLBACK_DATA::D2PscaleX, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::D2PscaleY, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::dc, TCHUNK_SPECS::decoration, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::defs, delete_object(), TR_INFO::dirty, Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::dirty, Inkscape::Extension::Internal::DRAW_PATTERN, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::drawtype, U_WMRPLACEABLE::Dst, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::dwRop2, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::dwRop3, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::E2IdirY, end, Inkscape::Extension::Internal::faraway, TCHUNK_SPECS::fi_idx, Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::fill_mode, Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::fill_recidx, SPStyle::fill_rule, Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::font_name, SPStyle::font_size, SPStyle::font_style, SPStyle::font_weight, TCHUNK_SPECS::fs, TR_INFO::fti, ftinfo_load_fontname(), U_COLORREF::Green, TRCOLORREF::Green, U_WMRPLACEABLE::Inch, index, insert_object(), TCHUNK_SPECS::italics, TCHUNK_SPECS::ldir, U_RECT16::left, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::level, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::low_water, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::mask, MIN, msdepua(), Inkscape::Extension::Internal::WMF_CALLBACK_DATA::n_obj, U_WMRHEADER::nObjects, NonToUnicode(), off, TCHUNK_SPECS::ori, TR_INFO::out, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::outdef, output_style(), Inkscape::Extension::Internal::WMF_CALLBACK_DATA::outsvg, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::path, pix_to_abs_size(), pix_to_x_point(), pix_to_xy(), pix_to_y_point(), Inkscape::Extension::Internal::WMF_CALLBACK_DATA::PixelsInX, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::PixelsInY, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::PixelsOutX, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::PixelsOutY, rc, Inkscape::Extension::Internal::WMF_OBJECT::record, U_COLORREF::Red, TRCOLORREF::Red, TRCOLORREF::Reserved, U_RECT16::right, TCHUNK_SPECS::rt_tidx, Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::ScaleInX, Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::ScaleInY, select_brush(), select_font(), select_pen(), Inkscape::size, Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::sizeView, Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::sizeWnd, SP_CSS_FONT_STYLE_ITALIC, SP_CSS_FONT_STYLE_NORMAL, SP_CSS_FONT_STYLE_OBLIQUE, SP_CSS_FONT_WEIGHT_100, SP_CSS_FONT_WEIGHT_200, SP_CSS_FONT_WEIGHT_300, SP_CSS_FONT_WEIGHT_400, SP_CSS_FONT_WEIGHT_500, SP_CSS_FONT_WEIGHT_600, SP_CSS_FONT_WEIGHT_700, SP_CSS_FONT_WEIGHT_800, SP_CSS_FONT_WEIGHT_900, SP_CSS_FONT_WEIGHT_BOLD, SP_CSS_FONT_WEIGHT_BOLDER, SP_CSS_FONT_WEIGHT_LIGHTER, SP_CSS_FONT_WEIGHT_NORMAL, SP_STROKE_LINECAP_BUTT, SP_STROKE_LINECAP_ROUND, SP_STROKE_LINECAP_SQUARE, SP_STROKE_LINEJOIN_BEVEL, SP_STROKE_LINEJOIN_MITER, SP_STROKE_LINEJOIN_ROUND, sp_svg_read_pathv(), sp_svg_write_path(), SP_WIND_RULE_INTERSECT, SP_WIND_RULE_NONZERO, TCHUNK_SPECS::spaces, start, Inkscape::SVGOStringStream::str(), TCHUNK_SPECS::string, Inkscape::Extension::Internal::WMF_STRINGS::strings, SPStyle::stroke_dasharray, SPStyle::stroke_linecap, SPStyle::stroke_linejoin, SPStyle::stroke_miterlimit, SPStyle::stroke_width, Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::style, TCHUNK_SPECS::taln, Inkscape::Extension::Implementation::Implementation::text(), SPStyle::text_decoration_line, Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::textAlign, Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::textColor, U_RECT16::top, TR_construct_fontspec(), TR_findcasesub(), TR_layout_2_svg(), TR_layout_analyze(), Inkscape::Extension::Internal::WMF_CALLBACK_DATA::tri, trinfo_clear(), trinfo_load_bk(), trinfo_load_qe(), trinfo_load_textrec(), Inkscape::Extension::Internal::WMF_OBJECT::type, U_Latin1ToUtf32le(), U_strdup(), U_Utf32leToUtf8(), U_WMR_3A, U_WMR_3B, U_WMR_3C, U_WMR_3D, U_WMR_3E, U_WMR_3F, U_WMR_44, U_WMR_45, U_WMR_46, U_WMR_47, U_WMR_49, U_WMR_4A, U_WMR_4B, U_WMR_4C, U_WMR_4D, U_WMR_4E, U_WMR_4F, U_WMR_50, U_WMR_51, U_WMR_52, U_WMR_53, U_WMR_54, U_WMR_55, U_WMR_56, U_WMR_57, U_WMR_58, U_WMR_59, U_WMR_5A, U_WMR_5B, U_WMR_5C, U_WMR_5D, U_WMR_5E, U_WMR_5F, U_WMR_60, U_WMR_61, U_WMR_62, U_WMR_63, U_WMR_64, U_WMR_65, U_WMR_66, U_WMR_67, U_WMR_68, U_WMR_69, U_WMR_6A, U_WMR_6B, U_WMR_6C, U_WMR_6D, U_WMR_6E, U_WMR_6F, U_WMR_70, U_WMR_71, U_WMR_72, U_WMR_73, U_WMR_74, U_WMR_75, U_WMR_76, U_WMR_77, U_WMR_78, U_WMR_79, U_WMR_7A, U_WMR_7B, U_WMR_7C, U_WMR_7D, U_WMR_7E, U_WMR_7F, U_WMR_80, U_WMR_81, U_WMR_82, U_WMR_83, U_WMR_84, U_WMR_85, U_WMR_86, U_WMR_87, U_WMR_88, U_WMR_89, U_WMR_8A, U_WMR_8B, U_WMR_8C, U_WMR_8D, U_WMR_8E, U_WMR_8F, U_WMR_90, U_WMR_91, U_WMR_92, U_WMR_93, U_WMR_94, U_WMR_95, U_WMR_96, U_WMR_97, U_WMR_98, U_WMR_99, U_WMR_9A, U_WMR_9B, U_WMR_9C, U_WMR_9D, U_WMR_9E, U_WMR_9F, U_WMR_A0, U_WMR_A1, U_WMR_A2, U_WMR_A3, U_WMR_A4, U_WMR_A5, U_WMR_A6, U_WMR_A7, U_WMR_A8, U_WMR_A9, U_WMR_AA, U_WMR_AB, U_WMR_AC, U_WMR_AD, U_WMR_AE, U_WMR_AF, U_WMR_ANIMATEPALETTE, U_WMR_ARC, U_WMR_B0, U_WMR_B1, U_WMR_B2, U_WMR_B3, U_WMR_B4, U_WMR_B5, U_WMR_B6, U_WMR_B7, U_WMR_B8, U_WMR_B9, U_WMR_BA, U_WMR_BB, U_WMR_BC, U_WMR_BD, U_WMR_BE, U_WMR_BF, U_WMR_BITBLT, U_WMR_C0, U_WMR_C1, U_WMR_C2, U_WMR_C3, U_WMR_C4, U_WMR_C5, U_WMR_C6, U_WMR_C7, U_WMR_C8, U_WMR_C9, U_WMR_CA, U_WMR_CB, U_WMR_CC, U_WMR_CD, U_WMR_CE, U_WMR_CF, U_WMR_CHORD, U_WMR_CREATEBITMAP, U_WMR_CREATEBITMAPINDIRECT, U_WMR_CREATEBRUSHINDIRECT, U_WMR_CREATEFONTINDIRECT, U_WMR_CREATEPALETTE, U_WMR_CREATEPATTERNBRUSH, U_WMR_CREATEPENINDIRECT, U_WMR_CREATEREGION, U_WMR_D0, U_WMR_D1, U_WMR_D2, U_WMR_D3, U_WMR_D4, U_WMR_D5, U_WMR_D6, U_WMR_D7, U_WMR_D8, U_WMR_D9, U_WMR_DA, U_WMR_DB, U_WMR_DC, U_WMR_DD, U_WMR_DE, U_WMR_DELETEOBJECT, U_WMR_DF, U_WMR_DIBBITBLT, U_WMR_DIBCREATEPATTERNBRUSH, U_WMR_DIBSTRETCHBLT, U_WMR_DRAWTEXT, U_WMR_E0, U_WMR_E1, U_WMR_E2, U_WMR_E3, U_WMR_E4, U_WMR_E5, U_WMR_E6, U_WMR_E7, U_WMR_E8, U_WMR_E9, U_WMR_EA, U_WMR_EB, U_WMR_EC, U_WMR_ED, U_WMR_EE, U_WMR_EF, U_WMR_ELLIPSE, U_WMR_EOF, U_WMR_ESCAPE, U_WMR_EXCLUDECLIPRECT, U_WMR_EXTFLOODFILL, U_WMR_EXTTEXTOUT, U_WMR_F1, U_WMR_F2, U_WMR_F3, U_WMR_F4, U_WMR_F5, U_WMR_F6, U_WMR_F8, U_WMR_FILLREGION, U_WMR_FLOODFILL, U_WMR_FRAMEREGION, U_WMR_INTERSECTCLIPRECT, U_WMR_INVERTREGION, U_WMR_LINETO, U_WMR_MOVETO, U_WMR_OFFSETCLIPRGN, U_WMR_OFFSETVIEWPORTORG, U_WMR_OFFSETWINDOWORG, U_WMR_PAINTREGION, U_WMR_PATBLT, U_WMR_PIE, U_WMR_POLYGON, U_WMR_POLYLINE, U_WMR_POLYPOLYGON, U_WMR_REALIZEPALETTE, U_WMR_RECTANGLE, U_WMR_RESIZEPALETTE, U_WMR_RESTOREDC, U_WMR_ROUNDRECT, U_WMR_SAVEDC, U_WMR_SCALEVIEWPORTEXT, U_WMR_SCALEWINDOWEXT, U_WMR_SELECTCLIPREGION, U_WMR_SELECTOBJECT, U_WMR_SELECTPALETTE, U_WMR_SETBKCOLOR, U_WMR_SETBKMODE, U_WMR_SETDIBTODEV, U_WMR_SETMAPMODE, U_WMR_SETMAPPERFLAGS, U_WMR_SETPALENTRIES, U_WMR_SETPIXEL, U_WMR_SETPOLYFILLMODE, U_WMR_SETRELABS, U_WMR_SETROP2, U_WMR_SETSTRETCHBLTMODE, U_WMR_SETTEXTALIGN, U_WMR_SETTEXTCHAREXTRA, U_WMR_SETTEXTCOLOR, U_WMR_SETTEXTJUSTIFICATION, U_WMR_SETVIEWPORTEXT, U_WMR_SETVIEWPORTORG, U_WMR_SETWINDOWEXT, U_WMR_SETWINDOWORG, U_WMR_STRETCHBLT, U_WMR_STRETCHDIB, U_WMR_TEXTOUT, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::ulCornerInX, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::ulCornerInY, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::ulCornerOutX, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::ulCornerOutY, unknown_chars(), TCHUNK_SPECS::vadvance, Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::vieworg, TCHUNK_SPECS::weight, Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::winorg, Inkscape::Extension::Internal::WMF_MAX_DC, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::wmf_obj, Geom::Point::x(), U_POINT16::x, U_PAIRF::x, TCHUNK_SPECS::x, Geom::Point::y(), U_POINT16::y, U_PAIRF::y, and TCHUNK_SPECS::y.
Referenced by open().
|
overridevirtual |
Open a file.
filename | File path. Value is in platform-native encoding (see Glib::filename_to_utf8). |
Reimplemented from Inkscape::Extension::Implementation::Implementation.
Definition at line 3048 of file wmf-inout.cpp.
References SPStyle::baseline_shift, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::clips, SPDocument::createNewDocFromMem(), Inkscape::Extension::Internal::WMF_CALLBACK_DATA::dc, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::defs, delete_object(), Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::fill_set, Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::font_name, SPStyle::font_size, SPStyle::font_style, SPStyle::font_weight, free_wmf_strings(), Inkscape::Extension::Internal::WMF_CALLBACK_DATA::hatches, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::images, myMetaFileProc(), Inkscape::Extension::Internal::WMF_CALLBACK_DATA::n_obj, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::outsvg, SP_CSS_FONT_STYLE_NORMAL, SP_CSS_FONT_WEIGHT_400, SP_STROKE_LINECAP_SQUARE, SP_STROKE_LINEJOIN_MITER, SPStyle::stroke, SPStyle::stroke_dasharray, SPStyle::stroke_linecap, SPStyle::stroke_linejoin, Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::stroke_set, SPStyle::stroke_width, Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::style, SPStyle::text_decoration_line, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::tri, trinfo_init(), trinfo_load_ft_opts(), trinfo_release_except_FC(), Inkscape::Extension::Internal::WMF_MAX_DC, and Inkscape::Extension::Internal::WMF_CALLBACK_DATA::wmf_obj.
|
staticprotected |
Definition at line 677 of file wmf-inout.cpp.
References Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::clip_id, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::dc, Inkscape::Extension::Internal::DRAW_IMAGE, Inkscape::Extension::Internal::DRAW_PAINT, Inkscape::Extension::Internal::DRAW_PATTERN, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::dwRop2, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::dwRop3, Inkscape::Extension::Implementation::Implementation::fill(), SPStyle::fill, Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::fill_idx, Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::fill_mode, SPStyle::fill_rule, Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::fill_set, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::hatches, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::level, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::mask, MAX, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::outsvg, pix_to_abs_size(), Inkscape::Colors::Space::RGB, SP_STROKE_LINECAP_BUTT, SP_STROKE_LINECAP_ROUND, SP_STROKE_LINECAP_SQUARE, SP_STROKE_LINEJOIN_BEVEL, SP_STROKE_LINEJOIN_MITER, SP_STROKE_LINEJOIN_ROUND, SP_WIND_RULE_NONZERO, Inkscape::SVGOStringStream::str(), Inkscape::Extension::Internal::WMF_STRINGS::strings, Inkscape::Extension::Implementation::Implementation::stroke(), SPStyle::stroke, SPStyle::stroke_dasharray, Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::stroke_idx, SPStyle::stroke_linecap, SPStyle::stroke_linejoin, SPStyle::stroke_miterlimit, Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::stroke_mode, Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::stroke_set, SPStyle::stroke_width, and Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::style.
Referenced by myMetaFileProc().
|
staticprotected |
Definition at line 905 of file wmf-inout.cpp.
References current_scale(), Inkscape::Extension::Internal::WMF_CALLBACK_DATA::D2PscaleX, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::dc, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::level, and Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::ScaleInX.
Referenced by myMetaFileProc(), output_style(), select_font(), and select_pen().
|
staticprotected |
Definition at line 890 of file wmf-inout.cpp.
References _pix_x_to_point().
Referenced by myMetaFileProc(), and pix_to_xy().
|
staticprotected |
Definition at line 913 of file wmf-inout.cpp.
References pix_to_x_point(), pix_to_y_point(), and Inkscape::SVGOStringStream::str().
Referenced by myMetaFileProc().
|
staticprotected |
Definition at line 897 of file wmf-inout.cpp.
References _pix_y_to_point().
Referenced by myMetaFileProc(), and pix_to_xy().
|
staticprotected |
Definition at line 67 of file wmf-inout.cpp.
References SPItem::display_key_new(), SPDocument::ensureUpToDate(), Inkscape::Extension::get_print(), SPDocument::getRoot(), PRINT_WMF, and Inkscape::Drawing::setRoot().
Referenced by save().
|
override |
Definition at line 114 of file wmf-inout.cpp.
References Inkscape::Extension::db, Inkscape::Extension::DB::get(), print_document_to_file(), PRINT_WMF, Inkscape::Extension::Extension::set_param_bool(), and TableGen().
|
staticprotected |
Definition at line 1014 of file wmf-inout.cpp.
References Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::active_brush, add_bm16_image(), add_dib_image(), add_hatch(), U_WLOGBRUSH::Color, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::dc, Inkscape::Extension::Internal::DRAW_IMAGE, Inkscape::Extension::Internal::DRAW_PAINT, Inkscape::Extension::Internal::DRAW_PATTERN, SPStyle::fill, Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::fill_idx, Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::fill_mode, Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::fill_recidx, Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::fill_set, U_WLOGBRUSH::Hatch, index, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::level, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::n_obj, Inkscape::Extension::Internal::WMF_OBJECT::record, U_WLOGBRUSH::Style, Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::style, Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::textColor, U_RGB_COMPOSE(), U_WMR_CREATEBRUSHINDIRECT, U_WMR_CREATEPATTERNBRUSH, U_WMR_DIBCREATEPATTERNBRUSH, and Inkscape::Extension::Internal::WMF_CALLBACK_DATA::wmf_obj.
Referenced by myMetaFileProc().
|
staticprotected |
Definition at line 1098 of file wmf-inout.cpp.
References Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::active_font, SPStyle::baseline_shift, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::dc, U_FONT::Escapement, Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::font_name, SPStyle::font_size, SPStyle::font_style, SPStyle::font_weight, U_FONT::Height, index, U_FONT::Italic, Inkscape::Extension::Internal::WMF_OBJECT::level, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::level, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::n_obj, pix_to_abs_size(), Inkscape::Extension::Internal::WMF_OBJECT::record, SP_CSS_FONT_STYLE_ITALIC, SP_CSS_FONT_STYLE_NORMAL, SP_CSS_FONT_WEIGHT_100, SP_CSS_FONT_WEIGHT_200, SP_CSS_FONT_WEIGHT_300, SP_CSS_FONT_WEIGHT_400, SP_CSS_FONT_WEIGHT_500, SP_CSS_FONT_WEIGHT_600, SP_CSS_FONT_WEIGHT_700, SP_CSS_FONT_WEIGHT_800, SP_CSS_FONT_WEIGHT_900, SP_CSS_FONT_WEIGHT_BOLD, SP_CSS_FONT_WEIGHT_BOLDER, SP_CSS_FONT_WEIGHT_LIGHTER, SP_CSS_FONT_WEIGHT_NORMAL, U_FONT::StrikeOut, Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::style, SPStyle::text_decoration_line, U_FONT::Underline, U_FONT::Weight, and Inkscape::Extension::Internal::WMF_CALLBACK_DATA::wmf_obj.
Referenced by myMetaFileProc().
|
staticprotected |
Definition at line 923 of file wmf-inout.cpp.
References Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::active_pen, U_PEN::Color, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::dc, index, Inkscape::Extension::Internal::WMF_OBJECT::level, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::level, Inkscape::Extension::Internal::WMF_CALLBACK_DATA::n_obj, pix_to_abs_size(), Inkscape::Extension::Internal::WMF_OBJECT::record, SPILength::setDouble(), SP_STROKE_LINECAP_BUTT, SP_STROKE_LINECAP_ROUND, SP_STROKE_LINECAP_SQUARE, SP_STROKE_LINEJOIN_BEVEL, SP_STROKE_LINEJOIN_MITER, SP_STROKE_LINEJOIN_ROUND, SPStyle::stroke, SPStyle::stroke_dasharray, SPStyle::stroke_linecap, SPStyle::stroke_linejoin, Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::stroke_set, SPStyle::stroke_width, U_PEN::Style, Inkscape::Extension::Internal::WMF_DEVICE_CONTEXT::style, U_RGB_COMPOSE(), width, U_PEN::Widthw, and Inkscape::Extension::Internal::WMF_CALLBACK_DATA::wmf_obj.
Referenced by myMetaFileProc().
|
staticprotected |
Definition at line 1235 of file wmf-inout.cpp.
Referenced by myMetaFileProc().