2 * Copyright 2008, Haiku. All rights reserved.
3 * Distributed under the terms of the MIT License.
6 * François Revol <revol@free.fr>
8 #ifndef STYLED_TEXT_IMPORTER_H
9 #define STYLED_TEXT_IMPORTER_H
18 struct text_run_array
;
34 class StyledTextImporter
: public Importer
{
37 virtual ~StyledTextImporter();
39 status_t
Import(Icon
* icon
,
41 status_t
Import(Icon
* icon
,
42 const entry_ref
* ref
);
45 status_t
_Import(Icon
* icon
, const char *text
,
46 text_run_array
*runs
);
48 status_t
_AddStyle(Icon
*icon
, text_run
*run
);
49 status_t
_AddPaths(Icon
*icon
, BShape
*shape
);
50 status_t
_AddShape(Icon
*icon
, BShape
*shape
, text_run
*run
);
52 struct style_map
*fStyleMap
;
56 #endif // STYLED_TEXT_IMPORTER_H