2010-10-27 13:11:31 +01:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-07-17 12:30:48 +01:00
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* This file incorporates work covered by the following license notice:
|
|
|
|
*
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
|
|
* with this work for additional information regarding copyright
|
|
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
|
|
*/
|
2007-04-11 11:55:16 +00:00
|
|
|
|
2013-10-23 19:18:27 +02:00
|
|
|
#ifndef INCLUDED_BASIC_SBXMETH_HXX
|
|
|
|
#define INCLUDED_BASIC_SBXMETH_HXX
|
2007-04-11 11:55:16 +00:00
|
|
|
|
|
|
|
#include <basic/sbxvar.hxx>
|
2013-11-09 13:29:54 -06:00
|
|
|
#include <basic/basicdllapi.h>
|
2007-04-11 11:55:16 +00:00
|
|
|
|
2011-07-28 18:17:31 +02:00
|
|
|
class BASIC_DLLPUBLIC SbxMethod : public SbxVariable
|
2007-04-11 11:55:16 +00:00
|
|
|
{
|
2015-01-08 16:28:11 +00:00
|
|
|
bool mbIsRuntimeFunction;
|
|
|
|
SbxDataType mbRuntimeFunctionReturnType;
|
2007-04-11 11:55:16 +00:00
|
|
|
public:
|
|
|
|
SBX_DECL_PERSIST_NODATA(SBXCR_SBX,SBXID_METHOD,1);
|
2014-03-26 11:54:10 +01:00
|
|
|
TYPEINFO_OVERRIDE();
|
2015-01-08 16:28:11 +00:00
|
|
|
SbxMethod( const OUString& r, SbxDataType t, bool bIsRuntimeFunction=false );
|
2011-08-14 09:37:04 +02:00
|
|
|
SbxMethod( const SbxMethod& r );
|
2014-04-01 19:18:35 +02:00
|
|
|
virtual ~SbxMethod();
|
2011-08-14 09:37:04 +02:00
|
|
|
SbxMethod& operator=( const SbxMethod& r ) { SbxVariable::operator=( r ); return *this; }
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual SbxClassType GetClass() const SAL_OVERRIDE;
|
2015-01-08 16:28:11 +00:00
|
|
|
bool IsRuntimeFunction() const { return mbIsRuntimeFunction; }
|
|
|
|
SbxDataType GetRuntimeFunctionReturnType() const{ return mbRuntimeFunctionReturnType; }
|
2007-04-11 11:55:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2010-10-27 13:11:31 +01:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|