Lines Matching defs:marker

19 #include "stroke-marker-selector.h"
34 #include "sp-marker.h"
64 sp_pixbuf_new( Inkscape::ICON_SIZE_SMALL_TOOLBAR, INKSCAPE_ICON("no-marker") ) ) );
127 const char *active = get_active()->get_value(marker_columns.marker);
149 active = get_active()->get_value(marker_columns.marker);
155 row[marker_columns.marker] = g_strdup("None");
170 row_sep[marker_columns.marker] = g_strdup("None");
202 * Sets the current marker in the marker combobox.
204 void MarkerComboBox::set_current(SPObject *marker)
208 if (marker != NULL) {
209 gchar *markname = g_strdup(marker->getRepr()->attribute("id"));
221 * Return a uri string representing the current selected marker used for setting the marker style in the document
226 const gchar *markid = get_active()->get_value(marker_columns.marker);
232 gchar const *marker = "";
239 markurn = g_strconcat("urn:inkscape:marker:",markid,NULL);
249 marker = g_strconcat("url(#", repr->attribute("id"), ")", NULL);
252 marker = g_strdup(markid);
255 return marker;
260 const gchar *markid = get_active()->get_value(marker_columns.marker);
263 SPObject const *marker = doc->getObjectById(markid);
264 if (marker && marker->getRepr()->attribute("inkscape:stockid")) {
265 markid = marker->getRepr()->attribute("inkscape:stockid");
282 if (row[marker_columns.marker] &&
283 !strcmp(row[marker_columns.marker], name)) {
390 row[marker_columns.marker] = g_strdup("None");
416 row[marker_columns.marker] = repr->attribute("id");
427 * Remove from the cache and recreate a marker image
449 if (row[marker_columns.marker] && row[marker_columns.history] &&
450 !strcmp(row[marker_columns.marker], mname)) {
458 * Creates a copy of the marker named mname, determines its visible and renderable
460 * preview images of each marker in the marker combobox.
466 // Retrieve the marker named 'mname' from the source SVG document
467 SPObject const *marker = source->getObjectById(mname);
468 if (marker == NULL) {
472 // Create a copy repr of the marker with id="sample"
474 Inkscape::XML::Node *mrepr = marker->getRepr()->duplicate(xml_doc);
489 // If the marker color is a url link to a pattern or gradient copy that too
584 " <g id=\"marker-start\">"
585 " <path style=\"fill:gray;stroke:darkgray;stroke-width:1.7;marker-start:url(#sample);marker-mid:none;marker-end:none\""
591 " <g id=\"marker-mid\">"
592 " <path style=\"fill:gray;stroke:darkgray;stroke-width:1.7;marker-start:none;marker-mid:url(#sample);marker-end:none\""
598 " <g id=\"marker-end\">"
599 " <path style=\"fill:gray;stroke:darkgray;stroke-width:1.7;marker-start:none;marker-mid:none;marker-end:url(#sample)\""