49 |
g->textmode = G_TEXTMODE; |
g->textmode = G_TEXTMODE; |
50 |
g->shape = G_SHAPE; |
g->shape = G_SHAPE; |
51 |
|
|
52 |
|
g->vertical_order = G_VERTICAL_ORDER; |
53 |
|
g->horizontal_order = G_HORIZONTAL_ORDER; |
54 |
|
|
55 |
g->xmax = G_XMAX; /* Not output. */ |
g->xmax = G_XMAX; /* Not output. */ |
56 |
g->ymax = G_YMAX; /* Not output. */ |
g->ymax = G_YMAX; /* Not output. */ |
57 |
|
|
670 |
|
|
671 |
if (graph->shape != G_SHAPE) |
if (graph->shape != G_SHAPE) |
672 |
obstack_fgrow1 (os, "\tshape:\t%s\n", get_shape_str (graph->shape)); |
obstack_fgrow1 (os, "\tshape:\t%s\n", get_shape_str (graph->shape)); |
673 |
|
|
674 |
|
if (graph->vertical_order != G_VERTICAL_ORDER) |
675 |
|
obstack_fgrow1 (os, "\tvertical_order:\t%d\n", graph->vertical_order); |
676 |
|
if (graph->horizontal_order != G_HORIZONTAL_ORDER) |
677 |
|
obstack_fgrow1 (os, "\thorizontal_order:\t%d\n", graph->horizontal_order); |
678 |
|
|
679 |
if (graph->xmax != G_XMAX) |
if (graph->xmax != G_XMAX) |
680 |
obstack_fgrow1 (os, "\txmax:\t%d\n", graph->xmax); |
obstack_fgrow1 (os, "\txmax:\t%d\n", graph->xmax); |
711 |
obstack_fgrow2 (os, "\tclassname %d :\t%s\n", ite->no, ite->name); |
obstack_fgrow2 (os, "\tclassname %d :\t%s\n", ite->no, ite->name); |
712 |
} |
} |
713 |
|
|
714 |
|
if (graph->infoname != G_INFONAME) |
715 |
|
{ |
716 |
|
struct infoname_s *ite; |
717 |
|
|
718 |
|
for (ite = graph->infoname; ite; ite = ite->next) |
719 |
|
obstack_fgrow2 (os, "\tinfoname %d :\t%s\n", ite->integer, ite->string); |
720 |
|
} |
721 |
|
|
722 |
|
if (graph->colorentry != G_COLORENTRY) |
723 |
|
{ |
724 |
|
struct colorentry_s *ite; |
725 |
|
char buff[64]; |
726 |
|
|
727 |
|
for (ite = graph->colorentry; ite; ite = ite->next) |
728 |
|
{ |
729 |
|
sprintf (buff, "\tcolorentry %d :\t%d %d %d\n", |
730 |
|
ite->color_index, |
731 |
|
ite->red_cp, |
732 |
|
ite->green_cp, |
733 |
|
ite->blue_cp); |
734 |
|
obstack_sgrow (os, buff); |
735 |
|
} |
736 |
|
} |
737 |
|
|
738 |
if (graph->layoutalgorithm != G_LAYOUTALGORITHM) |
if (graph->layoutalgorithm != G_LAYOUTALGORITHM) |
739 |
obstack_fgrow1 (os, "\tlayoutalgorithm:\t%s\n", |
obstack_fgrow1 (os, "\tlayoutalgorithm:\t%s\n", |
740 |
get_layoutalgorithm_str(graph->layoutalgorithm)); |
get_layoutalgorithm_str(graph->layoutalgorithm)); |