cairo-renderer.h revision d5ad05ac17abfd7d2eae333a8c1233971e1c1a8f
/** \file
* Declaration of CairoRenderer, a class used for rendering via a CairoRenderContext.
*/
/*
* Authors:
* Miklos Erdelyi <erdelyim@gmail.com>
*
* Copyright (C) 2006 Miklos Erdelyi
*
* Licensed under GNU GPL
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "extension/extension.h"
#include <set>
#include <string>
//#include "libnrtype/font-instance.h"
#include "style.h"
#include "sp-item.h"
#include <cairo.h>
CairoRenderer(void);
virtual ~CairoRenderer(void);
CairoRenderContext *createContext(void);
/** Initializes the CairoRenderContext according to the specified
SPDocument. A set*Target function can only be called on the context
before setupDocument. */
/** Traverses the object tree and invokes the render methods. */
/** If _omitText is true, no text will be output to the PDF document.
The PDF will be exactly the same as if the text was written to it and then erased. */
bool _omitText;
};
// FIXME: this should be a static method of CairoRenderer
void calculatePreserveAspectRatio(unsigned int aspect_align, unsigned int aspect_clip, double vp_width,
} /* namespace Internal */
} /* namespace Extension */
} /* namespace Inkscape */
#endif /* !EXTENSION_INTERNAL_CAIRO_RENDERER_H_SEEN */
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :