/*
* Inkscape::SelectionDescriber - shows messages describing selection
*
* Authors:
* MenTaLguY <mental@rydia.net>
* Jon A. Cruz <jon@joncruz.org>
*
* Copyright (C) 2004 MenTaLguY
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "document.h"
#include "sp-item-group.h"
#include "util/find-last-if.h"
#include "layer-fns.h"
// TODO move the documentation comments into the .h file
namespace Inkscape {
namespace {
return SP_IS_GROUP(&object) &&
}
/** Finds the next sibling layer for a \a layer
*
* @returns NULL if there are no further layers under a parent
*/
);
}
/** Finds the previous sibling layer for a \a layer
*
* @returns NULL if there are no further layers under a parent
*/
));
}
/** Finds the first child of a \a layer
*
* @returns NULL if layer has no sublayers
*/
while (layer) {
);
if (layer) {
}
}
return first_descendant;
}
/** Finds the last (topmost) child of a \a layer
*
* @returns NULL if layer has no sublayers
*/
);
}
if (sibling) {
break;
}
}
return result;
}
}
/** Finds the next layer under \a root, relative to \a layer in
* depth-first order.
*
* @returns NULL if there are no further layers under \a root
*/
if (sibling) {
if (descendant) {
result = descendant;
} else {
}
}
return result;
}
/** Finds the previous layer under \a root, relative to \a layer in
* depth-first order.
*
* @returns NULL if there are no prior layers under \a root.
*/
if (child) {
if (sibling) {
} else {
}
}
return result;
}
/**
* Creates a new layer. Advances to the next layer id indicated
* by the string "layerNN", then creates a new group object of
* that id with attribute inkscape:groupmode='layer', and finally
* appends the new group object to \a root after object \a layer.
*
* \pre \a root should be either \a layer or an ancestor of it
*/
do {
if ( LPOS_CHILD == position ) {
if ( NULL != child_layer ) {
layer = child_layer;
}
}
} else {
if ( LPOS_BELOW == position ) {
}
}
}
}
/*
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 :