Lines Matching refs:value

116     const char* value = NULL;
117 if ((value = repr->attribute("gridoriginx"))) {
118 gridoriginx = value;
121 if ((value = repr->attribute("gridoriginy"))) {
122 gridoriginy = value;
125 if ((value = repr->attribute("gridspacingx"))) {
126 gridspacingx = value;
129 if ((value = repr->attribute("gridspacingy"))) {
130 gridspacingy = value;
133 if ((value = repr->attribute("gridcolor"))) {
134 gridcolor = value;
137 if ((value = repr->attribute("gridempcolor"))) {
138 gridempcolor = value;
141 if ((value = repr->attribute("gridempspacing"))) {
142 gridempspacing = value;
145 if ((value = repr->attribute("gridopacity"))) {
146 gridopacity = value;
149 if ((value = repr->attribute("gridempopacity"))) {
150 gridempopacity = value;
269 double factor = svgwidth.value(unit_table.primary(Inkscape::Util::UNIT_TYPE_LINEAR)) / viewbox.width();
286 void SPNamedView::set(unsigned int key, const gchar* value) {
289 this->editable = (!value);
293 if (!value) { // show guides if not specified, for backwards compatibility
296 this->showguides = sp_str_to_bool(value);
302 if (!value) { // don't show grids if not specified, for backwards compatibility
305 this->grids_visible = sp_str_to_bool(value);
310 this->snap_manager.snapprefs.setGridTolerance(value ? g_ascii_strtod(value, NULL) : 10000);
314 this->snap_manager.snapprefs.setGuideTolerance(value ? g_ascii_strtod(value, NULL) : 20);
318 this->snap_manager.snapprefs.setObjectTolerance(value ? g_ascii_strtod(value, NULL) : 20);
324 if (value) {
325 this->guidecolor = (this->guidecolor & 0xff) | sp_svg_read_color(value, this->guidecolor);
337 sp_nv_read_opacity(value, &this->guidecolor);
349 if (value) {
350 this->guidehicolor = (this->guidehicolor & 0xff) | sp_svg_read_color(value, this->guidehicolor);
360 sp_nv_read_opacity(value, &this->guidehicolor);
368 this->showborder = (value) ? sp_str_to_bool (value) : TRUE;
373 if (value && !strcasecmp(value, "true")) this->borderlayer = SP_BORDER_LAYER_TOP;
378 if (value) {
379 this->bordercolor = (this->bordercolor & 0xff) | sp_svg_read_color (value, this->bordercolor);
385 sp_nv_read_opacity(value, &this->bordercolor);
390 if (value) {
391 this->pagecolor = (this->pagecolor & 0xff) | sp_svg_read_color(value, this->pagecolor);
396 this->pagecheckerboard = (value) ? sp_str_to_bool (value) : false;
401 sp_nv_read_opacity(value, &this->pagecolor);
405 this->pageshadow = value? atoi(value) : 2; // 2 is the default
409 this->showpageshadow = (value) ? sp_str_to_bool(value) : TRUE;
413 this->zoom = value ? g_ascii_strtod(value, NULL) : 0; // zero means not set
417 this->cx = value ? g_ascii_strtod(value, NULL) : HUGE_VAL; // HUGE_VAL means not set
421 this->cy = value ? g_ascii_strtod(value, NULL) : HUGE_VAL; // HUGE_VAL means not set
425 this->window_width = value? atoi(value) : -1; // -1 means not set
429 this->window_height = value ? atoi(value) : -1; // -1 means not set
433 this->window_x = value ? atoi(value) : 0;
437 this->window_y = value ? atoi(value) : 0;
441 this->window_maximized = value ? atoi(value) : 0;
445 this->snap_manager.snapprefs.setSnapEnabledGlobally(value ? sp_str_to_bool(value) : TRUE);
449 this->snap_manager.snapprefs.setTargetSnappable(Inkscape::SNAPTARGET_BBOX_CATEGORY, value ? sp_str_to_bool(value) : FALSE);
453 this->snap_manager.snapprefs.setTargetSnappable(Inkscape::SNAPTARGET_NODE_CATEGORY, value ? sp_str_to_bool(value) : TRUE);
457 this->snap_manager.snapprefs.setTargetSnappable(Inkscape::SNAPTARGET_OTHERS_CATEGORY, value ? sp_str_to_bool(value) : TRUE);
461 this->snap_manager.snapprefs.setTargetSnappable(Inkscape::SNAPTARGET_ROTATION_CENTER, value ? sp_str_to_bool(value) : FALSE);
465 this->snap_manager.snapprefs.setTargetSnappable(Inkscape::SNAPTARGET_GRID, value ? sp_str_to_bool(value) : TRUE);
469 this->snap_manager.snapprefs.setTargetSnappable(Inkscape::SNAPTARGET_GUIDE, value ? sp_str_to_bool(value) : TRUE);
473 this->snap_manager.snapprefs.setTargetSnappable(Inkscape::SNAPTARGET_NODE_SMOOTH, value ? sp_str_to_bool(value) : FALSE);
477 this->snap_manager.snapprefs.setTargetSnappable(Inkscape::SNAPTARGET_LINE_MIDPOINT, value ? sp_str_to_bool(value) : FALSE);
481 this->snap_manager.snapprefs.setTargetSnappable(Inkscape::SNAPTARGET_OBJECT_MIDPOINT, value ? sp_str_to_bool(value) : FALSE);
485 this->snap_manager.snapprefs.setTargetSnappable(Inkscape::SNAPTARGET_TEXT_BASELINE, value ? sp_str_to_bool(value) : FALSE);
489 this->snap_manager.snapprefs.setTargetSnappable(Inkscape::SNAPTARGET_BBOX_EDGE_MIDPOINT, value ? sp_str_to_bool(value) : FALSE);
493 this->snap_manager.snapprefs.setTargetSnappable(Inkscape::SNAPTARGET_BBOX_MIDPOINT, value ? sp_str_to_bool(value) : FALSE);
497 this->snap_manager.snapprefs.setTargetSnappable(Inkscape::SNAPTARGET_PATH_INTERSECTION, value ? sp_str_to_bool(value) : FALSE);
501 this->snap_manager.snapprefs.setTargetSnappable(Inkscape::SNAPTARGET_PATH, value ? sp_str_to_bool(value) : FALSE);
505 this->snap_manager.snapprefs.setSnapPerp(value ? sp_str_to_bool(value) : FALSE);
509 this->snap_manager.snapprefs.setSnapTang(value ? sp_str_to_bool(value) : FALSE);
513 this->snap_manager.snapprefs.setTargetSnappable(Inkscape::SNAPTARGET_PATH_CLIP, value ? sp_str_to_bool(value) : FALSE);
517 this->snap_manager.snapprefs.setTargetSnappable(Inkscape::SNAPTARGET_PATH_MASK, value ? sp_str_to_bool(value) : FALSE);
521 this->snap_manager.snapprefs.setTargetSnappable(Inkscape::SNAPTARGET_NODE_CUSP, value ? sp_str_to_bool(value) : TRUE);
525 this->snap_manager.snapprefs.setTargetSnappable(Inkscape::SNAPTARGET_BBOX_EDGE, value ? sp_str_to_bool(value) : FALSE);
529 this->snap_manager.snapprefs.setTargetSnappable(Inkscape::SNAPTARGET_BBOX_CORNER, value ? sp_str_to_bool(value) : FALSE);
533 this->snap_manager.snapprefs.setTargetSnappable(Inkscape::SNAPTARGET_PAGE_BORDER, value ? sp_str_to_bool(value) : FALSE);
537 this->default_layer_id = value ? g_quark_from_string(value) : 0;
541 this->connector_spacing = value ? g_ascii_strtod(value, NULL) :
557 if (value && document->getRoot()->viewBox_set) {
558 Inkscape::Util::Unit const *const req_unit = unit_table.getUnit(value);
559 if ( !unit_table.hasUnit(value) ) {
560 g_warning("Unrecognized unit `%s'", value);
569 value);
581 if (value) {
582 Inkscape::Util::Unit const *const req_unit = unit_table.getUnit(value);
583 if ( !unit_table.hasUnit(value) ) {
584 g_warning("Unrecognized unit `%s'", value);
593 value);
602 this->lockguides = value ? sp_str_to_bool(value) : FALSE;
607 SPObjectGroup::set(key, value);
783 bool geometry_from_file = (1 == prefs->getInt("/options/savewindowgeometry/value", 0));
784 gint default_geometry = prefs->getInt("/options/defaultwindowsize/value", 1);
888 bool save_geometry_in_file = (1 == prefs->getInt("/options/savewindowgeometry/value", 0));
889 bool save_viewport_in_file = prefs->getBool("/options/savedocviewport/value", true);
1135 double value;
1137 if(!this->storeAsDouble(key,&value)) {
1141 return (use_width)? width * value : height * value;
1146 return value;