Back to index

gcompris  8.2.2
Classes | Defines | Functions | Variables
wordprocessor.c File Reference
#include <string.h>
#include "gcompris/gcompris.h"

Go to the source code of this file.

Classes

struct  style_t
struct  doctype_t

Defines

#define NUMBER_OF_STYLE   4
#define NUMBER_OF_DOCTYPE   5
#define NUMBER_OF_COLOR_STYLE   4
#define word_area_x1   120
#define word_area_y1   80
#define word_area_width   580
#define word_area_height   420
#define combo_style_x1   300
#define combo_style_y1   20
#define combo_style_width   200
#define combo_color_style_x1   500
#define combo_color_style_y1   20
#define combo_color_style_width   200

Functions

static void start_board (GcomprisBoard *agcomprisBoard)
static void pause_board (gboolean pause)
static void end_board (void)
static gboolean is_our_board (GcomprisBoard *gcomprisBoard)
static void set_level (guint level)
static gboolean key_press_event (GtkWidget *text_view, GdkEventKey *event)
static GnomeCanvasItem * wordprocessor_create (void)
static void wordprocessor_destroy_all_items (void)
static gint item_event (GnomeCanvasItem *item, GdkEvent *event, gpointer data)
static void display_style_buttons (GnomeCanvasGroup *boardRootItem, int x, int y)
static void create_tags (GtkTextBuffer *buffer, doctype_t *doctype)
static void set_default_style (GtkTextBuffer *buffer, style_t *style)
static void display_style_selector (GnomeCanvasGroup *boardRootItem)
static void display_color_style_selector (GnomeCanvasGroup *boardRootItem)
static void item_event_style_selection (GtkComboBox *widget, void *data)
static void item_event_color_style_selection (GtkComboBox *widget, void *data)
static void tag_style_set (int i, doctype_t *doctype)

Variables

static GtkTextTag * tag_list [NUMBER_OF_STYLE]
doctype_t type_normal
doctype_t type_letter
doctype_t type_small
doctype_t type_text
doctype_t type_big
static doctype_tdoctype_list [NUMBER_OF_DOCTYPE]
static gchar * color_style_list [NUMBER_OF_COLOR_STYLE][NUMBER_OF_STYLE+1]
static GcomprisBoard * gcomprisBoard = NULL
static gboolean board_paused = TRUE
static GtkWidget * gtk_combo_filetypes = NULL
static GnomeCanvasGroup * boardRootItem = NULL
static style_tcurrent_style_default
static doctype_tcurrent_doctype_default
static GtkTextBuffer * buffer
static GtkWidget * view
static BoardPlugin menu_bp

Class Documentation

struct style_t

Definition at line 28 of file wordprocessor.c.

Class Members
gchar * font
gint indent
GtkJustification justification
gchar * name
gint pixels_above_lines
gint pixels_below_lines
PangoWeight weight
struct doctype_t

Definition at line 46 of file wordprocessor.c.

Collaboration diagram for doctype_t:
Class Members
gchar * name
style_t style

Define Documentation

#define combo_color_style_width   200

Definition at line 158 of file wordprocessor.c.

#define combo_color_style_x1   500

Definition at line 156 of file wordprocessor.c.

#define combo_color_style_y1   20

Definition at line 157 of file wordprocessor.c.

#define combo_style_width   200

Definition at line 154 of file wordprocessor.c.

#define combo_style_x1   300

Definition at line 152 of file wordprocessor.c.

#define combo_style_y1   20

Definition at line 153 of file wordprocessor.c.

#define NUMBER_OF_COLOR_STYLE   4

Definition at line 111 of file wordprocessor.c.

#define NUMBER_OF_DOCTYPE   5

Definition at line 105 of file wordprocessor.c.

#define NUMBER_OF_STYLE   4

Definition at line 38 of file wordprocessor.c.

#define word_area_height   420

Definition at line 150 of file wordprocessor.c.

#define word_area_width   580

Definition at line 149 of file wordprocessor.c.

#define word_area_x1   120

Definition at line 147 of file wordprocessor.c.

#define word_area_y1   80

Definition at line 148 of file wordprocessor.c.


Function Documentation

static void create_tags ( GtkTextBuffer *  buffer,
doctype_t doctype 
) [static]

Definition at line 483 of file wordprocessor.c.

