2002-03-08 07:45:36 -06:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2005-09-07 11:25:45 -05:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2002-03-08 07:45:36 -06:00
|
|
|
*
|
2005-09-07 11:25:45 -05:00
|
|
|
* $RCSfile: cre_link.hxx,v $
|
2002-03-08 07:45:36 -06:00
|
|
|
*
|
2007-11-02 10:26:52 -05:00
|
|
|
* $Revision: 1.3 $
|
2002-03-08 07:45:36 -06:00
|
|
|
*
|
2007-11-02 10:26:52 -05:00
|
|
|
* last change: $Author: hr $ $Date: 2007-11-02 16:24:37 $
|
2002-03-08 07:45:36 -06:00
|
|
|
*
|
2005-09-07 11:25:45 -05:00
|
|
|
* The Contents of this file are made available subject to
|
|
|
|
* the terms of GNU Lesser General Public License Version 2.1.
|
2002-03-08 07:45:36 -06:00
|
|
|
*
|
|
|
|
*
|
2005-09-07 11:25:45 -05:00
|
|
|
* GNU Lesser General Public License Version 2.1
|
|
|
|
* =============================================
|
|
|
|
* Copyright 2005 by Sun Microsystems, Inc.
|
|
|
|
* 901 San Antonio Road, Palo Alto, CA 94303, USA
|
2002-03-08 07:45:36 -06:00
|
|
|
*
|
2005-09-07 11:25:45 -05:00
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License version 2.1, as published by the Free Software Foundation.
|
2002-03-08 07:45:36 -06:00
|
|
|
*
|
2005-09-07 11:25:45 -05:00
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
2002-03-08 07:45:36 -06:00
|
|
|
*
|
2005-09-07 11:25:45 -05:00
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
|
|
|
* MA 02111-1307 USA
|
2002-03-08 07:45:36 -06:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
#ifndef ADC_DISPLAY_CRE_LINK_HXX
|
|
|
|
#define ADC_DISPLAY_CRE_LINK_HXX
|
|
|
|
|
|
|
|
|
|
|
|
// USED SERVICES
|
|
|
|
// BASE CLASSES
|
2007-11-02 10:26:52 -05:00
|
|
|
#include <cosv/tpl/processor.hxx>
|
2002-03-08 07:45:36 -06:00
|
|
|
// COMPONENTS
|
|
|
|
// PARAMETERS
|
|
|
|
|
|
|
|
namespace ary
|
2007-11-02 10:26:52 -05:00
|
|
|
{
|
|
|
|
namespace cpp
|
2002-03-08 07:45:36 -06:00
|
|
|
{
|
|
|
|
class CodeEntity;
|
2007-11-02 10:26:52 -05:00
|
|
|
class Namespace;
|
|
|
|
class Class;
|
|
|
|
class Enum;
|
|
|
|
class Typedef;
|
|
|
|
class Function;
|
|
|
|
class Variable;
|
|
|
|
class EnumValue;
|
|
|
|
class Define;
|
|
|
|
class Macro;
|
|
|
|
}
|
2002-03-08 07:45:36 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
class OuputPage_Environment;
|
|
|
|
|
2007-11-02 10:26:52 -05:00
|
|
|
|
|
|
|
|
|
|
|
/** Displays links to ->{ary::cpp::CodeEntity CodeEntites}.
|
|
|
|
*/
|
|
|
|
class LinkCreator : public csv::ProcessorIfc,
|
|
|
|
public csv::ConstProcessor<ary::cpp::Namespace>,
|
|
|
|
public csv::ConstProcessor<ary::cpp::Class>,
|
|
|
|
public csv::ConstProcessor<ary::cpp::Enum>,
|
|
|
|
public csv::ConstProcessor<ary::cpp::Typedef>,
|
|
|
|
public csv::ConstProcessor<ary::cpp::Function>,
|
|
|
|
public csv::ConstProcessor<ary::cpp::Variable>,
|
|
|
|
public csv::ConstProcessor<ary::cpp::EnumValue>,
|
|
|
|
public csv::ConstProcessor<ary::cpp::Define>,
|
|
|
|
public csv::ConstProcessor<ary::cpp::Macro>
|
2002-03-08 07:45:36 -06:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
LinkCreator(
|
|
|
|
char * o_rOutput,
|
|
|
|
uintt i_nOutputSize );
|
|
|
|
~LinkCreator();
|
|
|
|
|
|
|
|
|
|
|
|
void SetEnv(
|
|
|
|
const OuputPage_Environment &
|
|
|
|
i_rEnv );
|
2007-11-02 10:26:52 -05:00
|
|
|
private:
|
|
|
|
void Create_PrePath(
|
|
|
|
const ary::cpp::CodeEntity &
|
|
|
|
i_rData );
|
|
|
|
// Interface csv::ConstProcessor<>
|
|
|
|
virtual void do_Process(
|
2002-03-08 07:45:36 -06:00
|
|
|
const ary::cpp::Namespace &
|
|
|
|
i_rData );
|
2007-11-02 10:26:52 -05:00
|
|
|
virtual void do_Process(
|
2002-03-08 07:45:36 -06:00
|
|
|
const ary::cpp::Class &
|
|
|
|
i_rData );
|
2007-11-02 10:26:52 -05:00
|
|
|
virtual void do_Process(
|
2002-03-08 07:45:36 -06:00
|
|
|
const ary::cpp::Enum &
|
|
|
|
i_rData );
|
2007-11-02 10:26:52 -05:00
|
|
|
virtual void do_Process(
|
2002-03-08 07:45:36 -06:00
|
|
|
const ary::cpp::Typedef &
|
|
|
|
i_rData );
|
2007-11-02 10:26:52 -05:00
|
|
|
virtual void do_Process(
|
2002-03-08 07:45:36 -06:00
|
|
|
const ary::cpp::Function &
|
|
|
|
i_rData );
|
2007-11-02 10:26:52 -05:00
|
|
|
virtual void do_Process(
|
2002-03-08 07:45:36 -06:00
|
|
|
const ary::cpp::Variable &
|
|
|
|
i_rData );
|
2007-11-02 10:26:52 -05:00
|
|
|
virtual void do_Process(
|
2002-03-08 07:45:36 -06:00
|
|
|
const ary::cpp::EnumValue &
|
|
|
|
i_rData );
|
2007-11-02 10:26:52 -05:00
|
|
|
virtual void do_Process(
|
2002-03-08 07:45:36 -06:00
|
|
|
const ary::cpp::Define &
|
|
|
|
i_rData );
|
2007-11-02 10:26:52 -05:00
|
|
|
virtual void do_Process(
|
2002-03-08 07:45:36 -06:00
|
|
|
const ary::cpp::Macro &
|
|
|
|
i_rData );
|
|
|
|
// DATA
|
|
|
|
char * pOut;
|
|
|
|
uintt nOutMaxSize;
|
|
|
|
const OuputPage_Environment *
|
|
|
|
pEnv;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-11-02 10:26:52 -05:00
|
|
|
|
|
|
|
// IMPLEMENTATION
|
2002-03-08 07:45:36 -06:00
|
|
|
inline void
|
|
|
|
LinkCreator::SetEnv( const OuputPage_Environment & i_rEnv )
|
|
|
|
{ pEnv = &i_rEnv; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|