2002-11-01 10:15:51 -06:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2005-09-07 10:25:10 -05:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2002-11-01 10:15:51 -06:00
|
|
|
*
|
2005-09-07 10:25:10 -05:00
|
|
|
* $RCSfile: d_token.hxx,v $
|
2002-11-01 10:15:51 -06:00
|
|
|
*
|
2007-09-18 07:23:15 -05:00
|
|
|
* $Revision: 1.8 $
|
2002-11-01 10:15:51 -06:00
|
|
|
*
|
2007-09-18 07:23:15 -05:00
|
|
|
* last change: $Author: vg $ $Date: 2007-09-18 13:23:15 $
|
2002-11-01 10:15:51 -06:00
|
|
|
*
|
2005-09-07 10:25:10 -05:00
|
|
|
* The Contents of this file are made available subject to
|
|
|
|
* the terms of GNU Lesser General Public License Version 2.1.
|
2002-11-01 10:15:51 -06:00
|
|
|
*
|
|
|
|
*
|
2005-09-07 10:25:10 -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-11-01 10:15:51 -06:00
|
|
|
*
|
2005-09-07 10:25:10 -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-11-01 10:15:51 -06:00
|
|
|
*
|
2005-09-07 10:25:10 -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-11-01 10:15:51 -06:00
|
|
|
*
|
2005-09-07 10:25:10 -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-11-01 10:15:51 -06:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
#ifndef CSI_DSAPI_D_TOKEN_HXX
|
|
|
|
#define CSI_DSAPI_D_TOKEN_HXX
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// USED SERVICES
|
|
|
|
// BASE CLASSES
|
|
|
|
#include <ary_i/ci_text2.hxx>
|
|
|
|
#include <ary_i/ci_atag2.hxx>
|
|
|
|
// COMPONENTS
|
|
|
|
// PARAMETERS
|
|
|
|
#include <display/uidldisp.hxx>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace csi
|
|
|
|
{
|
|
|
|
namespace dsapi
|
|
|
|
{
|
|
|
|
|
|
|
|
using ary::info::DocumentationDisplay;
|
|
|
|
|
|
|
|
|
|
|
|
class DT_Dsapi : public ary::info::DocuToken
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void DisplayAt(
|
|
|
|
DocumentationDisplay &
|
|
|
|
o_rDisplay ) const = 0;
|
2006-09-15 05:10:54 -05:00
|
|
|
virtual bool IsWhiteOnly() const;
|
2002-11-01 10:15:51 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class DT_TextToken : public DT_Dsapi
|
|
|
|
{
|
|
|
|
public:
|
2007-09-18 07:23:15 -05:00
|
|
|
explicit DT_TextToken(
|
2002-11-01 10:15:51 -06:00
|
|
|
const char * i_sText )
|
|
|
|
: sText(i_sText) {}
|
2007-09-18 07:23:15 -05:00
|
|
|
explicit DT_TextToken(
|
2004-07-12 09:13:30 -05:00
|
|
|
const String & i_sText )
|
|
|
|
: sText(i_sText) {}
|
2007-09-18 07:23:15 -05:00
|
|
|
virtual ~DT_TextToken();
|
|
|
|
|
2002-11-01 10:15:51 -06:00
|
|
|
virtual void DisplayAt(
|
|
|
|
DocumentationDisplay &
|
|
|
|
o_rDisplay ) const;
|
|
|
|
const char * GetText() const { return sText; }
|
2004-07-12 09:13:30 -05:00
|
|
|
const String & GetTextStr() const { return sText; }
|
|
|
|
|
|
|
|
String & Access_Text() { return sText; }
|
2002-11-01 10:15:51 -06:00
|
|
|
|
2006-09-15 05:10:54 -05:00
|
|
|
virtual bool IsWhiteOnly() const;
|
|
|
|
|
2002-11-01 10:15:51 -06:00
|
|
|
private:
|
2003-06-10 05:31:44 -05:00
|
|
|
String sText;
|
2002-11-01 10:15:51 -06:00
|
|
|
};
|
|
|
|
|
2007-09-18 07:23:15 -05:00
|
|
|
class DT_White : public DT_Dsapi
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
DT_White() {}
|
|
|
|
virtual ~DT_White();
|
|
|
|
|
|
|
|
virtual void DisplayAt(
|
|
|
|
DocumentationDisplay &
|
|
|
|
o_rDisplay ) const;
|
|
|
|
virtual bool IsWhiteOnly() const;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2002-11-01 10:15:51 -06:00
|
|
|
class DT_MLTag : public DT_Dsapi
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
enum E_Kind
|
|
|
|
{
|
|
|
|
k_unknown = 0,
|
|
|
|
k_begin,
|
|
|
|
k_end,
|
|
|
|
k_single
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
class DT_MupType : public DT_MLTag
|
|
|
|
{
|
|
|
|
public:
|
2006-06-19 05:49:07 -05:00
|
|
|
explicit DT_MupType( /// Constructor for End-Tag
|
|
|
|
bool ) /// Must be there, but is not evaluated.
|
2002-11-01 10:15:51 -06:00
|
|
|
: bIsBegin(false) {}
|
2007-09-18 07:23:15 -05:00
|
|
|
explicit DT_MupType( /// Constructor for Begin-Tag
|
2006-06-19 05:49:07 -05:00
|
|
|
const String & i_sScope )
|
2002-11-01 10:15:51 -06:00
|
|
|
: sScope(i_sScope), bIsBegin(true) {}
|
2007-09-18 07:23:15 -05:00
|
|
|
virtual ~DT_MupType();
|
|
|
|
|
2002-11-01 10:15:51 -06:00
|
|
|
virtual void DisplayAt(
|
|
|
|
DocumentationDisplay &
|
|
|
|
o_rDisplay ) const;
|
|
|
|
const udmstri & Scope() const { return sScope; }
|
|
|
|
bool IsBegin() const { return bIsBegin; }
|
|
|
|
|
|
|
|
private:
|
|
|
|
udmstri sScope;
|
|
|
|
bool bIsBegin;
|
|
|
|
};
|
|
|
|
|
|
|
|
class DT_MupMember : public DT_MLTag
|
|
|
|
{
|
|
|
|
public:
|
2006-06-19 05:49:07 -05:00
|
|
|
explicit DT_MupMember( /// Constructor for End-Tag
|
|
|
|
bool ) /// Must be there, but is not evaluated.
|
2002-11-01 10:15:51 -06:00
|
|
|
: bIsBegin(false) {}
|
|
|
|
DT_MupMember( /// Constructor for Begin-Tag
|
2006-06-19 05:49:07 -05:00
|
|
|
const String & i_sScope )
|
2002-11-01 10:15:51 -06:00
|
|
|
: sScope(i_sScope), bIsBegin(true) {}
|
2007-09-18 07:23:15 -05:00
|
|
|
virtual ~DT_MupMember();
|
|
|
|
|
2002-11-01 10:15:51 -06:00
|
|
|
virtual void DisplayAt(
|
|
|
|
DocumentationDisplay &
|
|
|
|
o_rDisplay ) const;
|
|
|
|
const udmstri & Scope() const { return sScope; }
|
|
|
|
bool IsBegin() const { return bIsBegin; }
|
|
|
|
|
|
|
|
private:
|
|
|
|
udmstri sScope;
|
|
|
|
bool bIsBegin;
|
|
|
|
};
|
|
|
|
|
|
|
|
class DT_MupConst : public DT_Dsapi
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
DT_MupConst(
|
|
|
|
const char * i_sConstText )
|
|
|
|
: sConstText(i_sConstText) {}
|
2007-09-18 07:23:15 -05:00
|
|
|
virtual ~DT_MupConst();
|
|
|
|
|
2002-11-01 10:15:51 -06:00
|
|
|
virtual void DisplayAt(
|
|
|
|
DocumentationDisplay &
|
|
|
|
o_rDisplay ) const;
|
|
|
|
const char * GetText() const { return sConstText; }
|
|
|
|
|
|
|
|
private:
|
|
|
|
udmstri sConstText; /// Without HTML.
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
class DT_Style : public DT_MLTag
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
DT_Style(
|
|
|
|
const char * i_sPlainHtmlTag,
|
|
|
|
bool i_bNewLine )
|
|
|
|
: sText(i_sPlainHtmlTag), bNewLine(i_bNewLine) {}
|
2007-09-18 07:23:15 -05:00
|
|
|
virtual ~DT_Style();
|
2002-11-01 10:15:51 -06:00
|
|
|
|
|
|
|
virtual void DisplayAt(
|
|
|
|
DocumentationDisplay &
|
|
|
|
o_rDisplay ) const;
|
|
|
|
const char * GetText() const { return sText; }
|
|
|
|
bool IsStartOfNewLine() const
|
|
|
|
{ return bNewLine; }
|
|
|
|
private:
|
|
|
|
udmstri sText; /// With HTML.
|
|
|
|
E_Kind eKind;
|
|
|
|
bool bNewLine;
|
|
|
|
};
|
|
|
|
|
|
|
|
class DT_EOL : public DT_Dsapi
|
|
|
|
{
|
|
|
|
public:
|
2007-09-18 07:23:15 -05:00
|
|
|
DT_EOL() {}
|
|
|
|
virtual ~DT_EOL();
|
2002-11-01 10:15:51 -06:00
|
|
|
|
|
|
|
virtual void DisplayAt(
|
|
|
|
DocumentationDisplay &
|
|
|
|
o_rDisplay ) const;
|
2006-09-15 05:10:54 -05:00
|
|
|
virtual bool IsWhiteOnly() const;
|
2002-11-01 10:15:51 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
class DT_AtTag : public ary::info::AtTag2
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
void AddToken(
|
|
|
|
DYN ary::info::DocuToken &
|
|
|
|
let_drToken )
|
|
|
|
{ aText.AddToken(let_drToken); }
|
|
|
|
void SetName(
|
|
|
|
const char * i_sName )
|
|
|
|
{ sTitle = i_sName; }
|
|
|
|
|
|
|
|
protected:
|
|
|
|
DT_AtTag(
|
|
|
|
const char * i_sTitle )
|
|
|
|
: ary::info::AtTag2(i_sTitle) {}
|
|
|
|
};
|
|
|
|
|
|
|
|
class DT_StdAtTag : public DT_AtTag
|
|
|
|
{
|
|
|
|
public:
|
2007-09-18 07:23:15 -05:00
|
|
|
explicit DT_StdAtTag(
|
2002-11-01 10:15:51 -06:00
|
|
|
const char * i_sTitle )
|
|
|
|
: DT_AtTag(i_sTitle) {}
|
2007-09-18 07:23:15 -05:00
|
|
|
virtual ~DT_StdAtTag();
|
|
|
|
|
2002-11-01 10:15:51 -06:00
|
|
|
virtual void DisplayAt(
|
|
|
|
DocumentationDisplay &
|
|
|
|
o_rDisplay ) const;
|
|
|
|
};
|
|
|
|
|
|
|
|
class DT_SeeAlsoAtTag : public DT_AtTag
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
DT_SeeAlsoAtTag() : DT_AtTag("") {}
|
2007-09-18 07:23:15 -05:00
|
|
|
virtual ~DT_SeeAlsoAtTag();
|
2002-11-01 10:15:51 -06:00
|
|
|
|
|
|
|
// void SetLinkText(
|
|
|
|
// const char * i_sLinkText )
|
|
|
|
// { sLinkText = i_sLinkText; }
|
|
|
|
|
|
|
|
virtual void DisplayAt(
|
|
|
|
DocumentationDisplay &
|
|
|
|
o_rDisplay ) const;
|
|
|
|
const udmstri & LinkText() const { return sTitle; } // Missbrauch von sTitle
|
|
|
|
|
|
|
|
private:
|
|
|
|
// udmstri sLinkText;
|
|
|
|
};
|
|
|
|
|
|
|
|
class DT_ParameterAtTag : public DT_AtTag
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
DT_ParameterAtTag() : DT_AtTag("") {}
|
2007-09-18 07:23:15 -05:00
|
|
|
virtual ~DT_ParameterAtTag();
|
2002-11-01 10:15:51 -06:00
|
|
|
|
|
|
|
void SetTitle(
|
|
|
|
const char * i_sTitle );
|
|
|
|
virtual void DisplayAt(
|
|
|
|
DocumentationDisplay &
|
|
|
|
o_rDisplay ) const;
|
|
|
|
};
|
|
|
|
|
2003-06-10 05:31:44 -05:00
|
|
|
class DT_SinceAtTag : public DT_AtTag
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
DT_SinceAtTag() : DT_AtTag("Since version") {}
|
2007-09-18 07:23:15 -05:00
|
|
|
virtual ~DT_SinceAtTag();
|
2003-06-10 05:31:44 -05:00
|
|
|
|
|
|
|
virtual void DisplayAt(
|
|
|
|
DocumentationDisplay &
|
|
|
|
o_rDisplay ) const;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2002-11-01 10:15:51 -06:00
|
|
|
} // namespace dsapi
|
|
|
|
} // namespace csi
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|