goffice r2289 - in trunk: . goffice/graph



Author: emmanuel
Date: Sat Dec 13 16:45:57 2008
New Revision: 2289
URL: http://svn.gnome.org/viewvc/goffice?rev=2289&view=rev

Log:
2008-12-13  Emmanuel Pacaud <emmanuel pacaud lapp in2p3 fr>

	Define the theme properties for the GogEquation objects.

	* goffice/graph/gog-theme.c: here.

Modified:
   trunk/ChangeLog
   trunk/goffice/graph/gog-theme.c

Modified: trunk/goffice/graph/gog-theme.c
==============================================================================
--- trunk/goffice/graph/gog-theme.c	(original)
+++ trunk/goffice/graph/gog-theme.c	Sat Dec 13 16:45:57 2008
@@ -609,6 +609,19 @@
 	gog_theme_add_element (theme, style,
 		NULL, "GogRegEqn", NULL);
 
+#ifdef GOFFICE_WITH_GMATHML
+	/* Equations */
+	style = gog_style_new ();
+	style->outline.dash_type = GO_LINE_NONE;
+	style->outline.width = 0; /* hairline */
+	style->outline.color = RGBA_BLACK;
+	style->fill.type = GOG_FILL_STYLE_NONE;
+	go_pattern_set_solid (&style->fill.pattern, RGBA_WHITE);
+	gog_style_set_font_desc (style, pango_font_description_from_string ("Sans 10"));
+	gog_theme_add_element (theme, style,
+		NULL, "GogEquation", NULL);
+#endif
+
 	/* series lines */
 	style = gog_style_new ();
 	gog_theme_add_element (theme, style,
@@ -726,6 +739,19 @@
 	gog_theme_add_element (theme, style,
 		NULL, "GogRegEqn", NULL);
 
+#ifdef GOFFICE_WITH_GMATHML
+	/* Equations */
+	style = gog_style_new ();
+	style->outline.dash_type = GO_LINE_NONE;
+	style->outline.width = 0; /* hairline */
+	style->outline.color = RGBA_BLACK;
+	style->fill.type = GOG_FILL_STYLE_NONE;
+	go_pattern_set_solid (&style->fill.pattern, RGBA_WHITE);
+	gog_style_set_font_desc (style, pango_font_description_from_string ("Sans 10"));
+	gog_theme_add_element (theme, style,
+		NULL, "GogEquation", NULL);
+#endif
+
 	/* series lines */
 	style = gog_style_new ();
 	gog_theme_add_element (theme, style,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]