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 #ifndef _EEDATA_HXX 24 #define _EEDATA_HXX 25 26 ////////////////////////////////////////////////////////////////////////////// 27 // extended data definitions for EditEngine portion stripping (StripPortions() 28 // support). These may be mapped to some primitive definitions from Drawinglayer 29 // later. 30 #include <vector> 31 32 namespace EEngineData 33 { 34 // spell checking wrong vector containing the redlining data 35 class WrongSpellClass 36 { 37 public: 38 sal_uInt32 nStart; 39 sal_uInt32 nEnd; 40 WrongSpellClass(sal_uInt32 nS,sal_uInt32 nE)41 WrongSpellClass(sal_uInt32 nS, sal_uInt32 nE) : nStart(nS), nEnd(nE) {} 42 }; 43 44 typedef std::vector< WrongSpellClass > WrongSpellVector; 45 46 // text marking vector containing the EOC, EOW and EOS TEXT definitions 47 enum TextMarkingType 48 { 49 EndOfCaracter = 0, 50 EndOfWord = 1, 51 EndOfSentence = 2 52 }; 53 54 class TextMarkingClass 55 { 56 public: 57 TextMarkingType eType; 58 sal_uInt32 nIndex; 59 TextMarkingClass(TextMarkingType eT,sal_uInt32 nI)60 TextMarkingClass(TextMarkingType eT, sal_uInt32 nI) : eType(eT), nIndex(nI) {} 61 }; 62 63 typedef std::vector< TextMarkingClass > TextMarkingVector; 64 65 } // end of namespace EditEngine 66 67 #endif // _EEDATA_HXX 68 69 ////////////////////////////////////////////////////////////////////////////// 70 // eof 71