From da7df3e880d44c896cd8df931f3548b5b0919f91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BCdiger=20Timm?= Date: Wed, 3 May 2006 15:52:56 +0000 Subject: [PATCH] INTEGRATION: CWS adc14 (1.5.22); FILE MERGED 2006/04/28 12:29:24 np 1.5.22.2: #i62433#, More condensed base type hierarchies. 2006/04/27 09:43:30 np 1.5.22.1: #i62433#, Combine See Also tags, put deprecated and unpublished into title line. --- autodoc/source/display/idl/hfi_interface.cxx | 64 +++++++++++++++++--- 1 file changed, 54 insertions(+), 10 deletions(-) diff --git a/autodoc/source/display/idl/hfi_interface.cxx b/autodoc/source/display/idl/hfi_interface.cxx index fbf9bb4d5679..ebbc0fb37360 100644 --- a/autodoc/source/display/idl/hfi_interface.cxx +++ b/autodoc/source/display/idl/hfi_interface.cxx @@ -4,9 +4,9 @@ * * $RCSfile: hfi_interface.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: rt $ $Date: 2005-09-07 17:41:41 $ + * last change: $Author: rt $ $Date: 2006-05-03 16:52:56 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -40,8 +40,11 @@ // NOT FULLY DEFINED SERVICES #include +#include #include #include +#include +#include #include #include #include @@ -123,10 +126,7 @@ HF_IdlInterface::Produce_byData( const client & i_ce ) const aNameChain(aTitle.Add_Row()); aNameChain.Produce_CompleteChain(Env().CurPosition(), nameChainLinker); - aTitle.Produce_Title( StreamLock(200)() << C_sCePrefix_Interface - << " " - << i_ce.LocalName() - << c_str ); + produce_Title(aTitle, C_sCePrefix_Interface, i_ce); produce_BaseHierarchy( aTitle.Add_Row(), i_ce, @@ -244,9 +244,24 @@ HF_IdlInterface::produce_BaseHierarchy( Xml::Element & o_screen, if (NOT (*pHelp).operator bool()) return; + // Check for XInterface as only base: + ary::StdConstIterator & + itTest = *pHelp; + ary::idl::Ce_id + nCe = Env().Gate().Types().Search_CeRelatedTo((*itTest).Type()); + if (nCe.IsValid()) + { + // KORR FUTURE + // Rather check for id(!) of com::sun::star::uno::XInterface. + if (Env().Gate().Ces().Find_Ce(nCe).LocalName() == "XInterface") + { + ++itTest; + if (NOT itTest.operator bool()) + return; + } + } + // Write hierarchy: - HF_IdlBaseNode - aMyNode(i_ce, Env().Gate()); HF_DocEntryList aDocList( o_screen ); @@ -254,7 +269,33 @@ HF_IdlInterface::produce_BaseHierarchy( Xml::Element & o_screen, Xml::Element & rBaseList = aDocList.Produce_Definition(); - aMyNode.WriteBaseHierarchy(rBaseList, *this, i_ce.LocalName()); +// NEW + Write_BaseHierarchy(rBaseList, Env(), i_ce); +// csi::xml::Element & +// rPre = rBaseList +// >> *new csi::xml::AnElement("pre") +// << new csi::html::StyleAttr("font-family:monospace;"); +// +// std::vector +// aSetColumns; +// rPre +// >> *new csi::html::Strong +// << i_ce.LocalName(); +// rPre +// << "\n"; +// Write_BaseHierarchy( rPre, +// Env(), +// i_ce, +// Env().Gate(), +// aSetColumns ); +// +// rPre +// << "\n"; +// NEW + +// HF_IdlBaseNode +// aMyNode(i_ce, Env().Gate()); +// aMyNode.WriteBaseHierarchy(rBaseList, *this, i_ce.LocalName()); // Write comments: @@ -266,7 +307,10 @@ HF_IdlInterface::produce_BaseHierarchy( Xml::Element & o_screen, 2, HF_SubTitleTable::sublevel_3 ); - for ( ary::StdConstIterator & it = *pHelp; + ary::Dyn_StdConstIterator + pBases; + ary::idl::ifc_interface::attr::Get_Bases(pBases, i_ce); + for ( ary::StdConstIterator & it = *pBases; it.operator bool(); ++it ) {