1*cdf0e10cSrcweir /************************************************************************* 2*cdf0e10cSrcweir * 3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir * 5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir * 7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir * 9*cdf0e10cSrcweir * This file is part of OpenOffice.org. 10*cdf0e10cSrcweir * 11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir * only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir * 15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir * 21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir * version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir * for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir * 26*cdf0e10cSrcweir ************************************************************************/ 27*cdf0e10cSrcweir #ifndef _UNOIDX_HXX 28*cdf0e10cSrcweir #define _UNOIDX_HXX 29*cdf0e10cSrcweir 30*cdf0e10cSrcweir #include <com/sun/star/lang/XUnoTunnel.hpp> 31*cdf0e10cSrcweir #include <com/sun/star/beans/XPropertySet.hpp> 32*cdf0e10cSrcweir #include <com/sun/star/container/XNamed.hpp> 33*cdf0e10cSrcweir #include <com/sun/star/text/XDocumentIndexMark.hpp> 34*cdf0e10cSrcweir #include <com/sun/star/text/XDocumentIndex.hpp> 35*cdf0e10cSrcweir 36*cdf0e10cSrcweir #include <cppuhelper/implbase4.hxx> 37*cdf0e10cSrcweir #include <cppuhelper/implbase5.hxx> 38*cdf0e10cSrcweir 39*cdf0e10cSrcweir #include <sfx2/Metadatable.hxx> 40*cdf0e10cSrcweir 41*cdf0e10cSrcweir #include <unocoll.hxx> 42*cdf0e10cSrcweir #include <toxe.hxx> 43*cdf0e10cSrcweir 44*cdf0e10cSrcweir 45*cdf0e10cSrcweir class SwTOXBaseSection; 46*cdf0e10cSrcweir class SwTOXMark; 47*cdf0e10cSrcweir class SwTOXType; 48*cdf0e10cSrcweir 49*cdf0e10cSrcweir /* -----------------07.12.98 10:08------------------- 50*cdf0e10cSrcweir * 51*cdf0e10cSrcweir * --------------------------------------------------*/ 52*cdf0e10cSrcweir 53*cdf0e10cSrcweir typedef ::cppu::ImplInheritanceHelper5 54*cdf0e10cSrcweir < ::sfx2::MetadatableMixin 55*cdf0e10cSrcweir , ::com::sun::star::lang::XUnoTunnel 56*cdf0e10cSrcweir , ::com::sun::star::lang::XServiceInfo 57*cdf0e10cSrcweir , ::com::sun::star::beans::XPropertySet 58*cdf0e10cSrcweir , ::com::sun::star::container::XNamed 59*cdf0e10cSrcweir , ::com::sun::star::text::XDocumentIndex 60*cdf0e10cSrcweir > SwXDocumentIndex_Base; 61*cdf0e10cSrcweir 62*cdf0e10cSrcweir class SwXDocumentIndex 63*cdf0e10cSrcweir : public SwXDocumentIndex_Base 64*cdf0e10cSrcweir { 65*cdf0e10cSrcweir 66*cdf0e10cSrcweir private: 67*cdf0e10cSrcweir 68*cdf0e10cSrcweir class StyleAccess_Impl; 69*cdf0e10cSrcweir class TokenAccess_Impl; 70*cdf0e10cSrcweir 71*cdf0e10cSrcweir class Impl; 72*cdf0e10cSrcweir ::sw::UnoImplPtr<Impl> m_pImpl; 73*cdf0e10cSrcweir 74*cdf0e10cSrcweir virtual ~SwXDocumentIndex(); 75*cdf0e10cSrcweir 76*cdf0e10cSrcweir SwXDocumentIndex(SwTOXBaseSection const&, SwDoc &); 77*cdf0e10cSrcweir 78*cdf0e10cSrcweir public: 79*cdf0e10cSrcweir 80*cdf0e10cSrcweir /// descriptor 81*cdf0e10cSrcweir SwXDocumentIndex(const TOXTypes eToxType, SwDoc& rDoc); 82*cdf0e10cSrcweir 83*cdf0e10cSrcweir static ::com::sun::star::uno::Reference< 84*cdf0e10cSrcweir ::com::sun::star::text::XDocumentIndex> 85*cdf0e10cSrcweir CreateXDocumentIndex(SwDoc & rDoc, SwTOXBaseSection const& rSection); 86*cdf0e10cSrcweir 87*cdf0e10cSrcweir // MetadatableMixin 88*cdf0e10cSrcweir virtual ::sfx2::Metadatable* GetCoreObject(); 89*cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > 90*cdf0e10cSrcweir GetModel(); 91*cdf0e10cSrcweir 92*cdf0e10cSrcweir static const ::com::sun::star::uno::Sequence< sal_Int8 > & getUnoTunnelId(); 93*cdf0e10cSrcweir 94*cdf0e10cSrcweir // XUnoTunnel 95*cdf0e10cSrcweir virtual sal_Int64 SAL_CALL getSomething( 96*cdf0e10cSrcweir const ::com::sun::star::uno::Sequence< sal_Int8 >& rIdentifier) 97*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 98*cdf0e10cSrcweir 99*cdf0e10cSrcweir // XServiceInfo 100*cdf0e10cSrcweir virtual ::rtl::OUString SAL_CALL getImplementationName() 101*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 102*cdf0e10cSrcweir virtual sal_Bool SAL_CALL supportsService( 103*cdf0e10cSrcweir const ::rtl::OUString& rServiceName) 104*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 105*cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL 106*cdf0e10cSrcweir getSupportedServiceNames() 107*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 108*cdf0e10cSrcweir 109*cdf0e10cSrcweir // XComponent 110*cdf0e10cSrcweir virtual void SAL_CALL dispose() 111*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 112*cdf0e10cSrcweir virtual void SAL_CALL addEventListener( 113*cdf0e10cSrcweir const ::com::sun::star::uno::Reference< 114*cdf0e10cSrcweir ::com::sun::star::lang::XEventListener > & xListener) 115*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 116*cdf0e10cSrcweir virtual void SAL_CALL removeEventListener( 117*cdf0e10cSrcweir const ::com::sun::star::uno::Reference< 118*cdf0e10cSrcweir ::com::sun::star::lang::XEventListener > & xListener) 119*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 120*cdf0e10cSrcweir 121*cdf0e10cSrcweir // XPropertySet 122*cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< 123*cdf0e10cSrcweir ::com::sun::star::beans::XPropertySetInfo > SAL_CALL 124*cdf0e10cSrcweir getPropertySetInfo() 125*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 126*cdf0e10cSrcweir virtual void SAL_CALL setPropertyValue( 127*cdf0e10cSrcweir const ::rtl::OUString& rPropertyName, 128*cdf0e10cSrcweir const ::com::sun::star::uno::Any& rValue) 129*cdf0e10cSrcweir throw (::com::sun::star::beans::UnknownPropertyException, 130*cdf0e10cSrcweir ::com::sun::star::beans::PropertyVetoException, 131*cdf0e10cSrcweir ::com::sun::star::lang::IllegalArgumentException, 132*cdf0e10cSrcweir ::com::sun::star::lang::WrappedTargetException, 133*cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 134*cdf0e10cSrcweir virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( 135*cdf0e10cSrcweir const ::rtl::OUString& rPropertyName) 136*cdf0e10cSrcweir throw (::com::sun::star::beans::UnknownPropertyException, 137*cdf0e10cSrcweir ::com::sun::star::lang::WrappedTargetException, 138*cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 139*cdf0e10cSrcweir virtual void SAL_CALL addPropertyChangeListener( 140*cdf0e10cSrcweir const ::rtl::OUString& rPropertyName, 141*cdf0e10cSrcweir const ::com::sun::star::uno::Reference< 142*cdf0e10cSrcweir ::com::sun::star::beans::XPropertyChangeListener >& xListener) 143*cdf0e10cSrcweir throw (::com::sun::star::beans::UnknownPropertyException, 144*cdf0e10cSrcweir ::com::sun::star::lang::WrappedTargetException, 145*cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 146*cdf0e10cSrcweir virtual void SAL_CALL removePropertyChangeListener( 147*cdf0e10cSrcweir const ::rtl::OUString& rPropertyName, 148*cdf0e10cSrcweir const ::com::sun::star::uno::Reference< 149*cdf0e10cSrcweir ::com::sun::star::beans::XPropertyChangeListener >& xListener) 150*cdf0e10cSrcweir throw (::com::sun::star::beans::UnknownPropertyException, 151*cdf0e10cSrcweir ::com::sun::star::lang::WrappedTargetException, 152*cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 153*cdf0e10cSrcweir virtual void SAL_CALL addVetoableChangeListener( 154*cdf0e10cSrcweir const ::rtl::OUString& rPropertyName, 155*cdf0e10cSrcweir const ::com::sun::star::uno::Reference< 156*cdf0e10cSrcweir ::com::sun::star::beans::XVetoableChangeListener >& xListener) 157*cdf0e10cSrcweir throw (::com::sun::star::beans::UnknownPropertyException, 158*cdf0e10cSrcweir ::com::sun::star::lang::WrappedTargetException, 159*cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 160*cdf0e10cSrcweir virtual void SAL_CALL removeVetoableChangeListener( 161*cdf0e10cSrcweir const ::rtl::OUString& rPropertyName, 162*cdf0e10cSrcweir const ::com::sun::star::uno::Reference< 163*cdf0e10cSrcweir ::com::sun::star::beans::XVetoableChangeListener >& xListener) 164*cdf0e10cSrcweir throw (::com::sun::star::beans::UnknownPropertyException, 165*cdf0e10cSrcweir ::com::sun::star::lang::WrappedTargetException, 166*cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 167*cdf0e10cSrcweir 168*cdf0e10cSrcweir // XNamed 169*cdf0e10cSrcweir virtual ::rtl::OUString SAL_CALL getName() 170*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 171*cdf0e10cSrcweir virtual void SAL_CALL setName(const ::rtl::OUString& rName) 172*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 173*cdf0e10cSrcweir 174*cdf0e10cSrcweir // XTextContent 175*cdf0e10cSrcweir virtual void SAL_CALL attach( 176*cdf0e10cSrcweir const ::com::sun::star::uno::Reference< 177*cdf0e10cSrcweir ::com::sun::star::text::XTextRange > & xTextRange) 178*cdf0e10cSrcweir throw (::com::sun::star::lang::IllegalArgumentException, 179*cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 180*cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< 181*cdf0e10cSrcweir ::com::sun::star::text::XTextRange > SAL_CALL getAnchor() 182*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 183*cdf0e10cSrcweir 184*cdf0e10cSrcweir 185*cdf0e10cSrcweir // XDocumentIndex 186*cdf0e10cSrcweir virtual ::rtl::OUString SAL_CALL getServiceName() 187*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 188*cdf0e10cSrcweir virtual void SAL_CALL update() 189*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 190*cdf0e10cSrcweir 191*cdf0e10cSrcweir }; 192*cdf0e10cSrcweir 193*cdf0e10cSrcweir /* -----------------07.12.98 10:08------------------- 194*cdf0e10cSrcweir * 195*cdf0e10cSrcweir * --------------------------------------------------*/ 196*cdf0e10cSrcweir typedef ::cppu::WeakImplHelper4 197*cdf0e10cSrcweir < ::com::sun::star::lang::XUnoTunnel 198*cdf0e10cSrcweir , ::com::sun::star::lang::XServiceInfo 199*cdf0e10cSrcweir , ::com::sun::star::beans::XPropertySet 200*cdf0e10cSrcweir , ::com::sun::star::text::XDocumentIndexMark 201*cdf0e10cSrcweir > SwXDocumentIndexMark_Base; 202*cdf0e10cSrcweir 203*cdf0e10cSrcweir class SwXDocumentIndexMark 204*cdf0e10cSrcweir : public SwXDocumentIndexMark_Base 205*cdf0e10cSrcweir { 206*cdf0e10cSrcweir 207*cdf0e10cSrcweir private: 208*cdf0e10cSrcweir 209*cdf0e10cSrcweir class Impl; 210*cdf0e10cSrcweir ::sw::UnoImplPtr<Impl> m_pImpl; 211*cdf0e10cSrcweir 212*cdf0e10cSrcweir virtual ~SwXDocumentIndexMark(); 213*cdf0e10cSrcweir 214*cdf0e10cSrcweir SwXDocumentIndexMark(SwDoc & rDoc, 215*cdf0e10cSrcweir SwTOXType & rType, SwTOXMark & rMark); 216*cdf0e10cSrcweir 217*cdf0e10cSrcweir public: 218*cdf0e10cSrcweir 219*cdf0e10cSrcweir /// descriptor 220*cdf0e10cSrcweir SwXDocumentIndexMark(const TOXTypes eToxType); 221*cdf0e10cSrcweir 222*cdf0e10cSrcweir static ::com::sun::star::uno::Reference< 223*cdf0e10cSrcweir ::com::sun::star::text::XDocumentIndexMark> 224*cdf0e10cSrcweir CreateXDocumentIndexMark(SwDoc & rDoc, 225*cdf0e10cSrcweir SwTOXType & rType, SwTOXMark & rMark); 226*cdf0e10cSrcweir 227*cdf0e10cSrcweir static const ::com::sun::star::uno::Sequence< sal_Int8 > & getUnoTunnelId(); 228*cdf0e10cSrcweir 229*cdf0e10cSrcweir // XUnoTunnel 230*cdf0e10cSrcweir virtual sal_Int64 SAL_CALL getSomething( 231*cdf0e10cSrcweir const ::com::sun::star::uno::Sequence< sal_Int8 >& rIdentifier) 232*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 233*cdf0e10cSrcweir 234*cdf0e10cSrcweir // XServiceInfo 235*cdf0e10cSrcweir virtual ::rtl::OUString SAL_CALL getImplementationName() 236*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 237*cdf0e10cSrcweir virtual sal_Bool SAL_CALL supportsService( 238*cdf0e10cSrcweir const ::rtl::OUString& rServiceName) 239*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 240*cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL 241*cdf0e10cSrcweir getSupportedServiceNames() 242*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 243*cdf0e10cSrcweir 244*cdf0e10cSrcweir // XComponent 245*cdf0e10cSrcweir virtual void SAL_CALL dispose() 246*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 247*cdf0e10cSrcweir virtual void SAL_CALL addEventListener( 248*cdf0e10cSrcweir const ::com::sun::star::uno::Reference< 249*cdf0e10cSrcweir ::com::sun::star::lang::XEventListener > & xListener) 250*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 251*cdf0e10cSrcweir virtual void SAL_CALL removeEventListener( 252*cdf0e10cSrcweir const ::com::sun::star::uno::Reference< 253*cdf0e10cSrcweir ::com::sun::star::lang::XEventListener > & xListener) 254*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 255*cdf0e10cSrcweir 256*cdf0e10cSrcweir // XPropertySet 257*cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< 258*cdf0e10cSrcweir ::com::sun::star::beans::XPropertySetInfo > SAL_CALL 259*cdf0e10cSrcweir getPropertySetInfo() 260*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 261*cdf0e10cSrcweir virtual void SAL_CALL setPropertyValue( 262*cdf0e10cSrcweir const ::rtl::OUString& rPropertyName, 263*cdf0e10cSrcweir const ::com::sun::star::uno::Any& rValue) 264*cdf0e10cSrcweir throw (::com::sun::star::beans::UnknownPropertyException, 265*cdf0e10cSrcweir ::com::sun::star::beans::PropertyVetoException, 266*cdf0e10cSrcweir ::com::sun::star::lang::IllegalArgumentException, 267*cdf0e10cSrcweir ::com::sun::star::lang::WrappedTargetException, 268*cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 269*cdf0e10cSrcweir virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( 270*cdf0e10cSrcweir const ::rtl::OUString& rPropertyName) 271*cdf0e10cSrcweir throw (::com::sun::star::beans::UnknownPropertyException, 272*cdf0e10cSrcweir ::com::sun::star::lang::WrappedTargetException, 273*cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 274*cdf0e10cSrcweir virtual void SAL_CALL addPropertyChangeListener( 275*cdf0e10cSrcweir const ::rtl::OUString& rPropertyName, 276*cdf0e10cSrcweir const ::com::sun::star::uno::Reference< 277*cdf0e10cSrcweir ::com::sun::star::beans::XPropertyChangeListener >& xListener) 278*cdf0e10cSrcweir throw (::com::sun::star::beans::UnknownPropertyException, 279*cdf0e10cSrcweir ::com::sun::star::lang::WrappedTargetException, 280*cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 281*cdf0e10cSrcweir virtual void SAL_CALL removePropertyChangeListener( 282*cdf0e10cSrcweir const ::rtl::OUString& rPropertyName, 283*cdf0e10cSrcweir const ::com::sun::star::uno::Reference< 284*cdf0e10cSrcweir ::com::sun::star::beans::XPropertyChangeListener >& xListener) 285*cdf0e10cSrcweir throw (::com::sun::star::beans::UnknownPropertyException, 286*cdf0e10cSrcweir ::com::sun::star::lang::WrappedTargetException, 287*cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 288*cdf0e10cSrcweir virtual void SAL_CALL addVetoableChangeListener( 289*cdf0e10cSrcweir const ::rtl::OUString& rPropertyName, 290*cdf0e10cSrcweir const ::com::sun::star::uno::Reference< 291*cdf0e10cSrcweir ::com::sun::star::beans::XVetoableChangeListener >& xListener) 292*cdf0e10cSrcweir throw (::com::sun::star::beans::UnknownPropertyException, 293*cdf0e10cSrcweir ::com::sun::star::lang::WrappedTargetException, 294*cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 295*cdf0e10cSrcweir virtual void SAL_CALL removeVetoableChangeListener( 296*cdf0e10cSrcweir const ::rtl::OUString& rPropertyName, 297*cdf0e10cSrcweir const ::com::sun::star::uno::Reference< 298*cdf0e10cSrcweir ::com::sun::star::beans::XVetoableChangeListener >& xListener) 299*cdf0e10cSrcweir throw (::com::sun::star::beans::UnknownPropertyException, 300*cdf0e10cSrcweir ::com::sun::star::lang::WrappedTargetException, 301*cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 302*cdf0e10cSrcweir 303*cdf0e10cSrcweir // XTextContent 304*cdf0e10cSrcweir virtual void SAL_CALL attach( 305*cdf0e10cSrcweir const ::com::sun::star::uno::Reference< 306*cdf0e10cSrcweir ::com::sun::star::text::XTextRange > & xTextRange) 307*cdf0e10cSrcweir throw (::com::sun::star::lang::IllegalArgumentException, 308*cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 309*cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< 310*cdf0e10cSrcweir ::com::sun::star::text::XTextRange > SAL_CALL getAnchor() 311*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 312*cdf0e10cSrcweir 313*cdf0e10cSrcweir // XDocumentIndexMark 314*cdf0e10cSrcweir virtual rtl::OUString SAL_CALL getMarkEntry() 315*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 316*cdf0e10cSrcweir virtual void SAL_CALL setMarkEntry(const rtl::OUString& rIndexEntry) 317*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 318*cdf0e10cSrcweir 319*cdf0e10cSrcweir }; 320*cdf0e10cSrcweir 321*cdf0e10cSrcweir /* -----------------05.05.99 12:27------------------- 322*cdf0e10cSrcweir * 323*cdf0e10cSrcweir * --------------------------------------------------*/ 324*cdf0e10cSrcweir class SwXDocumentIndexes 325*cdf0e10cSrcweir : public SwCollectionBaseClass 326*cdf0e10cSrcweir , public SwUnoCollection 327*cdf0e10cSrcweir { 328*cdf0e10cSrcweir 329*cdf0e10cSrcweir private: 330*cdf0e10cSrcweir 331*cdf0e10cSrcweir virtual ~SwXDocumentIndexes(); 332*cdf0e10cSrcweir 333*cdf0e10cSrcweir public: 334*cdf0e10cSrcweir 335*cdf0e10cSrcweir SwXDocumentIndexes(SwDoc *const pDoc); 336*cdf0e10cSrcweir 337*cdf0e10cSrcweir // XServiceInfo 338*cdf0e10cSrcweir virtual ::rtl::OUString SAL_CALL getImplementationName() 339*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 340*cdf0e10cSrcweir virtual sal_Bool SAL_CALL supportsService( 341*cdf0e10cSrcweir const ::rtl::OUString& rServiceName) 342*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 343*cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL 344*cdf0e10cSrcweir getSupportedServiceNames() 345*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 346*cdf0e10cSrcweir 347*cdf0e10cSrcweir // XElementAccess 348*cdf0e10cSrcweir virtual ::com::sun::star::uno::Type SAL_CALL getElementType() 349*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 350*cdf0e10cSrcweir virtual sal_Bool SAL_CALL hasElements() 351*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 352*cdf0e10cSrcweir 353*cdf0e10cSrcweir // XIndexAccess 354*cdf0e10cSrcweir virtual sal_Int32 SAL_CALL getCount() 355*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 356*cdf0e10cSrcweir virtual ::com::sun::star::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) 357*cdf0e10cSrcweir throw (::com::sun::star::lang::IndexOutOfBoundsException, 358*cdf0e10cSrcweir ::com::sun::star::lang::WrappedTargetException, 359*cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 360*cdf0e10cSrcweir 361*cdf0e10cSrcweir // XNameAccess 362*cdf0e10cSrcweir virtual ::com::sun::star::uno::Any SAL_CALL getByName( 363*cdf0e10cSrcweir const ::rtl::OUString& rName) 364*cdf0e10cSrcweir throw (::com::sun::star::container::NoSuchElementException, 365*cdf0e10cSrcweir ::com::sun::star::lang::WrappedTargetException, 366*cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 367*cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL 368*cdf0e10cSrcweir getElementNames() throw (::com::sun::star::uno::RuntimeException); 369*cdf0e10cSrcweir virtual sal_Bool SAL_CALL hasByName(const ::rtl::OUString& rName) 370*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 371*cdf0e10cSrcweir 372*cdf0e10cSrcweir }; 373*cdf0e10cSrcweir 374*cdf0e10cSrcweir #endif 375*cdf0e10cSrcweir 376