sp-mask.cpp revision 679c152fead236f995fcd535f9d32c146bef76bc
/*
* SVG <mask> implementation
*
* Authors:
* Lauris Kaplinski <lauris@kaplinski.com>
* Jon A. Cruz <jon@joncruz.org>
* Abhishek Sharma
*
* Copyright (C) 2003 authors
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include <cstring>
#include <string>
#include "display/drawing-group.h"
#include "enums.h"
#include "attributes.h"
#include "document.h"
#include "document-private.h"
#include "sp-item.h"
#include "sp-mask.h"
struct SPMaskView {
unsigned int key;
};
SPMaskView *sp_mask_view_new_prepend (SPMaskView *list, unsigned int key, Inkscape::DrawingItem *arenaitem);
this->maskUnits_set = FALSE;
this->maskContentUnits_set = FALSE;
}
}
this->readAttr( "maskUnits" );
this->readAttr( "maskContentUnits" );
/* Register ourselves */
}
if (this->document) {
// Unregister ourselves
}
while (this->display) {
// We simply unref and let item manage this in handler
}
SPObjectGroup::release();
}
switch (key) {
case SP_ATTR_MASKUNITS:
this->maskUnits_set = FALSE;
if (value) {
this->maskUnits = SP_CONTENT_UNITS_USERSPACEONUSE;
this->maskUnits_set = TRUE;
this->maskUnits_set = TRUE;
}
}
break;
case SP_ATTR_MASKCONTENTUNITS:
this->maskContentUnits_set = FALSE;
if (value) {
this->maskContentUnits_set = TRUE;
this->maskContentUnits_set = TRUE;
}
}
break;
default:
break;
}
}
/* Invoke SPObjectGroup implementation */
/* Show new object */
if (SP_IS_ITEM (ochild)) {
Inkscape::DrawingItem *ac = SP_ITEM (ochild)->invoke_show(v->arenaitem->drawing(), v->key, SP_ITEM_REFERENCE_FLAGS);
if (ac) {
}
}
}
}
if (flags & SP_OBJECT_MODIFIED_FLAG) {
}
for (std::vector<SPObject *>::const_iterator child = children.begin();child != children.end();++child) {
}
for (std::vector<SPObject *>::const_iterator child = children.begin();child != children.end();++child) {
}
}
g->setChildTransform(t);
} else {
}
}
}
if (flags & SP_OBJECT_MODIFIED_FLAG) {
}
for (std::vector<SPObject *>::const_iterator child = children.begin();child != children.end();++child) {
}
for (std::vector<SPObject *>::const_iterator child = children.begin();child != children.end();++child) {
}
}
}
Inkscape::XML::Node* SPMask::write(Inkscape::XML::Document* xml_doc, Inkscape::XML::Node* repr, guint flags) {
}
return repr;
}
// Create a mask element (using passed elements), add it to <defs>
const gchar *
sp_mask_create (std::vector<Inkscape::XML::Node*> &reprs, SPDocument *document, Geom::Affine const* applyTransform)
{
for (std::vector<Inkscape::XML::Node*>::const_iterator it = reprs.begin(); it != reprs.end(); ++it) {
if (NULL != applyTransform) {
}
}
return mask_id;
}
if (SP_IS_ITEM (child)) {
if (ac) {
}
}
}
ai->setChildTransform(t);
}
return ai;
}
g_return_if_fail (this != NULL);
g_return_if_fail (SP_IS_MASK (this));
if (SP_IS_ITEM (child)) {
}
}
/* We simply unref and let item to manage this in handler */
return;
}
}
}
break;
}
}
}
/* Mask views */
{
return new_mask_view;
}
{
} else {
}
return list;
}
/*
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:fileencoding=utf-8:textwidth=99 :