/inkscape/src/xml/ |
H A D | node-fns.h | 21 #include "xml/node.h" 26 bool id_permitted(Node const *node); 30 * @brief Get the next node in sibling order 31 * @param node The origin node 32 * @return The next node in sibling order 35 inline Node *next_node(Node *node) { argument 36 return ( node ? node->next() : NULL ); 38 inline Node const *next_node(Node const *node) { argument 55 previous_node(Node const *node) argument 67 parent_node(Node *node) argument 70 parent_node(Node const *node) argument [all...] |
H A D | node-iterators.h | 16 #include "xml/node.h" 22 static Node const *next(Node const *node) { argument 23 return ( node ? node->next() : NULL ); 28 static Node const *next(Node const *node) { argument 29 return ( node ? node->parent() : NULL );
|
H A D | subtree.cpp | 15 #include "xml/node.h" 17 #include "xml/node-iterators.h" 32 void synthesize_events_recursive(Node &node, NodeObserver &observer) { argument 33 node.synthesizeEvents(observer); 34 for ( NodeSiblingIterator iter = node.firstChild() ; iter ; ++iter ) {
|
H A D | log-builder.cpp | 34 void LogBuilder::addChild(Node &node, Node &child, Node *prev) { argument 35 _log = new Inkscape::XML::EventAdd(&node, &child, prev, _log); 39 void LogBuilder::removeChild(Node &node, Node &child, Node *prev) { argument 40 _log = new Inkscape::XML::EventDel(&node, &child, prev, _log); 44 void LogBuilder::setChildOrder(Node &node, Node &child, argument 47 _log = new Inkscape::XML::EventChgOrder(&node, &child, old_prev, new_prev, _log); 51 void LogBuilder::setContent(Node &node, argument 55 _log = new Inkscape::XML::EventChgContent(&node, old_content, new_content, _log); 59 void LogBuilder::setAttribute(Node &node, GQuark name, argument 63 _log = new Inkscape::XML::EventChgAttr(&node, nam [all...] |
H A D | node-fns.cpp | 10 #include "xml/node-iterators.h" 12 #include "node-fns.h" 45 bool id_permitted(Node const *node) { argument 46 g_return_val_if_fail(node != NULL, false); 48 if ( node->type() != ELEMENT_NODE ) { 52 return id_permitted_internal_memoized((GQuark)node->code()); 56 node_matches(Node const &n) : node(n) {} 57 bool operator()(Node const &other) { return &other == &node; } 58 Node const &node; member in struct:Inkscape::XML::node_matches 62 Node *previous_node(Node *node) { argument [all...] |
H A D | node-observer.h | 2 * @brief Interface for XML node observers 34 * @brief Interface for XML node observers 37 * XML node state change notifications. The observer has to be registered using 38 * the Node::addObserver() method to be notified of changes of this node only, 43 * Be careful when e.g. changing an attribute of @c node in notifyAttributeChanged(). 65 * This method is called whenever a child is added to the observed node. The @c prev 68 * @param node The changed XML node 69 * @param child The newly added child node 70 * @param prev The node afte 72 notifyChildAdded(Node &node, Node &child, Node *prev) argument 88 notifyChildRemoved(Node &node, Node &child, Node *prev) argument 107 notifyChildOrderChanged(Node &node, Node &child, Node *old_prev, Node *new_prev) argument 125 notifyContentChanged(Node &node, Util::ptr_shared<char> old_content, Util::ptr_shared<char> new_content) argument 143 notifyAttributeChanged(Node &node, GQuark name, Util::ptr_shared<char> old_value, Util::ptr_shared<char> new_value) argument [all...] |
H A D | simple-document.cpp | 20 #include "xml/element-node.h" 21 #include "xml/text-node.h" 22 #include "xml/comment-node.h" 23 #include "xml/pi-node.h" 102 void SimpleDocument::notifyContentChanged(Node &node, argument 107 _log_builder.setContent(node, old_content, new_content); 111 void SimpleDocument::notifyAttributeChanged(Node &node, argument 117 _log_builder.setAttribute(node, name, old_value, new_value);
|
H A D | composite-node-observer.cpp | 19 #include "xml/composite-node-observer.h" 20 #include "xml/node-event-vector.h" 28 void CompositeNodeObserver::notifyChildAdded(Node &node, Node &child, Node *prev) argument 35 iter->observer.notifyChildAdded(node, child, prev); 41 void CompositeNodeObserver::notifyChildRemoved(Node &node, Node &child, argument 49 iter->observer.notifyChildRemoved(node, child, prev); 55 void CompositeNodeObserver::notifyChildOrderChanged(Node &node, Node &child, argument 64 iter->observer.notifyChildOrderChanged(node, child, old_prev, new_prev); 71 Node &node, 79 iter->observer.notifyContentChanged(node, old_conten 70 notifyContentChanged( Node &node, Util::ptr_shared<char> old_content, Util::ptr_shared<char> new_content ) argument 85 notifyAttributeChanged( Node &node, GQuark name, Util::ptr_shared<char> old_value, Util::ptr_shared<char> new_value ) argument 118 notifyChildAdded(Node &node, Node &child, Node *prev) argument 124 notifyChildRemoved(Node &node, Node &child, Node *prev) argument 130 notifyChildOrderChanged(Node &node, Node &child, Node *old_prev, Node *new_prev) argument 136 notifyContentChanged(Node &node, Util::ptr_shared<char> old_content, Util::ptr_shared<char> new_content) argument 142 notifyAttributeChanged(Node &node, GQuark name, Util::ptr_shared<char> old_value, Util::ptr_shared<char> new_value) argument [all...] |
H A D | event.cpp | 23 #include "xml/node-observer.h" 109 void notifyAttributeChanged(Node &node, GQuark name, argument 113 node.setAttribute(g_quark_to_string(name), new_value); 116 void notifyContentChanged(Node &node, argument 120 node.setContent(new_value); 411 static Glib::ustring node_to_string(Node const &node) { argument 414 switch (node.type()) { 434 snprintf(buffer, 40, "0x%p", &node); 463 void notifyAttributeChanged(Node &node, GQuark name, argument 468 g_warning("Event: Set attribute %s to \"%s\" on %s", g_quark_to_string(name), new_value.pointer(), node_to_string(node) 474 notifyContentChanged(Node &node, Inkscape::Util::ptr_shared<char> , Inkscape::Util::ptr_shared<char> new_value) argument [all...] |
/inkscape/src/helper/ |
H A D | gnome-utils.cpp | 90 GList *node = tmp_list; local 94 node->data = g_filename_from_uri(s, NULL, NULL); 96 if (!node->data) 97 node->data = g_strdup(s + 5); 99 result = g_list_remove_link(result, node); 100 g_list_free_1(node);
|
/inkscape/src/ |
H A D | sp-factory.cpp | 293 else if (id == "rdf:RDF") // no SP node yet 295 else if (id == "inkscape:clipboard") // SP node not necessary 308 std::string NodeTraits::get_type_string(Inkscape::XML::Node const &node) argument 312 switch (node.type()) { 318 char const *const sptype = node.attribute("sodipodi:type"); 323 name = node.name();
|
H A D | sp-mesh-array.cpp | 80 row = r*3; // Convert from patch array to node array 95 SPMeshNode* node = new SPMeshNode; local 97 node->node_type = MG_NODE_TYPE_HANDLE; 98 if( (i == 0 || i == 3) && (j == 0 || j == 3 ) ) node->node_type = MG_NODE_TYPE_CORNER; 99 if( (i == 1 || i == 2) && (j == 1 || j == 2 ) ) node->node_type = MG_NODE_TYPE_TENSOR; 100 (*nodes)[row+i].push_back( node ); 432 // Set node points 1/3 of the way between corners. 466 // std::cout << "Update node: " << i << ", " << j << " " << coonsTensorPoint( t ) << std::endl; 819 // Set node edge. 1315 // Get node arra [all...] |
H A D | sp-metadata.cpp | 17 #include "xml/node-iterators.h" 44 void strip_ids_recursively(Inkscape::XML::Node *node) { argument 46 if ( node->type() == Inkscape::XML::ELEMENT_NODE ) { 47 node->setAttribute("id", NULL); 49 for ( NodeSiblingIterator iter=node->firstChild() ; iter ; ++iter ) {
|
H A D | object-test.h | 16 #include "xml/node.h" 131 Inkscape::XML::Node *node = path->getRepr(); local 132 assert(node != NULL); 134 Inkscape::XML::Document *xml_doc = node->document(); 136 Inkscape::XML::Node *parent = node->parent(); 151 parent->addChild(clone, node); 175 Inkscape::XML::Node *node = group->getRepr(); local 176 assert(node != NULL); 178 Inkscape::XML::Document *xml_doc = node->document(); 185 node [all...] |
/inkscape/src/libcola/ |
H A D | cycle_detector.cpp | 95 Node *node = (*nodes)[i]; local 96 cout << "nodes[" << node->id << "]: "; 98 if (isSink(node)) { cout << "SINK"; } 100 for (unsigned j = 0; j < node->dests.size(); j++) { cout << node->dests[j] << " "; } 181 // set up this node as being visited. 191 // visit this node 200 // else just get the timestamp of the node we just visited 215 // this node is part of a cycle 226 bool CycleDetector::isSink(Node *node) { argument [all...] |
/inkscape/src/filters/ |
H A D | merge.cpp | 72 /* TODO: Don't just clone, but create a new repr node and write all 100 SPFeMergeNode *node = SP_FEMERGENODE(input); local 101 nr_merge->set_input(in_nr, node->input);
|
H A D | componenttransfer.cpp | 52 SPObject* node = sp_componenttransfer->children; local 53 for(;node;node=node->next){ 56 SPFeFuncNode *funcNode = SP_FEFUNCNODE(node); 77 sp_componenttransfer->renderer->type[i] = ((SPFeFuncNode *) node)->type; 78 sp_componenttransfer->renderer->tableValues[i] = ((SPFeFuncNode *) node)->tableValues; 79 sp_componenttransfer->renderer->slope[i] = ((SPFeFuncNode *) node)->slope; 80 sp_componenttransfer->renderer->intercept[i] = ((SPFeFuncNode *) node)->intercept; 81 sp_componenttransfer->renderer->amplitude[i] = ((SPFeFuncNode *) node) [all...] |
/inkscape/src/extension/internal/filter/ |
H A D | filter-file.cpp | 133 Filter::filters_load_node (Inkscape::XML::Node * node, gchar * menuname) argument 135 gchar const * label = node->attribute("inkscape:label"); 136 gchar const * menu = node->attribute("inkscape:menu"); 137 gchar const * menu_tooltip = node->attribute("inkscape:menu-tooltip"); 138 gchar const * id = node->attribute("id"); 159 // FIXME: Bad hack: since we pull out a single filter node out of SVG file and 162 node->setAttribute("xmlns:inkscape", SP_INKSCAPE_NS_URI); 165 sp_repr_write_stream(node, writer, 0, FALSE, g_quark_from_static_string("svg"), 0, 0);
|
H A D | filter.cpp | 18 #include "xml/simple-node.h" 136 Inkscape::XML::Node * node = spitem->getRepr(); local 138 SPCSSAttr * css = sp_repr_css_attr(node, "style"); 153 sp_repr_css_set(node, css, "style");
|
/inkscape/src/extension/param/ |
H A D | string.cpp | 19 #include "xml/node.h" 49 * @param node The node where the value may be placed. 51 const gchar * ParamString::set(const gchar * in, SPDocument * /*doc*/, Inkscape::XML::Node * /*node*/) 130 ParamStringEntry (ParamString * pref, SPDocument * doc, Inkscape::XML::Node * node, sigc::signal<void> * changeSignal) : argument 131 Gtk::Entry(), _pref(pref), _doc(doc), _node(node), _changeSignal(changeSignal) { 162 Gtk::Widget * ParamString::get_widget(SPDocument * doc, Inkscape::XML::Node * node, sigc::signal<void> * changeSignal) argument 173 ParamStringEntry * textbox = new ParamStringEntry(this, doc, node, changeSignal);
|
H A D | bool.cpp | 18 #include "xml/node.h" 55 bool ParamBool::set( bool in, SPDocument * /*doc*/, Inkscape::XML::Node * /*node*/ ) 67 bool ParamBool::get(const SPDocument * /*doc*/, const Inkscape::XML::Node * /*node*/) const 86 ParamBoolCheckButton (ParamBool * param, SPDocument * doc, Inkscape::XML::Node * node, sigc::signal<void> * changeSignal) : argument 87 Gtk::CheckButton(), _pref(param), _doc(doc), _node(node), _changeSignal(changeSignal) { 127 Gtk::Widget *ParamBool::get_widget(SPDocument * doc, Inkscape::XML::Node * node, sigc::signal<void> * changeSignal) argument 144 ParamBoolCheckButton * checkbox = Gtk::manage(new ParamBoolCheckButton(this, doc, node, changeSignal));
|
H A D | enum.cpp | 25 #include "xml/node.h" 61 for (Inkscape::XML::Node *node = xml->firstChild(); node; node = node->next()) { 62 char const * chname = node->name(); 66 if (node->firstChild()) { 67 contents = node->firstChild()->content(); 74 if (node->attribute("msgctxt") != NULL) { 75 newguitext = g_dpgettext2(NULL, node 221 ParamComboBoxEntry(ParamComboBox * pref, SPDocument * doc, Inkscape::XML::Node * node, sigc::signal<void> * changeSignal) argument 247 get_widget(SPDocument * doc, Inkscape::XML::Node * node, sigc::signal<void> * changeSignal) argument [all...] |
/inkscape/src/libavoid/ |
H A D | shape.cpp | 52 VertInf *node = NULL; local 55 node = new VertInf(_router, i, _poly.ps[pt_i], addToRouterNow); 59 _firstVert = node; 63 node->shPrev = last; 64 last->shNext = node; 65 //node->lstPrev = last; 66 //last->lstNext = node; 69 last = node; 72 _lastVert = node;
|
/inkscape/src/libvpsc/ |
H A D | solve_VPSC.cpp | 280 struct node { struct in namespace:vpsc 281 set<node*> in; 282 set<node*> out; 286 map<Variable*, node*> varmap; 287 vector<node*> graph; 289 node *u=new node; 305 node *u=NULL; 306 vector<node*>::iterator i=graph.begin(); 318 for(set<node*> [all...] |
/inkscape/src/extension/internal/bitmap/ |
H A D | imagemagick.cpp | 83 Inkscape::XML::Node *node = reinterpret_cast<Inkscape::XML::Node *>(item->getRepr()); local 84 if (!strcmp(node->name(), "image") || !strcmp(node->name(), "svg:image")) 86 _nodes[_imageCount] = node; 87 char const *xlink = node->attribute("xlink:href");
|