[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdenonbeta/kdom
From:       Rob Buis <rwlbuis () xs4all ! nl>
Date:       2005-12-03 9:36:19
Message-ID: 1133602579.148241.13958.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 485182 by buis:

Add XMLNames to store xml attr names, and do not include domattrs.h,
it is not used anymore, I am just keeping it in svn so I know which
attr names we still have to add(onclick etc.).

CCMAIL: wildfox@kde.org


 M  +0 -1      core/CDFInterface.cpp  
 M  +0 -3      core/DocumentImpl.cpp  
 M  +0 -1      core/ElementImpl.cpp  
 M  +5 -2      core/Makefile.am  
 M  +2 -1      css/CSSStyleSelector.cpp  
 M  +0 -1      css/StyleBaseImpl.cpp  
 M  +17 -18    css/parser.cpp  
 M  +0 -1      css/parser.y  
 M  +1 -1      scripts/make_names.pl  


--- trunk/kdenonbeta/kdom/core/CDFInterface.cpp #485181:485182
@@ -26,7 +26,6 @@
 #include "EcmaInterface.h"
 
 // The auto-generated parts
-#include "domattrs.h"
 #include "cssvalues.h"
 #include "cssproperties.h"
 
--- trunk/kdenonbeta/kdom/core/DocumentImpl.cpp #485181:485182
@@ -65,9 +65,6 @@
 #include "DOMImplementationImpl.h"
 #include "ProcessingInstructionImpl.h"
 
-#include "domattrs.c"
-#include "domattrs.h"
-
 using namespace KDOM;
 using namespace KDOM::XPath;
 using namespace KDOM::XPointer;
--- trunk/kdenonbeta/kdom/core/ElementImpl.cpp #485181:485182
@@ -31,7 +31,6 @@
 #include "kdom/Helper.h"
 #include "AttrImpl.h"
 #include "NodeImpl.h"
-#include "domattrs.h"
 #include "Namespace.h"
 #include "ElementImpl.h"
 #include "DocumentImpl.h"
--- trunk/kdenonbeta/kdom/core/Makefile.am #485181:485182
@@ -11,6 +11,9 @@
 XLinkNames.cpp:
 	../scripts/make_names.pl --attrs xlinkattrs.in --namespace XLink --cppNamespace \
KDOM --namespaceURI http://www.w3.org/1999/xlink   
+XMLNames.cpp:
+	../scripts/make_names.pl --attrs xmlattrs.in --namespace XML --cppNamespace KDOM \
--namespaceURI http://www.w3.org/XML/1998/namespace +
 noinst_LTLIBRARIES = libkdomimpl.la
 libkdomimpl_la_SOURCES = QualifiedName.cpp NodeImpl.cpp NodeListImpl.cpp \
TagNodeListImpl.cpp NamedNodeMapImpl.cpp \  NamedAttrMapImpl.cpp ElementImpl.cpp \
AttrImpl.cpp DocumentImpl.cpp \ @@ -20,7 +23,7 @@
 			 DOMImplementationImpl.cpp DOMStringImpl.cpp DOMStringListImpl.cpp \
 			 DOMConfigurationImpl.cpp DOMUserDataImpl.cpp DOMObjectImpl.cpp \
DOMLocatorImpl.cpp \  DOMErrorImpl.cpp TypeInfoImpl.cpp CDFInterface.cpp \
-			 DOMErrorHandlerImpl.cpp HashTable.cpp FastMalloc.cpp AtomicString.cpp \
XLinkNames.cpp +			 DOMErrorHandlerImpl.cpp HashTable.cpp FastMalloc.cpp \
AtomicString.cpp XLinkNames.cpp XMLNames.cpp  
 libkdomimpl_la_LDFLAGS = $(all_libraries)
 
@@ -33,4 +36,4 @@
 			DOMImplementationImpl.h DOMStringImpl.h \
 			DOMStringListImpl.h DOMConfigurationImpl.h DOMUserDataImpl.h \
 			DOMLocatorImpl.h DOMErrorImpl.h TypeInfoImpl.h CDFInterface.h \
-			DOMErrorHandlerImpl.h DOMObjectImpl.h SharedPtr.h XLinkNames.h
+			DOMErrorHandlerImpl.h DOMObjectImpl.h SharedPtr.h 
--- trunk/kdenonbeta/kdom/css/CSSStyleSelector.cpp #485181:485182
@@ -68,6 +68,7 @@
 #include "QualifiedName.h"
 #include "AtomicString.h"
 #include "AtomicStringList.h"
+#include "XLinkNames.h"
 
 #include "cssvalues.h"
 #include "cssproperties.h"
@@ -649,7 +650,7 @@
         return;
     }
 
