sp-mask.cpp revision 8a9fe93c202b3f3a4f5e0307f9a4cdf2587e81e6
#define __SP_MASK_C__
/*
* SVG <mask> implementation
*
* Authors:
* Lauris Kaplinski <lauris@kaplinski.com>
*
* Copyright (C) 2003 authors
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include "display/nr-arena.h"
#include "display/nr-arena-group.h"
#include "enums.h"
#include "attributes.h"
#include "document.h"
#include "sp-item.h"
#include "sp-mask.h"
struct SPMaskView {
unsigned int key;
};
static void sp_mask_child_added (SPObject *object, Inkscape::XML::Node *child, Inkscape::XML::Node *ref);
static Inkscape::XML::Node *sp_mask_write (SPObject *object, Inkscape::XML::Node *repr, guint flags);
static SPObjectGroupClass *parent_class;
sp_mask_get_type (void)
{
if (!type) {
sizeof (SPMaskClass),
sizeof (SPMask),
16,
NULL, /* value_table */
};
}
return type;
}
static void
{
}
static void
{
}
static void
{
}
/* Register ourselves */
}
static void
{
if (SP_OBJECT_DOCUMENT (object)) {
/* Unregister ourselves */
}
/* We simply unref and let item manage this in handler */
}
}
}
static void
{
switch (key) {
case SP_ATTR_MASKUNITS:
if (value) {
}
}
break;
case SP_ATTR_MASKCONTENTUNITS:
if (value) {
}
}
break;
default:
break;
}
}
static void
{
/* Invoke SPObjectGroup implementation */
/* Show new object */
if (SP_IS_ITEM (ochild)) {
NR_ARENA_ITEM_ARENA (v->arenaitem),
v->key,
if (ac) {
}
}
}
}
static void
{
if (flags & SP_OBJECT_MODIFIED_FLAG) {
}
for (SPObject *child = sp_object_first_child(SP_OBJECT(og)); child != NULL; child = SP_OBJECT_NEXT(child)) {
l = g_slist_prepend (l, child);
}
l = g_slist_reverse (l);
while (l) {
l = g_slist_remove (l, child);
}
}
NRMatrix t;
} else {
}
}
}
static void
{
if (flags & SP_OBJECT_MODIFIED_FLAG) {
}
for (SPObject *child = sp_object_first_child(SP_OBJECT(og)); child != NULL; child = SP_OBJECT_NEXT(child)) {
l = g_slist_prepend (l, child);
}
l = g_slist_reverse (l);
while (l) {
l = g_slist_remove (l, child);
}
}
}
{
}
return repr;
}
{
for (SPObject *child = sp_object_first_child(SP_OBJECT(mask)) ; child != NULL; child = SP_OBJECT_NEXT(child)) {
if (SP_IS_ITEM (child)) {
if (ac) {
/* The order is not important in mask */
}
}
}
NRMatrix t;
nr_matrix_set_scale (&t, mask->display->bbox.x1 - mask->display->bbox.x0, mask->display->bbox.y1 - mask->display->bbox.y0);
}
return ai;
}
void
{
for (SPObject *child = sp_object_first_child(SP_OBJECT(cp)); child != NULL; child = SP_OBJECT_NEXT(child)) {
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:encoding=utf-8:textwidth=99 :