o added Anchor

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@18168 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
mguesdon 2003-11-24 10:59:56 +00:00
parent 238150c714
commit 75da131759
4 changed files with 23 additions and 6 deletions

View file

@ -1,7 +1,14 @@
Anchor: GSWGenericContainer
{
elementName = "a";
name = anchorName;
}
Link: GSWHyperlink
{
action = toggleVisibilityAction;
disabled = ^disabled;
disabled = ^disabled;
fragmentIdentifier = anchorName;
};
Image: GSWImage

View file

@ -1 +1 @@
<gsweb name="Link"><gsweb name="Image"></gsweb></gsweb> <gsweb name="Label"></gsweb><gsweb name="Condition"><gsweb name="Content"></gsweb></gsweb>
<gsweb name="Anchor"></gsweb><gsweb name="Link"><gsweb name="Image"></gsweb></gsweb> <gsweb name="Label"></gsweb><gsweb name="Condition"><gsweb name="Content"></gsweb></gsweb>

View file

@ -28,6 +28,7 @@
//==============================================================================
@interface GSWCollapsibleComponentContent: GSWComponent
{
NSString* _tmpAnchorName;
BOOL _isVisibleConditionPassed;
BOOL _isVisible;
NSString* _openedImageFileName;
@ -36,10 +37,6 @@
NSString* _closedHelpString;
};
-(void)awake;
-(void)sleep;
-(void)dealloc;
-(BOOL)synchronizesVariablesWithBindings;
-(BOOL)isVisible;
-(GSWComponent*)toggleVisibilityAction;
-(NSString*)imageFileName;

View file

@ -66,6 +66,15 @@ RCS_ID("$Id$")
return NO;
};
-(void)appendToResponse:(GSWResponse*)aResponse
inContext:(GSWContext*)aContext
{
_tmpAnchorName=[NSString stringWithString:[[self context] elementID]];
[super appendToResponse:aResponse
inContext:aContext];
_tmpAnchorName=nil;
};
-(BOOL)isVisible
{
LOGObjectFnStart();
@ -189,5 +198,9 @@ RCS_ID("$Id$")
return _helpString;
};
-(NSString*)anchorName
{
return _tmpAnchorName;
};
@end