1*1d2dbeb0SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*1d2dbeb0SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*1d2dbeb0SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*1d2dbeb0SAndrew Rist * distributed with this work for additional information 6*1d2dbeb0SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*1d2dbeb0SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*1d2dbeb0SAndrew Rist * "License"); you may not use this file except in compliance 9*1d2dbeb0SAndrew Rist * with the License. You may obtain a copy of the License at 10*1d2dbeb0SAndrew Rist * 11*1d2dbeb0SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*1d2dbeb0SAndrew Rist * 13*1d2dbeb0SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*1d2dbeb0SAndrew Rist * software distributed under the License is distributed on an 15*1d2dbeb0SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*1d2dbeb0SAndrew Rist * KIND, either express or implied. See the License for the 17*1d2dbeb0SAndrew Rist * specific language governing permissions and limitations 18*1d2dbeb0SAndrew Rist * under the License. 19*1d2dbeb0SAndrew Rist * 20*1d2dbeb0SAndrew Rist *************************************************************/ 21*1d2dbeb0SAndrew Rist 22*1d2dbeb0SAndrew Rist 23cdf0e10cSrcweir #ifndef _UNOSETT_HXX 24cdf0e10cSrcweir #define _UNOSETT_HXX 25cdf0e10cSrcweir 26cdf0e10cSrcweir #include <swtypes.hxx> 27cdf0e10cSrcweir #include <calbck.hxx> 28cdf0e10cSrcweir #include <com/sun/star/text/XTextColumns.hpp> 29cdf0e10cSrcweir #include <com/sun/star/lang/XServiceInfo.hpp> 30cdf0e10cSrcweir #include <com/sun/star/lang/XUnoTunnel.hpp> 31cdf0e10cSrcweir #include <com/sun/star/container/XIndexReplace.hpp> 32cdf0e10cSrcweir #include <com/sun/star/beans/XPropertySet.hpp> 33cdf0e10cSrcweir #include <com/sun/star/beans/PropertyValue.hpp> 34cdf0e10cSrcweir #include <com/sun/star/container/XNamed.hpp> 35cdf0e10cSrcweir #include <com/sun/star/lang/XUnoTunnel.hpp> 36cdf0e10cSrcweir #include <cppuhelper/implbase2.hxx> 37cdf0e10cSrcweir #include <cppuhelper/implbase4.hxx> 38cdf0e10cSrcweir #include <cppuhelper/implbase5.hxx> 39cdf0e10cSrcweir #include <tools/string.hxx> 40cdf0e10cSrcweir #include <svl/itemprop.hxx> 41cdf0e10cSrcweir 42cdf0e10cSrcweir class SwDoc; 43cdf0e10cSrcweir class SwFmtCol; 44cdf0e10cSrcweir class SwDocShell; 45cdf0e10cSrcweir class SwNumRule; 46cdf0e10cSrcweir /****************************************************************************** 47cdf0e10cSrcweir * 48cdf0e10cSrcweir ******************************************************************************/ 49cdf0e10cSrcweir /* -----------------04.05.98 12:28------------------- 50cdf0e10cSrcweir * 51cdf0e10cSrcweir * --------------------------------------------------*/ 52cdf0e10cSrcweir class SwXFootnoteProperties : public cppu::WeakAggImplHelper2 53cdf0e10cSrcweir < 54cdf0e10cSrcweir ::com::sun::star::beans::XPropertySet, 55cdf0e10cSrcweir ::com::sun::star::lang::XServiceInfo 56cdf0e10cSrcweir > 57cdf0e10cSrcweir { 58cdf0e10cSrcweir SwDoc* pDoc; 59cdf0e10cSrcweir const SfxItemPropertySet* m_pPropertySet; 60cdf0e10cSrcweir protected: 61cdf0e10cSrcweir virtual ~SwXFootnoteProperties(); 62cdf0e10cSrcweir public: 63cdf0e10cSrcweir SwXFootnoteProperties(SwDoc* pDoc); 64cdf0e10cSrcweir 65cdf0e10cSrcweir 66cdf0e10cSrcweir //XPropertySet 67cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException); 68cdf0e10cSrcweir virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Any& aValue ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 69cdf0e10cSrcweir virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 70cdf0e10cSrcweir virtual void SAL_CALL addPropertyChangeListener( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& xListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 71cdf0e10cSrcweir virtual void SAL_CALL removePropertyChangeListener( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& aListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 72cdf0e10cSrcweir virtual void SAL_CALL addVetoableChangeListener( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 73cdf0e10cSrcweir virtual void SAL_CALL removeVetoableChangeListener( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 74cdf0e10cSrcweir 75cdf0e10cSrcweir //XServiceInfo 76cdf0e10cSrcweir virtual rtl::OUString SAL_CALL getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException ); 77cdf0e10cSrcweir virtual sal_Bool SAL_CALL supportsService(const rtl::OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException ); 78cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException ); 79cdf0e10cSrcweir Invalidate()80cdf0e10cSrcweir void Invalidate() {pDoc = 0;} 81cdf0e10cSrcweir }; 82cdf0e10cSrcweir 83cdf0e10cSrcweir /* -----------------04.05.98 12:28------------------- 84cdf0e10cSrcweir * 85cdf0e10cSrcweir * --------------------------------------------------*/ 86cdf0e10cSrcweir class SwXEndnoteProperties : public cppu::WeakAggImplHelper2 87cdf0e10cSrcweir < 88cdf0e10cSrcweir ::com::sun::star::beans::XPropertySet, 89cdf0e10cSrcweir ::com::sun::star::lang::XServiceInfo 90cdf0e10cSrcweir > 91cdf0e10cSrcweir { 92cdf0e10cSrcweir SwDoc* pDoc; 93cdf0e10cSrcweir const SfxItemPropertySet* m_pPropertySet; 94cdf0e10cSrcweir protected: 95cdf0e10cSrcweir virtual ~SwXEndnoteProperties(); 96cdf0e10cSrcweir public: 97cdf0e10cSrcweir SwXEndnoteProperties(SwDoc* pDoc); 98cdf0e10cSrcweir 99cdf0e10cSrcweir 100cdf0e10cSrcweir //XPropertySet 101cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException); 102cdf0e10cSrcweir virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Any& aValue ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 103cdf0e10cSrcweir virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 104cdf0e10cSrcweir virtual void SAL_CALL addPropertyChangeListener( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& xListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 105cdf0e10cSrcweir virtual void SAL_CALL removePropertyChangeListener( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& aListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 106cdf0e10cSrcweir virtual void SAL_CALL addVetoableChangeListener( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 107cdf0e10cSrcweir virtual void SAL_CALL removeVetoableChangeListener( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 108cdf0e10cSrcweir 109cdf0e10cSrcweir //XServiceInfo 110cdf0e10cSrcweir virtual rtl::OUString SAL_CALL getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException ); 111cdf0e10cSrcweir virtual sal_Bool SAL_CALL supportsService(const rtl::OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException ); 112cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException ); 113cdf0e10cSrcweir Invalidate()114cdf0e10cSrcweir void Invalidate() {pDoc = 0;} 115cdf0e10cSrcweir }; 116cdf0e10cSrcweir 117cdf0e10cSrcweir /* -----------------04.05.98 12:28------------------- 118cdf0e10cSrcweir * 119cdf0e10cSrcweir * --------------------------------------------------*/ 120cdf0e10cSrcweir class SwXLineNumberingProperties : public cppu::WeakAggImplHelper2 121cdf0e10cSrcweir < 122cdf0e10cSrcweir ::com::sun::star::beans::XPropertySet, 123cdf0e10cSrcweir ::com::sun::star::lang::XServiceInfo 124cdf0e10cSrcweir > 125cdf0e10cSrcweir { 126cdf0e10cSrcweir SwDoc* pDoc; 127cdf0e10cSrcweir const SfxItemPropertySet* m_pPropertySet; 128cdf0e10cSrcweir protected: 129cdf0e10cSrcweir virtual ~SwXLineNumberingProperties(); 130cdf0e10cSrcweir public: 131cdf0e10cSrcweir SwXLineNumberingProperties(SwDoc* pDoc); 132cdf0e10cSrcweir 133cdf0e10cSrcweir 134cdf0e10cSrcweir //XPropertySet 135cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException); 136cdf0e10cSrcweir virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Any& aValue ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 137cdf0e10cSrcweir virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 138cdf0e10cSrcweir virtual void SAL_CALL addPropertyChangeListener( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& xListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 139cdf0e10cSrcweir virtual void SAL_CALL removePropertyChangeListener( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& aListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 140cdf0e10cSrcweir virtual void SAL_CALL addVetoableChangeListener( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 141cdf0e10cSrcweir virtual void SAL_CALL removeVetoableChangeListener( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 142cdf0e10cSrcweir 143cdf0e10cSrcweir //XServiceInfo 144cdf0e10cSrcweir virtual rtl::OUString SAL_CALL getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException ); 145cdf0e10cSrcweir virtual sal_Bool SAL_CALL supportsService(const rtl::OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException ); 146cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException ); 147cdf0e10cSrcweir Invalidate()148cdf0e10cSrcweir void Invalidate() {pDoc = 0;} 149cdf0e10cSrcweir }; 150cdf0e10cSrcweir 151cdf0e10cSrcweir /* -----------------25.05.98 08:21------------------- 152cdf0e10cSrcweir * 153cdf0e10cSrcweir * --------------------------------------------------*/ 154cdf0e10cSrcweir class SwXNumberingRules : public cppu::WeakAggImplHelper5 155cdf0e10cSrcweir < 156cdf0e10cSrcweir ::com::sun::star::container::XIndexReplace, 157cdf0e10cSrcweir ::com::sun::star::lang::XUnoTunnel, 158cdf0e10cSrcweir ::com::sun::star::beans::XPropertySet, 159cdf0e10cSrcweir ::com::sun::star::container::XNamed, 160cdf0e10cSrcweir ::com::sun::star::lang::XServiceInfo 161cdf0e10cSrcweir >, 162cdf0e10cSrcweir public SwClient 163cdf0e10cSrcweir { 164cdf0e10cSrcweir String sNewCharStyleNames[MAXLEVEL]; 165cdf0e10cSrcweir String sNewBulletFontNames[MAXLEVEL]; 166cdf0e10cSrcweir String sCreatedNumRuleName; //connects to a numbering in SwDoc 167cdf0e10cSrcweir SwDoc* pDoc; // wird nur fuers anmelden gebraucht 168cdf0e10cSrcweir SwDocShell* pDocShell; //nur, wenn als ChapterNumbering verwendet 169cdf0e10cSrcweir SwNumRule* pNumRule; 170cdf0e10cSrcweir const SfxItemPropertySet* m_pPropertySet; 171cdf0e10cSrcweir sal_Bool bOwnNumRuleCreated; 172cdf0e10cSrcweir static String sInvalidStyle; 173cdf0e10cSrcweir protected: 174cdf0e10cSrcweir virtual ~SwXNumberingRules(); 175cdf0e10cSrcweir 176cdf0e10cSrcweir //SwClient 177cdf0e10cSrcweir virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew); 178cdf0e10cSrcweir 179cdf0e10cSrcweir public: 180cdf0e10cSrcweir SwXNumberingRules(SwDocShell& rDocSh); // chapter numbering 181cdf0e10cSrcweir SwXNumberingRules(const SwNumRule& rRule); // NumRule for paragraphs, numbering styles 182cdf0e10cSrcweir SwXNumberingRules(SwDoc& rDoc); //create a new instance 183cdf0e10cSrcweir 184cdf0e10cSrcweir 185cdf0e10cSrcweir static const ::com::sun::star::uno::Sequence< sal_Int8 > & getUnoTunnelId(); 186cdf0e10cSrcweir 187cdf0e10cSrcweir virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& aIdentifier ) throw(::com::sun::star::uno::RuntimeException); 188cdf0e10cSrcweir 189cdf0e10cSrcweir 190cdf0e10cSrcweir //XIndexReplace 191cdf0e10cSrcweir virtual void SAL_CALL replaceByIndex( sal_Int32 Index, const ::com::sun::star::uno::Any& Element ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 192cdf0e10cSrcweir 193cdf0e10cSrcweir //XIndexAccess 194cdf0e10cSrcweir virtual sal_Int32 SAL_CALL getCount( ) throw(::com::sun::star::uno::RuntimeException); 195cdf0e10cSrcweir virtual ::com::sun::star::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) throw( ::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException ); 196cdf0e10cSrcweir 197cdf0e10cSrcweir //XElementAccess 198cdf0e10cSrcweir virtual ::com::sun::star::uno::Type SAL_CALL getElementType( ) throw(::com::sun::star::uno::RuntimeException); 199cdf0e10cSrcweir virtual sal_Bool SAL_CALL hasElements( ) throw(::com::sun::star::uno::RuntimeException); 200cdf0e10cSrcweir 201cdf0e10cSrcweir //XPropertySet 202cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException); 203cdf0e10cSrcweir virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Any& aValue ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 204cdf0e10cSrcweir virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 205cdf0e10cSrcweir virtual void SAL_CALL addPropertyChangeListener( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& xListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 206cdf0e10cSrcweir virtual void SAL_CALL removePropertyChangeListener( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& aListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 207cdf0e10cSrcweir virtual void SAL_CALL addVetoableChangeListener( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 208cdf0e10cSrcweir virtual void SAL_CALL removeVetoableChangeListener( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 209cdf0e10cSrcweir 210cdf0e10cSrcweir //XNamed 211cdf0e10cSrcweir virtual rtl::OUString SAL_CALL getName(void) throw( ::com::sun::star::uno::RuntimeException ); 212cdf0e10cSrcweir virtual void SAL_CALL setName(const rtl::OUString& Name_) throw( ::com::sun::star::uno::RuntimeException ); 213cdf0e10cSrcweir 214cdf0e10cSrcweir //XServiceInfo 215cdf0e10cSrcweir virtual rtl::OUString SAL_CALL getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException ); 216cdf0e10cSrcweir virtual sal_Bool SAL_CALL supportsService(const rtl::OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException ); 217cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException ); 218cdf0e10cSrcweir 219cdf0e10cSrcweir ::com::sun::star::uno::Sequence< 220cdf0e10cSrcweir ::com::sun::star::beans::PropertyValue> 221cdf0e10cSrcweir GetNumberingRuleByIndex(const SwNumRule& rNumRule, sal_Int32 nIndex)const; 222cdf0e10cSrcweir void SetNumberingRuleByIndex(SwNumRule& rNumRule, 223cdf0e10cSrcweir const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue>& rProperties, sal_Int32 nIndex) 224cdf0e10cSrcweir throw( ::com::sun::star::uno::RuntimeException, ::com::sun::star::lang::IllegalArgumentException ); 225cdf0e10cSrcweir GetNewCharStyleNames() const226cdf0e10cSrcweir const String* GetNewCharStyleNames() const {return sNewCharStyleNames;} GetBulletFontNames() const227cdf0e10cSrcweir const String* GetBulletFontNames() const {return sNewBulletFontNames;} GetNumRule()228cdf0e10cSrcweir const SwNumRule* GetNumRule() {return pNumRule;} 229cdf0e10cSrcweir 230cdf0e10cSrcweir static const String& GetInvalidStyle(); Invalidate()231cdf0e10cSrcweir void Invalidate() {pDocShell = 0;} GetCreatedNumRuleName() const232cdf0e10cSrcweir const String& GetCreatedNumRuleName() const{return sCreatedNumRuleName; } 233cdf0e10cSrcweir }; 234cdf0e10cSrcweir /*-----------------12.02.98 08:27------------------- 235cdf0e10cSrcweir 236cdf0e10cSrcweir --------------------------------------------------*/ 237cdf0e10cSrcweir class SwXChapterNumbering : public SwXNumberingRules 238cdf0e10cSrcweir { 239cdf0e10cSrcweir protected: 240cdf0e10cSrcweir virtual ~SwXChapterNumbering(); 241cdf0e10cSrcweir public: 242cdf0e10cSrcweir SwXChapterNumbering(SwDocShell& rDocSh); 243cdf0e10cSrcweir 244cdf0e10cSrcweir Invalidate()245cdf0e10cSrcweir void Invalidate() {SwXNumberingRules::Invalidate();} 246cdf0e10cSrcweir 247cdf0e10cSrcweir //XServiceInfo 248cdf0e10cSrcweir virtual rtl::OUString SAL_CALL getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException ); 249cdf0e10cSrcweir virtual sal_Bool SAL_CALL supportsService(const rtl::OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException ); 250cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException ); 251cdf0e10cSrcweir 252cdf0e10cSrcweir }; 253cdf0e10cSrcweir 254cdf0e10cSrcweir /* -----------------27.05.98 15:44------------------- 255cdf0e10cSrcweir * 256cdf0e10cSrcweir * --------------------------------------------------*/ 257cdf0e10cSrcweir class SwXTextColumns : public cppu::WeakAggImplHelper4 258cdf0e10cSrcweir < 259cdf0e10cSrcweir 260cdf0e10cSrcweir ::com::sun::star::lang::XUnoTunnel, 261cdf0e10cSrcweir ::com::sun::star::beans::XPropertySet, 262cdf0e10cSrcweir ::com::sun::star::text::XTextColumns, 263cdf0e10cSrcweir ::com::sun::star::lang::XServiceInfo 264cdf0e10cSrcweir > 265cdf0e10cSrcweir { 266cdf0e10cSrcweir sal_Int32 nReference; 267cdf0e10cSrcweir ::com::sun::star::uno::Sequence< ::com::sun::star::text::TextColumn> aTextColumns; 268cdf0e10cSrcweir sal_Bool bIsAutomaticWidth; 269cdf0e10cSrcweir sal_Int32 nAutoDistance; 270cdf0e10cSrcweir 271cdf0e10cSrcweir const SfxItemPropertySet* m_pPropSet; 272cdf0e10cSrcweir 273cdf0e10cSrcweir //separator line 274cdf0e10cSrcweir sal_Int32 nSepLineWidth; 275cdf0e10cSrcweir sal_Int32 nSepLineColor; 276cdf0e10cSrcweir sal_Int8 nSepLineHeightRelative; 277cdf0e10cSrcweir sal_Int8 nSepLineVertAlign;//style::VerticalAlignment 278cdf0e10cSrcweir sal_Bool bSepLineIsOn; 279cdf0e10cSrcweir protected: 280cdf0e10cSrcweir virtual ~SwXTextColumns(); 281cdf0e10cSrcweir public: 282cdf0e10cSrcweir SwXTextColumns(sal_uInt16 nColCount); 283cdf0e10cSrcweir SwXTextColumns(const SwFmtCol& rFmtCol); 284cdf0e10cSrcweir 285cdf0e10cSrcweir 286cdf0e10cSrcweir 287cdf0e10cSrcweir static const ::com::sun::star::uno::Sequence< sal_Int8 > & getUnoTunnelId(); 288cdf0e10cSrcweir 289cdf0e10cSrcweir //XUnoTunnel 290cdf0e10cSrcweir virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& aIdentifier ) throw(::com::sun::star::uno::RuntimeException); 291cdf0e10cSrcweir 292cdf0e10cSrcweir //XTextColumns 293cdf0e10cSrcweir virtual sal_Int32 SAL_CALL getReferenceValue( ) throw(::com::sun::star::uno::RuntimeException); 294cdf0e10cSrcweir virtual sal_Int16 SAL_CALL getColumnCount( ) throw(::com::sun::star::uno::RuntimeException); 295cdf0e10cSrcweir virtual void SAL_CALL setColumnCount( sal_Int16 nColumns ) throw(::com::sun::star::uno::RuntimeException); 296cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< ::com::sun::star::text::TextColumn > SAL_CALL getColumns( ) throw(::com::sun::star::uno::RuntimeException); 297cdf0e10cSrcweir virtual void SAL_CALL setColumns( const ::com::sun::star::uno::Sequence< ::com::sun::star::text::TextColumn >& Columns ) throw(::com::sun::star::uno::RuntimeException); 298cdf0e10cSrcweir 299cdf0e10cSrcweir //XPropertySet 300cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException); 301cdf0e10cSrcweir virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Any& aValue ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 302cdf0e10cSrcweir virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 303cdf0e10cSrcweir virtual void SAL_CALL addPropertyChangeListener( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& xListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 304cdf0e10cSrcweir virtual void SAL_CALL removePropertyChangeListener( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& aListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 305cdf0e10cSrcweir virtual void SAL_CALL addVetoableChangeListener( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 306cdf0e10cSrcweir virtual void SAL_CALL removeVetoableChangeListener( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); 307cdf0e10cSrcweir 308cdf0e10cSrcweir //XServiceInfo 309cdf0e10cSrcweir virtual rtl::OUString SAL_CALL getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException ); 310cdf0e10cSrcweir virtual sal_Bool SAL_CALL supportsService(const rtl::OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException ); 311cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException ); 312cdf0e10cSrcweir GetSepLineWidth() const313cdf0e10cSrcweir sal_Int32 GetSepLineWidth() const {return nSepLineWidth;} GetSepLineColor() const314cdf0e10cSrcweir sal_Int32 GetSepLineColor() const {return nSepLineColor;} GetSepLineHeightRelative() const315cdf0e10cSrcweir sal_Int8 GetSepLineHeightRelative() const {return nSepLineHeightRelative;} GetSepLineVertAlign() const316cdf0e10cSrcweir sal_Int8 GetSepLineVertAlign() const {return nSepLineVertAlign;} GetSepLineIsOn() const317cdf0e10cSrcweir sal_Bool GetSepLineIsOn() const {return bSepLineIsOn;} 318cdf0e10cSrcweir IsAutomaticWidth() const319cdf0e10cSrcweir sal_Bool IsAutomaticWidth() const {return bIsAutomaticWidth;} 320cdf0e10cSrcweir }; 321cdf0e10cSrcweir #endif 322cdf0e10cSrcweir 323cdf0e10cSrcweir 324