Lines Matching refs:xNode
82 OUString Model::getDefaultServiceNameForNode( const XNode_t& xNode ) in getDefaultServiceNameForNode() argument
90 OUString sTypeName = queryMIP( xNode ).getTypeName(); in getDefaultServiceNameForNode()
133 const Reference<XNode>& xNode ) in lcl_OutPosition() argument
135 OSL_ENSURE( xNode->getParentNode().is(), "need parent" ); in lcl_OutPosition()
140 if( xNode->getParentNode().is() ) in lcl_OutPosition()
142 for( Reference<XNode> xIter = xNode->getParentNode()->getFirstChild(); in lcl_OutPosition()
146 if( xIter->getNodeType() == xNode->getNodeType() && in lcl_OutPosition()
147 xIter->getNodeName() == xNode->getNodeName() && in lcl_OutPosition()
148 xIter->getNamespaceURI() == xNode->getNamespaceURI() ) in lcl_OutPosition()
151 if( xIter == xNode ) in lcl_OutPosition()
168 const Reference<XNode>& xNode ) in lcl_OutName() argument
170 rBuffer.insert( 0, xNode->getNodeName() ); in lcl_OutName()
171 OUString sPrefix = xNode->getPrefix(); in lcl_OutName()
180 const Reference<XNode>& xNode, in lcl_OutInstance() argument
183 Reference<XDocument> xDoc = xNode->getOwnerDocument(); in lcl_OutInstance()
214 const XNode_t& xNode, in getDefaultBindingExpressionForNode() argument
217 OSL_ENSURE( xNode.is(), "need node" ); in getDefaultBindingExpressionForNode()
223 for( Reference<XNode> xCurrent = xNode; in getDefaultBindingExpressionForNode()
269 OUString Model::getDefaultBindingExpressionForNode( const XNode_t& xNode ) in getDefaultBindingExpressionForNode() argument
272 return getDefaultBindingExpressionForNode( xNode, getEvaluationContext() ); in getDefaultBindingExpressionForNode()
292 OUString Model::getNodeDisplayName( const XNode_t& xNode, in getNodeDisplayName() argument
298 switch( xNode->getNodeType() ) in getNodeDisplayName()
301 lcl_OutName( aBuffer, xNode ); in getNodeDisplayName()
306 OUString sContent = xNode->getNodeValue(); in getNodeDisplayName()
317 lcl_OutName( aBuffer, xNode ); in getNodeDisplayName()
322 if( xNode == getDefaultInstance() ) in getNodeDisplayName()
325 lcl_OutInstance( aBuffer, xNode, this ); in getNodeDisplayName()
337 OUString Model::getNodeName( const XNode_t& xNode ) in getNodeName() argument
342 switch( xNode->getNodeType() ) in getNodeName()
346 lcl_OutName( aBuffer, xNode ); in getNodeName()
585 Reference<XNode> xNode; in createElement() local
590 xNode.set( xParent->getOwnerDocument()->createElement( sName ), in createElement()
593 return xNode; in createElement()
600 Reference<XNode> xNode; in createAttribute() local
616 xNode.set( xParent->getOwnerDocument()->createAttribute( sUniqueName ), in createAttribute()
619 return xNode; in createAttribute()
622 Model::XNode_t Model::renameNode( const XNode_t& xNode, in renameNode() argument
627 if( xNode->getNodeName() == sName ) in renameNode()
628 return xNode; in renameNode()
631 if( xNode->getNodeType() == NodeType_ATTRIBUTE_NODE in renameNode()
632 && xNode->getParentNode().is() in renameNode()
633 && Reference<XElement>(xNode->getParentNode(), UNO_QUERY_THROW)->hasAttribute( sName ) ) in renameNode()
634 return xNode; in renameNode()
638 getDefaultBindingExpressionForNode( xNode ); in renameNode()
640 Reference<XDocument> xDoc = xNode->getOwnerDocument(); in renameNode()
642 if( xNode->getNodeType() == NodeType_ELEMENT_NODE ) in renameNode()
648 Reference<XElement> xOldElem( xNode, UNO_QUERY ); in renameNode()
649 OSL_ENSURE( xNode.is(), "no element?" ); in renameNode()
651 Reference<XNamedNodeMap> xMap = xNode->getAttributes(); in renameNode()
660 for( Reference<XNode> xCurrent = xNode->getFirstChild(); in renameNode()
662 xCurrent = xNode->getFirstChild() ) in renameNode()
664 xNew->appendChild( xNode->removeChild( xCurrent ) ); in renameNode()
667 xNode->getParentNode()->replaceChild( xNew, xNode ); in renameNode()
669 else if( xNode->getNodeType() == NodeType_ATTRIBUTE_NODE ) in renameNode()
673 xAttr->setValue( xNode->getNodeValue() ); in renameNode()
676 Reference<XNode> xParent = xNode->getParentNode(); in renameNode()
677 xParent->removeChild( xNode ); in renameNode()
703 return xNew.is() ? xNew : xNode; in renameNode()
706 Model::XPropertySet_t Model::getBindingForNode( const XNode_t& xNode, in getBindingForNode() argument
710 OSL_ENSURE( xNode.is(), "no node?" ); in getBindingForNode()
728 if( nNodes > 0 && xNodeList->item( 0 ) == xNode ) in getBindingForNode()
756 getDefaultBindingExpressionForNode( xNode ) ); in getBindingForNode()
799 Reference<XNode> xNode( xFragment, UNO_QUERY ); in lcl_serializeForDisplay() local
801 OSL_ENSURE( xNode.is(), "xNode" ); in lcl_serializeForDisplay()
833 xNode->appendChild( xDocument->importNode( xCurrent, sal_True ) ); in lcl_serializeForDisplay()
975 const XNode_t& xNode, in setNodeValue() argument
979 setSimpleContent( xNode, sValue ); in setNodeValue()