sp-path.cpp revision 203b91a85466178dd14a24236e0e42539bc4a24b
919N/A#ifdef HAVE_CONFIG_H
551N/A#include "live_effects/effect.h"
551N/A#include "live_effects/lpeobject.h"
551N/A#include "live_effects/lpeobject-reference.h"
551N/A#include "sp-lpe-item.h"
551N/A#include "helper/geom-curves.h"
551N/A#include "attributes.h"
551N/A#include "sp-guide.h"
551N/A#include "document.h"
551N/A#include "desktop-handles.h"
551N/A#include "desktop-style.h"
551N/A#include "event-context.h"
551N/A#include "inkscape.h"
551N/A#include "message-stack.h"
551N/A#include "selection.h"
551N/A#define noPATH_VERBOSE
551N/A#include "sp-factory.h"
551N/A if (hasPathEffect()) {
551N/A sp_conn_end_pair_build(this);
case SP_ATTR_D:
if (value) {
if (curve) {
case SP_PROP_MARKER:
case SP_PROP_MARKER_START:
case SP_PROP_MARKER_MID:
case SP_PROP_MARKER_END:
case SP_ATTR_CONNECTOR_TYPE:
case SP_ATTR_CONNECTION_START:
case SP_ATTR_CONNECTION_END:
Inkscape::XML::Node* SPPath::write(Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, guint flags) {
#ifdef PATH_VERBOSE
return repr;
if (flags & (SP_OBJECT_MODIFIED_FLAG | SP_OBJECT_STYLE_MODIFIED_FLAG | SP_OBJECT_VIEWPORT_MODIFIED_FLAG)) {
flags &= ~SP_OBJECT_USER_MODIFIED_FLAG_B; // since we change the description, it's not a "just translation" anymore
// if path has the CLONE_ORIGINAL LPE applied, don't write the transform to the pathdata, but write it 'unoptimized'
return transform;
#ifdef PATH_VERBOSE
* This is very important for LPEs to work properly! (the bbox might be recalculated depending on the curve in shape)*/
#ifdef PATH_VERBOSE
if (_curve) {
} else if (!success) {
if (oldcurve) {
if (_curve_before_lpe) {
if (new_curve) {
if (owner) {
if (_curve_before_lpe) {
return NULL;
return get_original_curve();
return getCurve();
return _curve_before_lpe;
return _curve;
return _curve_before_lpe;
return _curve;