Lines Matching refs:i_rObject
243 Metadatable const& i_rObject);
336 MetadatableClipboard const* SourceLink(Metadatable const& i_rObject);
382 XmlIdRegistry::GetXmlIdForElement(const Metadatable& i_rObject) const in GetXmlIdForElement()
386 if (LookupXmlId(i_rObject, path, idref)) in GetXmlIdForElement()
388 if (LookupElement(path, idref) == &i_rObject) in GetXmlIdForElement()
477 ::rtl::OUString const & i_rStream, Metadatable const& i_rObject) in rmIter() argument
483 rList.remove(&const_cast<Metadatable&>(i_rObject)); in rmIter()
546 const Metadatable& i_rObject, in LookupXmlId() argument
550 m_XmlIdReverseMap.find(&i_rObject) ); in LookupXmlId()
569 Metadatable & i_rObject, in TryInsertMetadatable() argument
581 pList->push_back( &i_rObject ); in TryInsertMetadatable()
601 pList->push_front( &i_rObject ); in TryInsertMetadatable()
613 ? ::std::make_pair( XmlIdList_t( 1, &i_rObject ), XmlIdList_t() ) in TryInsertMetadatable()
614 : ::std::make_pair( XmlIdList_t(), XmlIdList_t( 1, &i_rObject ) ))); in TryInsertMetadatable()
660 const Metadatable& i_rObject, in LookupXmlId() argument
663 return m_pImpl->LookupXmlId(i_rObject, o_rStream, o_rIdref); in LookupXmlId()
675 XmlIdRegistryDocument::TryRegisterMetadatable(Metadatable & i_rObject, in TryRegisterMetadatable() argument
678 OSL_TRACE("TryRegisterMetadatable: %p (%s#%s)\n", &i_rObject, in TryRegisterMetadatable()
682 OSL_ENSURE(!dynamic_cast<MetadatableUndo*>(&i_rObject), in TryRegisterMetadatable()
684 OSL_ENSURE(!dynamic_cast<MetadatableClipboard*>(&i_rObject), in TryRegisterMetadatable()
692 if (i_rObject.IsInContent() in TryRegisterMetadatable()
702 m_pImpl->LookupXmlId(i_rObject, old_path, old_idref); in TryRegisterMetadatable()
705 return (m_pImpl->LookupElement(old_path, old_idref) == &i_rObject); in TryRegisterMetadatable()
713 if (m_pImpl->TryInsertMetadatable(i_rObject, i_rStreamName, i_rIdref)) in TryRegisterMetadatable()
715 rmIter(m_pImpl->m_XmlIdMap, old_id, old_path, i_rObject); in TryRegisterMetadatable()
716 m_pImpl->m_XmlIdReverseMap[&i_rObject] = in TryRegisterMetadatable()
727 XmlIdRegistryDocument::RegisterMetadatableAndCreateID(Metadatable & i_rObject) in RegisterMetadatableAndCreateID() argument
729 OSL_TRACE("RegisterMetadatableAndCreateID: %p\n", &i_rObject); in RegisterMetadatableAndCreateID()
731 OSL_ENSURE(!dynamic_cast<MetadatableUndo*>(&i_rObject), in RegisterMetadatableAndCreateID()
733 OSL_ENSURE(!dynamic_cast<MetadatableClipboard*>(&i_rObject), in RegisterMetadatableAndCreateID()
736 const bool isInContent( i_rObject.IsInContent() ); in RegisterMetadatableAndCreateID()
742 m_pImpl->LookupXmlId(i_rObject, old_path, old_idref); in RegisterMetadatableAndCreateID()
749 if (m_pImpl->LookupElement(old_path, old_idref) == &i_rObject) in RegisterMetadatableAndCreateID()
756 rmIter(m_pImpl->m_XmlIdMap, old_id, old_path, i_rObject); in RegisterMetadatableAndCreateID()
765 ? ::std::make_pair( XmlIdList_t( 1, &i_rObject ), XmlIdList_t() ) in RegisterMetadatableAndCreateID()
766 : ::std::make_pair( XmlIdList_t(), XmlIdList_t( 1, &i_rObject ) ))); in RegisterMetadatableAndCreateID()
767 m_pImpl->m_XmlIdReverseMap[&i_rObject] = ::std::make_pair(stream, id); in RegisterMetadatableAndCreateID()
770 void XmlIdRegistryDocument::UnregisterMetadatable(const Metadatable& i_rObject) in UnregisterMetadatable() argument
772 OSL_TRACE("UnregisterMetadatable: %p\n", &i_rObject); in UnregisterMetadatable()
776 if (!m_pImpl->LookupXmlId(i_rObject, path, idref)) in UnregisterMetadatable()
784 rmIter(m_pImpl->m_XmlIdMap, iter, path, i_rObject); in UnregisterMetadatable()
788 void XmlIdRegistryDocument::RemoveXmlIdForElement(const Metadatable& i_rObject) in RemoveXmlIdForElement() argument
790 OSL_TRACE("RemoveXmlIdForElement: %p\n", &i_rObject); in RemoveXmlIdForElement()
793 m_pImpl->m_XmlIdReverseMap.find(&i_rObject) ); in RemoveXmlIdForElement()
848 XmlIdRegistryDocument::CreateUndo(Metadatable const& i_rObject) in CreateUndo() argument
850 OSL_TRACE("CreateUndo: %p\n", &i_rObject); in CreateUndo()
853 new MetadatableUndo(i_rObject.IsInContent()) ); in CreateUndo()
966 ::rtl::OUString const & i_rStream, Metadatable const& i_rObject) in rmIter() argument
972 if (rMeta == &i_rObject) in rmIter()
1022 const Metadatable& i_rObject, in LookupXmlId() argument
1027 m_XmlIdReverseMap.find(&i_rObject) ); in LookupXmlId()
1047 Metadatable & i_rObject, in TryInsertMetadatable() argument
1065 *ppEntry = &i_rObject; in TryInsertMetadatable()
1072 ? ::std::make_pair( &i_rObject, static_cast<Metadatable*>(0) ) in TryInsertMetadatable()
1073 : ::std::make_pair( static_cast<Metadatable*>(0), &i_rObject ))); in TryInsertMetadatable()
1093 const Metadatable& i_rObject, in LookupXmlId() argument
1097 return m_pImpl->LookupXmlId(i_rObject, o_rStream, o_rIdref, pLink); in LookupXmlId()
1109 XmlIdRegistryClipboard::TryRegisterMetadatable(Metadatable & i_rObject, in TryRegisterMetadatable() argument
1112 OSL_TRACE("TryRegisterMetadatable: %p (%s#%s)\n", &i_rObject, in TryRegisterMetadatable()
1116 OSL_ENSURE(!dynamic_cast<MetadatableUndo*>(&i_rObject), in TryRegisterMetadatable()
1118 OSL_ENSURE(!dynamic_cast<MetadatableClipboard*>(&i_rObject), in TryRegisterMetadatable()
1126 if (i_rObject.IsInContent() in TryRegisterMetadatable()
1137 m_pImpl->LookupXmlId(i_rObject, old_path, old_idref, pLink); in TryRegisterMetadatable()
1140 return (m_pImpl->LookupElement(old_path, old_idref) == &i_rObject); in TryRegisterMetadatable()
1148 if (m_pImpl->TryInsertMetadatable(i_rObject, i_rStreamName, i_rIdref)) in TryRegisterMetadatable()
1150 rmIter(m_pImpl->m_XmlIdMap, old_id, old_path, i_rObject); in TryRegisterMetadatable()
1151 m_pImpl->m_XmlIdReverseMap[&i_rObject] = in TryRegisterMetadatable()
1162 XmlIdRegistryClipboard::RegisterMetadatableAndCreateID(Metadatable & i_rObject) in RegisterMetadatableAndCreateID() argument
1164 OSL_TRACE("RegisterMetadatableAndCreateID: %p\n", &i_rObject); in RegisterMetadatableAndCreateID()
1166 OSL_ENSURE(!dynamic_cast<MetadatableUndo*>(&i_rObject), in RegisterMetadatableAndCreateID()
1168 OSL_ENSURE(!dynamic_cast<MetadatableClipboard*>(&i_rObject), in RegisterMetadatableAndCreateID()
1171 bool isInContent( i_rObject.IsInContent() ); in RegisterMetadatableAndCreateID()
1177 LookupXmlId(i_rObject, old_path, old_idref); in RegisterMetadatableAndCreateID()
1179 (m_pImpl->LookupElement(old_path, old_idref) == &i_rObject)) in RegisterMetadatableAndCreateID()
1189 ? ::std::make_pair( &i_rObject, static_cast<Metadatable*>(0) ) in RegisterMetadatableAndCreateID()
1190 : ::std::make_pair( static_cast<Metadatable*>(0), &i_rObject ))); in RegisterMetadatableAndCreateID()
1193 m_pImpl->m_XmlIdReverseMap[&i_rObject] = RMapEntry(stream, id); in RegisterMetadatableAndCreateID()
1196 void XmlIdRegistryClipboard::UnregisterMetadatable(const Metadatable& i_rObject) in UnregisterMetadatable() argument
1198 OSL_TRACE("UnregisterMetadatable: %p\n", &i_rObject); in UnregisterMetadatable()
1203 if (!m_pImpl->LookupXmlId(i_rObject, path, idref, pLink)) in UnregisterMetadatable()
1211 rmIter(m_pImpl->m_XmlIdMap, iter, path, i_rObject); in UnregisterMetadatable()
1216 void XmlIdRegistryClipboard::RemoveXmlIdForElement(const Metadatable& i_rObject) in RemoveXmlIdForElement() argument
1218 OSL_TRACE("RemoveXmlIdForElement: %p\n", &i_rObject); in RemoveXmlIdForElement()
1221 m_pImpl->m_XmlIdReverseMap.find(&i_rObject) ); in RemoveXmlIdForElement()
1280 XmlIdRegistryClipboard::SourceLink(Metadatable const& i_rObject) in SourceLink() argument
1285 m_pImpl->LookupXmlId(i_rObject, path, idref, pLink); in SourceLink()
1367 const ::sfx2::IXmlIdRegistry& GetRegistryConst(Metadatable const& i_rObject) in GetRegistryConst() argument
1369 return const_cast< Metadatable& >( i_rObject ).GetRegistry(); in GetRegistryConst()