Graphviz  2.35.20130930.0449
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
gvrender_core_dia.c File Reference
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "macros.h"
#include "const.h"
#include "gvplugin_render.h"
#include "gvplugin_device.h"
#include "gvio.h"
#include "gvcint.h"
Include dependency graph for gvrender_core_dia.c:

Go to the source code of this file.

Data Structures

struct  context_t
 

Macros

#define REGULAR   0
 
#define BOLD   1
 
#define ITALIC   2
 
#define P_SOLID   0
 
#define P_NONE   15
 
#define P_DOTTED   4 /* i wasn't sure about this */
 
#define P_DASHED   11 /* or this */
 
#define WIDTH_NORMAL   1
 
#define WIDTH_BOLD   3
 
#define DIA_RESOLUTION   1.0
 
#define SCALE   (DIA_RESOLUTION/15.0)
 
#define MAXNEST   4
 
#define SVG_COLORS_P   0
 

Typedefs

typedef struct context_t context_t
 

Enumerations

enum  format_type {
  FORMAT_PNG_XDOT, FORMAT_GIF_XDOT, FORMAT_JPEG_XDOT, FORMAT_SVG_XDOT,
  FORMAT_PS_XDOT, FORMAT_PNG_DOT, FORMAT_GIF_DOT, FORMAT_JPEG_DOT,
  FORMAT_SVG_DOT, FORMAT_PS_DOT, FORMAT_PNG_MAP, FORMAT_GIF_MAP,
  FORMAT_JPEG_MAP, FORMAT_SVG_MAP, FORMAT_PS_MAP, FORMAT_PNG_SVG,
  FORMAT_GIF_SVG, FORMAT_JPEG_SVG, FORMAT_SVG_SVG, FORMAT_PNG_FIG,
  FORMAT_GIF_FIG, FORMAT_JPEG_FIG, FORMAT_PNG_VRML, FORMAT_GIF_VRML,
  FORMAT_JPEG_VRML, FORMAT_PS_PS, FORMAT_PSLIB_PS, FORMAT_PNG_VML,
  FORMAT_GIF_VML, FORMAT_JPEG_VML, FORMAT_GIF_TK, FORMAT_DIA,
  FORMAT_DOT, FORMAT_CANON, FORMAT_PLAIN, FORMAT_PLAIN_EXT,
  FORMAT_XDOT, FORMAT_XDOT12, FORMAT_XDOT14, FORMAT_FIG,
  FORMAT_HPGL, FORMAT_IMAP, FORMAT_ISMAP, FORMAT_CMAP,
  FORMAT_CMAPX, FORMAT_MIF, FORMAT_MP, FORMAT_PIC,
  FORMAT_POV, FORMAT_PS, FORMAT_PS2, FORMAT_EPS,
  FORMAT_SVG, FORMAT_SVGZ, FORMAT_TK, FORMAT_VML,
  FORMAT_VMLZ, FORMAT_VTX
}
 

Functions

char * xml_string (char *str)
 
int ellipse_connection (pointf cp, pointf p)
 
int box_connection (node_t *n, pointf p)
 

Variables

gvrender_engine_t dia_engine
 
gvplugin_installed_t gvrender_dia_types []
 
gvplugin_installed_t gvdevice_dia_types []
 

Macro Definition Documentation

#define BOLD   1

Definition at line 39 of file gvrender_core_dia.c.

#define DIA_RESOLUTION   1.0

Definition at line 52 of file gvrender_core_dia.c.

#define ITALIC   2

Definition at line 40 of file gvrender_core_dia.c.

#define MAXNEST   4

Definition at line 67 of file gvrender_core_dia.c.

#define P_DASHED   11 /* or this */

Definition at line 46 of file gvrender_core_dia.c.

#define P_DOTTED   4 /* i wasn't sure about this */

Definition at line 45 of file gvrender_core_dia.c.

#define P_NONE   15

Definition at line 44 of file gvrender_core_dia.c.

#define P_SOLID   0

Definition at line 43 of file gvrender_core_dia.c.

#define REGULAR   0

