2001-10-17 20:58:12 +00:00
|
|
|
#ifndef _INCLUDED_AGSHTML_H
|
|
|
|
#define _INCLUDED_AGSHTML_H
|
|
|
|
/**
|
|
|
|
|
|
|
|
<title>AGSHtml ... a class to output html for a gsdoc file</title>
|
2001-12-16 13:36:06 +00:00
|
|
|
Copyright (C) 2001 Free Software Foundation, Inc.
|
2001-10-17 20:58:12 +00:00
|
|
|
|
2001-12-16 13:36:06 +00:00
|
|
|
Written by: Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
2001-10-17 20:58:12 +00:00
|
|
|
Created: October 2001
|
|
|
|
|
|
|
|
This file is part of the GNUstep Project
|
|
|
|
|
2001-12-18 11:09:38 +00:00
|
|
|
This program is free software; you can redistribute it and/or
|
2001-10-17 20:58:12 +00:00
|
|
|
modify it under the terms of the GNU General Public License
|
2008-06-08 10:38:33 +00:00
|
|
|
as published by the Free Software Foundation; either
|
|
|
|
version 3 of the License, or (at your option) any later version.
|
2001-10-17 20:58:12 +00:00
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public
|
2008-06-08 10:38:33 +00:00
|
|
|
License along with this program; see the file COPYINGv3.
|
2001-10-17 20:58:12 +00:00
|
|
|
If not, write to the Free Software Foundation,
|
2005-05-22 03:32:16 +00:00
|
|
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2001-10-17 20:58:12 +00:00
|
|
|
|
|
|
|
*/
|
|
|
|
|
2010-02-14 14:30:02 +00:00
|
|
|
#import "Foundation/NSObject.h"
|
|
|
|
#import "AGSIndex.h"
|
|
|
|
|
|
|
|
@class NSMutableString;
|
|
|
|
@class NSString;
|
2001-10-17 20:58:12 +00:00
|
|
|
|
|
|
|
@interface AGSHtml : NSObject
|
|
|
|
{
|
2005-05-10 05:06:08 +00:00
|
|
|
NSString *project;
|
2001-10-17 20:58:12 +00:00
|
|
|
AGSIndex *localRefs;
|
|
|
|
AGSIndex *globalRefs;
|
2001-12-18 09:31:32 +00:00
|
|
|
AGSIndex *projectRefs;
|
2001-10-17 20:58:12 +00:00
|
|
|
NSMutableString *indent;
|
|
|
|
NSString *base; // Not retained
|
|
|
|
NSString *unit; // Not retained
|
2002-01-08 17:31:38 +00:00
|
|
|
NSString *category; // Not retained
|
|
|
|
NSString *classname; // Not retained
|
2001-10-17 20:58:12 +00:00
|
|
|
NSString *heading; // Not retained
|
|
|
|
NSString *nextFile; // Not retained
|
|
|
|
NSString *prevFile; // Not retained
|
|
|
|
NSString *upFile; // Not retained
|
2001-12-17 22:36:30 +00:00
|
|
|
unsigned chap;
|
|
|
|
unsigned sect;
|
|
|
|
unsigned ssect;
|
|
|
|
unsigned sssect;
|
2004-03-29 03:37:46 +00:00
|
|
|
BOOL isContentsDoc;
|
2004-03-29 03:44:10 +00:00
|
|
|
BOOL ivarsAtEnd;
|
2001-10-17 20:58:12 +00:00
|
|
|
}
|
|
|
|
- (void) decIndent;
|
|
|
|
- (void) incIndent;
|
2001-12-15 07:54:10 +00:00
|
|
|
- (NSString*) makeAnchor: (NSString*)r
|
|
|
|
ofType: (NSString*)t
|
|
|
|
name: (NSString*)n;
|
|
|
|
- (NSString*) makeLink: (NSString*)r
|
|
|
|
ofType: (NSString*)t
|
|
|
|
isRef: (BOOL)f;
|
|
|
|
- (NSString*) makeLink: (NSString*)r
|
|
|
|
ofType: (NSString*)t
|
|
|
|
inUnit: (NSString*)u
|
|
|
|
isRef: (BOOL)f;
|
2004-09-19 23:00:40 +00:00
|
|
|
- (void) outputIndex: (NSString*)type
|
|
|
|
scope: (NSString*)scope
|
|
|
|
title: (NSString*)title
|
|
|
|
style: (NSString*)style
|
|
|
|
target: (NSString*)target
|
|
|
|
to: (NSMutableString*)buf;
|
2001-10-17 20:58:12 +00:00
|
|
|
- (NSString*) outputDocument: (GSXMLNode*)node;
|
|
|
|
- (void) outputNode: (GSXMLNode*)node to: (NSMutableString*)buf;
|
2001-11-21 17:10:22 +00:00
|
|
|
- (void) outputNodeList: (GSXMLNode*)node to: (NSMutableString*)buf;
|
2001-10-17 20:58:12 +00:00
|
|
|
- (GSXMLNode*) outputBlock: (GSXMLNode*)node
|
|
|
|
to: (NSMutableString*)buf
|
|
|
|
inPara: (BOOL)flag;
|
|
|
|
- (GSXMLNode*) outputList: (GSXMLNode*)node to: (NSMutableString*)buf;
|
|
|
|
- (GSXMLNode*) outputText: (GSXMLNode*)node to: (NSMutableString*)buf;
|
|
|
|
- (void) outputUnit: (GSXMLNode*)node to: (NSMutableString*)buf;
|
2005-05-08 20:14:19 +00:00
|
|
|
- (void) outputVersion: (NSDictionary*)prop to: (NSMutableString*)buf;
|
2001-11-21 17:10:22 +00:00
|
|
|
- (NSString*) protocolRef: (NSString*)t;
|
2001-10-17 20:58:12 +00:00
|
|
|
- (void) setGlobalRefs: (AGSIndex*)r;
|
|
|
|
- (void) setLocalRefs: (AGSIndex*)r;
|
2001-12-18 09:31:32 +00:00
|
|
|
- (void) setProjectRefs: (AGSIndex*)r;
|
2004-03-29 03:44:10 +00:00
|
|
|
- (void) setInstanceVariablesAtEnd: (BOOL)val;
|
2001-11-21 17:10:22 +00:00
|
|
|
- (NSString*) typeRef: (NSString*)t;
|
2001-10-17 20:58:12 +00:00
|
|
|
@end
|
|
|
|
#endif
|