/*
- * Copyright (C) 2007-2011 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2007-2025 Andrea Zagli <azagli@libero.it>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#include <stdlib.h>
#include <string.h>
+#include <ctype.h>
+
#include "rptcommon.h"
static GArray *rpt_common_parse_style (const gchar *style);
case PANGO_UNDERLINE_SINGLE:
xmlSetProp (xnode, "font-underline", "single");
break;
-
+
case PANGO_UNDERLINE_DOUBLE:
xmlSetProp (xnode, "font-underline", "double");
break;
-
+
case PANGO_UNDERLINE_LOW:
xmlSetProp (xnode, "font-underline", "low");
break;
-
+
case PANGO_UNDERLINE_ERROR:
xmlSetProp (xnode, "font-underline", "error");
break;
GdkColor *gdk_color;
gdk_color = (GdkColor *)g_malloc0 (sizeof (GdkColor));
-
+
gdk_color->red = color->r * 65535;
gdk_color->green = color->g * 65535;
gdk_color->blue = color->b * 65535;
val = strtod (values[i], NULL);
g_array_append_val (ret, val);
}
-
+
i++;
}
g_strfreev (values);
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#include "rptmarshal.h"
+#include "lexycal.yy.h"
#include "parser.tab.h"
typedef struct
{
sql = g_strstrip ((gchar *)xmlNodeGetContent (cur_database));
}
-
+
cur_database = cur_database->next;
}
}
/**
- * rpt_report_set_section_height:
+ * rpt_report_set_section_height:
* @rpt_report: an #RptReport object.
* @section:
* @height: the section's height.
* rpt_report_get_xml_rptprint:
* @rpt_report: an #RptReport object.
*
- * Returns: an #xmlDoc, that represents the generated report, to pass to
+ * Returns: an #xmlDoc, that represents the generated report, to pass to
* function rpt_print_new_from_xml().
*/
xmlDoc
obj = (RptObject *)list->data;
break;
}
-
+
list = g_list_next (list);
}
}
}
}
-/**
+/**
* rpt_report_object_is_in_section:
* @rpt_report: an #RptReport object.
* @rpt_object: an #RptObject object.
* @section:
*
- * Returns: TRUE if rpt_object is contained into
+ * Returns: TRUE if rpt_object is contained into
*/
static gboolean
rpt_report_object_is_in_section (RptReport *rpt_report, RptObject *rpt_object, RptReportSection section)
case RPTREPORT_SECTION_BODY:
priv->body->height = height;
-
+
prop = xmlGetProp (xnode, "new-page-after");
if (prop != NULL)
{