diff --git a/ChangeLog b/ChangeLog index 43718839a..c4b90f90c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2005-12-21 Richard Frith-Macdonald + + * Tools/AGSHtml.m: Partial update for use of CSS ... as provided by + Fabien Vallon. Need to decide where the stylesheet file should come + from and where it should be installed. Probably need a new autogsdoc + flag for this and some internal api changes. + 2005-12-20 Richard Frith-Macdonald * Tools/AGSParser.m: Deal with C++ declaration of external C/ObjC libs. diff --git a/Tools/AGSHtml.m b/Tools/AGSHtml.m index 93ec97c2d..7f9f8b4f9 100644 --- a/Tools/AGSHtml.m +++ b/Tools/AGSHtml.m @@ -286,7 +286,14 @@ static NSString *mainFont = nil; } buf = [NSMutableString stringWithCapacity: 4096]; - [buf appendString: @"\n"]; + /* Declaration */ + [buf appendString: @"\n"]; + [buf appendString: @"\n"]; + [self incIndent]; [self outputNodeList: node to: buf]; [self decIndent]; @@ -846,7 +853,7 @@ static NSString *mainFont = nil; else if ([name isEqual: @"declared"] == YES) { [buf appendString: indent]; - [buf appendString: @"
\n"]; + [buf appendString: @"
\n"]; [self incIndent]; [buf appendString: indent]; [buf appendString: @"
\n"]; @@ -867,7 +874,7 @@ static NSString *mainFont = nil; else if ([name isEqual: @"desc"] == YES) { [buf appendString: indent]; - [buf appendString: @"

\n"]; + [buf appendString: @"

\n"]; [self incIndent]; while (children != nil) { @@ -875,7 +882,7 @@ static NSString *mainFont = nil; } [self decIndent]; [buf appendString: indent]; - [buf appendString: @"

\n"]; + [buf appendString: @"
\n"]; } else if ([name isEqual: @"em"] == YES) { @@ -1110,6 +1117,13 @@ static NSString *mainFont = nil; [self outputText: [children firstChild] to: buf]; [self decIndent]; [buf appendString: @"\n"]; +#if 0 + /** Css : TODO print.css **/ + [buf appendString:@"\n"]; + [buf appendString:@"\n"]; + /** Robots **/ + [buf appendString:@"\n"]; +#endif [self decIndent]; [buf appendString: indent]; [buf appendString: @"\n"]; @@ -1504,6 +1518,8 @@ static NSString *mainFont = nil; GSXMLNode *tmp = children; BOOL hadArg = NO; + [buf appendString:@"
\n"]; + sel = [prop objectForKey: @"factory"]; str = [prop objectForKey: @"type"]; if (sel != nil && [sel boolValue] == YES) @@ -1661,6 +1677,7 @@ static NSString *mainFont = nil; [buf appendString: indent]; [buf appendString: @"
\n"]; } + [buf appendString:@"
\n"]; } else if ([name isEqual: @"p"] == YES) { @@ -2426,6 +2443,7 @@ static NSString *mainFont = nil; rem = 0; [buf appendString: indent]; + [buf appendString: @"
\n"]; [buf appendString: @"Availability: "]; if (add < GS_API_OSSPEC) { @@ -2490,11 +2508,13 @@ static NSString *mainFont = nil; [buf appendString: gvrem]; } } + [buf appendString:@"
\n"]; [buf appendString: @"
\n"]; } else if ([gvadd length] > 0) { [buf appendString: indent]; + [buf appendString: @"
\n"]; [buf appendString: @"Availability: "]; [buf appendString: project]; [buf appendString: @" "]; @@ -2510,6 +2530,7 @@ static NSString *mainFont = nil; [buf appendString: @" removed at "]; [buf appendString: gvrem]; } + [buf appendString:@"
\n"]; [buf appendString: @"
\n"]; } }