-    DOMString attr(e->getAttribute(DOMString("href").impl()));
+    const AtomicString &attr = e->getAttribute(XLinkNames::hrefAttr);
     if(attr.isNull())
     {
         pseudoState = PseudoNone;
--- trunk/kdenonbeta/kdom/css/StyleBaseImpl.cpp #485181:485182
@@ -34,7 +34,6 @@
 #include <kdebug.h>
 
 #include "kdomcss.h"
-#include "domattrs.h"
 #include "cssparser.h"
 #include "cssvalues.h"
 #include "DocumentImpl.h"
--- trunk/kdenonbeta/kdom/css/parser.cpp #485181:485182
@@ -189,7 +189,6 @@
 #include <stdlib.h>
 
 #include <kdom/DOMString.h>
-#include <kdom/core/domattrs.h>
 #include <kdom/core/CDFInterface.h>
 #include <kdom/core/DocumentImpl.h>
 #include <kdom/core/DOMImplementationImpl.h>
@@ -549,23 +548,23 @@
 /* YYRLINE[YYN] -- source line where rule number YYN was defined.  */
 static const unsigned short int yyrline[] =
 {
-       0,   247,   247,   248,   249,   250,   254,   261,   267,   292,
-     293,   296,   298,   299,   302,   304,   309,   310,   313,   315,
-     326,   336,   339,   345,   346,   350,   358,   359,   363,   364,
-     367,   369,   380,   381,   382,   383,   384,   385,   386,   390,
-     391,   395,   398,   403,   408,   414,   421,   435,   436,   446,
-     468,   471,   477,   480,   486,   487,   488,   489,   493,   494,
-     498,   518,   531,   545,   552,   555,   576,   583,   584,   585,
-     589,   593,   600,   608,   618,   631,   645,   653,   661,   665,
-     675,   682,   689,   690,   691,   695,   705,   716,   722,   729,
-     738,   751,   754,   757,   760,   763,   766,   772,   773,   777,
-     784,   791,   799,   807,   815,   823,   833,   836,   839,   842,
-     847,   853,   857,   860,   865,   871,   893,   899,   908,   909,
-     913,   917,   933,   936,   939,   945,   946,   948,   949,   950,
-     958,   959,   960,   962,   968,   969,   970,   971,   972,   973,
-     974,   975,   976,   977,   978,   979,   980,   981,   982,   983,
-     984,   985,   990,   998,  1014,  1021,  1027,  1036,  1062,  1063,
-    1067,  1068
+       0,   246,   246,   247,   248,   249,   253,   260,   266,   291,
+     292,   295,   297,   298,   301,   303,   308,   309,   312,   314,
+     325,   335,   338,   344,   345,   349,   357,   358,   362,   363,
+     366,   368,   379,   380,   381,   382,   383,   384,   385,   389,
+     390,   394,   397,   402,   407,   413,   420,   434,   435,   445,
+     467,   470,   476,   479,   485,   486,   487,   488,   492,   493,
+     497,   517,   530,   544,   551,   554,   575,   582,   583,   584,
+     588,   592,   599,   607,   617,   630,   644,   652,   660,   664,
+     674,   681,   688,   689,   690,   694,   704,   715,   721,   728,
+     737,   750,   753,   756,   759,   762,   765,   771,   772,   776,
+     783,   790,   798,   806,   814,   822,   832,   835,   838,   841,
+     846,   852,   856,   859,   864,   870,   892,   898,   907,   908,
+     912,   916,   932,   935,   938,   944,   945,   947,   948,   949,
+     957,   958,   959,   961,   967,   968,   969,   970,   971,   972,
+     973,   974,   975,   976,   977,   978,   979,   980,   981,   982,
+     983,   984,   989,   997,  1013,  1020,  1026,  1035,  1061,  1062,
+    1066,  1067
 };
 #endif
 
--- trunk/kdenonbeta/kdom/css/parser.y #485181:485182
@@ -27,7 +27,6 @@
 #include <stdlib.h>
 
 #include <kdom/DOMString.h>
-#include <kdom/core/domattrs.h>
 #include <kdom/core/CDFInterface.h>
 #include <kdom/core/DocumentImpl.h>
 #include <kdom/core/DOMImplementationImpl.h>
--- trunk/kdenonbeta/kdom/scripts/make_names.pl #485181:485182
@@ -294,7 +294,7 @@
 		printDefinitions(\@attrs, "attributes", $attrsNamespace);
 	}
 
-	print "}\n\n} }";
+	print "}\n\n} }\n";
 	restoreSTDOUT();
 }
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic