1190118d0SAndrew Rist /**************************************************************
2cdf0e10cSrcweir *
3190118d0SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4190118d0SAndrew Rist * or more contributor license agreements. See the NOTICE file
5190118d0SAndrew Rist * distributed with this work for additional information
6190118d0SAndrew Rist * regarding copyright ownership. The ASF licenses this file
7190118d0SAndrew Rist * to you under the Apache License, Version 2.0 (the
8190118d0SAndrew Rist * "License"); you may not use this file except in compliance
9190118d0SAndrew Rist * with the License. You may obtain a copy of the License at
10cdf0e10cSrcweir *
11190118d0SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir *
13190118d0SAndrew Rist * Unless required by applicable law or agreed to in writing,
14190118d0SAndrew Rist * software distributed under the License is distributed on an
15190118d0SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16190118d0SAndrew Rist * KIND, either express or implied. See the License for the
17190118d0SAndrew Rist * specific language governing permissions and limitations
18190118d0SAndrew Rist * under the License.
19cdf0e10cSrcweir *
20190118d0SAndrew Rist *************************************************************/
21190118d0SAndrew Rist
22190118d0SAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove
25cdf0e10cSrcweir #include "precompiled_editeng.hxx"
26cdf0e10cSrcweir
27cdf0e10cSrcweir #include <svl/intitem.hxx>
28cdf0e10cSrcweir #include <editeng/editeng.hxx>
29cdf0e10cSrcweir #include <editeng/editview.hxx>
30cdf0e10cSrcweir #include <editeng/editdata.hxx>
31cdf0e10cSrcweir #include <editeng/eerdll.hxx>
32cdf0e10cSrcweir #include <editeng/lrspitem.hxx>
33cdf0e10cSrcweir #include <editeng/fhgtitem.hxx>
34cdf0e10cSrcweir #include <tools/list.hxx>
35cdf0e10cSrcweir #include <svl/style.hxx>
36cdf0e10cSrcweir #include <vcl/mapmod.hxx>
37cdf0e10cSrcweir
38cdf0e10cSrcweir #include <editeng/forbiddencharacterstable.hxx>
39cdf0e10cSrcweir
40cdf0e10cSrcweir #define _OUTLINER_CXX
41cdf0e10cSrcweir
42cdf0e10cSrcweir #include <editeng/outliner.hxx>
43cdf0e10cSrcweir #include <paralist.hxx>
44cdf0e10cSrcweir #include <editeng/outlobj.hxx>
45cdf0e10cSrcweir #include <outleeng.hxx>
46cdf0e10cSrcweir #include <outlundo.hxx>
47cdf0e10cSrcweir #include <editeng/eeitem.hxx>
48cdf0e10cSrcweir #include <editeng/editstat.hxx>
49cdf0e10cSrcweir
50cdf0e10cSrcweir DBG_NAMEEX(Outliner)
51cdf0e10cSrcweir
52cdf0e10cSrcweir using namespace ::com::sun::star::uno;
53cdf0e10cSrcweir using namespace ::com::sun::star::linguistic2;
54cdf0e10cSrcweir
55cdf0e10cSrcweir // =====================================================================
56cdf0e10cSrcweir // ====================== Einfache Durchreicher =======================
57cdf0e10cSrcweir // ======================================================================
58cdf0e10cSrcweir
SetUpdateMode(sal_Bool bUpdate)59cdf0e10cSrcweir void Outliner::SetUpdateMode( sal_Bool bUpdate )
60cdf0e10cSrcweir {
61cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
62cdf0e10cSrcweir pEditEngine->SetUpdateMode( bUpdate );
63cdf0e10cSrcweir }
64cdf0e10cSrcweir
65cdf0e10cSrcweir
GetUpdateMode() const66cdf0e10cSrcweir sal_Bool Outliner::GetUpdateMode() const
67cdf0e10cSrcweir {
68cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
69cdf0e10cSrcweir return pEditEngine->GetUpdateMode();
70cdf0e10cSrcweir }
71cdf0e10cSrcweir
GetEmptyItemSet() const72cdf0e10cSrcweir const SfxItemSet& Outliner::GetEmptyItemSet() const
73cdf0e10cSrcweir {
74cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
75cdf0e10cSrcweir return pEditEngine->GetEmptyItemSet();
76cdf0e10cSrcweir }
77cdf0e10cSrcweir
EnableUndo(sal_Bool bEnable)78cdf0e10cSrcweir void Outliner::EnableUndo( sal_Bool bEnable )
79cdf0e10cSrcweir {
80cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
81cdf0e10cSrcweir pEditEngine->EnableUndo( bEnable );
82cdf0e10cSrcweir }
83cdf0e10cSrcweir
IsUndoEnabled() const84cdf0e10cSrcweir sal_Bool Outliner::IsUndoEnabled() const
85cdf0e10cSrcweir {
86cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
87cdf0e10cSrcweir return pEditEngine->IsUndoEnabled();
88cdf0e10cSrcweir }
89cdf0e10cSrcweir
GetRefMapMode() const90cdf0e10cSrcweir MapMode Outliner::GetRefMapMode() const
91cdf0e10cSrcweir {
92cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
93cdf0e10cSrcweir return pEditEngine->GetRefMapMode();
94cdf0e10cSrcweir }
95cdf0e10cSrcweir
SetRefMapMode(const MapMode & rMMode)96cdf0e10cSrcweir void Outliner::SetRefMapMode( const MapMode& rMMode )
97cdf0e10cSrcweir {
98cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
99cdf0e10cSrcweir pEditEngine->SetRefMapMode( rMMode );
100cdf0e10cSrcweir }
101cdf0e10cSrcweir
SetBackgroundColor(const Color & rColor)102cdf0e10cSrcweir void Outliner::SetBackgroundColor( const Color& rColor )
103cdf0e10cSrcweir {
104cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
105cdf0e10cSrcweir pEditEngine->SetBackgroundColor( rColor );
106cdf0e10cSrcweir }
107cdf0e10cSrcweir
GetBackgroundColor() const108cdf0e10cSrcweir Color Outliner::GetBackgroundColor() const
109cdf0e10cSrcweir {
110cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
111cdf0e10cSrcweir return pEditEngine->GetBackgroundColor();
112cdf0e10cSrcweir }
113cdf0e10cSrcweir
114cdf0e10cSrcweir
ClearModifyFlag()115cdf0e10cSrcweir void Outliner::ClearModifyFlag()
116cdf0e10cSrcweir {
117cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
118cdf0e10cSrcweir pEditEngine->ClearModifyFlag();
119cdf0e10cSrcweir }
120cdf0e10cSrcweir
IsModified() const121cdf0e10cSrcweir sal_Bool Outliner::IsModified() const
122cdf0e10cSrcweir {
123cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
124cdf0e10cSrcweir return pEditEngine->IsModified();
125cdf0e10cSrcweir }
126cdf0e10cSrcweir
GetTextHeight() const127cdf0e10cSrcweir sal_uLong Outliner::GetTextHeight() const
128cdf0e10cSrcweir {
129cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
130cdf0e10cSrcweir return pEditEngine->GetTextHeight();
131cdf0e10cSrcweir }
132cdf0e10cSrcweir
SetModifyHdl(const Link & rLink)133cdf0e10cSrcweir void Outliner::SetModifyHdl( const Link& rLink )
134cdf0e10cSrcweir {
135cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
136cdf0e10cSrcweir pEditEngine->SetModifyHdl( rLink );
137cdf0e10cSrcweir }
138cdf0e10cSrcweir
GetModifyHdl() const139cdf0e10cSrcweir Link Outliner::GetModifyHdl() const
140cdf0e10cSrcweir {
141cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
142cdf0e10cSrcweir return pEditEngine->GetModifyHdl();
143cdf0e10cSrcweir }
144cdf0e10cSrcweir
SetNotifyHdl(const Link & rLink)145cdf0e10cSrcweir void Outliner::SetNotifyHdl( const Link& rLink )
146cdf0e10cSrcweir {
147cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
148cdf0e10cSrcweir pEditEngine->aOutlinerNotifyHdl = rLink;
149cdf0e10cSrcweir
150cdf0e10cSrcweir if ( rLink.IsSet() )
151cdf0e10cSrcweir pEditEngine->SetNotifyHdl( LINK( this, Outliner, EditEngineNotifyHdl ) );
152cdf0e10cSrcweir else
153cdf0e10cSrcweir pEditEngine->SetNotifyHdl( Link() );
154cdf0e10cSrcweir
155cdf0e10cSrcweir }
156cdf0e10cSrcweir
GetNotifyHdl() const157cdf0e10cSrcweir Link Outliner::GetNotifyHdl() const
158cdf0e10cSrcweir {
159cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
160cdf0e10cSrcweir return pEditEngine->aOutlinerNotifyHdl;
161cdf0e10cSrcweir }
162cdf0e10cSrcweir
SetStatusEventHdl(const Link & rLink)163cdf0e10cSrcweir void Outliner::SetStatusEventHdl( const Link& rLink )
164cdf0e10cSrcweir {
165cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
166cdf0e10cSrcweir pEditEngine->SetStatusEventHdl( rLink );
167cdf0e10cSrcweir }
168cdf0e10cSrcweir
GetStatusEventHdl() const169cdf0e10cSrcweir Link Outliner::GetStatusEventHdl() const
170cdf0e10cSrcweir {
171cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
172cdf0e10cSrcweir return pEditEngine->GetStatusEventHdl();
173cdf0e10cSrcweir }
174cdf0e10cSrcweir
SetDefTab(sal_uInt16 nTab)175cdf0e10cSrcweir void Outliner::SetDefTab( sal_uInt16 nTab )
176cdf0e10cSrcweir {
177cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
178cdf0e10cSrcweir pEditEngine->SetDefTab( nTab );
179cdf0e10cSrcweir }
180cdf0e10cSrcweir
GetDefTab() const181cdf0e10cSrcweir sal_uInt16 Outliner::GetDefTab() const
182cdf0e10cSrcweir {
183cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
184cdf0e10cSrcweir return pEditEngine->GetDefTab();
185cdf0e10cSrcweir }
186cdf0e10cSrcweir
IsFlatMode() const187cdf0e10cSrcweir sal_Bool Outliner::IsFlatMode() const
188cdf0e10cSrcweir {
189cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
190cdf0e10cSrcweir return pEditEngine->IsFlatMode();
191cdf0e10cSrcweir }
192cdf0e10cSrcweir
UpdateFields()193cdf0e10cSrcweir sal_Bool Outliner::UpdateFields()
194cdf0e10cSrcweir {
195cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
196cdf0e10cSrcweir return pEditEngine->UpdateFields();
197cdf0e10cSrcweir }
198cdf0e10cSrcweir
RemoveFields(sal_Bool bKeepFieldText,TypeId aType)199cdf0e10cSrcweir void Outliner::RemoveFields( sal_Bool bKeepFieldText, TypeId aType )
200cdf0e10cSrcweir {
201cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
202cdf0e10cSrcweir pEditEngine->RemoveFields( bKeepFieldText, aType );
203cdf0e10cSrcweir }
204cdf0e10cSrcweir
SetWordDelimiters(const String & rDelimiters)205cdf0e10cSrcweir void Outliner::SetWordDelimiters( const String& rDelimiters )
206cdf0e10cSrcweir {
207cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
208cdf0e10cSrcweir pEditEngine->SetWordDelimiters( rDelimiters );
209cdf0e10cSrcweir }
210cdf0e10cSrcweir
GetWordDelimiters() const211cdf0e10cSrcweir String Outliner::GetWordDelimiters() const
212cdf0e10cSrcweir {
213cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
214cdf0e10cSrcweir return pEditEngine->GetWordDelimiters();
215cdf0e10cSrcweir }
216cdf0e10cSrcweir
GetWord(sal_uInt16 nPara,sal_uInt16 nIndex)217cdf0e10cSrcweir String Outliner::GetWord( sal_uInt16 nPara, sal_uInt16 nIndex )
218cdf0e10cSrcweir {
219cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
220cdf0e10cSrcweir return pEditEngine->GetWord( nPara, nIndex );
221cdf0e10cSrcweir }
222cdf0e10cSrcweir
Draw(OutputDevice * pOutDev,const Rectangle & rOutRect)223cdf0e10cSrcweir void Outliner::Draw( OutputDevice* pOutDev, const Rectangle& rOutRect )
224cdf0e10cSrcweir {
225cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
226cdf0e10cSrcweir pEditEngine->Draw( pOutDev, rOutRect );
227cdf0e10cSrcweir }
228cdf0e10cSrcweir
Draw(OutputDevice * pOutDev,const Rectangle & rOutRect,const Point & rStartDocPos)229cdf0e10cSrcweir void Outliner::Draw( OutputDevice* pOutDev, const Rectangle& rOutRect, const Point& rStartDocPos )
230cdf0e10cSrcweir {
231cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
232cdf0e10cSrcweir pEditEngine->Draw( pOutDev, rOutRect, rStartDocPos );
233cdf0e10cSrcweir }
234cdf0e10cSrcweir
235cdf0e10cSrcweir
Draw(OutputDevice * pOutDev,const Point & rStartPos,short nOrientation)236cdf0e10cSrcweir void Outliner::Draw( OutputDevice* pOutDev, const Point& rStartPos, short nOrientation )
237cdf0e10cSrcweir {
238cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
239cdf0e10cSrcweir pEditEngine->Draw( pOutDev, rStartPos, nOrientation );
240cdf0e10cSrcweir }
241cdf0e10cSrcweir
SetPaperSize(const Size & rSize)242cdf0e10cSrcweir void Outliner::SetPaperSize( const Size& rSize )
243cdf0e10cSrcweir {
244cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
245cdf0e10cSrcweir pEditEngine->SetPaperSize( rSize );
246cdf0e10cSrcweir }
247cdf0e10cSrcweir
GetPaperSize() const248cdf0e10cSrcweir const Size& Outliner::GetPaperSize() const
249cdf0e10cSrcweir {
250cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
251cdf0e10cSrcweir return pEditEngine->GetPaperSize();
252cdf0e10cSrcweir }
253cdf0e10cSrcweir
SetPolygon(const basegfx::B2DPolyPolygon & rPolyPolygon)254cdf0e10cSrcweir void Outliner::SetPolygon( const basegfx::B2DPolyPolygon& rPolyPolygon )
255cdf0e10cSrcweir {
256cdf0e10cSrcweir DBG_CHKTHIS( Outliner, 0 );
257cdf0e10cSrcweir pEditEngine->SetPolygon( rPolyPolygon );
258cdf0e10cSrcweir }
259cdf0e10cSrcweir
SetPolygon(const basegfx::B2DPolyPolygon & rPolyPolygon,const basegfx::B2DPolyPolygon * pLinePolyPolygon)260cdf0e10cSrcweir void Outliner::SetPolygon( const basegfx::B2DPolyPolygon& rPolyPolygon, const basegfx::B2DPolyPolygon* pLinePolyPolygon)
261cdf0e10cSrcweir {
262cdf0e10cSrcweir DBG_CHKTHIS( Outliner, 0 );
263cdf0e10cSrcweir pEditEngine->SetPolygon( rPolyPolygon, pLinePolyPolygon);
264cdf0e10cSrcweir }
265cdf0e10cSrcweir
ClearPolygon()266cdf0e10cSrcweir void Outliner::ClearPolygon()
267cdf0e10cSrcweir {
268cdf0e10cSrcweir DBG_CHKTHIS( Outliner, 0 );
269cdf0e10cSrcweir pEditEngine->ClearPolygon();
270cdf0e10cSrcweir }
271cdf0e10cSrcweir
GetPolygon()272cdf0e10cSrcweir const PolyPolygon* Outliner::GetPolygon()
273cdf0e10cSrcweir {
274cdf0e10cSrcweir DBG_CHKTHIS( Outliner, 0 );
275cdf0e10cSrcweir return pEditEngine->GetPolygon();
276cdf0e10cSrcweir }
277cdf0e10cSrcweir
GetMinAutoPaperSize() const278cdf0e10cSrcweir const Size& Outliner::GetMinAutoPaperSize() const
279cdf0e10cSrcweir {
280cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
281cdf0e10cSrcweir return pEditEngine->GetMinAutoPaperSize();
282cdf0e10cSrcweir }
283cdf0e10cSrcweir
SetMinAutoPaperSize(const Size & rSz)284cdf0e10cSrcweir void Outliner::SetMinAutoPaperSize( const Size& rSz )
285cdf0e10cSrcweir {
286cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
287cdf0e10cSrcweir pEditEngine->SetMinAutoPaperSize( rSz );
288cdf0e10cSrcweir }
289cdf0e10cSrcweir
GetMaxAutoPaperSize() const290cdf0e10cSrcweir const Size& Outliner::GetMaxAutoPaperSize() const
291cdf0e10cSrcweir {
292cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
293cdf0e10cSrcweir return pEditEngine->GetMaxAutoPaperSize();
294cdf0e10cSrcweir }
295cdf0e10cSrcweir
SetMaxAutoPaperSize(const Size & rSz)296cdf0e10cSrcweir void Outliner::SetMaxAutoPaperSize( const Size& rSz )
297cdf0e10cSrcweir {
298cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
299cdf0e10cSrcweir pEditEngine->SetMaxAutoPaperSize( rSz );
300cdf0e10cSrcweir }
301cdf0e10cSrcweir
IsExpanded(Paragraph * pPara) const302cdf0e10cSrcweir sal_Bool Outliner::IsExpanded( Paragraph* pPara ) const
303cdf0e10cSrcweir {
304cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
305cdf0e10cSrcweir return pParaList->HasVisibleChilds( pPara );
306cdf0e10cSrcweir }
307cdf0e10cSrcweir
GetParent(Paragraph * pParagraph) const308cdf0e10cSrcweir Paragraph* Outliner::GetParent( Paragraph* pParagraph ) const
309cdf0e10cSrcweir {
310cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
311cdf0e10cSrcweir return pParaList->GetParent( pParagraph );
312cdf0e10cSrcweir }
313cdf0e10cSrcweir
GetChildCount(Paragraph * pParent) const314cdf0e10cSrcweir sal_uLong Outliner::GetChildCount( Paragraph* pParent ) const
315cdf0e10cSrcweir {
316cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
317cdf0e10cSrcweir return pParaList->GetChildCount( pParent );
318cdf0e10cSrcweir }
319cdf0e10cSrcweir
CalcTextSize()320cdf0e10cSrcweir Size Outliner::CalcTextSize()
321cdf0e10cSrcweir {
322cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
323cdf0e10cSrcweir return Size(pEditEngine->CalcTextWidth(),pEditEngine->GetTextHeight());
324cdf0e10cSrcweir }
325cdf0e10cSrcweir
GetDocPos(Paragraph * pPara)326cdf0e10cSrcweir Point Outliner::GetDocPos( Paragraph* pPara )
327cdf0e10cSrcweir {
328cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
329cdf0e10cSrcweir return pEditEngine->GetDocPosTopLeft( (sal_uInt16)pParaList->GetAbsPos( pPara ) );
330cdf0e10cSrcweir }
331cdf0e10cSrcweir
SetStyleSheetPool(SfxStyleSheetPool * pSPool)332cdf0e10cSrcweir void Outliner::SetStyleSheetPool( SfxStyleSheetPool* pSPool )
333cdf0e10cSrcweir {
334cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
335cdf0e10cSrcweir pEditEngine->SetStyleSheetPool( pSPool );
336cdf0e10cSrcweir }
337cdf0e10cSrcweir
GetStyleSheetPool()338cdf0e10cSrcweir SfxStyleSheetPool* Outliner::GetStyleSheetPool()
339cdf0e10cSrcweir {
340cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
341cdf0e10cSrcweir return pEditEngine->GetStyleSheetPool();
342cdf0e10cSrcweir }
343cdf0e10cSrcweir
GetStyleSheet(sal_uLong nPara)344cdf0e10cSrcweir SfxStyleSheet* Outliner::GetStyleSheet( sal_uLong nPara )
345cdf0e10cSrcweir {
346cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
347cdf0e10cSrcweir return pEditEngine->GetStyleSheet( (sal_uInt16)nPara );
348cdf0e10cSrcweir }
349cdf0e10cSrcweir
IsInSelectionMode() const350cdf0e10cSrcweir sal_Bool Outliner::IsInSelectionMode() const
351cdf0e10cSrcweir {
352cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
353cdf0e10cSrcweir return pEditEngine->IsInSelectionMode();
354cdf0e10cSrcweir }
355cdf0e10cSrcweir
SetControlWord(sal_uLong nWord)356cdf0e10cSrcweir void Outliner::SetControlWord( sal_uLong nWord )
357cdf0e10cSrcweir {
358cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
359cdf0e10cSrcweir pEditEngine->SetControlWord( nWord );
360cdf0e10cSrcweir }
361cdf0e10cSrcweir
GetControlWord() const362cdf0e10cSrcweir sal_uLong Outliner::GetControlWord() const
363cdf0e10cSrcweir {
364cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
365cdf0e10cSrcweir return pEditEngine->GetControlWord();
366cdf0e10cSrcweir }
367cdf0e10cSrcweir
SetAsianCompressionMode(sal_uInt16 n)368cdf0e10cSrcweir void Outliner::SetAsianCompressionMode( sal_uInt16 n )
369cdf0e10cSrcweir {
370cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
371cdf0e10cSrcweir pEditEngine->SetAsianCompressionMode( n );
372cdf0e10cSrcweir }
373cdf0e10cSrcweir
GetAsianCompressionMode() const374cdf0e10cSrcweir sal_uInt16 Outliner::GetAsianCompressionMode() const
375cdf0e10cSrcweir {
376cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
377cdf0e10cSrcweir return pEditEngine->GetAsianCompressionMode();
378cdf0e10cSrcweir }
379cdf0e10cSrcweir
SetKernAsianPunctuation(sal_Bool b)380cdf0e10cSrcweir void Outliner::SetKernAsianPunctuation( sal_Bool b )
381cdf0e10cSrcweir {
382cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
383cdf0e10cSrcweir pEditEngine->SetKernAsianPunctuation( b );
384cdf0e10cSrcweir }
385cdf0e10cSrcweir
IsKernAsianPunctuation() const386cdf0e10cSrcweir sal_Bool Outliner::IsKernAsianPunctuation() const
387cdf0e10cSrcweir {
388cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
389cdf0e10cSrcweir return pEditEngine->IsKernAsianPunctuation();
390cdf0e10cSrcweir }
391cdf0e10cSrcweir
SetAddExtLeading(sal_Bool bExtLeading)392cdf0e10cSrcweir void Outliner::SetAddExtLeading( sal_Bool bExtLeading )
393cdf0e10cSrcweir {
394cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
395cdf0e10cSrcweir pEditEngine->SetAddExtLeading( bExtLeading );
396cdf0e10cSrcweir }
397cdf0e10cSrcweir
IsAddExtLeading() const398cdf0e10cSrcweir sal_Bool Outliner::IsAddExtLeading() const
399cdf0e10cSrcweir {
400cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
401cdf0e10cSrcweir return pEditEngine->IsAddExtLeading();
402cdf0e10cSrcweir }
403cdf0e10cSrcweir
UndoActionStart(sal_uInt16 nId)404cdf0e10cSrcweir void Outliner::UndoActionStart( sal_uInt16 nId )
405cdf0e10cSrcweir {
406cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
407cdf0e10cSrcweir pEditEngine->UndoActionStart( nId );
408cdf0e10cSrcweir }
409cdf0e10cSrcweir
UndoActionEnd(sal_uInt16 nId)410cdf0e10cSrcweir void Outliner::UndoActionEnd( sal_uInt16 nId )
411cdf0e10cSrcweir {
412cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
413cdf0e10cSrcweir pEditEngine->UndoActionEnd( nId );
414cdf0e10cSrcweir }
415cdf0e10cSrcweir
InsertUndo(EditUndo * pUndo)416cdf0e10cSrcweir void Outliner::InsertUndo( EditUndo* pUndo )
417cdf0e10cSrcweir {
418cdf0e10cSrcweir #ifndef SVX_LIGHT
419cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
420cdf0e10cSrcweir pEditEngine->GetUndoManager().AddUndoAction( pUndo, sal_False );
421cdf0e10cSrcweir #endif
422cdf0e10cSrcweir }
423cdf0e10cSrcweir
IsInUndo()424cdf0e10cSrcweir sal_Bool Outliner::IsInUndo()
425cdf0e10cSrcweir {
426cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
427cdf0e10cSrcweir return pEditEngine->IsInUndo();
428cdf0e10cSrcweir }
429cdf0e10cSrcweir
GetLineCount(sal_uLong nParagraph) const430cdf0e10cSrcweir sal_uLong Outliner::GetLineCount( sal_uLong nParagraph ) const
431cdf0e10cSrcweir {
432cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
433cdf0e10cSrcweir return pEditEngine->GetLineCount( (sal_uInt16)nParagraph );
434cdf0e10cSrcweir }
435cdf0e10cSrcweir
GetLineLen(sal_uLong nParagraph,sal_uInt16 nLine) const436cdf0e10cSrcweir sal_uInt16 Outliner::GetLineLen( sal_uLong nParagraph, sal_uInt16 nLine ) const
437cdf0e10cSrcweir {
438cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
439cdf0e10cSrcweir return pEditEngine->GetLineLen( (sal_uInt16)nParagraph, nLine );
440cdf0e10cSrcweir }
441cdf0e10cSrcweir
GetLineHeight(sal_uLong nParagraph,sal_uLong nLine)442cdf0e10cSrcweir sal_uLong Outliner::GetLineHeight( sal_uLong nParagraph, sal_uLong nLine )
443cdf0e10cSrcweir {
444cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
445cdf0e10cSrcweir return pEditEngine->GetLineHeight( (sal_uInt16)nParagraph, (sal_uInt16)nLine );
446cdf0e10cSrcweir }
447cdf0e10cSrcweir
QuickRemoveCharAttribs(sal_uInt16 nPara,sal_uInt16 nWhich)448cdf0e10cSrcweir void Outliner::QuickRemoveCharAttribs( sal_uInt16 nPara, sal_uInt16 nWhich )
449cdf0e10cSrcweir {
450cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
451cdf0e10cSrcweir pEditEngine->QuickRemoveCharAttribs( nPara, nWhich );
452cdf0e10cSrcweir }
453cdf0e10cSrcweir
HasSpellErrors()454cdf0e10cSrcweir EESpellState Outliner::HasSpellErrors()
455cdf0e10cSrcweir {
456cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
457cdf0e10cSrcweir return pEditEngine->HasSpellErrors();
458cdf0e10cSrcweir }
459cdf0e10cSrcweir
HasConvertibleTextPortion(LanguageType nLang)460cdf0e10cSrcweir sal_Bool Outliner::HasConvertibleTextPortion( LanguageType nLang )
461cdf0e10cSrcweir {
462cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
463cdf0e10cSrcweir return pEditEngine->HasConvertibleTextPortion( nLang );
464cdf0e10cSrcweir }
465cdf0e10cSrcweir
ConvertNextDocument()466cdf0e10cSrcweir sal_Bool Outliner::ConvertNextDocument()
467cdf0e10cSrcweir {
468cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
469cdf0e10cSrcweir return sal_False;
470cdf0e10cSrcweir }
471cdf0e10cSrcweir
SetDefaultLanguage(LanguageType eLang)472cdf0e10cSrcweir void Outliner::SetDefaultLanguage( LanguageType eLang )
473cdf0e10cSrcweir {
474cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
475cdf0e10cSrcweir pEditEngine->SetDefaultLanguage( eLang );
476cdf0e10cSrcweir }
477cdf0e10cSrcweir
GetDefaultLanguage() const478cdf0e10cSrcweir LanguageType Outliner::GetDefaultLanguage() const
479cdf0e10cSrcweir {
480cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
481cdf0e10cSrcweir return pEditEngine->GetDefaultLanguage();
482cdf0e10cSrcweir }
483cdf0e10cSrcweir
HasOnlineSpellErrors() const484cdf0e10cSrcweir sal_Bool Outliner::HasOnlineSpellErrors() const
485cdf0e10cSrcweir {
486cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
487cdf0e10cSrcweir return pEditEngine->HasOnlineSpellErrors();
488cdf0e10cSrcweir }
489cdf0e10cSrcweir
CompleteOnlineSpelling()490cdf0e10cSrcweir void Outliner::CompleteOnlineSpelling()
491cdf0e10cSrcweir {
492cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
493cdf0e10cSrcweir pEditEngine->CompleteOnlineSpelling();
494cdf0e10cSrcweir }
495cdf0e10cSrcweir
HasText(const SvxSearchItem & rSearchItem)496cdf0e10cSrcweir sal_Bool Outliner::HasText( const SvxSearchItem& rSearchItem )
497cdf0e10cSrcweir {
498cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
499cdf0e10cSrcweir return pEditEngine->HasText( rSearchItem );
500cdf0e10cSrcweir }
501cdf0e10cSrcweir
SetEditTextObjectPool(SfxItemPool * pPool)502cdf0e10cSrcweir void Outliner::SetEditTextObjectPool( SfxItemPool* pPool )
503cdf0e10cSrcweir {
504cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
505cdf0e10cSrcweir pEditEngine->SetEditTextObjectPool( pPool );
506cdf0e10cSrcweir }
507cdf0e10cSrcweir
GetEditTextObjectPool() const508cdf0e10cSrcweir SfxItemPool* Outliner::GetEditTextObjectPool() const
509cdf0e10cSrcweir {
510cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
511cdf0e10cSrcweir return pEditEngine->GetEditTextObjectPool();
512cdf0e10cSrcweir }
513cdf0e10cSrcweir
SpellNextDocument()514cdf0e10cSrcweir sal_Bool Outliner::SpellNextDocument()
515cdf0e10cSrcweir {
516cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
517cdf0e10cSrcweir return sal_False;
518cdf0e10cSrcweir }
519cdf0e10cSrcweir
520cdf0e10cSrcweir
SetSpeller(Reference<XSpellChecker1> & xSpeller)521cdf0e10cSrcweir void Outliner::SetSpeller( Reference< XSpellChecker1 > &xSpeller )
522cdf0e10cSrcweir {
523cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
524cdf0e10cSrcweir pEditEngine->SetSpeller( xSpeller );
525cdf0e10cSrcweir }
GetSpeller()526cdf0e10cSrcweir Reference< XSpellChecker1 > Outliner::GetSpeller()
527cdf0e10cSrcweir {
528cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
529cdf0e10cSrcweir return pEditEngine->GetSpeller();
530cdf0e10cSrcweir }
531cdf0e10cSrcweir
SetForbiddenCharsTable(vos::ORef<SvxForbiddenCharactersTable> xForbiddenChars)532cdf0e10cSrcweir void Outliner::SetForbiddenCharsTable( vos::ORef<SvxForbiddenCharactersTable> xForbiddenChars )
533cdf0e10cSrcweir {
534cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
535cdf0e10cSrcweir pEditEngine->SetForbiddenCharsTable( xForbiddenChars );
536cdf0e10cSrcweir }
537cdf0e10cSrcweir
GetForbiddenCharsTable() const538cdf0e10cSrcweir vos::ORef<SvxForbiddenCharactersTable> Outliner::GetForbiddenCharsTable() const
539cdf0e10cSrcweir {
540cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
541cdf0e10cSrcweir return pEditEngine->GetForbiddenCharsTable();
542cdf0e10cSrcweir }
543cdf0e10cSrcweir
544cdf0e10cSrcweir
GetHyphenator() const545cdf0e10cSrcweir Reference< XHyphenator > Outliner::GetHyphenator() const
546cdf0e10cSrcweir {
547cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
548cdf0e10cSrcweir return pEditEngine->GetHyphenator();
549cdf0e10cSrcweir }
550cdf0e10cSrcweir
SetHyphenator(Reference<XHyphenator> & xHyph)551cdf0e10cSrcweir void Outliner::SetHyphenator( Reference< XHyphenator >& xHyph )
552cdf0e10cSrcweir {
553cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
554cdf0e10cSrcweir pEditEngine->SetHyphenator( xHyph );
555cdf0e10cSrcweir }
556cdf0e10cSrcweir
GetRefDevice() const557cdf0e10cSrcweir OutputDevice* Outliner::GetRefDevice() const
558cdf0e10cSrcweir {
559cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
560cdf0e10cSrcweir return pEditEngine->GetRefDevice();
561cdf0e10cSrcweir }
562cdf0e10cSrcweir
GetFirstLineOffset(sal_uLong nParagraph)563cdf0e10cSrcweir sal_uInt16 Outliner::GetFirstLineOffset( sal_uLong nParagraph )
564cdf0e10cSrcweir {
565cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
566cdf0e10cSrcweir return pEditEngine->GetFirstLineOffset( (sal_uInt16)nParagraph );
567cdf0e10cSrcweir }
568cdf0e10cSrcweir
GetTextHeight(sal_uLong nParagraph) const569cdf0e10cSrcweir sal_uLong Outliner::GetTextHeight( sal_uLong nParagraph ) const
570cdf0e10cSrcweir {
571cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
572cdf0e10cSrcweir return pEditEngine->GetTextHeight((sal_uInt16)nParagraph );
573cdf0e10cSrcweir }
574cdf0e10cSrcweir
GetDocPos(const Point & rPaperPos) const575cdf0e10cSrcweir Point Outliner::GetDocPos( const Point& rPaperPos ) const
576cdf0e10cSrcweir {
577cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
578cdf0e10cSrcweir return pEditEngine->GetDocPos( rPaperPos );
579cdf0e10cSrcweir }
580cdf0e10cSrcweir
GetDocPosTopLeft(sal_uLong nParagraph)581cdf0e10cSrcweir Point Outliner::GetDocPosTopLeft( sal_uLong nParagraph )
582cdf0e10cSrcweir {
583cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
584cdf0e10cSrcweir return pEditEngine->GetDocPosTopLeft( (sal_uInt16)nParagraph );
585cdf0e10cSrcweir }
586cdf0e10cSrcweir
IsTextPos(const Point & rPaperPos,sal_uInt16 nBorder)587cdf0e10cSrcweir sal_Bool Outliner::IsTextPos( const Point& rPaperPos, sal_uInt16 nBorder )
588cdf0e10cSrcweir {
589cdf0e10cSrcweir return IsTextPos( rPaperPos, nBorder, NULL );
590cdf0e10cSrcweir }
591cdf0e10cSrcweir
IsTextPos(const Point & rPaperPos,sal_uInt16 nBorder,sal_Bool * pbBullet)592cdf0e10cSrcweir sal_Bool Outliner::IsTextPos( const Point& rPaperPos, sal_uInt16 nBorder, sal_Bool* pbBullet )
593cdf0e10cSrcweir {
594cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
595cdf0e10cSrcweir if ( pbBullet)
596cdf0e10cSrcweir *pbBullet = sal_False;
597cdf0e10cSrcweir sal_Bool bTextPos = pEditEngine->IsTextPos( rPaperPos, nBorder );
598cdf0e10cSrcweir if ( !bTextPos )
599cdf0e10cSrcweir {
600cdf0e10cSrcweir Point aDocPos = GetDocPos( rPaperPos );
601cdf0e10cSrcweir sal_uInt16 nPara = pEditEngine->FindParagraph( aDocPos.Y() );
602*af89ca6eSOliver-Rainer Wittmann if ( ( nPara != EE_PARA_NOT_FOUND ) && ImplHasNumberFormat( nPara ) )
603cdf0e10cSrcweir {
604cdf0e10cSrcweir Rectangle aBulArea = ImpCalcBulletArea( nPara, sal_True, sal_True );
605cdf0e10cSrcweir if ( aBulArea.IsInside( rPaperPos ) )
606cdf0e10cSrcweir {
607cdf0e10cSrcweir bTextPos = sal_True;
608cdf0e10cSrcweir if ( pbBullet)
609cdf0e10cSrcweir *pbBullet = sal_True;
610cdf0e10cSrcweir }
611cdf0e10cSrcweir }
612cdf0e10cSrcweir }
613cdf0e10cSrcweir
614cdf0e10cSrcweir return bTextPos;
615cdf0e10cSrcweir }
616cdf0e10cSrcweir
QuickSetAttribs(const SfxItemSet & rSet,const ESelection & rSel)617cdf0e10cSrcweir void Outliner::QuickSetAttribs( const SfxItemSet& rSet, const ESelection& rSel )
618cdf0e10cSrcweir {
619cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
620cdf0e10cSrcweir pEditEngine->QuickSetAttribs( rSet, rSel );
621cdf0e10cSrcweir }
622cdf0e10cSrcweir
QuickInsertText(const XubString & rText,const ESelection & rSel)623cdf0e10cSrcweir void Outliner::QuickInsertText( const XubString& rText, const ESelection& rSel )
624cdf0e10cSrcweir {
625cdf0e10cSrcweir bFirstParaIsEmpty = sal_False;
626cdf0e10cSrcweir pEditEngine->QuickInsertText( rText, rSel );
627cdf0e10cSrcweir }
628cdf0e10cSrcweir
QuickDelete(const ESelection & rSel)629cdf0e10cSrcweir void Outliner::QuickDelete( const ESelection& rSel )
630cdf0e10cSrcweir {
631cdf0e10cSrcweir bFirstParaIsEmpty = sal_False;
632cdf0e10cSrcweir pEditEngine->QuickDelete( rSel );
633cdf0e10cSrcweir }
634cdf0e10cSrcweir
QuickInsertField(const SvxFieldItem & rFld,const ESelection & rSel)635cdf0e10cSrcweir void Outliner::QuickInsertField( const SvxFieldItem& rFld, const ESelection& rSel )
636cdf0e10cSrcweir {
637cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
638cdf0e10cSrcweir bFirstParaIsEmpty = sal_False;
639cdf0e10cSrcweir pEditEngine->QuickInsertField( rFld, rSel );
640cdf0e10cSrcweir }
641cdf0e10cSrcweir
QuickInsertLineBreak(const ESelection & rSel)642cdf0e10cSrcweir void Outliner::QuickInsertLineBreak( const ESelection& rSel )
643cdf0e10cSrcweir {
644cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
645cdf0e10cSrcweir bFirstParaIsEmpty = sal_False;
646cdf0e10cSrcweir pEditEngine->QuickInsertLineBreak( rSel );
647cdf0e10cSrcweir }
648cdf0e10cSrcweir
QuickFormatDoc(sal_Bool bFull)649cdf0e10cSrcweir void Outliner::QuickFormatDoc( sal_Bool bFull )
650cdf0e10cSrcweir {
651cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
652cdf0e10cSrcweir pEditEngine->QuickFormatDoc( bFull );
653cdf0e10cSrcweir }
654cdf0e10cSrcweir
SetGlobalCharStretching(sal_uInt16 nX,sal_uInt16 nY)655cdf0e10cSrcweir void Outliner::SetGlobalCharStretching( sal_uInt16 nX, sal_uInt16 nY )
656cdf0e10cSrcweir {
657cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
658cdf0e10cSrcweir pEditEngine->SetGlobalCharStretching( nX, nY );
659cdf0e10cSrcweir }
660cdf0e10cSrcweir
GetGlobalCharStretching(sal_uInt16 & rX,sal_uInt16 & rY)661cdf0e10cSrcweir void Outliner::GetGlobalCharStretching( sal_uInt16& rX, sal_uInt16& rY )
662cdf0e10cSrcweir {
663cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
664cdf0e10cSrcweir pEditEngine->GetGlobalCharStretching( rX, rY );
665cdf0e10cSrcweir }
666cdf0e10cSrcweir
667cdf0e10cSrcweir
DoStretchChars(sal_uInt16 nX,sal_uInt16 nY)668cdf0e10cSrcweir void Outliner::DoStretchChars( sal_uInt16 nX, sal_uInt16 nY )
669cdf0e10cSrcweir {
670cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
671cdf0e10cSrcweir pEditEngine->DoStretchChars( nX, nY );
672cdf0e10cSrcweir }
673cdf0e10cSrcweir
EraseVirtualDevice()674cdf0e10cSrcweir void Outliner::EraseVirtualDevice()
675cdf0e10cSrcweir {
676cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
677cdf0e10cSrcweir pEditEngine->EraseVirtualDevice();
678cdf0e10cSrcweir }
679cdf0e10cSrcweir
SetBigTextObjectStart(sal_uInt16 nStartAtPortionCount)680cdf0e10cSrcweir void Outliner::SetBigTextObjectStart( sal_uInt16 nStartAtPortionCount )
681cdf0e10cSrcweir {
682cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
683cdf0e10cSrcweir pEditEngine->SetBigTextObjectStart( nStartAtPortionCount );
684cdf0e10cSrcweir }
685cdf0e10cSrcweir
GetBigTextObjectStart() const686cdf0e10cSrcweir sal_uInt16 Outliner::GetBigTextObjectStart() const
687cdf0e10cSrcweir {
688cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
689cdf0e10cSrcweir return pEditEngine->GetBigTextObjectStart();
690cdf0e10cSrcweir }
691cdf0e10cSrcweir
ShouldCreateBigTextObject() const692cdf0e10cSrcweir sal_Bool Outliner::ShouldCreateBigTextObject() const
693cdf0e10cSrcweir {
694cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
695cdf0e10cSrcweir return pEditEngine->ShouldCreateBigTextObject();
696cdf0e10cSrcweir }
697cdf0e10cSrcweir
SetVertical(sal_Bool b)698cdf0e10cSrcweir void Outliner::SetVertical( sal_Bool b )
699cdf0e10cSrcweir {
700cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
701cdf0e10cSrcweir pEditEngine->SetVertical( b );
702cdf0e10cSrcweir }
703cdf0e10cSrcweir
IsVertical() const704cdf0e10cSrcweir sal_Bool Outliner::IsVertical() const
705cdf0e10cSrcweir {
706cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
707cdf0e10cSrcweir return pEditEngine->IsVertical();
708cdf0e10cSrcweir }
709cdf0e10cSrcweir
SetFixedCellHeight(sal_Bool bUseFixedCellHeight)710cdf0e10cSrcweir void Outliner::SetFixedCellHeight( sal_Bool bUseFixedCellHeight )
711cdf0e10cSrcweir {
712cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
713cdf0e10cSrcweir pEditEngine->SetFixedCellHeight( bUseFixedCellHeight );
714cdf0e10cSrcweir }
715cdf0e10cSrcweir
IsFixedCellHeight() const716cdf0e10cSrcweir sal_Bool Outliner::IsFixedCellHeight() const
717cdf0e10cSrcweir {
718cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
719cdf0e10cSrcweir return pEditEngine->IsFixedCellHeight();
720cdf0e10cSrcweir }
721cdf0e10cSrcweir
722cdf0e10cSrcweir
SetDefaultHorizontalTextDirection(EEHorizontalTextDirection eHTextDir)723cdf0e10cSrcweir void Outliner::SetDefaultHorizontalTextDirection( EEHorizontalTextDirection eHTextDir )
724cdf0e10cSrcweir {
725cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
726cdf0e10cSrcweir pEditEngine->SetDefaultHorizontalTextDirection( eHTextDir );
727cdf0e10cSrcweir }
728cdf0e10cSrcweir
GetDefaultHorizontalTextDirection() const729cdf0e10cSrcweir EEHorizontalTextDirection Outliner::GetDefaultHorizontalTextDirection() const
730cdf0e10cSrcweir {
731cdf0e10cSrcweir return pEditEngine->GetDefaultHorizontalTextDirection();
732cdf0e10cSrcweir }
733cdf0e10cSrcweir
GetScriptType(const ESelection & rSelection) const734cdf0e10cSrcweir sal_uInt16 Outliner::GetScriptType( const ESelection& rSelection ) const
735cdf0e10cSrcweir {
736cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
737cdf0e10cSrcweir return pEditEngine->GetScriptType( rSelection );
738cdf0e10cSrcweir }
739cdf0e10cSrcweir
GetLanguage(sal_uInt16 nPara,sal_uInt16 nPos) const740cdf0e10cSrcweir LanguageType Outliner::GetLanguage( sal_uInt16 nPara, sal_uInt16 nPos ) const
741cdf0e10cSrcweir {
742cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
743cdf0e10cSrcweir return pEditEngine->GetLanguage( nPara, nPos );
744cdf0e10cSrcweir }
745cdf0e10cSrcweir
RemoveAttribs(const ESelection & rSelection,sal_Bool bRemoveParaAttribs,sal_uInt16 nWhich)746cdf0e10cSrcweir void Outliner::RemoveAttribs( const ESelection& rSelection, sal_Bool bRemoveParaAttribs, sal_uInt16 nWhich )
747cdf0e10cSrcweir {
748cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
749cdf0e10cSrcweir pEditEngine->RemoveAttribs( rSelection, bRemoveParaAttribs, nWhich );
750cdf0e10cSrcweir }
751cdf0e10cSrcweir
EnableAutoColor(sal_Bool b)752cdf0e10cSrcweir void Outliner::EnableAutoColor( sal_Bool b )
753cdf0e10cSrcweir {
754cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
755cdf0e10cSrcweir pEditEngine->EnableAutoColor( b );
756cdf0e10cSrcweir }
757cdf0e10cSrcweir
IsAutoColorEnabled() const758cdf0e10cSrcweir sal_Bool Outliner::IsAutoColorEnabled() const
759cdf0e10cSrcweir {
760cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
761cdf0e10cSrcweir return pEditEngine->IsAutoColorEnabled();
762cdf0e10cSrcweir }
763cdf0e10cSrcweir
ForceAutoColor(sal_Bool b)764cdf0e10cSrcweir void Outliner::ForceAutoColor( sal_Bool b )
765cdf0e10cSrcweir {
766cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
767cdf0e10cSrcweir pEditEngine->ForceAutoColor( b );
768cdf0e10cSrcweir }
769cdf0e10cSrcweir
IsForceAutoColor() const770cdf0e10cSrcweir sal_Bool Outliner::IsForceAutoColor() const
771cdf0e10cSrcweir {
772cdf0e10cSrcweir DBG_CHKTHIS(Outliner,0);
773cdf0e10cSrcweir return pEditEngine->IsForceAutoColor();
774cdf0e10cSrcweir }
775cdf0e10cSrcweir /*-- 13.10.2003 16:56:23---------------------------------------------------
776cdf0e10cSrcweir
777cdf0e10cSrcweir -----------------------------------------------------------------------*/
StartSpelling(EditView & rEditView,sal_Bool bMultipleDoc)778cdf0e10cSrcweir void Outliner::StartSpelling(EditView& rEditView, sal_Bool bMultipleDoc)
779cdf0e10cSrcweir {
780cdf0e10cSrcweir pEditEngine->StartSpelling(rEditView, bMultipleDoc);
781cdf0e10cSrcweir }
782cdf0e10cSrcweir /*-- 13.10.2003 16:56:23---------------------------------------------------
783cdf0e10cSrcweir
784cdf0e10cSrcweir -----------------------------------------------------------------------*/
EndSpelling()785cdf0e10cSrcweir void Outliner::EndSpelling()
786cdf0e10cSrcweir {
787cdf0e10cSrcweir pEditEngine->EndSpelling();
788cdf0e10cSrcweir }
789cdf0e10cSrcweir /*-- 13.10.2003 16:56:23---------------------------------------------------
790cdf0e10cSrcweir
791cdf0e10cSrcweir -----------------------------------------------------------------------*/
SpellSentence(EditView & rEditView,::svx::SpellPortions & rToFill,bool bIsGrammarChecking)792cdf0e10cSrcweir bool Outliner::SpellSentence(EditView& rEditView, ::svx::SpellPortions& rToFill, bool bIsGrammarChecking )
793cdf0e10cSrcweir {
794cdf0e10cSrcweir return pEditEngine->SpellSentence(rEditView, rToFill, bIsGrammarChecking );
795cdf0e10cSrcweir }
796cdf0e10cSrcweir /*-- 08.09.2008 11:39:05---------------------------------------------------
797cdf0e10cSrcweir
798cdf0e10cSrcweir -----------------------------------------------------------------------*/
PutSpellingToSentenceStart(EditView & rEditView)799cdf0e10cSrcweir void Outliner::PutSpellingToSentenceStart( EditView& rEditView )
800cdf0e10cSrcweir {
801cdf0e10cSrcweir pEditEngine->PutSpellingToSentenceStart( rEditView );
802cdf0e10cSrcweir }
803cdf0e10cSrcweir /*-- 13.10.2003 16:56:25---------------------------------------------------
804cdf0e10cSrcweir
805cdf0e10cSrcweir -----------------------------------------------------------------------*/
ApplyChangedSentence(EditView & rEditView,const::svx::SpellPortions & rNewPortions,bool bRecheck)806cdf0e10cSrcweir void Outliner::ApplyChangedSentence(EditView& rEditView, const ::svx::SpellPortions& rNewPortions, bool bRecheck )
807cdf0e10cSrcweir {
808cdf0e10cSrcweir pEditEngine->ApplyChangedSentence( rEditView, rNewPortions, bRecheck );
809cdf0e10cSrcweir }
810