2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
6 * These libraries and programs are free software; you can
7 * redistribute them and/or modify them under the terms of the GNU
8 * Lesser General Public License as published by the Free Software
9 * Foundation; either version 2 of the License, or (at your option)
12 * These libraries and programs are distributed in the hope that
13 * they will be useful, but WITHOUT ANY WARRANTY; without even the
14 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU Lesser General Public License for more
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with these libraries and programs; if not, write
20 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21 * Floor, Boston, MA 02110-1301 USA
23 // $XConsortium: Tml_TextRenderer.hh /main/7 1996/08/21 15:44:59 drk $
24 /* Copyright (c) 1995,1996 FUJITSU LIMITED */
25 /* All Rights Reserved */
27 #ifndef _TML_TEXTRUNCOUNTER_HH_
28 #define _TML_TEXTRUNCOUNTER_HH_
30 #include <StyleSheet/Attribute.h>
31 #include <StyleSheet/Element.h>
32 #include <StyleSheet/Renderer.h>
37 #include "dti_cc/CC_Stack.h"
39 #include "UAS_SearchZones.hh"
48 #define ShiftIn (char)0x0E
49 #define ShiftOut (char)0x0F
51 class Tml_TextRenderer : public Renderer
55 Tml_TextRenderer(ostringstream &, UAS_SearchZones &);
58 FeatureSet * initialize();
60 unsigned int BeginElement(const Element &element,
61 const FeatureSet &local,
62 const FeatureSet &complete,
63 const FeatureSet &parentComplete);
65 void data(const char *data, unsigned int size);
67 void EndElement(const Symbol &name);
74 int effective_zone(UAS_SearchZones::uas_zones);
76 ostringstream &f_ostr;
77 UAS_SearchZones &f_zones;
80 Stack<int> f_marked_level;
83 Stack<int> f_ignore_stack;