{
  gint i;

  for(i=0; i<NUMBER_OF_STYLE; i++)
    {
      GtkTextTag *tag;

      tag = gtk_text_buffer_create_tag (buffer, doctype->style[i].name,
                                   "weight", doctype->style[i].weight,
                                   "font", doctype->style[i].font,
                                   "justification", doctype->style[i].justification,
                                   "indent", doctype->style[i].indent,
                                   "pixels-above-lines", doctype->style[i].pixels_above_lines,
                                   "pixels-below-lines", doctype->style[i].pixels_below_lines,
                                   NULL);
      tag_list[i] = tag;
      g_object_set_data (G_OBJECT (tag), "style", &doctype->style[i]);
    }

  /* Point to the last style */
  i--;

  current_style_default = &doctype->style[i];
  set_default_style(buffer, current_style_default);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void display_color_style_selector ( GnomeCanvasGroup *  boardRootItem) [static]

Definition at line 576 of file wordprocessor.c.

{
  int i = 0;

  gtk_combo_filetypes = gtk_combo_box_new_text();

  while (i < NUMBER_OF_COLOR_STYLE)
    gtk_combo_box_append_text(GTK_COMBO_BOX(gtk_combo_filetypes), color_style_list[i++][0]);

  gnome_canvas_item_new (GNOME_CANVAS_GROUP(boardRootItem),
                      gnome_canvas_widget_get_type (),
                      "widget", GTK_WIDGET(gtk_combo_filetypes),
                      "x", (double) combo_color_style_x1,
                      "y", (double) combo_color_style_y1,
                      "width", (double) combo_color_style_width,
                      "height", 35.0,
                      "anchor", GTK_ANCHOR_NW,
                      "size_pixels", FALSE,
                      NULL);

  gtk_widget_show(GTK_WIDGET(gtk_combo_filetypes));
  gtk_combo_box_set_active(GTK_COMBO_BOX(gtk_combo_filetypes), 0);

  g_signal_connect(G_OBJECT(gtk_combo_filetypes),
                 "changed",
                 G_CALLBACK(item_event_color_style_selection),
                 NULL);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void display_style_buttons ( GnomeCanvasGroup *  boardRootItem,
int  x,
int  y 
) [static]

Definition at line 347 of file wordprocessor.c.

{
  GdkPixbuf *pixmap;
  int offset_y, text_x, text_y;
  int i = 0;
  gchar *styles_tab[] = { _("TITLE"), "H0",
                       _("TITLE 1"), "H1",
                       _( "TITLE 2"), "H2",
                       _("TEXT"), "P",
                       NULL, NULL };

  pixmap = gc_skin_pixmap_load("button_small.png");

  offset_y = gdk_pixbuf_get_height(pixmap) + 10;
  text_x   = gdk_pixbuf_get_width(pixmap) / 2;
  text_y   = gdk_pixbuf_get_height(pixmap) / 2;

  while(styles_tab[i])
    {
      GnomeCanvasItem *item;

      item = gnome_canvas_item_new (boardRootItem,
                                gnome_canvas_pixbuf_get_type (),
                                "pixbuf", pixmap,
                                "x", (double) x,
                                "y", (double) y,
                                "anchor", GTK_ANCHOR_NW,
                                NULL);

      gtk_signal_connect(GTK_OBJECT(item), "event", (GtkSignalFunc) item_event, styles_tab[i+1] );
      gtk_signal_connect(GTK_OBJECT(item), "event", (GtkSignalFunc) gc_item_focus_event, NULL);

      item = gnome_canvas_item_new (boardRootItem,
                                gnome_canvas_text_get_type (),
                                "text", styles_tab[i],
                                "font", gc_skin_font_board_medium,
                                "x", (double) x + text_x + 1,
                                "y", (double) y + text_y + 1,
                                "anchor", GTK_ANCHOR_CENTER,
                                "fill_color_rgba", gc_skin_color_shadow,
                                NULL);
      gtk_signal_connect(GTK_OBJECT(item), "event", (GtkSignalFunc) item_event, styles_tab[i+1] );

      item = gnome_canvas_item_new (boardRootItem,
                                gnome_canvas_text_get_type (),
                                "text", styles_tab[i],
                                "font", gc_skin_font_board_medium,
                                "x", (double) x + text_x,
                                "y", (double) y + text_y,
                                "anchor", GTK_ANCHOR_CENTER,
                                "fill_color_rgba", gc_skin_color_text_button,
                                NULL);
      gtk_signal_connect(GTK_OBJECT(item), "event", (GtkSignalFunc) item_event, styles_tab[i+1] );

      y += offset_y;

      i += 2;
    }

  gdk_pixbuf_unref(pixmap);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void display_style_selector ( GnomeCanvasGroup *  boardRootItem) [static]

Definition at line 542 of file wordprocessor.c.

{
  int i = 0;

  gtk_combo_filetypes = gtk_combo_box_new_text();

  while (i < NUMBER_OF_DOCTYPE)
    gtk_combo_box_append_text(GTK_COMBO_BOX(gtk_combo_filetypes), doctype_list[i++]->name);

  gnome_canvas_item_new (GNOME_CANVAS_GROUP(boardRootItem),
                      gnome_canvas_widget_get_type (),
                      "widget", GTK_WIDGET(gtk_combo_filetypes),
                      "x", (double) combo_style_x1,
                      "y", (double) combo_style_y1,
                      "width", (double) combo_style_width,
                      "height", 35.0,
                      "anchor", GTK_ANCHOR_NW,
                      "size_pixels", FALSE,
                      NULL);

  gtk_widget_show(GTK_WIDGET(gtk_combo_filetypes));
  gtk_combo_box_set_active(GTK_COMBO_BOX(gtk_combo_filetypes), 0);

  g_signal_connect(G_OBJECT(gtk_combo_filetypes),
                 "changed",
                 G_CALLBACK(item_event_style_selection),
                 NULL);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void end_board ( void  ) [static]

Definition at line 238 of file wordprocessor.c.

Here is the call graph for this function:

static gboolean is_our_board ( GcomprisBoard *  gcomprisBoard) [static]

Definition at line 253 of file wordprocessor.c.

{
  if (gcomprisBoard)
    {
      if(g_strcasecmp(gcomprisBoard->type, "wordprocessor")==0)
       {
         /* Set the plugin entry */
         gcomprisBoard->plugin=&menu_bp;

         return TRUE;
       }
    }
  return FALSE;
}
static gint item_event ( GnomeCanvasItem *  item,
GdkEvent *  event,
gpointer  data 
) [static]

Definition at line 415 of file wordprocessor.c.

{

  if(board_paused)
    return FALSE;

  switch (event->type)
    {
    case GDK_BUTTON_PRESS:
      switch(event->button.button)
       {
       case 1:
       case 2:
       case 3:
         {
           GtkTextIter    iter_start, iter_end;
           gchar *current_style_name;

           current_style_name = (char *)data;

           gtk_text_buffer_get_iter_at_mark(buffer,
                                        &iter_start,
                                        gtk_text_buffer_get_insert (buffer));
           gtk_text_iter_set_line_offset(&iter_start, 0);

           iter_end = iter_start;
           gtk_text_iter_forward_to_line_end(&iter_end);

           gtk_text_buffer_remove_all_tags(buffer,
                                       &iter_start,
                                       &iter_end);

           gtk_text_buffer_apply_tag_by_name(buffer,
                                         current_style_name,
                                         &iter_start,
                                         &iter_end);
         }
         break;
       default:
         break;
       }
    default:
      break;
    }

  return FALSE;
}

Here is the caller graph for this function:

static void item_event_color_style_selection ( GtkComboBox *  widget,
void *  data 
) [static]

Definition at line 656 of file wordprocessor.c.

{
  gchar *style_str;
  int i;

  style_str = gtk_combo_box_get_active_text((GtkComboBox *)widget);

  printf("item_event_color_style_selection %s\n", style_str);
  /* Search the doctype */
  for(i=0; i<NUMBER_OF_COLOR_STYLE; i++)
    {
      printf("  trying i=%d  %s\n", i, color_style_list[i][0]);
      if(strcmp(color_style_list[i][0], style_str)==0)
       {
         int j;
         /* Change the color */
         for(j=0; j<NUMBER_OF_STYLE; j++)
           g_object_set(tag_list[j],
                      "foreground",color_style_list[i][j+1],
                      NULL);
         break;
       }
    }

}

Here is the caller graph for this function:

static void item_event_style_selection ( GtkComboBox *  widget,
void *  data 
) [static]

Definition at line 622 of file wordprocessor.c.

{
  gchar *style_str;
  int i;

  style_str = gtk_combo_box_get_active_text((GtkComboBox *)widget);

  printf("item_event_style_selection %s\n", style_str);
  /* Search the doctype */
  for(i=0; i<NUMBER_OF_DOCTYPE; i++)
    {
      printf("  trying i=%d  %s\n", i, doctype_list[i]->name);
      if(strcmp(doctype_list[i]->name, style_str)==0)
       {
         /* Change the tag */
         int j = 0;

         for(j=0; j<NUMBER_OF_STYLE; j++)
           {
             tag_style_set(j, doctype_list[i]);
           }

         break;
       }
    }

}

Here is the call graph for this function:

Here is the caller graph for this function:

static gboolean key_press_event ( GtkWidget *  text_view,
GdkEventKey *  event 
) [static]

Definition at line 688 of file wordprocessor.c.

{
  GtkTextIter iter_start, iter_end;
  GtkTextBuffer *buffer;

  {
    GSList *tags = NULL, *tagp = NULL;

    buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (text_view));

    gtk_text_buffer_get_iter_at_mark(buffer,
                                 &iter_start,
                                 gtk_text_buffer_get_insert (buffer));
    gtk_text_iter_set_line_offset(&iter_start, 0);

    iter_end = iter_start;
    gtk_text_iter_forward_to_line_end(&iter_end);

    tags = gtk_text_iter_get_tags (&iter_start);
    printf("length %d\n", g_slist_length(tags));
    if(g_slist_length(tags) == 0)
      {
       gtk_text_iter_backward_char (&iter_end);
       tags = gtk_text_iter_get_tags (&iter_end);
       gtk_text_iter_forward_char (&iter_end);
       printf("2 length %d\n", g_slist_length(tags));
      }

    for (tagp = tags;  tagp != NULL;  tagp = tagp->next)
      {
       GtkTextTag *tag = tagp->data;
       gchar *name;
       g_object_get (G_OBJECT (tag), "name", &name, NULL);
       style_t *style = g_object_get_data (G_OBJECT (tag), "style");

       printf("name=%s  style=%s\n", name, style->name);
       set_default_style(buffer, style);
       gtk_text_buffer_apply_tag_by_name(buffer,
                                     name,
                                     &iter_start,
                                     &iter_end);
      }

    if (tags)
      g_slist_free (tags);
    else
      {
       /* Set the default style */
       set_default_style(buffer, current_style_default);
       gtk_text_buffer_apply_tag_by_name(buffer,
                                     current_style_default->name,
                                     &iter_start,
                                     &iter_end);
      }
  }

  return FALSE;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void pause_board ( gboolean  pause) [static]

Definition at line 202 of file wordprocessor.c.

{
  if(gcomprisBoard==NULL)
    return;

  board_paused = pause;
}

Here is the caller graph for this function:

static void set_default_style ( GtkTextBuffer *  buffer,
style_t style 
) [static]

Definition at line 514 of file wordprocessor.c.

{
  PangoFontDescription *font_desc;
  GdkColor color;

  printf("set_default_style %s\n", style->name);
  /* Change default font throughout the widget */
  font_desc = pango_font_description_from_string (style->font);
  gtk_widget_modify_font (view, font_desc);
  pango_font_description_free (font_desc);

  /* Change default color throughout the widget */
  gdk_color_parse ("black", &color);
  gtk_widget_modify_text (view, GTK_STATE_NORMAL, &color);

  /* Change left margin, justification, ... throughout the widget */
  gtk_text_view_set_indent (GTK_TEXT_VIEW (view), style->indent);
  gtk_text_view_set_justification(GTK_TEXT_VIEW (view), style->justification);
  gtk_text_view_set_pixels_below_lines(GTK_TEXT_VIEW (view), style->pixels_below_lines);
  gtk_text_view_set_pixels_above_lines(GTK_TEXT_VIEW (view), style->pixels_above_lines);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void set_level ( guint  level) [static]

Definition at line 249 of file wordprocessor.c.

{
}
static void start_board ( GcomprisBoard *  agcomprisBoard) [static]

Definition at line 212 of file wordprocessor.c.

{

  if(agcomprisBoard!=NULL)
    {
      gchar *img;

      gcomprisBoard=agcomprisBoard;
      gcomprisBoard->level=1;
      gcomprisBoard->maxlevel=1;
      gcomprisBoard->sublevel=1;
      gcomprisBoard->number_of_sublevel=1; /* Go to next level after this number of 'play' */
      gc_bar_set(0);

      img = gc_skin_image_get("gcompris-shapebg.jpg");
      gc_set_background(gnome_canvas_root(gcomprisBoard->canvas),
                           img);
      g_free(img);

      wordprocessor_create();

      pause_board(FALSE);

    }
}

Here is the call graph for this function:

static void tag_style_set ( int  i,
doctype_t doctype 
) [static]

Definition at line 605 of file wordprocessor.c.

{
  printf("Setting style %s tag %s\n", doctype->name, doctype->style[i].name);
  g_object_set(tag_list[i],
              "weight", doctype->style[i].weight,
              "font", doctype->style[i].font,
              "justification", doctype->style[i].justification,
              "indent", doctype->style[i].indent,
              "pixels-above-lines", doctype->style[i].pixels_above_lines,
              "pixels-below-lines", doctype->style[i].pixels_below_lines,
              NULL);
}

Here is the caller graph for this function:

static GnomeCanvasItem * wordprocessor_create ( void  ) [static]

Definition at line 280 of file wordprocessor.c.

{
  GnomeCanvasItem *item = NULL;
  GtkWidget *sw;

  boardRootItem = GNOME_CANVAS_GROUP(
                                 gnome_canvas_item_new (gnome_canvas_root(gcomprisBoard->canvas),
                                                     gnome_canvas_group_get_type (),
                                                     "x", (double) 0,
                                                     "y", (double) 0,
                                                     NULL));

  view = gtk_text_view_new ();
  gtk_text_view_set_wrap_mode (GTK_TEXT_VIEW (view), GTK_WRAP_WORD);
  g_signal_connect (view, "key-release-event",
                  G_CALLBACK (key_press_event), NULL);

  buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (view));


  sw = gtk_scrolled_window_new (NULL, NULL);
  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sw),
                              GTK_POLICY_AUTOMATIC,
                              GTK_POLICY_ALWAYS);
  gtk_container_add (GTK_CONTAINER (sw), view);

  item = gnome_canvas_item_new (GNOME_CANVAS_GROUP(boardRootItem),
                            gnome_canvas_widget_get_type (),
                            "widget", GTK_WIDGET(sw),
                            "x", (double) word_area_x1,
                            "y", (double) word_area_y1,
                            "width", (double) word_area_width,
                            "height", (double) word_area_height,
                            "anchor", GTK_ANCHOR_NW,
                            "size_pixels", FALSE,
                            NULL);
  gtk_widget_show(GTK_WIDGET(view));
  gtk_widget_show(GTK_WIDGET(sw));

  /*
   * Create the default style tags
   */
  doctype_list[0] = &type_normal;
  doctype_list[1] = &type_letter;
  doctype_list[2] = &type_small;
  doctype_list[3] = &type_text;
  doctype_list[4] = &type_big;

  current_doctype_default = doctype_list[0];
  create_tags(buffer, current_doctype_default);

  /*
   * Display the style buttons
   */
  display_style_buttons(boardRootItem,
                     word_area_x1 + word_area_width + 10,
                     word_area_y1);

  display_style_selector(boardRootItem);
  display_color_style_selector(boardRootItem);

  return NULL;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void wordprocessor_destroy_all_items ( void  ) [static]

Definition at line 272 of file wordprocessor.c.

{
  if(boardRootItem!=NULL)
    gtk_object_destroy (GTK_OBJECT(boardRootItem));

  boardRootItem = NULL;
}

Here is the caller graph for this function:


Variable Documentation

gboolean board_paused = TRUE [static]

Definition at line 121 of file wordprocessor.c.

GnomeCanvasGroup* boardRootItem = NULL [static]

Definition at line 132 of file wordprocessor.c.

GtkTextBuffer* buffer [static]

Definition at line 162 of file wordprocessor.c.

Initial value:
{
  {N_("Black"), "black",  "black",  "black",  "black"},
  {N_("Red"), "red",  "blue",  "light blue",  "black"},
  {N_("Blue"), "blue",  "red",  "light blue",  "black"},
  {N_("Pink"), "DeepPink",  "HotPink",  "MediumOrchid",  "black"},
}

Definition at line 112 of file wordprocessor.c.

Definition at line 161 of file wordprocessor.c.

Definition at line 160 of file wordprocessor.c.

Definition at line 106 of file wordprocessor.c.

GcomprisBoard* gcomprisBoard = NULL [static]

Definition at line 120 of file wordprocessor.c.

GtkWidget* gtk_combo_filetypes = NULL [static]

Definition at line 122 of file wordprocessor.c.

BoardPlugin menu_bp [static]
Initial value:
  {
    NULL,
    NULL,
    "Wordprocessor",
    "A basic word processor",
    "Bruno Coudoin <bruno.coudoin@free.fr>",
    NULL,
    NULL,
    NULL,
    NULL,
    start_board,
    pause_board,
    end_board,
    is_our_board,
    NULL,
    NULL,
    set_level,
    NULL,
    NULL,
    NULL,
    NULL
  }

Definition at line 166 of file wordprocessor.c.

GtkTextTag* tag_list[NUMBER_OF_STYLE] [static]

Definition at line 40 of file wordprocessor.c.

Initial value:
  {
    .name = N_("Big"),
    .style = {
      { "H0", "Serif 34", PANGO_WEIGHT_ULTRABOLD,  GTK_JUSTIFY_CENTER, 0,  40, 20 },
      { "H1", "Serif 30", PANGO_WEIGHT_BOLD,       GTK_JUSTIFY_LEFT,   0,  30, 15 },
      { "H2", "Serif 26", PANGO_WEIGHT_SEMIBOLD,   GTK_JUSTIFY_LEFT,   0,  20, 12 },
      { "P",  "Serif 18", PANGO_WEIGHT_NORMAL,     GTK_JUSTIFY_LEFT,   30, 3,  3 }
    },
  }

Definition at line 95 of file wordprocessor.c.

Initial value:
  {
    .name = N_("Letter"),
    .style = {
      { "H0", "Serif 26", PANGO_WEIGHT_ULTRABOLD,  GTK_JUSTIFY_CENTER, 0,  40, 20 },
      { "H1", "Serif 20", PANGO_WEIGHT_BOLD,       GTK_JUSTIFY_LEFT,   0,  30, 15 },
      { "H2", "Serif 16", PANGO_WEIGHT_SEMIBOLD,   GTK_JUSTIFY_LEFT,   0,  20, 12 },
      { "P",  "Serif 14", PANGO_WEIGHT_NORMAL,     GTK_JUSTIFY_LEFT,   30, 3,  3 }
    },
  }

Definition at line 62 of file wordprocessor.c.

Initial value:
  {
    .name = N_("Default"),
    .style = {
      { "H0", "Serif 30", PANGO_WEIGHT_ULTRABOLD,  GTK_JUSTIFY_CENTER, 0,  40, 20 },
      { "H1", "Serif 26", PANGO_WEIGHT_BOLD,       GTK_JUSTIFY_LEFT,   0,  30, 15 },
      { "H2", "Serif 20", PANGO_WEIGHT_SEMIBOLD,   GTK_JUSTIFY_LEFT,   0,  20, 12 },
      { "P",  "Serif 16", PANGO_WEIGHT_NORMAL,     GTK_JUSTIFY_LEFT,   30, 3,  3 }
    }
  }

Definition at line 51 of file wordprocessor.c.

Initial value:
  {
    .name = N_("Small"),
    .style = {
      { "H0", "Serif 18", PANGO_WEIGHT_ULTRABOLD,  GTK_JUSTIFY_CENTER, 0,  40, 20 },
      { "H1", "Serif 16", PANGO_WEIGHT_BOLD,       GTK_JUSTIFY_LEFT,   0,  30, 15 },
      { "H2", "Serif 14", PANGO_WEIGHT_SEMIBOLD,   GTK_JUSTIFY_LEFT,   0,  20, 12 },
      { "P",  "Serif 12", PANGO_WEIGHT_NORMAL,     GTK_JUSTIFY_LEFT,   30, 3,  3 }
    },
  }

Definition at line 73 of file wordprocessor.c.

Initial value:
  {
    .name = N_("Text"),
    .style = {
      { "H0", "Serif 12", PANGO_WEIGHT_ULTRABOLD,  GTK_JUSTIFY_CENTER, 0,  40, 20 },
      { "H1", "Serif 12", PANGO_WEIGHT_BOLD,       GTK_JUSTIFY_LEFT,   0,  30, 15 },
      { "H2", "Serif 12", PANGO_WEIGHT_SEMIBOLD,   GTK_JUSTIFY_LEFT,   0,  20, 12 },
      { "P",  "Serif 12", PANGO_WEIGHT_NORMAL,     GTK_JUSTIFY_LEFT,   30, 3,  3 }
    },
  }

Definition at line 84 of file wordprocessor.c.

GtkWidget* view [static]

Definition at line 163 of file wordprocessor.c.