2002-03-08 07:45:36 -06:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-10 08:42:18 -05:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2002-03-08 07:45:36 -06:00
|
|
|
*
|
2008-04-10 08:42:18 -05:00
|
|
|
* Copyright 2008 by Sun Microsystems, Inc.
|
2002-03-08 07:45:36 -06:00
|
|
|
*
|
2008-04-10 08:42:18 -05:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2002-03-08 07:45:36 -06:00
|
|
|
*
|
2008-04-10 08:42:18 -05:00
|
|
|
* $RCSfile: pm_index.hxx,v $
|
|
|
|
* $Revision: 1.5 $
|
2002-03-08 07:45:36 -06:00
|
|
|
*
|
2008-04-10 08:42:18 -05:00
|
|
|
* This file is part of OpenOffice.org.
|
2002-03-08 07:45:36 -06:00
|
|
|
*
|
2008-04-10 08:42:18 -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:42:18 -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:42:18 -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_HTML_PM_INDEX_HXX
|
|
|
|
#define ADC_DISPLAY_HTML_PM_INDEX_HXX
|
|
|
|
|
2007-11-02 10:34:04 -05:00
|
|
|
// BASE CLASSES
|
2002-03-08 07:45:36 -06:00
|
|
|
#include "pm_base.hxx"
|
2007-11-02 10:34:04 -05:00
|
|
|
#include <ary/ary_disp.hxx>
|
|
|
|
#include <cosv/tpl/processor.hxx>
|
|
|
|
// USED SERVICES
|
2002-03-08 07:45:36 -06:00
|
|
|
namespace adcdisp
|
|
|
|
{
|
|
|
|
class IndexList;
|
|
|
|
}
|
2007-11-02 10:34:04 -05:00
|
|
|
namespace ary
|
|
|
|
{
|
|
|
|
namespace cpp
|
|
|
|
{
|
|
|
|
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 NavigationBar;
|
|
|
|
|
2007-11-02 10:34:04 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
2002-03-08 07:45:36 -06:00
|
|
|
class PageMaker_Index : public SpecializedPageMaker,
|
2007-11-02 10:34:04 -05:00
|
|
|
public ary::Display,
|
|
|
|
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:
|
|
|
|
PageMaker_Index(
|
|
|
|
PageDisplay & io_rPage,
|
|
|
|
char i_c );
|
|
|
|
|
|
|
|
virtual ~PageMaker_Index();
|
|
|
|
|
|
|
|
virtual void MakePage();
|
|
|
|
|
2007-11-02 10:34:04 -05:00
|
|
|
private:
|
|
|
|
// 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:34:04 -05:00
|
|
|
virtual void do_Process(
|
2002-03-08 07:45:36 -06:00
|
|
|
const ary::cpp::Class &
|
|
|
|
i_rData );
|
2007-11-02 10:34:04 -05:00
|
|
|
virtual void do_Process(
|
2002-03-08 07:45:36 -06:00
|
|
|
const ary::cpp::Enum &
|
|
|
|
i_rData );
|
2007-11-02 10:34:04 -05:00
|
|
|
virtual void do_Process(
|
2002-03-08 07:45:36 -06:00
|
|
|
const ary::cpp::Typedef &
|
|
|
|
i_rData );
|
2007-11-02 10:34:04 -05:00
|
|
|
virtual void do_Process(
|
2002-03-08 07:45:36 -06:00
|
|
|
const ary::cpp::Function &
|
|
|
|
i_rData );
|
2007-11-02 10:34:04 -05:00
|
|
|
virtual void do_Process(
|
2002-03-08 07:45:36 -06:00
|
|
|
const ary::cpp::Variable &
|
|
|
|
i_rData );
|
2007-11-02 10:34:04 -05:00
|
|
|
virtual void do_Process(
|
2002-03-08 07:45:36 -06:00
|
|
|
const ary::cpp::EnumValue &
|
|
|
|
i_rData );
|
2007-11-02 10:34:04 -05:00
|
|
|
virtual void do_Process(
|
2002-03-08 07:45:36 -06:00
|
|
|
const ary::cpp::Define &
|
|
|
|
i_rData );
|
2007-11-02 10:34:04 -05:00
|
|
|
virtual void do_Process(
|
2002-03-08 07:45:36 -06:00
|
|
|
const ary::cpp::Macro &
|
|
|
|
i_rData );
|
2007-11-02 10:34:04 -05:00
|
|
|
// Interface ary::cpp::Display:
|
|
|
|
virtual const ary::cpp::Gate *
|
|
|
|
inq_Get_ReFinder() const;
|
|
|
|
// Locals
|
2002-03-08 07:45:36 -06:00
|
|
|
virtual void Write_NavBar();
|
|
|
|
virtual void Write_TopArea();
|
|
|
|
virtual void Write_CompleteAlphabeticalList();
|
|
|
|
|
|
|
|
void Write_CeIndexEntry(
|
2007-11-02 10:34:04 -05:00
|
|
|
const ary::cpp::CodeEntity &
|
2002-03-08 07:45:36 -06:00
|
|
|
i_rCe,
|
|
|
|
const char * i_sType,
|
|
|
|
const char * i_sOwnerType );
|
|
|
|
|
|
|
|
// DATA
|
|
|
|
Dyn<NavigationBar> pNavi;
|
|
|
|
char c;
|
|
|
|
adcdisp::IndexList *
|
|
|
|
pCurIndex;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-11-02 10:34:04 -05:00
|
|
|
#endif
|