2010-10-27 07:05:40 -05:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2002-03-08 07:45:36 -06:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-10 08:33:10 -05:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2002-03-08 07:45:36 -06:00
|
|
|
*
|
2010-02-12 08:01:35 -06:00
|
|
|
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
2002-03-08 07:45:36 -06:00
|
|
|
*
|
2008-04-10 08:33:10 -05:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2002-03-08 07:45:36 -06:00
|
|
|
*
|
2008-04-10 08:33:10 -05:00
|
|
|
* This file is part of OpenOffice.org.
|
2002-03-08 07:45:36 -06:00
|
|
|
*
|
2008-04-10 08:33:10 -05:00
|
|
|
* OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
* only, as published by the Free Software Foundation.
|
2002-03-08 07:45:36 -06:00
|
|
|
*
|
2008-04-10 08:33:10 -05:00
|
|
|
* OpenOffice.org 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 version 3 for more details
|
|
|
|
* (a copy is included in the LICENSE file that accompanied this code).
|
2002-03-08 07:45:36 -06:00
|
|
|
*
|
2008-04-10 08:33:10 -05:00
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* version 3 along with OpenOffice.org. If not, see
|
|
|
|
* <http://www.openoffice.org/license.html>
|
|
|
|
* for a copy of the LGPLv3 License.
|
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
|
2010-10-27 07:05:40 -05:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|