offset fixes, admit to textline, proper updating of height/font at attr set,
[dia.git] / lib / prop_text.h
blob189b716504b5b86d19fad8e5bc78246ef07e160e
1 /* Dia -- a diagram creation/manipulation program -*- c -*-
2 * Copyright (C) 1998 Alexander Larsson
4 * Property system for dia objects/shapes.
5 * Copyright (C) 2000 James Henstridge
6 * Copyright (C) 2001 Cyrille Chepelov
7 * Major restructuration done in August 2001 by C. Chepelov
9 * Property types for "textual" types (strings, texts, whatever).
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 #ifndef PROP_TEXT_H
26 #define PROP_TEXT_H
28 #include "properties.h"
29 #include "dia_xml.h"
30 #include "text.h"
33 typedef struct {
34 Property common;
35 gchar *string_data;
36 gint num_lines;
37 } StringProperty;
39 typedef struct {
40 Property common;
41 GList *string_list;
42 } StringListProperty;
44 typedef struct {
45 Property common;
46 gchar *text_data;
47 TextAttributes attr;
48 } TextProperty;
50 void prop_text_register(void);
52 #endif