IndexedPropertyValuesContainer.cxx (dde7d3fa) IndexedPropertyValuesContainer.cxx (e2530cf9)
1/**************************************************************
1/**************************************************************
2 *
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License. You may obtain a copy of the License at
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License. You may obtain a copy of the License at
10 *
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied. See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied. See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
19 *
20 *************************************************************/
21
22
23
24// MARKER(update_precomp.py): autogen include statement, do not remove
25#include "precompiled_comphelper.hxx"
26
27#include "comphelper_module.hxx"

--- 23 unchanged lines hidden (view full) ---

51 // XIndexContainer
52 virtual void SAL_CALL insertByIndex( sal_Int32 nIndex, const ::com::sun::star::uno::Any& aElement )
53 throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::IndexOutOfBoundsException,
54 ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
55 virtual void SAL_CALL removeByIndex( sal_Int32 nIndex )
56 throw(::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::WrappedTargetException,
57 ::com::sun::star::uno::RuntimeException);
58
20 *************************************************************/
21
22
23
24// MARKER(update_precomp.py): autogen include statement, do not remove
25#include "precompiled_comphelper.hxx"
26
27#include "comphelper_module.hxx"

--- 23 unchanged lines hidden (view full) ---

51 // XIndexContainer
52 virtual void SAL_CALL insertByIndex( sal_Int32 nIndex, const ::com::sun::star::uno::Any& aElement )
53 throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::IndexOutOfBoundsException,
54 ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
55 virtual void SAL_CALL removeByIndex( sal_Int32 nIndex )
56 throw(::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::WrappedTargetException,
57 ::com::sun::star::uno::RuntimeException);
58
59 // XIndexReplace
59 // XIndexReplace
60 virtual void SAL_CALL replaceByIndex( sal_Int32 nIndex, const ::com::sun::star::uno::Any& aElement )
61 throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::IndexOutOfBoundsException,
62 ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
63
60 virtual void SAL_CALL replaceByIndex( sal_Int32 nIndex, const ::com::sun::star::uno::Any& aElement )
61 throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::IndexOutOfBoundsException,
62 ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
63
64 // XIndexAccess
64 // XIndexAccess
65 virtual sal_Int32 SAL_CALL getCount( )
66 throw(::com::sun::star::uno::RuntimeException);
67 virtual ::com::sun::star::uno::Any SAL_CALL getByIndex( sal_Int32 nIndex )
68 throw(::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::WrappedTargetException,
69 ::com::sun::star::uno::RuntimeException);
70
71 // XElementAccess
72 virtual ::com::sun::star::uno::Type SAL_CALL getElementType( )
73 throw(::com::sun::star::uno::RuntimeException);
74 virtual sal_Bool SAL_CALL hasElements( )
75 throw(::com::sun::star::uno::RuntimeException);
76
77 //XServiceInfo
78 virtual ::rtl::OUString SAL_CALL getImplementationName( ) throw(::com::sun::star::uno::RuntimeException);
79 virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw(::com::sun::star::uno::RuntimeException);
80 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( ) throw(::com::sun::star::uno::RuntimeException);
81
65 virtual sal_Int32 SAL_CALL getCount( )
66 throw(::com::sun::star::uno::RuntimeException);
67 virtual ::com::sun::star::uno::Any SAL_CALL getByIndex( sal_Int32 nIndex )
68 throw(::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::WrappedTargetException,
69 ::com::sun::star::uno::RuntimeException);
70
71 // XElementAccess
72 virtual ::com::sun::star::uno::Type SAL_CALL getElementType( )
73 throw(::com::sun::star::uno::RuntimeException);
74 virtual sal_Bool SAL_CALL hasElements( )
75 throw(::com::sun::star::uno::RuntimeException);
76
77 //XServiceInfo
78 virtual ::rtl::OUString SAL_CALL getImplementationName( ) throw(::com::sun::star::uno::RuntimeException);
79 virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw(::com::sun::star::uno::RuntimeException);
80 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( ) throw(::com::sun::star::uno::RuntimeException);
81
82 // XServiceInfo - static versions (used for component registration)
83 static ::rtl::OUString SAL_CALL getImplementationName_static();
84 static uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames_static();
85 static uno::Reference< uno::XInterface > SAL_CALL Create( const uno::Reference< uno::XComponentContext >& );
82 // XServiceInfo - static versions (used for component registration)
83 static ::rtl::OUString SAL_CALL getImplementationName_static();
84 static uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames_static();
85 static uno::Reference< uno::XInterface > SAL_CALL Create( const uno::Reference< uno::XComponentContext >& );
86
87private:
88 IndexedPropertyValues maProperties;
89};
90
91IndexedPropertyValuesContainer::IndexedPropertyValuesContainer() throw()
92{
93}

--- 156 unchanged lines hidden (view full) ---

250{
251 const rtl::OUString aServiceName( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.document.IndexedPropertyValues" ) );
252 const uno::Sequence< rtl::OUString > aSeq( &aServiceName, 1 );
253 return aSeq;
254}
255
256
257uno::Reference< uno::XInterface > SAL_CALL IndexedPropertyValuesContainer::Create(
86
87private:
88 IndexedPropertyValues maProperties;
89};
90
91IndexedPropertyValuesContainer::IndexedPropertyValuesContainer() throw()
92{
93}

--- 156 unchanged lines hidden (view full) ---

250{
251 const rtl::OUString aServiceName( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.document.IndexedPropertyValues" ) );
252 const uno::Sequence< rtl::OUString > aSeq( &aServiceName, 1 );
253 return aSeq;
254}
255
256
257uno::Reference< uno::XInterface > SAL_CALL IndexedPropertyValuesContainer::Create(
258 const uno::Reference< uno::XComponentContext >&)
258 const uno::Reference< uno::XComponentContext >&)
259{
260 return (cppu::OWeakObject*)new IndexedPropertyValuesContainer();
261}
262
263void createRegistryInfo_IndexedPropertyValuesContainer()
264{
259{
260 return (cppu::OWeakObject*)new IndexedPropertyValuesContainer();
261}
262
263void createRegistryInfo_IndexedPropertyValuesContainer()
264{
265 static ::comphelper::module::OAutoRegistration< IndexedPropertyValuesContainer > aAutoRegistration;
265 static ::comphelper::module::OAutoRegistration< IndexedPropertyValuesContainer > aAutoRegistration;
266}
266}