2002-03-08 07:45:36 -06:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-10 07:17:10 -05:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2002-03-08 07:45:36 -06:00
|
|
|
*
|
2008-04-10 07:17:10 -05:00
|
|
|
* Copyright 2008 by Sun Microsystems, Inc.
|
2002-03-08 07:45:36 -06:00
|
|
|
*
|
2008-04-10 07:17:10 -05:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2002-03-08 07:45:36 -06:00
|
|
|
*
|
2008-04-10 07:17:10 -05:00
|
|
|
* $RCSfile: c_define.hxx,v $
|
|
|
|
* $Revision: 1.4 $
|
2002-03-08 07:45:36 -06:00
|
|
|
*
|
2008-04-10 07:17:10 -05:00
|
|
|
* This file is part of OpenOffice.org.
|
2002-03-08 07:45:36 -06:00
|
|
|
*
|
2008-04-10 07:17: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 07:17: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 07:17: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 ARY_CPP_C_DEFINE_HXX
|
|
|
|
#define ARY_CPP_C_DEFINE_HXX
|
|
|
|
|
|
|
|
|
|
|
|
// USED SERVICES
|
|
|
|
// BASE CLASSES
|
2007-11-02 08:57:52 -05:00
|
|
|
#include <ary/cpp/c_de.hxx>
|
|
|
|
// OTHER
|
|
|
|
|
2002-03-08 07:45:36 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace ary
|
|
|
|
{
|
|
|
|
namespace cpp
|
|
|
|
{
|
|
|
|
|
|
|
|
|
2007-11-02 08:57:52 -05:00
|
|
|
/** A C/C++ #define ("#define DEF") statement, but no macro.
|
|
|
|
|
|
|
|
@see Macro
|
2002-03-08 07:45:36 -06:00
|
|
|
*/
|
2007-11-02 08:57:52 -05:00
|
|
|
class Define : public DefineEntity
|
2002-03-08 07:45:36 -06:00
|
|
|
{
|
|
|
|
public:
|
2007-11-02 08:57:52 -05:00
|
|
|
enum E_ClassId { class_id = 1601 };
|
|
|
|
|
2002-03-08 07:45:36 -06:00
|
|
|
Define( /// Used for: #define DEFINE xyz
|
2007-11-02 08:57:52 -05:00
|
|
|
const String & i_name,
|
|
|
|
const StringVector &
|
|
|
|
i_definition,
|
|
|
|
loc::Le_id i_declaringFile );
|
|
|
|
virtual ~Define();
|
2002-03-08 07:45:36 -06:00
|
|
|
|
|
|
|
// INQUIRY
|
|
|
|
void GetText(
|
|
|
|
csv::StreamStr & o_rText ) const;
|
|
|
|
private:
|
2007-11-02 08:57:52 -05:00
|
|
|
// Interface csv::ConstProcessorClient
|
|
|
|
virtual void do_Accept(
|
|
|
|
csv::ProcessorIfc & io_processor ) const;
|
2002-03-08 07:45:36 -06:00
|
|
|
|
2007-11-02 08:57:52 -05:00
|
|
|
// Interface ary::Object:
|
|
|
|
virtual ClassId get_AryClass() const;
|
2002-03-08 07:45:36 -06:00
|
|
|
|
2007-11-02 08:57:52 -05:00
|
|
|
// Interface DefineEntity:
|
|
|
|
virtual const StringVector &
|
|
|
|
inq_DefinitionText() const;
|
2002-03-08 07:45:36 -06:00
|
|
|
// DATA
|
2007-11-02 08:57:52 -05:00
|
|
|
StringVector aDefinition;
|
2002-03-08 07:45:36 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace cpp
|
|
|
|
} // namespace ary
|
|
|
|
#endif
|