1 /*************************************************************************
3 * OpenOffice.org - a multi-platform office productivity suite
9 * last change: $Author$ $Date$
11 * The Contents of this file are made available subject to
12 * the terms of GNU Lesser General Public License Version 2.1.
15 * GNU Lesser General Public License Version 2.1
16 * =============================================
17 * Copyright 2005 by Sun Microsystems, Inc.
18 * 901 San Antonio Road, Palo Alto, CA 94303, USA
20 * This library is free software; you can redistribute it and/or
21 * modify it under the terms of the GNU Lesser General Public
22 * License version 2.1, as published by the Free Software Foundation.
24 * This library is distributed in the hope that it will be useful,
25 * but WITHOUT ANY WARRANTY; without even the implied warranty of
26 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
27 * Lesser General Public License for more details.
29 * You should have received a copy of the GNU Lesser General Public
30 * License along with this library; if not, write to the Free Software
31 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
34 ************************************************************************/
35 #include "vbapages.hxx"
37 using namespace ::ooo::vba
;
38 using namespace ::com::sun::star
;
40 ScVbaPages::ScVbaPages( const uno::Reference
< XHelperInterface
>& xParent
, const uno::Reference
< uno::XComponentContext
>& xContext
, const uno::Reference
< container::XIndexAccess
>& xPages
) throw( lang::IllegalArgumentException
) : ScVbaPages_BASE( xParent
, xContext
, xPages
)
45 ScVbaPages::getElementType() throw (uno::RuntimeException
)
47 // return msforms::XPage::static_type(0);
48 return uno::XInterface::static_type(0);
52 ScVbaPages::createCollectionObject( const css::uno::Any
& aSource
)
58 ScVbaPages::getServiceImplName()
60 static rtl::OUString
sImplName( RTL_CONSTASCII_USTRINGPARAM("ScVbaPages") );
64 uno::Reference
< container::XEnumeration
> SAL_CALL
65 ScVbaPages::createEnumeration() throw (uno::RuntimeException
)
67 return uno::Reference
< container::XEnumeration
>();
70 uno::Sequence
< rtl::OUString
>
71 ScVbaPages::getServiceNames()
73 static uno::Sequence
< rtl::OUString
> aServiceNames
;
74 if ( aServiceNames
.getLength() == 0 )
76 aServiceNames
.realloc( 1 );
77 aServiceNames
[ 0 ] = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("ooo.vba.msform.Pages" ) );