7
7
This file is part of the extensible drawing editor Ipe.
8
Copyright (C) 1993-2007 Otfried Cheong
8
Copyright (C) 1993-2009 Otfried Cheong
10
10
Ipe is free software; you can redistribute it and/or modify it
11
11
under the terms of the GNU General Public License as published by
12
the Free Software Foundation; either version 2 of the License, or
12
the Free Software Foundation; either version 3 of the License, or
13
13
(at your option) any later version.
15
15
As a special exception, you have permission to link Ipe with the
38
38
#include "ipeimage.h"
39
39
#include "ipepdfwriter.h"
44
// --------------------------------------------------------------------
46
class IpePsPainter : public IpePdfPainter {
48
IpePsPainter(const IpeStyleSheet *style, IpeStream &stream);
52
virtual void DoDrawPath();
53
virtual void DoDrawBitmap(IpeBitmap bitmap);
57
void FillPath(bool eoFill, bool preservePath);
63
// --------------------------------------------------------------------
67
IpePsWriter(IpeTellStream &stream, const IpeDocument *doc, bool noColor);
69
bool CreateHeader(IpeString creator, int pno = 0, int vno = 0);
70
void CreatePageView(int pno = 0, int vno = 0);
71
void CreateXml(IpeString creator, int compressLevel);
75
void EmbedFont(const IpeFont &font);
78
IpeTellStream &iStream;
79
const IpeDocument *iDoc;
41
// --------------------------------------------------------------------
47
class PsPainter : public PdfPainter {
49
PsPainter(const Cascade *style, Stream &stream);
53
virtual void doNewPath();
54
virtual void doDrawPath(TPathMode mode);
55
virtual void doDrawBitmap(Bitmap bitmap);
56
virtual void doAddClipPath();
60
void fillPath(bool eoFill, bool preservePath);
66
// --------------------------------------------------------------------
70
PsWriter(TellStream &stream, const Document *doc, bool noColor);
72
bool createHeader(int pno = 0, int vno = 0);
73
void createPageView(int pno = 0, int vno = 0);
74
void createXml(int compressLevel);
78
void embedFont(const Font &font);
83
88
// --------------------------------------------------------------------