diff --git a/autodoc/source/display/idl/hfi_tag.cxx b/autodoc/source/display/idl/hfi_tag.cxx index 02e38c377a4c..ab3aa16ad9f8 100644 --- a/autodoc/source/display/idl/hfi_tag.cxx +++ b/autodoc/source/display/idl/hfi_tag.cxx @@ -2,9 +2,9 @@ * * $RCSfile: hfi_tag.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: vg $ $Date: 2003-06-10 11:34:03 $ + * last change: $Author: rt $ $Date: 2004-07-12 15:29:59 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -65,16 +65,19 @@ // NOT FULLY DEFINED SERVICES -#include #include #include +#include +#include #include +#include #include "hfi_typetext.hxx" #include "hi_ary.hxx" #include "hi_env.hxx" #include "hi_linkhelper.hxx" +using ary::info::DocuTex2; inline void @@ -159,16 +162,29 @@ HF_IdlTag::Display_ParameterAtTag( const csi::dsapi::DT_ParameterAtTag & i_rTag void HF_IdlTag::Display_SinceAtTag( const csi::dsapi::DT_SinceAtTag & i_rTag ) { - if ( i_rTag.Text().IsEmpty() ) + csv_assert(pTitleOut != 0); + + if ( i_rTag.Text().IsEmpty() + OR + NOT autodoc::CommandLine::Get_().Display_SinceTag() ) + { + return; + } + + // Transform the value of the @since tag into the text to be displayed. + String sDisplay = + autodoc::CommandLine::Get_().DisplayOf_SinceTagValue( + i_rTag.Text().TextOfFirstToken() ); + if (sDisplay.empty()) return; - csv_assert( pTitleOut != 0 ); - *pTitleOut << "Since version"; - PutText_Out( i_rTag.Text() ); + *pTitleOut << "Since "; + DocuTex2 aHelp; + aHelp.AddToken(* new csi::dsapi::DT_TextToken(sDisplay)); + PutText_Out(aHelp); } - //******************** HF_IdlShortDocu *********************/ HF_IdlShortDocu::HF_IdlShortDocu( Environment & io_rEnv,