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 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 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. 19 * 20 *************************************************************/ 21 22 23 24 #ifndef _OUTLOBJ_HXX 25 #define _OUTLOBJ_HXX 26 27 ////////////////////////////////////////////////////////////////////////////// 28 29 #include <tools/solar.h> 30 #include <tools/string.hxx> 31 #include <rsc/rscsfx.hxx> 32 #include <editeng/paragraphdata.hxx> 33 #include "editeng/editengdllapi.h" 34 35 class EditTextObject; 36 class ImplOutlinerParaObject; 37 38 ////////////////////////////////////////////////////////////////////////////// 39 40 class EDITENG_DLLPUBLIC OutlinerParaObject 41 { 42 private: 43 ImplOutlinerParaObject* mpImplOutlinerParaObject; 44 45 void ImplMakeUnique(); 46 47 public: 48 // constructors/destructor 49 OutlinerParaObject( const EditTextObject&, const ParagraphDataVector&, bool bIsEditDoc = true); 50 OutlinerParaObject( const EditTextObject&); 51 OutlinerParaObject( const OutlinerParaObject&); 52 ~OutlinerParaObject(); 53 54 // assignment operator 55 OutlinerParaObject& operator=(const OutlinerParaObject& rCandidate); 56 57 // compare operator 58 bool operator==(const OutlinerParaObject& rCandidate) const; operator !=(const OutlinerParaObject & rCandidate) const59 bool operator!=(const OutlinerParaObject& rCandidate) const { return !operator==(rCandidate); } 60 61 // #i102062# 62 bool isWrongListEqual(const OutlinerParaObject& rCompare) const; 63 64 // outliner mode access 65 sal_uInt16 GetOutlinerMode() const; 66 void SetOutlinerMode(sal_uInt16 nNew); 67 68 // vertical access 69 bool IsVertical() const; 70 void SetVertical(bool bNew); 71 72 // data read access 73 sal_uInt32 Count() const; 74 sal_Int16 GetDepth(sal_uInt16 nPara) const; 75 const EditTextObject& GetTextObject() const; 76 bool IsEditDoc() const; 77 const ParagraphData& GetParagraphData(sal_uInt32 nIndex) const; 78 79 // portion info support 80 void ClearPortionInfo(); 81 82 // StyleSheet support 83 bool ChangeStyleSheets(const XubString& rOldName, SfxStyleFamily eOldFamily, const XubString& rNewName, SfxStyleFamily eNewFamily); 84 void ChangeStyleSheetName(SfxStyleFamily eFamily, const XubString& rOldName, const XubString& rNewName); 85 void SetStyleSheets(sal_uInt16 nLevel, const XubString rNewName, const SfxStyleFamily& rNewFamily); 86 }; 87 88 ////////////////////////////////////////////////////////////////////////////// 89 90 #endif 91