Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
83588ab3
Kaydet (Commit)
83588ab3
authored
Şub 10, 2011
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
xmlfix3: #i113683#: finish CAttributesMap
üst
9f235cfe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
6 deletions
+24
-6
attributesmap.cxx
unoxml/source/dom/attributesmap.cxx
+24
-6
No files found.
unoxml/source/dom/attributesmap.cxx
Dosyayı görüntüle @
83588ab3
...
...
@@ -233,21 +233,39 @@ namespace DOM
// Adds a node using its nodeName attribute.
*/
Reference
<
XNode
>
SAL_CALL
CAttributesMap
::
setNamedItem
(
Reference
<
XNode
>
const
&
arg
)
CAttributesMap
::
setNamedItem
(
Reference
<
XNode
>
const
&
xNode
)
throw
(
RuntimeException
)
{
return
arg
;
// return Reference< XNode >();
Reference
<
XAttr
>
const
xAttr
(
xNode
,
UNO_QUERY
);
if
(
!
xNode
.
is
())
{
throw
DOMException
(
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"CAttributesMap::setNamedItem: XAttr argument expected"
)),
static_cast
<
OWeakObject
*>
(
this
),
DOMExceptionType_HIERARCHY_REQUEST_ERR
);
}
// no MutexGuard needed: m_pElement is const
Reference
<
XNode
>
const
xRet
(
m_pElement
->
setAttributeNode
(
xAttr
),
UNO_QUERY
);
return
xRet
;
}
/**
Adds a node using its namespaceURI and localName.
*/
Reference
<
XNode
>
SAL_CALL
CAttributesMap
::
setNamedItemNS
(
Reference
<
XNode
>
const
&
arg
)
CAttributesMap
::
setNamedItemNS
(
Reference
<
XNode
>
const
&
xNode
)
throw
(
RuntimeException
)
{
return
arg
;
// return Reference< XNode >();
Reference
<
XAttr
>
const
xAttr
(
xNode
,
UNO_QUERY
);
if
(
!
xNode
.
is
())
{
throw
DOMException
(
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"CAttributesMap::setNamedItemNS: XAttr argument expected"
)),
static_cast
<
OWeakObject
*>
(
this
),
DOMExceptionType_HIERARCHY_REQUEST_ERR
);
}
// no MutexGuard needed: m_pElement is const
Reference
<
XNode
>
const
xRet
(
m_pElement
->
setAttributeNodeNS
(
xAttr
),
UNO_QUERY
);
return
xRet
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment