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
6f147497
Kaydet (Commit)
6f147497
authored
Ock 19, 2011
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
xmlfix3: unoxml: fix CNotationsMap: member pointer does not keep document alive
üst
711668c7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
60 additions
and
28 deletions
+60
-28
notationsmap.cxx
unoxml/source/dom/notationsmap.cxx
+29
-11
notationsmap.hxx
unoxml/source/dom/notationsmap.hxx
+31
-17
No files found.
unoxml/source/dom/notationsmap.cxx
Dosyayı görüntüle @
6f147497
...
...
@@ -25,12 +25,16 @@
*
************************************************************************/
#include "notationsmap.hxx"
#include <notationsmap.hxx>
#include <documenttype.hxx>
namespace
DOM
{
CNotationsMap
::
CNotationsMap
(
const
CDocumentType
*
aDocType
)
:
m_pDocType
(
aDocType
)
CNotationsMap
::
CNotationsMap
(
::
rtl
::
Reference
<
CDocumentType
>
const
&
pDocType
)
:
m_pDocType
(
pDocType
)
{
}
...
...
@@ -45,7 +49,9 @@ namespace DOM
/**
Retrieves a node specified by local name
*/
Reference
<
XNode
>
SAL_CALL
CNotationsMap
::
getNamedItem
(
const
OUString
&
/* name */
)
throw
(
RuntimeException
)
Reference
<
XNode
>
SAL_CALL
CNotationsMap
::
getNamedItem
(
OUString
const
&
/*name*/
)
throw
(
RuntimeException
)
{
return
Reference
<
XNode
>
();
}
...
...
@@ -53,8 +59,10 @@ namespace DOM
/**
Retrieves a node specified by local name and namespace URI.
*/
Reference
<
XNode
>
SAL_CALL
CNotationsMap
::
getNamedItemNS
(
const
OUString
&
/*namespaceURI*/
,
const
OUString
&
/*localName*/
)
throw
(
RuntimeException
)
Reference
<
XNode
>
SAL_CALL
CNotationsMap
::
getNamedItemNS
(
OUString
const
&
/*namespaceURI*/
,
OUString
const
&
/*localName*/
)
throw
(
RuntimeException
)
{
return
Reference
<
XNode
>
();
}
...
...
@@ -62,7 +70,8 @@ throw (RuntimeException)
/**
Returns the indexth item in the map.
*/
Reference
<
XNode
>
SAL_CALL
CNotationsMap
::
item
(
sal_Int32
/*index*/
)
throw
(
RuntimeException
)
Reference
<
XNode
>
SAL_CALL
CNotationsMap
::
item
(
sal_Int32
/*index*/
)
throw
(
RuntimeException
)
{
return
Reference
<
XNode
>
();
}
...
...
@@ -70,7 +79,9 @@ throw (RuntimeException)
/**
Removes a node specified by name.
*/
Reference
<
XNode
>
SAL_CALL
CNotationsMap
::
removeNamedItem
(
const
OUString
&
/*name*/
)
throw
(
RuntimeException
)
Reference
<
XNode
>
SAL_CALL
CNotationsMap
::
removeNamedItem
(
OUString
const
&
/*name*/
)
throw
(
RuntimeException
)
{
return
Reference
<
XNode
>
();
}
...
...
@@ -78,7 +89,10 @@ throw (RuntimeException)
/**
// Removes a node specified by local name and namespace URI.
*/
Reference
<
XNode
>
SAL_CALL
CNotationsMap
::
removeNamedItemNS
(
const
OUString
&
/*namespaceURI*/
,
const
OUString
&
/*localName*/
)
throw
(
RuntimeException
)
Reference
<
XNode
>
SAL_CALL
CNotationsMap
::
removeNamedItemNS
(
OUString
const
&
/*namespaceURI*/
,
OUString
const
&
/*localName*/
)
throw
(
RuntimeException
)
{
return
Reference
<
XNode
>
();
}
...
...
@@ -86,7 +100,9 @@ throw (RuntimeException)
/**
// Adds a node using its nodeName attribute.
*/
Reference
<
XNode
>
SAL_CALL
CNotationsMap
::
setNamedItem
(
const
Reference
<
XNode
>&
/*arg*/
)
throw
(
RuntimeException
)
Reference
<
XNode
>
SAL_CALL
CNotationsMap
::
setNamedItem
(
Reference
<
XNode
>
const
&
/*arg*/
)
throw
(
RuntimeException
)
{
return
Reference
<
XNode
>
();
}
...
...
@@ -94,7 +110,9 @@ throw (RuntimeException)
/**
Adds a node using its namespaceURI and localName.
*/
Reference
<
XNode
>
SAL_CALL
CNotationsMap
::
setNamedItemNS
(
const
Reference
<
XNode
>&
/*arg*/
)
throw
(
RuntimeException
)
Reference
<
XNode
>
SAL_CALL
CNotationsMap
::
setNamedItemNS
(
Reference
<
XNode
>
const
&
/*arg*/
)
throw
(
RuntimeException
)
{
return
Reference
<
XNode
>
();
}
...
...
unoxml/source/dom/notationsmap.hxx
Dosyayı görüntüle @
6f147497
...
...
@@ -25,18 +25,18 @@
*
************************************************************************/
#ifndef _NOTATIONSMAP_HXX
#define _NOTATIONSMAP_HXX
#ifndef
DOM
_NOTATIONSMAP_HXX
#define
DOM
_NOTATIONSMAP_HXX
#include <map>
#include <sal/types.h>
#include <cppuhelper/implbase1.hxx>
#include <rtl/ref.hxx>
#include <com/sun/star/uno/Reference.h>
#include <com/sun/star/uno/Exception.hpp>
#include <com/sun/star/xml/dom/XNode.hpp>
#include <com/sun/star/xml/dom/XNamedNodeMap.hpp>
#include "document.hxx"
#include "documenttype.hxx"
#include <cppuhelper/implbase1.hxx>
using
::
rtl
::
OUString
;
using
namespace
com
::
sun
::
star
::
uno
;
...
...
@@ -44,13 +44,16 @@ using namespace com::sun::star::xml::dom;
namespace
DOM
{
class
CNotationsMap
:
public
cppu
::
WeakImplHelper1
<
XNamedNodeMap
>
class
CDocumentType
;
class
CNotationsMap
:
public
cppu
::
WeakImplHelper1
<
XNamedNodeMap
>
{
private
:
const
CDocumentType
*
m_pDocType
;
::
rtl
::
Reference
<
CDocumentType
>
const
m_pDocType
;
public
:
CNotationsMap
(
const
CDocumentType
*
a
DocType
);
CNotationsMap
(
::
rtl
::
Reference
<
CDocumentType
>
const
&
p
DocType
);
/**
The number of nodes in this map.
...
...
@@ -60,37 +63,48 @@ namespace DOM
/**
Retrieves a node specified by local name
*/
virtual
Reference
<
XNode
>
SAL_CALL
getNamedItem
(
const
OUString
&
name
)
throw
(
RuntimeException
);
virtual
Reference
<
XNode
>
SAL_CALL
getNamedItem
(
OUString
const
&
name
)
throw
(
RuntimeException
);
/**
Retrieves a node specified by local name and namespace URI.
*/
virtual
Reference
<
XNode
>
SAL_CALL
getNamedItemNS
(
const
OUString
&
namespaceURI
,
const
OUString
&
localName
)
throw
(
RuntimeException
);
virtual
Reference
<
XNode
>
SAL_CALL
getNamedItemNS
(
OUString
const
&
namespaceURI
,
OUString
const
&
localName
)
throw
(
RuntimeException
);
/**
Returns the indexth item in the map.
*/
virtual
Reference
<
XNode
>
SAL_CALL
item
(
sal_Int32
index
)
throw
(
RuntimeException
);
virtual
Reference
<
XNode
>
SAL_CALL
item
(
sal_Int32
index
)
throw
(
RuntimeException
);
/**
Removes a node specified by name.
*/
virtual
Reference
<
XNode
>
SAL_CALL
removeNamedItem
(
const
OUString
&
name
)
throw
(
RuntimeException
);
virtual
Reference
<
XNode
>
SAL_CALL
removeNamedItem
(
OUString
const
&
name
)
throw
(
RuntimeException
);
/**
// Removes a node specified by local name and namespace URI.
*/
virtual
Reference
<
XNode
>
SAL_CALL
removeNamedItemNS
(
const
OUString
&
namespaceURI
,
const
OUString
&
localName
)
throw
(
RuntimeException
);
virtual
Reference
<
XNode
>
SAL_CALL
removeNamedItemNS
(
OUString
const
&
namespaceURI
,
OUString
const
&
localName
)
throw
(
RuntimeException
);
/**
// Adds a node using its nodeName attribute.
*/
virtual
Reference
<
XNode
>
SAL_CALL
setNamedItem
(
const
Reference
<
XNode
>&
arg
)
throw
(
RuntimeException
);
virtual
Reference
<
XNode
>
SAL_CALL
setNamedItem
(
Reference
<
XNode
>
const
&
arg
)
throw
(
RuntimeException
);
/**
Adds a node using its namespaceURI and localName.
*/
virtual
Reference
<
XNode
>
SAL_CALL
setNamedItemNS
(
const
Reference
<
XNode
>&
arg
)
throw
(
RuntimeException
);
virtual
Reference
<
XNode
>
SAL_CALL
setNamedItemNS
(
Reference
<
XNode
>
const
&
arg
)
throw
(
RuntimeException
);
};
}
...
...
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