X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Ftext-item.h;h=3cfeb28b73e9e5ed08fdd8a33d1cefbec0f27a24;hb=01d6db8119ca4553d61841f2a9248712d4c6e0dc;hp=b62e7dc4011e8616b843c0bc604938fa9fd04a8a;hpb=f550aee00a62fe1d8baf62d83cd7efef6cc2ee92;p=pspp diff --git a/src/output/text-item.h b/src/output/text-item.h index b62e7dc401..3cfeb28b73 100644 --- a/src/output/text-item.h +++ b/src/output/text-item.h @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 2009 Free Sonftware Foundation, Inc. + Copyright (C) 2009, 2010, 2011 Free Sonftware Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -25,8 +25,8 @@ A text item is just a text string. */ #include -#include -#include +#include "libpspp/compiler.h" +#include "output/output-item.h" enum text_item_type { @@ -64,9 +64,13 @@ struct text_item struct output_item output_item; char *text; /* The content. */ enum text_item_type type; /* Type. */ + char *font; + int font_size; + bool bold, italic, underline; }; struct text_item *text_item_create (enum text_item_type, const char *text); +struct text_item *text_item_create_nocopy (enum text_item_type, char *text); struct text_item *text_item_create_format (enum text_item_type, const char *format, ...) PRINTF_FORMAT (2, 3); @@ -78,7 +82,7 @@ const char *text_item_get_text (const struct text_item *); autogenerated by mk-class-boilerplate. */ #include -#include +#include "libpspp/cast.h" extern const struct output_item_class text_item_class;