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 librararies 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: NodeTask.h /main/3 1996/07/18 15:16:53 drk $ */
37 class NodeTask : public ComplexTask{
39 * The NodeTask builds the NodeMeta table:
41 * Table name: NodeMeta
43 * STRING node contents ("balanced tag" string) -- "" on first pass
44 * STRING book/toc locator
46 * STRING node "ordinal", e.g. 2.3.1
53 NodeTask(BookTask *book, class NodeTask *parent);
57 void markup(const Token& t);
58 void data( const char *, size_t);
60 const char *locator(); /* throw(Unexpected) if no locator yet */
61 BookTask *book() { return ( f_book ); }
64 const char *styleName();
65 const char *title(); /* throw(Unexpected) if no title available yet */
66 int start_node_level() const { return(f_base); }
73 void endSubNode(const Token& t);
75 int checkNodeAF(const Token& t);
77 int formatOrd(char * buf, int max); /* for TOC gen, debugging */
81 char *section_element_name;
82 int ord; /* for TOC gen, debugging */
87 OL_Data *f_shortTitle;
99 #endif /* __NodeTask_h */