SVGKParserPatternsAndGradients.m 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. //
  2. // SVGKParserPatternsAndGradients.m
  3. // SVGKit
  4. //
  5. // Created by adam applecansuckmybigtodger on 28/06/2012.
  6. // Copyright (c) 2012 __MyCompanyName__. All rights reserved.
  7. //
  8. #import "SVGKParserPatternsAndGradients.h"
  9. #import "SVGSVGElement.h"
  10. #import "SVGCircleElement.h"
  11. #import "SVGDefsElement.h"
  12. #import "SVGDescriptionElement.h"
  13. //#import "SVGKSource.h"
  14. #import "SVGEllipseElement.h"
  15. #import "SVGImageElement.h"
  16. #import "SVGLineElement.h"
  17. #import "SVGPathElement.h"
  18. #import "SVGPolygonElement.h"
  19. #import "SVGPolylineElement.h"
  20. #import "SVGRectElement.h"
  21. #import "SVGTitleElement.h"
  22. @implementation SVGKParserPatternsAndGradients
  23. -(NSArray*) supportedNamespaces
  24. {
  25. return [NSArray arrayWithObjects:
  26. @"http://www.w3.org/2000/svg",
  27. nil];
  28. }
  29. /** "tags supported" is exactly the set of all SVGElement subclasses that already exist */
  30. -(NSArray*) supportedTags
  31. {
  32. return [NSMutableArray arrayWithObjects:@"pattern", nil];
  33. }
  34. - (Node*)handleStartElement:(NSString *)name document:(SVGKSource*) document namePrefix:(NSString*)prefix namespaceURI:(NSString*) XMLNSURI attributes:(NSMutableDictionary *)attributes parseResult:(SVGKParseResult*) parseResult parentNode:(Node*) parentNode
  35. {
  36. NSAssert( FALSE, @"Patterns are not supported by SVGKit yet - no-one has implemented them" );
  37. return nil;
  38. }
  39. -(void)handleEndElement:(Node *)newNode document:(SVGKSource *)document parseResult:(SVGKParseResult *)parseResult
  40. {
  41. }
  42. @end