unobookmark.hxx (1d2dbeb0) | unobookmark.hxx (1cd05511) |
---|---|
1/************************************************************** 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 --- 67 unchanged lines hidden (view full) --- 76 77 const ::sw::mark::IMark* GetBookmark() const; 78 79 virtual ~SwXBookmark(); 80 81 /// @param pDoc and pMark != 0, but not & because of ImplInheritanceHelper 82 SwXBookmark(::sw::mark::IMark *const pMark, SwDoc *const pDoc); 83 | 1/************************************************************** 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 --- 67 unchanged lines hidden (view full) --- 76 77 const ::sw::mark::IMark* GetBookmark() const; 78 79 virtual ~SwXBookmark(); 80 81 /// @param pDoc and pMark != 0, but not & because of ImplInheritanceHelper 82 SwXBookmark(::sw::mark::IMark *const pMark, SwDoc *const pDoc); 83 |
84 void registerInMark( ::sw::mark::IMark *const pBkmk ); 85 |
|
84public: 85 86 /// descriptor 87 SwXBookmark(); 88 | 86public: 87 88 /// descriptor 89 SwXBookmark(); 90 |
89 static ::com::sun::star::uno::Reference< 90 ::com::sun::star::text::XTextContent> | 91 static ::com::sun::star::uno::Reference<::com::sun::star::text::XTextContent> |
91 CreateXBookmark(SwDoc & rDoc, ::sw::mark::IMark & rBookmark); 92 93 /// @return IMark for this, but only if it lives in pDoc 94 static ::sw::mark::IMark const* GetBookmarkInDoc(SwDoc const*const pDoc, 95 const ::com::sun::star::uno::Reference< 96 ::com::sun::star::lang::XUnoTunnel> & xUT); 97 98 // MetadatableMixin --- 130 unchanged lines hidden (view full) --- 229class SwXFieldmark 230 : public SwXFieldmark_Base 231{ 232 233private: 234 235 bool isReplacementObject; 236 | 92 CreateXBookmark(SwDoc & rDoc, ::sw::mark::IMark & rBookmark); 93 94 /// @return IMark for this, but only if it lives in pDoc 95 static ::sw::mark::IMark const* GetBookmarkInDoc(SwDoc const*const pDoc, 96 const ::com::sun::star::uno::Reference< 97 ::com::sun::star::lang::XUnoTunnel> & xUT); 98 99 // MetadatableMixin --- 130 unchanged lines hidden (view full) --- 230class SwXFieldmark 231 : public SwXFieldmark_Base 232{ 233 234private: 235 236 bool isReplacementObject; 237 |
238 SwXFieldmark( 239 bool _isReplacementObject, 240 ::sw::mark::IMark *const pMark, 241 SwDoc *const pDoc ); 242 |
|
237public: 238 | 243public: 244 |
239 SwXFieldmark(bool isReplacementObject, 240 ::sw::mark::IMark* pBkm = 0, SwDoc* pDoc = 0); | 245 // <SwXFieldmark> instance not attached to the document - property descriptor available 246 SwXFieldmark( bool isReplacementObject ); |
241 | 247 |
248 // (as the parent class) newly created <SwXFieldmark> instances for an existing <IMark> instance needs to be registered in the Mark 249 static ::com::sun::star::uno::Reference<::com::sun::star::text::XTextContent> 250 CreateXFieldmark( 251 SwDoc & rDoc, 252 ::sw::mark::IMark & rBookmark ); 253 |
|
242 virtual void attachToRange( 243 const ::com::sun::star::uno::Reference< 244 ::com::sun::star::text::XTextRange > & xTextRange) 245 throw (::com::sun::star::lang::IllegalArgumentException, 246 ::com::sun::star::uno::RuntimeException); 247 virtual ::rtl::OUString SAL_CALL getFieldType(void) 248 throw( ::com::sun::star::uno::RuntimeException ); 249 virtual void SAL_CALL setFieldType(const ::rtl::OUString& description ) 250 throw (::com::sun::star::uno::RuntimeException); 251 virtual ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer > SAL_CALL getParameters( ) 252 throw (::com::sun::star::uno::RuntimeException); 253 254}; 255 256#endif // SW_UNOBOOKMARK_HXX 257 | 254 virtual void attachToRange( 255 const ::com::sun::star::uno::Reference< 256 ::com::sun::star::text::XTextRange > & xTextRange) 257 throw (::com::sun::star::lang::IllegalArgumentException, 258 ::com::sun::star::uno::RuntimeException); 259 virtual ::rtl::OUString SAL_CALL getFieldType(void) 260 throw( ::com::sun::star::uno::RuntimeException ); 261 virtual void SAL_CALL setFieldType(const ::rtl::OUString& description ) 262 throw (::com::sun::star::uno::RuntimeException); 263 virtual ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer > SAL_CALL getParameters( ) 264 throw (::com::sun::star::uno::RuntimeException); 265 266}; 267 268#endif // SW_UNOBOOKMARK_HXX 269 |