element.cxx (e9cbe144) element.cxx (b862c97c)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 616 unchanged lines hidden (view full) ---

625
626 if (0 == m_aNodePtr) {
627 throw RuntimeException();
628 }
629 OUString oldValue;
630 AttrChangeType aChangeType = AttrChangeType_MODIFICATION;
631 ::boost::shared_ptr<xmlChar const> const pOld(
632 xmlGetProp(m_aNodePtr, xName), xmlFree);
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 616 unchanged lines hidden (view full) ---

625
626 if (0 == m_aNodePtr) {
627 throw RuntimeException();
628 }
629 OUString oldValue;
630 AttrChangeType aChangeType = AttrChangeType_MODIFICATION;
631 ::boost::shared_ptr<xmlChar const> const pOld(
632 xmlGetProp(m_aNodePtr, xName), xmlFree);
633 if (pOld == NULL) {
633 if( !bool(pOld)) {
634 aChangeType = AttrChangeType_ADDITION;
635 xmlNewProp(m_aNodePtr, xName, xValue);
636 } else {
637 oldValue = OUString(reinterpret_cast<sal_Char const*>(pOld.get()),
638 strlen(reinterpret_cast<char const*>(pOld.get())),
639 RTL_TEXTENCODING_UTF8);
640 xmlSetProp(m_aNodePtr, xName, xValue);
641 }

--- 66 unchanged lines hidden (view full) ---

708 }
709
710 // found namespace matches
711
712 OUString oldValue;
713 AttrChangeType aChangeType = AttrChangeType_MODIFICATION;
714 ::boost::shared_ptr<xmlChar const> const pOld(
715 xmlGetNsProp(m_aNodePtr, xLName, pNs->href), xmlFree);
634 aChangeType = AttrChangeType_ADDITION;
635 xmlNewProp(m_aNodePtr, xName, xValue);
636 } else {
637 oldValue = OUString(reinterpret_cast<sal_Char const*>(pOld.get()),
638 strlen(reinterpret_cast<char const*>(pOld.get())),
639 RTL_TEXTENCODING_UTF8);
640 xmlSetProp(m_aNodePtr, xName, xValue);
641 }

--- 66 unchanged lines hidden (view full) ---

708 }
709
710 // found namespace matches
711
712 OUString oldValue;
713 AttrChangeType aChangeType = AttrChangeType_MODIFICATION;
714 ::boost::shared_ptr<xmlChar const> const pOld(
715 xmlGetNsProp(m_aNodePtr, xLName, pNs->href), xmlFree);
716 if (pOld == NULL) {
716 if( !bool(pOld)) {
717 aChangeType = AttrChangeType_ADDITION;
718 xmlNewNsProp(m_aNodePtr, pNs, xLName, xValue);
719 } else {
720 oldValue = OUString(reinterpret_cast<sal_Char const*>(pOld.get()),
721 strlen(reinterpret_cast<char const*>(pOld.get())),
722 RTL_TEXTENCODING_UTF8);
723 xmlSetNsProp(m_aNodePtr, pNs, xLName, xValue);
724 }

--- 70 unchanged lines hidden ---
717 aChangeType = AttrChangeType_ADDITION;
718 xmlNewNsProp(m_aNodePtr, pNs, xLName, xValue);
719 } else {
720 oldValue = OUString(reinterpret_cast<sal_Char const*>(pOld.get()),
721 strlen(reinterpret_cast<char const*>(pOld.get())),
722 RTL_TEXTENCODING_UTF8);
723 xmlSetNsProp(m_aNodePtr, pNs, xLName, xValue);
724 }

--- 70 unchanged lines hidden ---