Ivo Hinkelmann
f54c23ce69
CWS-TOOLING: integrate CWS xmlfix3
2011-02-28 18:27:24 +01:00
Caolán McNamara
c7647b7767
remove empty TESTSHL2LIB
2011-02-24 20:47:33 +00:00
Michael Stahl
474bdcff90
xmlfix3: argh, another unhandled exception...
2011-02-14 18:04:07 +01:00
Michael Stahl
8d5761ee49
xmlfix3: why the heck does this build with g++?
2011-02-14 15:55:02 +01:00
Michael Stahl
701e38bf43
xmlfix3: CDocument::createCDATASection(): keep OString a little longer
2011-02-14 14:24:07 +01:00
Michael Stahl
2029cf2e42
xmlfix3: fix unoxml build: add windows stuff to RepositoryFixes, add gb_STDLIBS
2011-02-14 14:19:23 +01:00
Michael Stahl
fc1d1813d2
sw34bf03: merge to-be-m100 DEV300_next
2011-02-11 15:41:40 +01:00
Michael Stahl
d3df5839b9
xmlfix3: convert unoxml to gbuild
2011-02-10 18:37:54 +01:00
Michael Stahl
1076aee651
xmlfix3: unoxml: argh, doesn't build everywhere...
2011-02-10 17:01:57 +01:00
Michael Stahl
9489d562b7
xmlfix3: unoxml: the complex test
2011-02-10 16:45:05 +01:00
Michael Stahl
57f257b867
xmlfix3: unoxml: valgrind found some more memory leaks
2011-02-10 16:45:05 +01:00
Michael Stahl
001145d71e
xmlfix3: #i113683#: unoxml: all unimplemented methods assert
2011-02-10 16:45:05 +01:00
Michael Stahl
253150cf8d
xmlfix3: #i113683#: remove unfinished, unneeded CDocumentBuilder::parseSource
2011-02-10 16:45:04 +01:00
Michael Stahl
baea7fb003
xmlfix3: unoxml: refactor CAttributesMap::removeNamedItem*: forward to CElement
...
also fix CElement::removeAttributeNode* to save the prefix.
2011-02-10 16:45:04 +01:00
Michael Stahl
1417734544
xmlfix3: unoxml: fix various bugs uncovered by complex test:
...
CAttr::getSpecified() should return true.
CAttr::getValue() and CElement::setAttributeNode() could crash if no children.
CAttributesMap::*NS() methods ignored namespaceURI parameter.
CDATASection::getNodeValue() forwarded to wrong base class.
CDocument needs to override cloneNode().
CDocument::importNode(), CDocumentBuilder::parseURI() deref null argument.
CElement::getAttributes() should return an empty map.
CElementList could be created for null element.
CNode::insertBefore() did not set parent/children pointers.
CNode::setPrefix() should only work on element/attribute.
CXPathAPI had inverted check for null argument (xmlfix3 regression).
2011-02-10 16:45:03 +01:00
Michael Stahl
83588ab3b7
xmlfix3: #i113683#: finish CAttributesMap
2011-02-10 16:45:03 +01:00
Michael Stahl
9f235cfecf
xmlfix3: #i113683#: finish CProcessingInstruction
2011-02-10 16:45:03 +01:00
Michael Stahl
c5db3b93ee
xmlfix3: unoxml: prevent invalid child-parent relationships:
...
new method CNode::IsChildTypeAllowed(NodeType).
use it in appendChild(), insertBefore(), replaceChild().
2011-02-10 16:45:02 +01:00
Michael Stahl
56ae06cd39
sw34bf03: #i116443#: unordf: do not use rdfxml-abbrev serializer
2011-02-08 15:13:57 +01:00
Fridrich Štrba
c49b647c0a
sgi hash containers -> boost unordered containers
2011-02-06 10:37:38 +01:00
Thomas Arnhold
e0239bdc6a
Replace empty equalsAscii() with getLength().
2011-01-28 15:41:03 +01:00
Caolán McNamara
fa646ceffa
WaE: gcc 4.6.0 various warnings
2011-01-24 14:47:38 +00:00
Michael Stahl
d76639d5d8
xmlfix3: unoxml: eradicate the bizarre concept of "carrier nodes":
...
add namespace data member to CAttr.
CAttr overrides getPrefix(), setPrefix(), getNamespaceURI().
CDocument::createAttributeNS() uses this new CAttr member instead of creating
a dummy carrier element.
CElement::setAttributeNode_Impl_Lock() and CNode::appendChild() do not free
the no longer existing dummy carrier element.
CNode::insertBefore() calls appendChild() for attributes
instead of ignoring namespace.
CNode::appendChild() does not invalidate attributes, because they are copied.
2011-01-19 20:27:28 +01:00
Michael Stahl
76eac88260
xmlfix3: unoxml: CDocumentBuilder cleanup
2011-01-19 20:27:28 +01:00
Michael Stahl
75b70f1477
xmlfix3: unoxml: XPath cleanup
2011-01-19 20:27:28 +01:00
Michael Stahl
34da472b44
xmlfix3: unoxml: CCharacterData: return value of xmlNodeGetContent was leaked
2011-01-19 20:27:28 +01:00
Michael Stahl
1dd96d5cd7
xmlfix3: unoxml: CAttr cleanup: always check m_aNodePtr
2011-01-19 20:27:28 +01:00
Michael Stahl
99ded0d63e
xmlfix3: unoxml: CElement fixes:
...
add some additional argument checks.
return value of xmlGetProp was leaked.
invalidate CAttr instances after calling xmlUnsetProp.
2011-01-19 20:27:27 +01:00
Michael Stahl
45c1273ceb
xmlfix3: unoxml: CDocument tweaks
2011-01-19 20:27:27 +01:00
Michael Stahl
b544b4a492
xmlfix3: unoxml: CNode fixes:
...
add some additional argument checks.
fix mess in CNode::setPrefix().
2011-01-19 20:27:27 +01:00
Michael Stahl
a877dd2c10
xmlfix3: unoxml: some cleanup in CNode...
2011-01-19 20:27:27 +01:00
Michael Stahl
07a097e281
xmlfix3: unoxml: cleanup friend declarations
2011-01-19 20:27:27 +01:00
Michael Stahl
9123a2f7c2
xmlfix3: #i113682#: unoxml: CEvent gets a mutex member;
...
also initialize member variables in constructors.
2011-01-19 20:27:26 +01:00
Michael Stahl
57c23f6329
xmlfix3: #i113682#: unoxml: CDocumentBuilder gets a member mutex
2011-01-19 20:27:26 +01:00
Michael Stahl
e94a328aa0
xmlfix3: #i113682#: unoxml: locking in XPath:
...
use CDocument mutex in results, and during evaluation.
new CXPathAPI member mutex.
also, fix lcl_collectNamespaces in case parent nodes declare same prefix.
2011-01-19 20:27:26 +01:00
Michael Stahl
dd995cea7b
xmlfix3: #i113682#: unoxml: use CDocument mutex in misc classes
2011-01-19 20:27:26 +01:00
Michael Stahl
12de6d548b
xmlfix3: #i113682#: unoxml: CDocument gets a member mutex:
...
use it to lock all CNode and derived classes' UNO methods.
2011-01-19 20:27:26 +01:00
Michael Stahl
dd377d72a5
xmlfix3: #i113682#: unoxml: no more globals in CNode:
...
instead now the CDocument contains a node map member.
2011-01-19 20:27:25 +01:00
Michael Stahl
46716bcf7f
xmlfix3: unoxml: all node ctors get CDocument parameter
...
(and in the next patch, an actual CDocument, not just 0 :)
2011-01-19 20:27:25 +01:00
Michael Stahl
06ebc79a5d
xmlfix3: unoxml: replace CNode XUnoTunnel implementation with something sane
2011-01-19 20:27:25 +01:00
Michael Stahl
dde336f8f0
xmlfix3: unoxml: refactor XPath results a little:
...
replace Reference<XNode> with Reference<CDocument>.
also remove all using namespace css::lang, due to conflicts.
2011-01-19 20:27:25 +01:00
Michael Stahl
3ba96ffc4b
xmlfix3: unoxml: fix CDOMImplementation: static instance could be deleted
2011-01-19 20:27:24 +01:00
Michael Stahl
6f147497c0
xmlfix3: unoxml: fix CNotationsMap: member pointer does not keep document alive
2011-01-19 20:27:24 +01:00
Michael Stahl
711668c784
xmlfix3: unoxml: fix CEntitiesMap: member pointer does not keep document alive
2011-01-19 20:27:24 +01:00
Michael Stahl
2619efc1a7
xmlfix3: unoxml: fix CAttributesMap:
...
member pointer does not keep document alive.
also, if an attribute is unlinked, it is leaked.
2011-01-19 20:27:24 +01:00
Michael Stahl
aa85497de7
xmlfix3: unoxml: fix CChildList: member pointer does not keep document alive
2011-01-19 20:27:24 +01:00
Michael Stahl
cb42fe10fa
xmlfix3: unoxml: fix various issues in CElementList:
...
the string buffer allocated in ctor missed null terminator.
the xmlChar* members of ElementList are leaked.
the CElement* pointer does not keep the document alive.
CDocument::getElementsByTagNameNS calls CElementList ctor with wrong args.
2011-01-19 20:27:24 +01:00
Michael Stahl
46f681baad
xmlfix3: unoxml: CEventDispatcher::dispatchEvent(): fix iteration:
...
capture listener was not called for first node in vector.
(assuming that it was intended to be called)
2011-01-19 20:27:23 +01:00
Michael Stahl
8ab417f83b
xmlfix3: #i113682#: unoxml: no more globals in CEventDispatcher:
...
instead CDocument now has a CEventDispatcher member.
2011-01-19 20:27:23 +01:00
Michael Stahl
fd40abc5e1
xmlfix3: #i113682#: unoxml: no mutex necessary for CDocument::importNode
2011-01-19 20:27:23 +01:00
Michael Stahl
bb3c43905b
xmlfix3: unoxml: add copyright headers in events subdir, clean up includes
2011-01-19 20:27:23 +01:00
Michael Stahl
2b0e8719eb
xmlfix3: #i113682#: unoxml: mutex for CSAXDocumentBuilder
2011-01-19 20:27:23 +01:00
Michael Stahl
95fbc9f475
xmlfix3: unoxml: clean up trailing whitespace infestation
2011-01-19 20:27:22 +01:00
Michael Stahl
a10e0ee65f
xmlfix3: unoxml: refactor CNode initialization
2011-01-19 20:27:19 +01:00
Michael Stahl
cb5905f108
xmlfix3: unoxml: new method CNode::invalidate
2011-01-19 20:27:16 +01:00
Michael Stahl
c33c26cbd2
xmlfix3: #i113681#: unoxml: fix races in global node map:
...
put a WeakReference<XNode> into nodemap_t, and check it in getCNode.
check for race between removeCNode and getCNode in removeCNode.
remove pointless call of removeCNode.
2011-01-19 20:27:16 +01:00
Michael Stahl
e2108d5561
xmlfix3: #i113663#: unoxml: fix leaks caused by CNode::get returning CNode*:
...
CNode::getCNode now returns rtl::Reference<CNode>, preventing leaks.
2011-01-19 20:27:15 +01:00
Michael Stahl
8f5bbf5b12
xmlfix3: #i113663#: unoxml: fix xmlRemoveProp errors
2011-01-19 20:27:14 +01:00
Michael Stahl
6145d8c3f4
xmlfix3: #i113663#: unoxml: fix leaks of unlinked nodes
2011-01-19 20:27:14 +01:00
Michael Stahl
798d3141ab
xmlfix3: unoxml seems to have wrong dependencies
2011-01-19 20:27:14 +01:00
Caolán McNamara
ca5d4067c9
free ctxt *after* taking lastError details
2011-01-18 12:10:32 +00:00
Caolán McNamara
a3f6cded87
equalsAsciiL faster than equalsAscii & comparetoAscii(const sal_Char*)
2011-01-16 14:12:26 +00:00
Michael Stahl
737a43c324
xmlfix3: #i115995#: unoxml: retain context node in XPath::CNodeList:
...
prevents the document containing the nodes from being released.
2011-01-11 13:02:25 +01:00
Caolán McNamara
69994bc72e
cppcheck: prefer prefix variant
2010-12-23 16:32:09 +00:00
Caolán McNamara
b84c11696a
valgrind: unoxml leaks like a sieve
2010-12-10 13:01:44 +00:00
Gert Faller
0a4c0a6a07
RTL_CONSTASCII_USTRINGPARAM in filters 16
2010-11-30 22:54:03 +01:00
Gert Faller
3f8861ce64
RTL_CONSTASCII_USTRINGPARAM in filters 12
2010-11-28 18:35:13 +01:00
Gert Faller
17e4b5ee63
RTL_CONSTASCII_USTRINGPARAM in filters 8 (build problem in sal ?)
2010-11-27 17:35:06 +01:00
Caolán McNamara
a39d1f2cb5
cppcheck: use prefix form
2010-11-27 12:47:10 +00:00
Gert Faller
36c323e365
RTL_CONSTASCII_USTRINGPARAM in filters 3-4
2010-11-27 10:13:34 +01:00
Caolán McNamara
6072f27fec
cppcheck: use prefix variant
2010-11-26 21:47:19 +00:00
sb
f68a775489
sb131: merged in re/DEV300_next towards DEV300_m94
2010-11-19 11:35:41 +01:00
Caolán McNamara
8c97ec61d7
add modelines to .hxx files as well
2010-10-28 15:49:40 +01:00
Michael Stahl
22e9ecace1
merge DEV300_m90
2010-10-27 14:58:12 +02:00
sb
bd8a2d12d3
sb131: #i115124# $(XSLTPROC) implies LIBXSLT:libxslt
2010-10-22 10:37:46 +02:00
Caolán McNamara
876b99ce56
WaE: fix init order
2010-10-20 08:52:20 +01:00
Michael Stahl
0a524ff80a
sw34bf01: merge fix for #i114999#
2010-10-18 13:01:28 +02:00
Michael Stahl
a7e4b74c1c
#i114999#: include redland.h instead of librdf.h
2010-10-18 12:52:07 +02:00
Caolán McNamara
3d45bbeb3a
fix some more ownerships
2010-10-14 17:30:04 +01:00
Michael Stahl
66183dd2d8
sw34bf01: #i112783#: fix Reference& member
2010-10-14 18:13:35 +02:00
Michael Stahl
fe3404b618
sw34bf01: #i112783#: patch by cmc: fix crash in xpathobject.cxx
2010-10-14 18:10:36 +02:00
Caolán McNamara
0e70d593ef
fdo#30825# fix more ownership issues
2010-10-14 13:34:16 +01:00
Caolán McNamara
2c8fc9289f
fdo#30825# someone needs to hold the originating node
2010-10-14 13:34:16 +01:00
J. Graeme Lingard
b0c951dcc3
Remove redundant include directives & comments
2010-10-13 22:32:27 +02:00
Sebastian Spaeth
46a924d348
Add vim/emacs modelines to all source files
...
Fixes #fdo30794
Based on bin/add-modelines script (originally posted in mail
1286706307.1871.1399280959@webmail.messagingengine.com )
Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2010-10-13 10:57:42 +02:00
Caolán McNamara
92586f4e0b
#i112783# ownership cycles in unoxml
2010-10-07 11:39:11 +01:00
David Tardon
7d5fc90372
remove duplicate includes
2010-10-06 09:58:34 +02:00
David Tardon
d772f4cada
include redland.h instead of librdf.h
...
Oh, how I love non-self-contained headers!
2010-10-06 09:56:29 +02:00
Michael Stahl
ca5d8d7810
merge DEV300_m89
2010-10-04 18:09:56 +02:00
sb
d4f29e19e5
sb132: merged in DEV300_m89
2010-10-04 17:38:17 +02:00
sb
7788dc10a3
sb129: #i113189# change UNO components to use passive registration
2010-09-10 13:10:07 +02:00
sb
a338d12680
sb123: merged in DEV300_m87
2010-09-10 11:13:28 +02:00
Joachim Lingner
e3aa7efeb7
jl157 #161910# inserting comments
2010-08-05 16:09:11 +02:00
Joachim Lingner
1c5011a89f
jl157 #161910# make access to static map in unoxml threadsafe
2010-08-05 12:22:22 +02:00
Michael Stahl
f6af5e431c
sw34bf01: #i112783#: unoxml: remove DOM::CDocument::nodereflist_t
2010-08-04 17:18:20 +02:00
Michael Stahl
bb1e287173
sw34bf01: #i112783#: unoxml: apply patch by cmc:
...
fix memory leak by removing unnecessary DOM::CDocument::m_aNodeRefList.
2010-08-04 17:14:21 +02:00
Lars Langhans
50dcf3ec33
merge DEV300_m83
2010-06-18 14:29:05 +02:00
Lars Langhans
51ab32b365
sb123:#i111449# cleanups in unoxml qa/complex tests
2010-06-07 14:50:32 +02:00
Ivo Hinkelmann
e12896d4e2
CWS-TOOLING: integrate CWS sw33bf03
2010-05-21 12:35:59 +02:00
Michael Stahl
8424f481e0
merge DEV300_m77
2010-04-28 17:52:28 +02:00