LCOV - code coverage report
Current view: top level - libreoffice/editeng/source/outliner - outlin2.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 169 280 60.4 %
Date: 2012-12-17 Functions: 59 102 57.8 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       5             :  * This Source Code Form is subject to the terms of the Mozilla Public
       6             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       7             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       8             :  *
       9             :  * This file incorporates work covered by the following license notice:
      10             :  *
      11             :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12             :  *   contributor license agreements. See the NOTICE file distributed
      13             :  *   with this work for additional information regarding copyright
      14             :  *   ownership. The ASF licenses this file to you under the Apache
      15             :  *   License, Version 2.0 (the "License"); you may not use this file
      16             :  *   except in compliance with the License. You may obtain a copy of
      17             :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18             :  */
      19             : 
      20             : 
      21             : #include <svl/intitem.hxx>
      22             : #include <editeng/editeng.hxx>
      23             : #include <editeng/editview.hxx>
      24             : #include <editeng/editdata.hxx>
      25             : #include <editeng/eerdll.hxx>
      26             : #include <editeng/lrspitem.hxx>
      27             : #include <editeng/fhgtitem.hxx>
      28             : #include <svl/style.hxx>
      29             : #include <vcl/mapmod.hxx>
      30             : 
      31             : #include <editeng/forbiddencharacterstable.hxx>
      32             : 
      33             : #define _OUTLINER_CXX
      34             : 
      35             : #include <editeng/outliner.hxx>
      36             : #include <paralist.hxx>
      37             : #include <editeng/outlobj.hxx>
      38             : #include <outleeng.hxx>
      39             : #include <outlundo.hxx>
      40             : #include <editeng/eeitem.hxx>
      41             : #include <editeng/editstat.hxx>
      42             : 
      43             : DBG_NAMEEX(Outliner)
      44             : 
      45             : using namespace ::com::sun::star::uno;
      46             : using namespace ::com::sun::star::linguistic2;
      47             : 
      48             : // ======================================================================
      49             : // ======================   Simple pass-through   =======================
      50             : // ======================================================================
      51             : 
      52       72854 : void Outliner::SetUpdateMode( sal_Bool bUpdate )
      53             : {
      54             :     DBG_CHKTHIS(Outliner,0);
      55       72854 :     pEditEngine->SetUpdateMode( bUpdate );
      56       72854 : }
      57             : 
      58             : 
      59        1652 : sal_Bool Outliner::GetUpdateMode() const
      60             : {
      61             :     DBG_CHKTHIS(Outliner,0);
      62        1652 :     return pEditEngine->GetUpdateMode();
      63             : }
      64             : 
      65        6462 : const SfxItemSet& Outliner::GetEmptyItemSet() const
      66             : {
      67             :     DBG_CHKTHIS(Outliner,0);
      68        6462 :     return pEditEngine->GetEmptyItemSet();
      69             : }
      70             : 
      71       49302 : void Outliner::EnableUndo( sal_Bool bEnable )
      72             : {
      73             :     DBG_CHKTHIS(Outliner,0);
      74       49302 :     pEditEngine->EnableUndo( bEnable );
      75       49302 : }
      76             : 
      77         436 : sal_Bool Outliner::IsUndoEnabled() const
      78             : {
      79             :     DBG_CHKTHIS(Outliner,0);
      80         436 :     return pEditEngine->IsUndoEnabled();
      81             : }
      82             : 
      83           0 : MapMode Outliner::GetRefMapMode() const
      84             : {
      85             :     DBG_CHKTHIS(Outliner,0);
      86           0 :     return pEditEngine->GetRefMapMode();
      87             : }
      88             : 
      89        4808 : void Outliner::SetRefMapMode( const MapMode& rMMode )
      90             : {
      91             :     DBG_CHKTHIS(Outliner,0);
      92        4808 :     pEditEngine->SetRefMapMode( rMMode );
      93        4808 : }
      94             : 
      95        2756 : void Outliner::SetBackgroundColor( const Color& rColor )
      96             : {
      97             :     DBG_CHKTHIS(Outliner,0);
      98        2756 :     pEditEngine->SetBackgroundColor( rColor );
      99        2756 : }
     100             : 
     101        1584 : Color Outliner::GetBackgroundColor() const
     102             : {
     103             :     DBG_CHKTHIS(Outliner,0);
     104        1584 :     return pEditEngine->GetBackgroundColor();
     105             : }
     106             : 
     107             : 
     108          12 : void Outliner::ClearModifyFlag()
     109             : {
     110             :     DBG_CHKTHIS(Outliner,0);
     111          12 :     pEditEngine->ClearModifyFlag();
     112          12 : }
     113             : 
     114           0 : sal_Bool Outliner::IsModified() const
     115             : {
     116             :     DBG_CHKTHIS(Outliner,0);
     117           0 :     return pEditEngine->IsModified();
     118             : }
     119             : 
     120       13126 : sal_uLong Outliner::GetTextHeight() const
     121             : {
     122             :     DBG_CHKTHIS(Outliner,0);
     123       13126 :     return pEditEngine->GetTextHeight();
     124             : }
     125             : 
     126          48 : void Outliner::SetModifyHdl( const Link& rLink )
     127             : {
     128             :     DBG_CHKTHIS(Outliner,0);
     129          48 :     pEditEngine->SetModifyHdl( rLink );
     130          48 : }
     131             : 
     132          12 : Link Outliner::GetModifyHdl() const
     133             : {
     134             :     DBG_CHKTHIS(Outliner,0);
     135          12 :     return pEditEngine->GetModifyHdl();
     136             : }
     137             : 
     138         690 : void Outliner::SetNotifyHdl( const Link& rLink )
     139             : {
     140             :     DBG_CHKTHIS(Outliner,0);
     141         690 :     pEditEngine->aOutlinerNotifyHdl = rLink;
     142             : 
     143         690 :     if ( rLink.IsSet() )
     144           0 :         pEditEngine->SetNotifyHdl( LINK( this, Outliner, EditEngineNotifyHdl ) );
     145             :     else
     146         690 :         pEditEngine->SetNotifyHdl( Link() );
     147             : 
     148         690 : }
     149             : 
     150           0 : void Outliner::SetStatusEventHdl( const Link& rLink )
     151             : {
     152             :     DBG_CHKTHIS(Outliner,0);
     153           0 :     pEditEngine->SetStatusEventHdl( rLink );
     154           0 : }
     155             : 
     156           0 : Link Outliner::GetStatusEventHdl() const
     157             : {
     158             :     DBG_CHKTHIS(Outliner,0);
     159           0 :     return pEditEngine->GetStatusEventHdl();
     160             : }
     161             : 
     162        8186 : void Outliner::SetDefTab( sal_uInt16 nTab )
     163             : {
     164             :     DBG_CHKTHIS(Outliner,0);
     165        8186 :     pEditEngine->SetDefTab( nTab );
     166        8186 : }
     167             : 
     168           0 : sal_Bool Outliner::IsFlatMode() const
     169             : {
     170             :     DBG_CHKTHIS(Outliner,0);
     171           0 :     return pEditEngine->IsFlatMode();
     172             : }
     173             : 
     174           0 : sal_Bool Outliner::UpdateFields()
     175             : {
     176             :     DBG_CHKTHIS(Outliner,0);
     177           0 :     return pEditEngine->UpdateFields();
     178             : }
     179             : 
     180           0 : void Outliner::RemoveFields( sal_Bool bKeepFieldText, TypeId aType )
     181             : {
     182             :     DBG_CHKTHIS(Outliner,0);
     183           0 :     pEditEngine->RemoveFields( bKeepFieldText, aType );
     184           0 : }
     185             : 
     186           0 : void Outliner::SetWordDelimiters( const String& rDelimiters )
     187             : {
     188             :     DBG_CHKTHIS(Outliner,0);
     189           0 :     pEditEngine->SetWordDelimiters( rDelimiters );
     190           0 : }
     191             : 
     192           0 : String Outliner::GetWordDelimiters() const
     193             : {
     194             :     DBG_CHKTHIS(Outliner,0);
     195           0 :     return pEditEngine->GetWordDelimiters();
     196             : }
     197             : 
     198           0 : String Outliner::GetWord( sal_uInt16 nPara, sal_uInt16 nIndex )
     199             : {
     200             :     DBG_CHKTHIS(Outliner,0);
     201           0 :     return pEditEngine->GetWord( nPara, nIndex );
     202             : }
     203             : 
     204           0 : void Outliner::Draw( OutputDevice* pOutDev, const Rectangle& rOutRect )
     205             : {
     206             :     DBG_CHKTHIS(Outliner,0);
     207           0 :     pEditEngine->Draw( pOutDev, rOutRect );
     208           0 : }
     209             : 
     210           0 : void Outliner::Draw( OutputDevice* pOutDev, const Point& rStartPos, short nOrientation )
     211             : {
     212             :     DBG_CHKTHIS(Outliner,0);
     213           0 :     pEditEngine->Draw( pOutDev, rStartPos, nOrientation );
     214           0 : }
     215             : 
     216       68898 : void Outliner::SetPaperSize( const Size& rSize )
     217             : {
     218             :     DBG_CHKTHIS(Outliner,0);
     219       68898 :     pEditEngine->SetPaperSize( rSize );
     220       68898 : }
     221             : 
     222         676 : const Size& Outliner::GetPaperSize() const
     223             : {
     224             :     DBG_CHKTHIS(Outliner,0);
     225         676 :     return pEditEngine->GetPaperSize();
     226             : }
     227             : 
     228           0 : void Outliner::SetPolygon( const basegfx::B2DPolyPolygon& rPolyPolygon )
     229             : {
     230             :     DBG_CHKTHIS( Outliner, 0 );
     231           0 :     pEditEngine->SetPolygon( rPolyPolygon );
     232           0 : }
     233             : 
     234           0 : void Outliner::SetPolygon( const basegfx::B2DPolyPolygon& rPolyPolygon, const basegfx::B2DPolyPolygon* pLinePolyPolygon)
     235             : {
     236             :     DBG_CHKTHIS( Outliner, 0 );
     237           0 :     pEditEngine->SetPolygon( rPolyPolygon, pLinePolyPolygon);
     238           0 : }
     239             : 
     240       50270 : void Outliner::ClearPolygon()
     241             : {
     242             :     DBG_CHKTHIS( Outliner, 0 );
     243       50270 :     pEditEngine->ClearPolygon();
     244       50270 : }
     245             : 
     246           0 : const Size& Outliner::GetMinAutoPaperSize() const
     247             : {
     248             :     DBG_CHKTHIS(Outliner,0);
     249           0 :     return pEditEngine->GetMinAutoPaperSize();
     250             : }
     251             : 
     252       50634 : void Outliner::SetMinAutoPaperSize( const Size& rSz )
     253             : {
     254             :     DBG_CHKTHIS(Outliner,0);
     255       50634 :     pEditEngine->SetMinAutoPaperSize( rSz );
     256       50634 : }
     257             : 
     258           0 : const Size& Outliner::GetMaxAutoPaperSize() const
     259             : {
     260             :     DBG_CHKTHIS(Outliner,0);
     261           0 :     return pEditEngine->GetMaxAutoPaperSize();
     262             : }
     263             : 
     264       50674 : void Outliner::SetMaxAutoPaperSize( const Size& rSz )
     265             : {
     266             :     DBG_CHKTHIS(Outliner,0);
     267       50674 :     pEditEngine->SetMaxAutoPaperSize( rSz );
     268       50674 : }
     269             : 
     270           0 : sal_Bool Outliner::IsExpanded( Paragraph* pPara ) const
     271             : {
     272             :     DBG_CHKTHIS(Outliner,0);
     273           0 :     return pParaList->HasVisibleChildren( pPara );
     274             : }
     275             : 
     276           0 : Paragraph* Outliner::GetParent( Paragraph* pParagraph ) const
     277             : {
     278             :     DBG_CHKTHIS(Outliner,0);
     279           0 :     return pParaList->GetParent( pParagraph );
     280             : }
     281             : 
     282           0 : sal_uLong Outliner::GetChildCount( Paragraph* pParent ) const
     283             : {
     284             :     DBG_CHKTHIS(Outliner,0);
     285           0 :     return pParaList->GetChildCount( pParent );
     286             : }
     287             : 
     288        4490 : Size Outliner::CalcTextSize()
     289             : {
     290             :     DBG_CHKTHIS(Outliner,0);
     291        4490 :     return Size(pEditEngine->CalcTextWidth(),pEditEngine->GetTextHeight());
     292             : }
     293             : 
     294           8 : Size Outliner::CalcTextSizeNTP()
     295             : {
     296             :     DBG_CHKTHIS(Outliner,0);
     297           8 :     return Size(pEditEngine->CalcTextWidth(),pEditEngine->GetTextHeightNTP());
     298             : }
     299             : 
     300        7028 : void Outliner::SetStyleSheetPool( SfxStyleSheetPool* pSPool )
     301             : {
     302             :     DBG_CHKTHIS(Outliner,0);
     303        7028 :     pEditEngine->SetStyleSheetPool( pSPool );
     304        7028 : }
     305             : 
     306         132 : SfxStyleSheetPool* Outliner::GetStyleSheetPool()
     307             : {
     308             :     DBG_CHKTHIS(Outliner,0);
     309         132 :     return pEditEngine->GetStyleSheetPool();
     310             : }
     311             : 
     312        1438 : SfxStyleSheet* Outliner::GetStyleSheet( sal_uLong nPara )
     313             : {
     314             :     DBG_CHKTHIS(Outliner,0);
     315        1438 :     return pEditEngine->GetStyleSheet( (sal_uInt16)nPara );
     316             : }
     317             : 
     318           0 : sal_Bool Outliner::IsInSelectionMode() const
     319             : {
     320             :     DBG_CHKTHIS(Outliner,0);
     321           0 :     return pEditEngine->IsInSelectionMode();
     322             : }
     323             : 
     324       50846 : void Outliner::SetControlWord( sal_uLong nWord )
     325             : {
     326             :     DBG_CHKTHIS(Outliner,0);
     327       50846 :     pEditEngine->SetControlWord( nWord );
     328       50846 : }
     329             : 
     330       50796 : sal_uLong Outliner::GetControlWord() const
     331             : {
     332             :     DBG_CHKTHIS(Outliner,0);
     333       50796 :     return pEditEngine->GetControlWord();
     334             : }
     335             : 
     336       13076 : void Outliner::SetAsianCompressionMode( sal_uInt16 n )
     337             : {
     338             :     DBG_CHKTHIS(Outliner,0);
     339       13076 :     pEditEngine->SetAsianCompressionMode( n );
     340       13076 : }
     341             : 
     342       13076 : void Outliner::SetKernAsianPunctuation( sal_Bool b )
     343             : {
     344             :     DBG_CHKTHIS(Outliner,0);
     345       13076 :     pEditEngine->SetKernAsianPunctuation( b );
     346       13076 : }
     347             : 
     348       13068 : void Outliner::SetAddExtLeading( sal_Bool bExtLeading )
     349             : {
     350             :     DBG_CHKTHIS(Outliner,0);
     351       13068 :     pEditEngine->SetAddExtLeading( bExtLeading );
     352       13068 : }
     353             : 
     354       73776 : void Outliner::UndoActionStart( sal_uInt16 nId )
     355             : {
     356             :     DBG_CHKTHIS(Outliner,0);
     357       73776 :     pEditEngine->UndoActionStart( nId );
     358       73776 : }
     359             : 
     360       73776 : void Outliner::UndoActionEnd( sal_uInt16 nId )
     361             : {
     362             :     DBG_CHKTHIS(Outliner,0);
     363       73776 :     pEditEngine->UndoActionEnd( nId );
     364       73776 : }
     365             : 
     366          24 : void Outliner::InsertUndo( EditUndo* pUndo )
     367             : {
     368             :     DBG_CHKTHIS(Outliner,0);
     369          24 :     pEditEngine->GetUndoManager().AddUndoAction( pUndo, sal_False );
     370          24 : }
     371             : 
     372       90586 : sal_Bool Outliner::IsInUndo()
     373             : {
     374             :     DBG_CHKTHIS(Outliner,0);
     375       90586 :     return pEditEngine->IsInUndo();
     376             : }
     377             : 
     378           0 : sal_uLong Outliner::GetLineCount( sal_uLong nParagraph ) const
     379             : {
     380             :     DBG_CHKTHIS(Outliner,0);
     381           0 :     return pEditEngine->GetLineCount( (sal_uInt16)nParagraph );
     382             : }
     383             : 
     384           0 : sal_uInt16 Outliner::GetLineLen( sal_uLong nParagraph, sal_uInt16 nLine ) const
     385             : {
     386             :     DBG_CHKTHIS(Outliner,0);
     387           0 :     return pEditEngine->GetLineLen( (sal_uInt16)nParagraph, nLine );
     388             : }
     389             : 
     390           0 : sal_uLong Outliner::GetLineHeight( sal_uLong nParagraph, sal_uLong nLine )
     391             : {
     392             :     DBG_CHKTHIS(Outliner,0);
     393           0 :     return pEditEngine->GetLineHeight( (sal_uInt16)nParagraph, (sal_uInt16)nLine );
     394             : }
     395             : 
     396       12268 : void Outliner::QuickRemoveCharAttribs( sal_uInt16 nPara, sal_uInt16 nWhich )
     397             : {
     398             :     DBG_CHKTHIS(Outliner,0);
     399       12268 :     pEditEngine->QuickRemoveCharAttribs( nPara, nWhich );
     400       12268 : }
     401             : 
     402           0 : EESpellState Outliner::HasSpellErrors()
     403             : {
     404             :     DBG_CHKTHIS(Outliner,0);
     405           0 :     return pEditEngine->HasSpellErrors();
     406             : }
     407             : 
     408           0 : sal_Bool Outliner::HasConvertibleTextPortion( LanguageType nLang )
     409             : {
     410             :     DBG_CHKTHIS(Outliner,0);
     411           0 :     return pEditEngine->HasConvertibleTextPortion( nLang );
     412             : }
     413             : 
     414           0 : sal_Bool Outliner::ConvertNextDocument()
     415             : {
     416             :     DBG_CHKTHIS(Outliner,0);
     417           0 :     return sal_False;
     418             : }
     419             : 
     420         358 : void Outliner::SetDefaultLanguage( LanguageType eLang )
     421             : {
     422             :     DBG_CHKTHIS(Outliner,0);
     423         358 :     pEditEngine->SetDefaultLanguage( eLang );
     424         358 : }
     425             : 
     426           0 : LanguageType Outliner::GetDefaultLanguage() const
     427             : {
     428             :     DBG_CHKTHIS(Outliner,0);
     429           0 :     return pEditEngine->GetDefaultLanguage();
     430             : }
     431             : 
     432          24 : void Outliner::CompleteOnlineSpelling()
     433             : {
     434             :     DBG_CHKTHIS(Outliner,0);
     435          24 :     pEditEngine->CompleteOnlineSpelling();
     436          24 : }
     437             : 
     438           0 : sal_Bool Outliner::HasText( const SvxSearchItem& rSearchItem )
     439             : {
     440             :     DBG_CHKTHIS(Outliner,0);
     441           0 :     return pEditEngine->HasText( rSearchItem );
     442             : }
     443             : 
     444        8058 : void Outliner::SetEditTextObjectPool( SfxItemPool* pPool )
     445             : {
     446             :     DBG_CHKTHIS(Outliner,0);
     447        8058 :     pEditEngine->SetEditTextObjectPool( pPool );
     448        8058 : }
     449             : 
     450         212 : SfxItemPool* Outliner::GetEditTextObjectPool() const
     451             : {
     452             :     DBG_CHKTHIS(Outliner,0);
     453         212 :     return pEditEngine->GetEditTextObjectPool();
     454             : }
     455             : 
     456           0 : sal_Bool Outliner::SpellNextDocument()
     457             : {
     458             :     DBG_CHKTHIS(Outliner,0);
     459           0 :     return sal_False;
     460             : }
     461             : 
     462             : 
     463         714 : void Outliner::SetSpeller( Reference< XSpellChecker1 > &xSpeller )
     464             : {
     465             :     DBG_CHKTHIS(Outliner,0);
     466         714 :     pEditEngine->SetSpeller( xSpeller );
     467         714 : }
     468           0 : Reference< XSpellChecker1 > Outliner::GetSpeller()
     469             : {
     470             :     DBG_CHKTHIS(Outliner,0);
     471           0 :     return pEditEngine->GetSpeller();
     472             : }
     473             : 
     474       13090 : void Outliner::SetForbiddenCharsTable( rtl::Reference<SvxForbiddenCharactersTable> xForbiddenChars )
     475             : {
     476             :     DBG_CHKTHIS(Outliner,0);
     477       13090 :     pEditEngine->SetForbiddenCharsTable( xForbiddenChars );
     478       13090 : }
     479             : 
     480        3107 : void Outliner::SetHyphenator( Reference< XHyphenator >& xHyph )
     481             : {
     482             :     DBG_CHKTHIS(Outliner,0);
     483        3107 :     pEditEngine->SetHyphenator( xHyph );
     484        3107 : }
     485             : 
     486          82 : OutputDevice* Outliner::GetRefDevice() const
     487             : {
     488             :     DBG_CHKTHIS(Outliner,0);
     489          82 :     return pEditEngine->GetRefDevice();
     490             : }
     491             : 
     492           0 : sal_uLong Outliner::GetTextHeight( sal_uLong nParagraph ) const
     493             : {
     494             :     DBG_CHKTHIS(Outliner,0);
     495           0 :     return pEditEngine->GetTextHeight((sal_uInt16)nParagraph );
     496             : }
     497             : 
     498           0 : Point Outliner::GetDocPos( const Point& rPaperPos ) const
     499             : {
     500             :     DBG_CHKTHIS(Outliner,0);
     501           0 :     return pEditEngine->GetDocPos( rPaperPos );
     502             : }
     503             : 
     504           0 : Point Outliner::GetDocPosTopLeft( sal_uLong nParagraph )
     505             : {
     506             :     DBG_CHKTHIS(Outliner,0);
     507           0 :     return pEditEngine->GetDocPosTopLeft( (sal_uInt16)nParagraph );
     508             : }
     509             : 
     510           0 : sal_Bool Outliner::IsTextPos( const Point& rPaperPos, sal_uInt16 nBorder )
     511             : {
     512           0 :     return IsTextPos( rPaperPos, nBorder, NULL );
     513             : }
     514             : 
     515           0 : sal_Bool Outliner::IsTextPos( const Point& rPaperPos, sal_uInt16 nBorder, sal_Bool* pbBullet )
     516             : {
     517             :     DBG_CHKTHIS(Outliner,0);
     518           0 :     if ( pbBullet)
     519           0 :         *pbBullet = sal_False;
     520           0 :     sal_Bool bTextPos = pEditEngine->IsTextPos( rPaperPos, nBorder );
     521           0 :     if ( !bTextPos )
     522             :     {
     523           0 :         Point aDocPos = GetDocPos( rPaperPos );
     524           0 :         sal_uInt16 nPara = pEditEngine->FindParagraph( aDocPos.Y() );
     525           0 :         if ( ( nPara != EE_PARA_NOT_FOUND ) && ImplHasBullet( nPara ) )
     526             :         {
     527           0 :             Rectangle aBulArea = ImpCalcBulletArea( nPara, sal_True, sal_True );
     528           0 :             if ( aBulArea.IsInside( rPaperPos ) )
     529             :             {
     530           0 :                 bTextPos = sal_True;
     531           0 :                 if ( pbBullet)
     532           0 :                     *pbBullet = sal_True;
     533             :             }
     534             :         }
     535             :     }
     536             : 
     537           0 :     return bTextPos;
     538             : }
     539             : 
     540        4264 : void Outliner::QuickSetAttribs( const SfxItemSet& rSet, const ESelection& rSel )
     541             : {
     542             :     DBG_CHKTHIS(Outliner,0);
     543        4264 :     pEditEngine->QuickSetAttribs( rSet, rSel );
     544        4264 : }
     545             : 
     546        3962 : void Outliner::QuickInsertText( const XubString& rText, const ESelection& rSel )
     547             : {
     548        3962 :     bFirstParaIsEmpty = sal_False;
     549        3962 :     pEditEngine->QuickInsertText( rText, rSel );
     550        3962 : }
     551             : 
     552         310 : void Outliner::QuickDelete( const ESelection& rSel )
     553             : {
     554         310 :     bFirstParaIsEmpty = sal_False;
     555         310 :     pEditEngine->QuickDelete( rSel );
     556         310 : }
     557             : 
     558         308 : void Outliner::QuickInsertField( const SvxFieldItem& rFld, const ESelection& rSel )
     559             : {
     560             :     DBG_CHKTHIS(Outliner,0);
     561         308 :     bFirstParaIsEmpty = sal_False;
     562         308 :     pEditEngine->QuickInsertField( rFld, rSel );
     563         308 : }
     564             : 
     565           6 : void Outliner::QuickInsertLineBreak( const ESelection& rSel )
     566             : {
     567             :     DBG_CHKTHIS(Outliner,0);
     568           6 :     bFirstParaIsEmpty = sal_False;
     569           6 :     pEditEngine->QuickInsertLineBreak( rSel );
     570           6 : }
     571             : 
     572           0 : void Outliner::QuickFormatDoc( sal_Bool bFull )
     573             : {
     574             :     DBG_CHKTHIS(Outliner,0);
     575           0 :     pEditEngine->QuickFormatDoc( bFull );
     576           0 : }
     577             : 
     578       50274 : void Outliner::SetGlobalCharStretching( sal_uInt16 nX, sal_uInt16 nY )
     579             : {
     580             :     DBG_CHKTHIS(Outliner,0);
     581             : 
     582             :     // reset bullet size
     583       50274 :     sal_uInt16 nParagraphs = (sal_uInt16)pParaList->GetParagraphCount();
     584      100572 :     for ( sal_uInt16 nPara = 0; nPara < nParagraphs; nPara++ )
     585             :     {
     586       50298 :         Paragraph* pPara = pParaList->GetParagraph( nPara );
     587       50298 :         if ( pPara )
     588       50298 :             pPara->aBulSize.Width() = -1;
     589             :     }
     590             : 
     591       50274 :     pEditEngine->SetGlobalCharStretching( nX, nY );
     592       50274 : }
     593             : 
     594        1014 : void Outliner::GetGlobalCharStretching( sal_uInt16& rX, sal_uInt16& rY )
     595             : {
     596             :     DBG_CHKTHIS(Outliner,0);
     597        1014 :     pEditEngine->GetGlobalCharStretching( rX, rY );
     598        1014 : }
     599             : 
     600        1516 : void Outliner::EraseVirtualDevice()
     601             : {
     602             :     DBG_CHKTHIS(Outliner,0);
     603        1516 :     pEditEngine->EraseVirtualDevice();
     604        1516 : }
     605             : 
     606           0 : sal_Bool Outliner::ShouldCreateBigTextObject() const
     607             : {
     608             :     DBG_CHKTHIS(Outliner,0);
     609           0 :     return pEditEngine->ShouldCreateBigTextObject();
     610             : }
     611             : 
     612        2304 : void Outliner::SetVertical( sal_Bool b )
     613             : {
     614             :     DBG_CHKTHIS(Outliner,0);
     615        2304 :     pEditEngine->SetVertical( b );
     616        2304 : }
     617             : 
     618        1006 : sal_Bool Outliner::IsVertical() const
     619             : {
     620             :     DBG_CHKTHIS(Outliner,0);
     621        1006 :     return pEditEngine->IsVertical();
     622             : }
     623             : 
     624        8392 : void Outliner::SetFixedCellHeight( sal_Bool bUseFixedCellHeight )
     625             : {
     626             :     DBG_CHKTHIS(Outliner,0);
     627        8392 :     pEditEngine->SetFixedCellHeight( bUseFixedCellHeight );
     628        8392 : }
     629             : 
     630        2814 : void Outliner::SetDefaultHorizontalTextDirection( EEHorizontalTextDirection eHTextDir )
     631             : {
     632             :     DBG_CHKTHIS(Outliner,0);
     633        2814 :     pEditEngine->SetDefaultHorizontalTextDirection( eHTextDir );
     634        2814 : }
     635             : 
     636        1378 : EEHorizontalTextDirection Outliner::GetDefaultHorizontalTextDirection() const
     637             : {
     638        1378 :     return pEditEngine->GetDefaultHorizontalTextDirection();
     639             : }
     640             : 
     641         950 : sal_uInt16 Outliner::GetScriptType( const ESelection& rSelection ) const
     642             : {
     643             :     DBG_CHKTHIS(Outliner,0);
     644         950 :     return pEditEngine->GetScriptType( rSelection );
     645             : }
     646             : 
     647           0 : LanguageType Outliner::GetLanguage( sal_uInt16 nPara, sal_uInt16 nPos ) const
     648             : {
     649             :     DBG_CHKTHIS(Outliner,0);
     650           0 :     return pEditEngine->GetLanguage( nPara, nPos );
     651             : }
     652             : 
     653          38 : void Outliner::RemoveAttribs( const ESelection& rSelection, sal_Bool bRemoveParaAttribs, sal_uInt16 nWhich )
     654             : {
     655             :     DBG_CHKTHIS(Outliner,0);
     656          38 :     pEditEngine->RemoveAttribs( rSelection, bRemoveParaAttribs, nWhich );
     657          38 : }
     658             : 
     659          46 : void Outliner::EnableAutoColor( sal_Bool b )
     660             : {
     661             :     DBG_CHKTHIS(Outliner,0);
     662          46 :     pEditEngine->EnableAutoColor( b );
     663          46 : }
     664             : 
     665           0 : void Outliner::ForceAutoColor( sal_Bool b )
     666             : {
     667             :     DBG_CHKTHIS(Outliner,0);
     668           0 :     pEditEngine->ForceAutoColor( b );
     669           0 : }
     670             : 
     671         392 : sal_Bool Outliner::IsForceAutoColor() const
     672             : {
     673             :     DBG_CHKTHIS(Outliner,0);
     674         392 :     return pEditEngine->IsForceAutoColor();
     675             : }
     676             : 
     677           0 : void Outliner::StartSpelling(EditView& rEditView, sal_Bool bMultipleDoc)
     678             : {
     679           0 :     pEditEngine->StartSpelling(rEditView, bMultipleDoc);
     680           0 : }
     681             : 
     682           0 : bool Outliner::SpellSentence(EditView& rEditView, ::svx::SpellPortions& rToFill, bool bIsGrammarChecking )
     683             : {
     684           0 :     return pEditEngine->SpellSentence(rEditView, rToFill, bIsGrammarChecking );
     685             : }
     686             : 
     687           0 : void Outliner::PutSpellingToSentenceStart( EditView& rEditView )
     688             : {
     689           0 :     pEditEngine->PutSpellingToSentenceStart( rEditView );
     690           0 : }
     691             : 
     692           0 : void Outliner::ApplyChangedSentence(EditView& rEditView, const ::svx::SpellPortions& rNewPortions, bool bRecheck )
     693             : {
     694           0 :     pEditEngine->ApplyChangedSentence( rEditView, rNewPortions, bRecheck );
     695           0 : }
     696             : 
     697             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10