2010-10-27 06:43:08 -05:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2001-04-06 07:59:16 -05:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-11 04:38:57 -05:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2001-04-06 07:59:16 -05:00
|
|
|
*
|
2010-02-12 08:01:35 -06:00
|
|
|
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
2001-04-06 07:59:16 -05:00
|
|
|
*
|
2008-04-11 04:38:57 -05:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2001-04-06 07:59:16 -05:00
|
|
|
*
|
2008-04-11 04:38:57 -05:00
|
|
|
* This file is part of OpenOffice.org.
|
2001-04-06 07:59:16 -05:00
|
|
|
*
|
2008-04-11 04:38:57 -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.
|
2001-04-06 07:59:16 -05:00
|
|
|
*
|
2008-04-11 04:38:57 -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).
|
2001-04-06 07:59:16 -05:00
|
|
|
*
|
2008-04-11 04:38:57 -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.
|
2001-04-06 07:59:16 -05:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
#ifndef ANALYSISDEFS_HXX
|
|
|
|
#define ANALYSISDEFS_HXX
|
|
|
|
|
|
|
|
#define CSS ::com::sun::star
|
|
|
|
#define XPROPSET CSS::beans::XPropertySet
|
|
|
|
#define REF(c) CSS::uno::Reference< c >
|
|
|
|
#define constREFXPS const REF(XPROPSET)
|
|
|
|
#define SEQ(c) CSS::uno::Sequence< c >
|
|
|
|
#define SEQSEQ(c) CSS::uno::Sequence< CSS::uno::Sequence< c > >
|
2001-06-18 07:00:32 -05:00
|
|
|
#define SEQofLocName SEQ( CSS::sheet::LocalizedName )
|
2001-05-07 00:56:53 -05:00
|
|
|
#define ANY CSS::uno::Any
|
|
|
|
#define SEQ_ANY SEQ(ANY)
|
2001-04-06 07:59:16 -05:00
|
|
|
#define STRING ::rtl::OUString
|
|
|
|
#define STRFROMASCII(s) STRING::createFromAscii( s )
|
2001-05-30 05:27:47 -05:00
|
|
|
#define STRFROMANSI(s) STRING( s, strlen( s ), RTL_TEXTENCODING_MS_1252 )
|
2001-04-06 07:59:16 -05:00
|
|
|
#define THROWDEF_RTE throw(CSS::uno::RuntimeException)
|
2001-06-18 07:00:32 -05:00
|
|
|
#define THROW_RTE throw CSS::uno::RuntimeException()
|
2001-04-06 07:59:16 -05:00
|
|
|
#define THROWDEF_RTE_IAE throw(CSS::uno::RuntimeException,CSS::lang::IllegalArgumentException)
|
|
|
|
#define THROW_IAE throw CSS::lang::IllegalArgumentException()
|
2010-06-07 09:27:28 -05:00
|
|
|
#define THROWDEF_RTE_IAE_NCE throw(CSS::uno::RuntimeException,CSS::lang::IllegalArgumentException,CSS::sheet::NoConvergenceException)
|
|
|
|
#define THROW_NCE throw CSS::sheet::NoConvergenceException()
|
2001-04-06 07:59:16 -05:00
|
|
|
|
2001-09-26 03:51:58 -05:00
|
|
|
#define CHK_Freq ( nFreq != 1 && nFreq != 2 && nFreq != 4 )
|
2003-03-26 10:46:50 -06:00
|
|
|
#define CHK_FINITE(d) if( !::rtl::math::isFinite( d ) ) THROW_IAE
|
|
|
|
#define RETURN_FINITE(d) if( ::rtl::math::isFinite( d ) ) return d; else THROW_IAE
|
2001-05-07 00:56:53 -05:00
|
|
|
|
2001-04-06 07:59:16 -05:00
|
|
|
#endif
|
|
|
|
|
2010-10-27 06:43:08 -05:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|