Kaydet (Commit) 07a097e2 authored tarafından Michael Stahl's avatar Michael Stahl

xmlfix3: unoxml: cleanup friend declarations

üst 9123a2f7
...@@ -50,7 +50,7 @@ namespace DOM ...@@ -50,7 +50,7 @@ namespace DOM
::osl::MutexGuard const g(m_rMutex); ::osl::MutexGuard const g(m_rMutex);
sal_Int32 count = 0; sal_Int32 count = 0;
xmlNodePtr pNode = m_pElement->m_aNodePtr; xmlNodePtr pNode = m_pElement->GetNodePtr();
if (pNode != NULL) if (pNode != NULL)
{ {
xmlAttrPtr cur = pNode->properties; xmlAttrPtr cur = pNode->properties;
...@@ -72,7 +72,7 @@ namespace DOM ...@@ -72,7 +72,7 @@ namespace DOM
::osl::MutexGuard const g(m_rMutex); ::osl::MutexGuard const g(m_rMutex);
Reference< XNode > aNode; Reference< XNode > aNode;
xmlNodePtr pNode = m_pElement->m_aNodePtr; xmlNodePtr pNode = m_pElement->GetNodePtr();
if (pNode != NULL) if (pNode != NULL)
{ {
OString o1 = OUStringToOString(name, RTL_TEXTENCODING_UTF8); OString o1 = OUStringToOString(name, RTL_TEXTENCODING_UTF8);
...@@ -104,7 +104,7 @@ namespace DOM ...@@ -104,7 +104,7 @@ namespace DOM
::osl::MutexGuard const g(m_rMutex); ::osl::MutexGuard const g(m_rMutex);
Reference< XNode > aNode; Reference< XNode > aNode;
xmlNodePtr pNode = m_pElement->m_aNodePtr; xmlNodePtr pNode = m_pElement->GetNodePtr();
if (pNode != NULL) if (pNode != NULL)
{ {
OString o1 = OUStringToOString(localName, RTL_TEXTENCODING_UTF8); OString o1 = OUStringToOString(localName, RTL_TEXTENCODING_UTF8);
...@@ -138,7 +138,7 @@ namespace DOM ...@@ -138,7 +138,7 @@ namespace DOM
::osl::MutexGuard const g(m_rMutex); ::osl::MutexGuard const g(m_rMutex);
Reference< XNode > aNode; Reference< XNode > aNode;
xmlNodePtr pNode = m_pElement->m_aNodePtr; xmlNodePtr pNode = m_pElement->GetNodePtr();
if (pNode != NULL) if (pNode != NULL)
{ {
xmlAttrPtr cur = pNode->properties; xmlAttrPtr cur = pNode->properties;
...@@ -168,7 +168,7 @@ namespace DOM ...@@ -168,7 +168,7 @@ namespace DOM
{ {
::osl::MutexGuard const g(m_rMutex); ::osl::MutexGuard const g(m_rMutex);
xmlNodePtr const pNode = m_pElement->m_aNodePtr; xmlNodePtr const pNode = m_pElement->GetNodePtr();
if (pNode != NULL) if (pNode != NULL)
{ {
OString o1 = OUStringToOString(name, RTL_TEXTENCODING_UTF8); OString o1 = OUStringToOString(name, RTL_TEXTENCODING_UTF8);
...@@ -201,7 +201,7 @@ namespace DOM ...@@ -201,7 +201,7 @@ namespace DOM
{ {
::osl::MutexGuard const g(m_rMutex); ::osl::MutexGuard const g(m_rMutex);
xmlNodePtr const pNode = m_pElement->m_aNodePtr; xmlNodePtr const pNode = m_pElement->GetNodePtr();
if (pNode != NULL) if (pNode != NULL)
{ {
OString o1 = OUStringToOString(localName, RTL_TEXTENCODING_UTF8); OString o1 = OUStringToOString(localName, RTL_TEXTENCODING_UTF8);
......
...@@ -52,7 +52,7 @@ namespace DOM ...@@ -52,7 +52,7 @@ namespace DOM
sal_Int32 length = 0; sal_Int32 length = 0;
if (m_pNode != NULL) if (m_pNode != NULL)
{ {
xmlNodePtr cur = m_pNode->m_aNodePtr; xmlNodePtr cur = m_pNode->GetNodePtr();
if (0 != cur) { if (0 != cur) {
cur = cur->children; cur = cur->children;
} }
...@@ -75,7 +75,7 @@ namespace DOM ...@@ -75,7 +75,7 @@ namespace DOM
if (m_pNode != NULL) if (m_pNode != NULL)
{ {
xmlNodePtr cur = m_pNode->m_aNodePtr; xmlNodePtr cur = m_pNode->GetNodePtr();
if (0 != cur) { if (0 != cur) {
cur = cur->children; cur = cur->children;
} }
......
...@@ -116,7 +116,7 @@ namespace DOM ...@@ -116,7 +116,7 @@ namespace DOM
::osl::MutexGuard const g(m_rMutex); ::osl::MutexGuard const g(m_rMutex);
// this has to be 'live' // this has to be 'live'
buildlist(static_cast<const CNode*>(m_pElement.get())->m_aNodePtr); buildlist(m_pElement->GetNodePtr());
return m_nodevector.size(); return m_nodevector.size();
} }
/** /**
...@@ -129,7 +129,7 @@ namespace DOM ...@@ -129,7 +129,7 @@ namespace DOM
::osl::MutexGuard const g(m_rMutex); ::osl::MutexGuard const g(m_rMutex);
buildlist(static_cast<const CNode*>(m_pElement.get())->m_aNodePtr); buildlist(m_pElement->GetNodePtr());
if (m_nodevector.size() <= static_cast<size_t>(index)) { if (m_nodevector.size() <= static_cast<size_t>(index)) {
throw RuntimeException(); throw RuntimeException();
} }
......
...@@ -118,10 +118,6 @@ namespace DOM ...@@ -118,10 +118,6 @@ namespace DOM
friend class CDocument; friend class CDocument;
friend class CElement; friend class CElement;
friend class CAttributesMap; friend class CAttributesMap;
friend class CChildList;
friend class CElementList;
friend class CEntitiesMap;
friend class CNotationsMap;
private: private:
bool m_bUnlinked; /// node has been removed from document bool m_bUnlinked; /// node has been removed from document
......
...@@ -50,12 +50,6 @@ namespace DOM {namespace events ...@@ -50,12 +50,6 @@ namespace DOM {namespace events
class CEvent : public cppu::WeakImplHelper1< XEvent > class CEvent : public cppu::WeakImplHelper1< XEvent >
{ {
friend class CEventDispatcher; friend class CEventDispatcher;
friend class CNode;
friend class CDocument;
friend class CElement;
friend class CText;
friend class CCharacterData;
friend class CAttr;
protected: protected:
::osl::Mutex m_Mutex; ::osl::Mutex m_Mutex;
......
...@@ -46,7 +46,6 @@ typedef ::cppu::ImplInheritanceHelper1< CUIEvent, XMouseEvent > ...@@ -46,7 +46,6 @@ typedef ::cppu::ImplInheritanceHelper1< CUIEvent, XMouseEvent >
class CMouseEvent class CMouseEvent
: public CMouseEvent_Base : public CMouseEvent_Base
{ {
friend class CEventDispatcher;
protected: protected:
sal_Int32 m_screenX; sal_Int32 m_screenX;
sal_Int32 m_screenY; sal_Int32 m_screenY;
......
...@@ -51,7 +51,6 @@ typedef ::cppu::ImplInheritanceHelper1< CEvent, XMutationEvent > ...@@ -51,7 +51,6 @@ typedef ::cppu::ImplInheritanceHelper1< CEvent, XMutationEvent >
class CMutationEvent class CMutationEvent
: public CMutationEvent_Base : public CMutationEvent_Base
{ {
friend class CEventDispatcher;
protected: protected:
Reference< XNode > m_relatedNode; Reference< XNode > m_relatedNode;
OUString m_prevValue; OUString m_prevValue;
......
...@@ -49,7 +49,6 @@ typedef ::cppu::ImplInheritanceHelper1< CEvent, XUIEvent > CUIEvent_Base; ...@@ -49,7 +49,6 @@ typedef ::cppu::ImplInheritanceHelper1< CEvent, XUIEvent > CUIEvent_Base;
class CUIEvent class CUIEvent
: public CUIEvent_Base : public CUIEvent_Base
{ {
friend class CEventDispatcher;
protected: protected:
sal_Int32 m_detail; sal_Int32 m_detail;
Reference< XAbstractView > m_view; Reference< XAbstractView > m_view;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment