diff options
author | Nikolai Pretzell <np@openoffice.org> | 2002-06-25 14:16:17 +0000 |
---|---|---|
committer | Nikolai Pretzell <np@openoffice.org> | 2002-06-25 14:16:17 +0000 |
commit | 187524129d40e68c317cd585699ab5f6ddc9ae6e (patch) | |
tree | 3aa4b5563f06f124fec76d83d62c830f928a93ce /udm/source | |
parent | 6abe10805ce123a6ebdac0b6e8d61fa146a5ad52 (diff) |
#100647# Missing anonymous namespaces and replaced assertion in namespace parsing by exception.
Diffstat (limited to 'udm/source')
-rw-r--r-- | udm/source/html/htmlitem.cxx | 22 | ||||
-rw-r--r-- | udm/source/xml/xmlitem.cxx | 40 |
2 files changed, 49 insertions, 13 deletions
diff --git a/udm/source/html/htmlitem.cxx b/udm/source/html/htmlitem.cxx index de654aff20d0..3dc0fcf08191 100644 --- a/udm/source/html/htmlitem.cxx +++ b/udm/source/html/htmlitem.cxx @@ -2,9 +2,9 @@ * * $RCSfile: htmlitem.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: np $ $Date: 2002-05-14 08:29:36 $ + * last change: $Author: np $ $Date: 2002-06-25 15:16:00 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -107,11 +107,11 @@ Image::Image( const String & i_sSrc, const String & i_sBorder ) : AnEmptyElement( "img" ) { - *this << new AnAttribute("src",i_sSrc) - << new AnAttribute("width",i_sWidth) - << new AnAttribute("height",i_sHeight) - << new AnAttribute("align",i_sAlign) - << new AnAttribute("border",i_sBorder); + *this << new AnAttribute(String("src"),i_sSrc) + << new AnAttribute(String("width"),i_sWidth) + << new AnAttribute(String("height"),i_sHeight) + << new AnAttribute(String("align"),i_sAlign) + << new AnAttribute(String("border"),i_sBorder); } bool @@ -172,13 +172,13 @@ Table::Table( const String & i_sBorder, : csi::xml::AnElement("table") { if ( i_sBorder.length() > 0 ) - *this << new AnAttribute("border",i_sBorder); + *this << new AnAttribute(String("border"),i_sBorder); if ( i_sBorder.length() > 0 ) - *this << new AnAttribute("width",i_sWidth); + *this << new AnAttribute(String("width"),i_sWidth); if ( i_sBorder.length() > 0 ) - *this << new AnAttribute("cellpadding",i_sCellPadding); + *this << new AnAttribute(String("cellpadding"),i_sCellPadding); if ( i_sBorder.length() > 0 ) - *this << new AnAttribute("cellspacing",i_sCellSpacing); + *this << new AnAttribute(String("cellspacing"),i_sCellSpacing); } TableRow & diff --git a/udm/source/xml/xmlitem.cxx b/udm/source/xml/xmlitem.cxx index 99d4284c20c1..538dde8a6ec7 100644 --- a/udm/source/xml/xmlitem.cxx +++ b/udm/source/xml/xmlitem.cxx @@ -2,9 +2,9 @@ * * $RCSfile: xmlitem.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: np $ $Date: 2002-05-14 08:29:37 $ + * last change: $Author: np $ $Date: 2002-06-25 15:16:00 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -349,6 +349,13 @@ AnElement::AnElement( const String & i_sTagName ) { } +AnElement::AnElement( const char * i_sTagName ) + : sTagName( i_sTagName ) + // pContent, + // aAttrs +{ +} + AnElement::~AnElement() { } @@ -398,6 +405,12 @@ AnEmptyElement::AnEmptyElement( const String & i_sTagName ) { } +AnEmptyElement::AnEmptyElement( const char * i_sTagName ) + : sTagName( i_sTagName ) + // aAttrs +{ +} + AnEmptyElement::~AnEmptyElement() { @@ -424,6 +437,12 @@ APureElement::APureElement( const String & i_sTagName ) { } +APureElement::APureElement( const char * i_sTagName ) + : sTagName( i_sTagName ) + // pContent +{ +} + APureElement::~APureElement() { } @@ -449,6 +468,11 @@ ASglTag::ASglTag( const String & i_sTagName ) { } +ASglTag::ASglTag( const char * i_sTagName ) + : sTagName( i_sTagName ) +{ +} + ASglTag::~ASglTag() { } @@ -468,6 +492,13 @@ AnAttribute::AnAttribute( const String & i_sName, { } +AnAttribute::AnAttribute( const char * i_sName, + const char * i_sValue ) + : sName(i_sName), + sValue(i_sValue) +{ +} + AnAttribute::~AnAttribute() { } @@ -544,6 +575,11 @@ XmlCode::XmlCode( const String & i_sText ) { } +XmlCode::XmlCode( const char * i_sText ) + : sText(i_sText) +{ +} + XmlCode::~XmlCode() { } |