libroot/posix/stdio: Remove unused portions.
[haiku.git] / src / apps / icon-o-matic / import_export / styled_text / StyledTextImporter.h
blob5a3ff9d7a2844b64621c5caf20c051c684fabc39
1 /*
2 * Copyright 2008, Haiku. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * François Revol <revol@free.fr>
7 */
8 #ifndef STYLED_TEXT_IMPORTER_H
9 #define STYLED_TEXT_IMPORTER_H
12 #include "Importer.h"
13 #include <Entry.h>
15 class BMessage;
16 class BShape;
17 struct text_run;
18 struct text_run_array;
20 _BEGIN_ICON_NAMESPACE
21 class Icon;
22 class Style;
23 class VectorPath;
24 class PathContainer;
25 class ShapeContainer;
26 class StyleContainer;
27 _END_ICON_NAMESPACE
29 struct style_map {
30 text_run *run;
31 Style *style;
34 class StyledTextImporter : public Importer {
35 public:
36 StyledTextImporter();
37 virtual ~StyledTextImporter();
39 status_t Import(Icon* icon,
40 BMessage* clipping);
41 status_t Import(Icon* icon,
42 const entry_ref* ref);
44 private:
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;
53 int32 fStyleCount;
56 #endif // STYLED_TEXT_IMPORTER_H