sp-mask.cpp revision 51dc158adbe2c9d1df3c941cbf78b90944d1afc2
/*
* 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);
static void
{
}
}
}
static void
{
delete mask->cobjectgroup;
}
/* Register ourselves */
}
// Unregister ourselves
}
// We simply unref and let item manage this in handler
}
CObjectGroup::release();
}
switch (key) {
case SP_ATTR_MASKUNITS:
if (value) {
}
}
break;
case SP_ATTR_MASKCONTENTUNITS:
if (value) {
}
}
break;
default:
break;
}
}
/* Invoke SPObjectGroup implementation */
/* Show new object */
if (SP_IS_ITEM (ochild)) {
v->key,
if (ac) {
}
}
}
}
if (flags & SP_OBJECT_MODIFIED_FLAG) {
}
l = g_slist_prepend (l, child);
}
l = g_slist_reverse (l);
while (l) {
l = g_slist_remove(l, child);
}
}
g->setChildTransform(t);
} else {
}
}
}
if (flags & SP_OBJECT_MODIFIED_FLAG) {
}
l = g_slist_prepend(l, child);
}
l = g_slist_reverse(l);
while (l) {
l = g_slist_remove(l, child);
}
}
}
Inkscape::XML::Node* CMask::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 *
{
if (NULL != applyTransform) {
transform *= (*applyTransform);
}
}
return mask_id;
}
{
if (SP_IS_ITEM (child)) {
if (ac) {
}
}
}
ai->setChildTransform(t);
}
return ai;
}
{
if (SP_IS_ITEM (child)) {
}
}
/* We simply unref and let item to manage this in handler */
return;
}
}
}
void
{
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 :