1 /*-*- c++ -*-********************************************************
2 * wxlparser.h : parsers, import/export for wxLayoutList *
4 * (C) 1998 by Karsten Ballüder (Ballueder@usa.net) *
7 *******************************************************************/
12 # pragma interface "wxlparser.h"
19 enum wxLayoutExportType
26 enum wxLayoutExportMode
28 WXLO_EXPORT_AS_MASK
= 0x0f,
29 WXLO_EXPORT_AS_TEXT
= 0x00,
30 WXLO_EXPORT_AS_TEXT_AND_COMMANDS
= 0x01,
31 WXLO_EXPORT_AS_HTML
= 0x02,
32 WXLO_EXPORT_AS_OBJECTS
= 0x03,
34 WXLO_EXPORT_WITH_MASK
= 0xf0,
35 WXLO_EXPORT_WITH_CRLF
= 0x00,
36 WXLO_EXPORT_WITH_LF_ONLY
= 0x10
39 struct wxLayoutExportObject
41 wxLayoutExportType type
;
45 wxLayoutObjectBase
*object
;
47 ~wxLayoutExportObject()
49 if(type
== WXLO_EXPORT_TEXT
|| type
== WXLO_EXPORT_HTML
)
55 /// import text into a wxLayoutList (including linefeeds):
56 void wxLayoutImportText(wxLayoutList
&list
, String
const &str
,
57 int withflag
= WXLO_EXPORT_WITH_CRLF
);
59 wxLayoutExportObject
*wxLayoutExport(wxLayoutList
&list
,
60 wxLayoutList::iterator
&from
,
61 int mode
= WXLO_EXPORT_AS_TEXT
|WXLO_EXPORT_WITH_CRLF
);
63 /// import text into a wxLayoutList (including linefeeds):
64 void wxLayoutImportText(wxLayoutList
&list
, String
const &str
,
65 int withflag
= WXLO_EXPORT_WITH_LF_ONLY
);
67 wxLayoutExportObject
*wxLayoutExport(wxLayoutList
&list
,
68 wxLayoutList::iterator
&from
,
69 int mode
= WXLO_EXPORT_AS_TEXT
|WXLO_EXPORT_WITH_LF_ONLY
);