|
@@ -0,0 +1,58 @@
|
|
|
|
|
+--- include/Attribute.h.dist 2003-06-27 14:13:01.000000000 +0200
|
|
|
|
|
++++ include/Attribute.h 2003-06-27 14:15:54.000000000 +0200
|
|
|
|
|
+@@ -31,6 +31,27 @@
|
|
|
|
|
+ class AttributeContext;
|
|
|
|
|
+ class Syntax;
|
|
|
|
|
+
|
|
|
|
|
++class SP_API AttributeValue : public Resource {
|
|
|
|
|
++public:
|
|
|
|
|
++ enum Type {
|
|
|
|
|
++ implied,
|
|
|
|
|
++ cdata,
|
|
|
|
|
++ tokenized
|
|
|
|
|
++ };
|
|
|
|
|
++ AttributeValue();
|
|
|
|
|
++ virtual ~AttributeValue();
|
|
|
|
|
++ virtual AttributeSemantics *makeSemantics(const DeclaredValue *,
|
|
|
|
|
++ AttributeContext &,
|
|
|
|
|
++ const StringC &,
|
|
|
|
|
++ unsigned &,
|
|
|
|
|
++ unsigned &) const;
|
|
|
|
|
++ virtual Type info(const Text *&, const StringC *&) const = 0;
|
|
|
|
|
++ virtual const Text *text() const;
|
|
|
|
|
++ virtual Boolean recoverUnquoted(const StringC &, const Location &,
|
|
|
|
|
++ AttributeContext &, const StringC &);
|
|
|
|
|
++ static Boolean handleAsUnterminated(const Text &, AttributeContext &);
|
|
|
|
|
++};
|
|
|
|
|
++
|
|
|
|
|
+ class SP_API AttributeDefinitionDesc {
|
|
|
|
|
+ public:
|
|
|
|
|
+ AttributeDefinitionDesc() { }
|
|
|
|
|
+@@ -380,27 +401,6 @@
|
|
|
|
|
+ ConstPtr<Notation> notation_;
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+-class SP_API AttributeValue : public Resource {
|
|
|
|
|
+-public:
|
|
|
|
|
+- enum Type {
|
|
|
|
|
+- implied,
|
|
|
|
|
+- cdata,
|
|
|
|
|
+- tokenized
|
|
|
|
|
+- };
|
|
|
|
|
+- AttributeValue();
|
|
|
|
|
+- virtual ~AttributeValue();
|
|
|
|
|
+- virtual AttributeSemantics *makeSemantics(const DeclaredValue *,
|
|
|
|
|
+- AttributeContext &,
|
|
|
|
|
+- const StringC &,
|
|
|
|
|
+- unsigned &,
|
|
|
|
|
+- unsigned &) const;
|
|
|
|
|
+- virtual Type info(const Text *&, const StringC *&) const = 0;
|
|
|
|
|
+- virtual const Text *text() const;
|
|
|
|
|
+- virtual Boolean recoverUnquoted(const StringC &, const Location &,
|
|
|
|
|
+- AttributeContext &, const StringC &);
|
|
|
|
|
+- static Boolean handleAsUnterminated(const Text &, AttributeContext &);
|
|
|
|
|
+-};
|
|
|
|
|
+-
|
|
|
|
|
+ class SP_API ImpliedAttributeValue : public AttributeValue {
|
|
|
|
|
+ public:
|
|
|
|
|
+ ImpliedAttributeValue();
|