Definition at line 38 of file gvrender_core_dia.c.

#define SCALE   (DIA_RESOLUTION/15.0)

Definition at line 53 of file gvrender_core_dia.c.

#define SVG_COLORS_P   0

Definition at line 71 of file gvrender_core_dia.c.

#define WIDTH_BOLD   3

Definition at line 50 of file gvrender_core_dia.c.

#define WIDTH_NORMAL   1

Definition at line 49 of file gvrender_core_dia.c.

Typedef Documentation

typedef struct context_t context_t

Enumeration Type Documentation

Enumerator
FORMAT_PNG_XDOT 
FORMAT_GIF_XDOT 
FORMAT_JPEG_XDOT 
FORMAT_SVG_XDOT 
FORMAT_PS_XDOT 
FORMAT_PNG_DOT 
FORMAT_GIF_DOT 
FORMAT_JPEG_DOT 
FORMAT_SVG_DOT 
FORMAT_PS_DOT 
FORMAT_PNG_MAP 
FORMAT_GIF_MAP 
FORMAT_JPEG_MAP 
FORMAT_SVG_MAP 
FORMAT_PS_MAP 
FORMAT_PNG_SVG 
FORMAT_GIF_SVG 
FORMAT_JPEG_SVG 
FORMAT_SVG_SVG 
FORMAT_PNG_FIG 
FORMAT_GIF_FIG 
FORMAT_JPEG_FIG 
FORMAT_PNG_VRML 
FORMAT_GIF_VRML 
FORMAT_JPEG_VRML 
FORMAT_PS_PS 
FORMAT_PSLIB_PS 
FORMAT_PNG_VML 
FORMAT_GIF_VML 
FORMAT_JPEG_VML 
FORMAT_GIF_TK 
FORMAT_DIA 
FORMAT_DOT 
FORMAT_CANON 
FORMAT_PLAIN 
FORMAT_PLAIN_EXT 
FORMAT_XDOT 
FORMAT_XDOT12 
FORMAT_XDOT14 
FORMAT_FIG 
FORMAT_HPGL 
FORMAT_IMAP 
FORMAT_ISMAP 
FORMAT_CMAP 
FORMAT_CMAPX 
FORMAT_MIF 
FORMAT_MP 
FORMAT_PIC 
FORMAT_POV 
FORMAT_PS 
FORMAT_PS2 
FORMAT_EPS 
FORMAT_SVG 
FORMAT_SVGZ 
FORMAT_TK 
FORMAT_VML 
FORMAT_VMLZ 
FORMAT_VTX 

Definition at line 33 of file gvrender_core_dia.c.

Function Documentation

int box_connection ( node_t n,
pointf  p 
)
int ellipse_connection ( pointf  cp,
pointf  p 
)

Definition at line 612 of file gvrender_core_dia.c.

References pointf_s::x, and pointf_s::y.

char* xml_string ( char *  str)

Definition at line 490 of file labels.c.

Variable Documentation

gvrender_engine_t dia_engine
Initial value:
= {
dia_begin_job, dia_end_job,
dia_begin_graph, dia_end_graph,
0, 0,
dia_begin_page, dia_end_page,
dia_begin_cluster, dia_end_cluster,
0, 0,
0, 0,
dia_begin_node, dia_end_node,
dia_begin_edge, dia_end_edge,
0, 0,
0, 0,
dia_textpara, dia_resolve_color,
dia_ellipse, dia_polygon,
dia_bezier, dia_polyline,
dia_comment,
0,
}

Definition at line 944 of file gvrender_core_dia.c.

gvplugin_installed_t gvdevice_dia_types[]
Initial value:
= {
{FORMAT_DIA, "dia:dia", -1, NULL, &device_features_dia},
{0, NULL, 0, NULL, NULL}
}

Definition at line 984 of file gvrender_core_dia.c.

gvplugin_installed_t gvrender_dia_types[]
Initial value:
= {
{FORMAT_DIA, "dia", -1, &dia_engine, &render_features_dia},
{0, NULL, 0, NULL, NULL}
}

Definition at line 979 of file gvrender_core_dia.c.