Code

r10817@tres: ted | 2006-01-29 15:45:22 -0800
[inkscape.git] / src / extension / internal / latex-pstricks.h
1 #ifndef __INKSCAPE_EXTENSION_INTERNAL_PRINT_LATEX_H__
2 #define __INKSCAPE_EXTENSION_INTERNAL_PRINT_LATEX_H__
4 /*
5  * LaTeX Printing
6  *
7  * Author:
8  *  Michael Forbes <miforbes@mbhs.edu>
9  * 
10  * Copyright (C) 2004 Authors
11  * 
12  * Released under GNU GPL, read the file 'COPYING' for more information
13  */
15 #include <config.h>
17 #include "extension/implementation/implementation.h"
18 #include "extension/extension.h"
20 #include "svg/stringstream.h"
22 namespace Inkscape {
23 namespace Extension {
24 namespace Internal {
26 class PrintLatex : public Inkscape::Extension::Implementation::Implementation {
28     float  _width;
29     float  _height;
30     FILE * _stream;
32         void print_bpath (SVGOStringStream &os, const NArtBpath *bp, const NRMatrix *transform);
34 public:
35         PrintLatex (void);
36         virtual ~PrintLatex (void);
38         /* Print functions */
39         virtual unsigned int setup (Inkscape::Extension::Print * module);
41         virtual unsigned int begin (Inkscape::Extension::Print * module, SPDocument *doc);
42         virtual unsigned int finish (Inkscape::Extension::Print * module);
44         /* Rendering methods */
45         virtual unsigned int fill (Inkscape::Extension::Print * module, const NRBPath *bpath, const NRMatrix *ctm, const SPStyle *style,
46                 const NRRect *pbox, const NRRect *dbox, const NRRect *bbox);
47         virtual unsigned int stroke (Inkscape::Extension::Print * module, const NRBPath *bpath, const NRMatrix *transform, const SPStyle *style,
48                 const NRRect *pbox, const NRRect *dbox, const NRRect *bbox);
49         virtual unsigned int comment(Inkscape::Extension::Print *module, const char * comment);
50         bool textToPath (Inkscape::Extension::Print * ext);
52         static void init (void);
53 };
55 }  /* namespace Internal */
56 }  /* namespace Extension */
57 }  /* namespace Inkscape */
59 #endif /* __INKSCAPE_EXTENSION_INTERNAL_PRINT_LATEX */
61 /*
62   Local Variables:
63   mode:cpp
64   c-file-style:"stroustrup"
65   c-file-offsets:((innamespace . 0)(inline-open . 0))
66   indent-tabs-mode:nil
67   fill-column:99
68   End:
69 */
70 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :