Files
libreoffice/sc/source/ui/vba/vbaglobals.hxx
Vladimir Glazounov 17a63e9e26 INTEGRATION: CWS npower8 (1.2.4); FILE MERGED
2007/07/18 13:46:46 npower 1.2.4.2: #i77189# sync ooo-build and this module
2007/05/10 11:23:10 npower 1.2.4.1: -m#i77189#
2007-12-07 09:57:55 +00:00

81 lines
3.5 KiB
C++

/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: vbaglobals.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: vg $ $Date: 2007-12-07 10:53:25 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
*
*
* GNU Lesser General Public License Version 2.1
* =============================================
* Copyright 2005 by Sun Microsystems, Inc.
* 901 San Antonio Road, Palo Alto, CA 94303, USA
*
* 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.
*
* 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.
*
* 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
*
************************************************************************/
#ifndef SC_VBA_GLOBALS
#define SC_VBA_GLOBALS
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/lang/XInitialization.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <org/openoffice/vba/XGlobals.hpp>
#include <cppuhelper/implbase1.hxx>
#include "vbahelper.hxx"
// =============================================================================
// class ScVbaGlobals
// =============================================================================
typedef ::cppu::WeakImplHelper1<
oo::vba::XGlobals > ScVbaGlobals_BASE;
class ScVbaGlobals : public ScVbaGlobals_BASE
{
private:
css::uno::Reference< css::uno::XComponentContext > m_xContext;
css::uno::Reference< oo::excel::XApplication > mxApplication;
public:
ScVbaGlobals(
css::uno::Reference< css::uno::XComponentContext >const& rxContext );
virtual ~ScVbaGlobals();
static css::uno::Reference< oo::vba::XGlobals > getGlobalsImpl(const css::uno::Reference< css::uno::XComponentContext >& ) throw (css::uno::RuntimeException);
// XGlobals
virtual css::uno::Reference<
oo::excel::XApplication > SAL_CALL getApplication()
throw (css::uno::RuntimeException);
virtual css::uno::Reference< oo::excel::XWorkbook > SAL_CALL getActiveWorkbook() throw (css::uno::RuntimeException);
virtual css::uno::Reference< oo::excel::XWorksheet > SAL_CALL getActiveSheet() throw (css::uno::RuntimeException);
virtual css::uno::Any SAL_CALL WorkSheets(const css::uno::Any& aIndex ) throw (css::uno::RuntimeException);
virtual css::uno::Any SAL_CALL WorkBooks(const css::uno::Any& aIndex ) throw (css::uno::RuntimeException);
virtual css::uno::Any SAL_CALL Sheets( const css::uno::Any& aIndex ) throw (css::uno::RuntimeException);
virtual css::uno::Sequence< css::uno::Any > SAL_CALL getGlobals( ) throw (css::uno::RuntimeException);
virtual css::uno::Any SAL_CALL Range( const css::uno::Any& Cell1, const css::uno::Any& Cell2 ) throw (css::uno::RuntimeException);
virtual css::uno::Any SAL_CALL Names( ) throw ( css::uno::RuntimeException );
};
#endif //