emf-win32-print.cpp revision 5422ba934bd17d7f2578fda78ddc61df933a8113
1879N/A#ifdef HAVE_CONFIG_H
0N/A#include "libnr/n-art-bpath.h"
0N/A#include "libnr/nr-point-matrix-ops.h"
0N/A#include "libnr/nr-matrix.h"
0N/A#include "libnr/nr-matrix-fns.h"
0N/A#include "libnr/nr-pixblock.h"
0N/A#include "display/canvas-bpath.h"
0N/A#include "gtk/gtkdialog.h"
0N/A#include "gtk/gtkstock.h"
0N/A#include "document.h"
0N/A#include "sp-paint-server.h"
0N/A#include "inkscape_version.h"
0N/A#include "libnrtype/FontFactory.h"
0N/A#include "libnrtype/font-instance.h"
0N/A#include "libnrtype/font-style-to-pos.h"
0N/A#include "emf-win32-print.h"
0N/A#include "unit-constants.h"
0N/A#include "extension/extension.h"
0N/A#define WIN32_LEAN_AND_MEAN
0N/A bool pageBoundingBox;
1879N/A if (pageBoundingBox) {
NULL );
if (!hdc) return 0;
if ( metafile ) {
const char *comment)
if (!hdc) return 0;
if (style) {
if (hbrush)
if (style) {
int linecap = 0;
int linejoin = 0;
float oldmiterlimit;
using NR::X;
using NR::Y;
&lb,
dash );
&lb,
NULL );
if ( !hpen ) {
hdc,
&oldmiterlimit );
if (n_dash) {
delete[] dash;
if (hpen)
if (fill_path) {
delete[] fill_path;
num++;
while (num--) {
return tmp;
if (!hdc) return 0;
if (!hdc) return 0;
if (!stroke_and_fill) {
if (stroke_and_fill) {
delete[] fill_path;
destroy_pen();
unsigned int closed;
using NR::X;
using NR::Y;
case NR_MOVETO:
if (closed) {
case NR_MOVETO_OPEN:
if (closed) {
case NR_LINETO:
case NR_CURVETO:
if (closed) {
return closed;
if (!hdc) return 0;
#ifdef USE_PANGO_WIN32
font_instance *tf = (font_factory::Default())->Face(style->text->font_family.value, font_style_to_pos(*style));
if (!hfont) {
int align =
p = p * text_transform;