LCOV - code coverage report
Current view: top level - sw/source/core/layout - objectformatter.cxx (source / functions) Hit Total Coverage
Test: commit 0e63ca4fde4e446f346e35849c756a30ca294aab Lines: 155 168 92.3 %
Date: 2014-04-11 Functions: 20 21 95.2 %
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             : #include <objectformattertxtfrm.hxx>
      21             : #include <objectformatterlayfrm.hxx>
      22             : #include <anchoreddrawobject.hxx>
      23             : #include <sortedobjs.hxx>
      24             : #include <pagefrm.hxx>
      25             : #include <flyfrms.hxx>
      26             : #include <txtfrm.hxx>
      27             : #include <layact.hxx>
      28             : #include <fmtanchr.hxx>
      29             : #include <doc.hxx>
      30             : 
      31             : #include <vector>
      32             : 
      33             : // --> #i26945# - Additionally the type of the anchor text frame
      34             : // is collected - by type is meant 'master' or 'follow'.
      35             : class SwPageNumAndTypeOfAnchors
      36             : {
      37             :     private:
      38             :         struct tEntry
      39             :         {
      40             :             SwAnchoredObject* mpAnchoredObj;
      41             :             sal_uInt32 mnPageNumOfAnchor;
      42             :             bool mbAnchoredAtMaster;
      43             :         };
      44             : 
      45             :         std::vector< tEntry* > maObjList;
      46             : 
      47             :     public:
      48        4729 :         inline SwPageNumAndTypeOfAnchors()
      49        4729 :         {
      50        4729 :         }
      51        4729 :         inline ~SwPageNumAndTypeOfAnchors()
      52        4729 :         {
      53       36084 :             for ( std::vector< tEntry* >::iterator aIter = maObjList.begin();
      54       24056 :                   aIter != maObjList.end(); ++aIter )
      55             :             {
      56        7299 :                 delete (*aIter);
      57             :             }
      58        4729 :             maObjList.clear();
      59        4729 :         }
      60             : 
      61        7299 :         inline void Collect( SwAnchoredObject& _rAnchoredObj )
      62             :         {
      63        7299 :             tEntry* pNewEntry = new tEntry();
      64        7299 :             pNewEntry->mpAnchoredObj = &_rAnchoredObj;
      65             :             // #i33751#, #i34060# - method <GetPageFrmOfAnchor()>
      66             :             // is replaced by method <FindPageFrmOfAnchor()>. It's return value
      67             :             // have to be checked.
      68        7299 :             SwPageFrm* pPageFrmOfAnchor = _rAnchoredObj.FindPageFrmOfAnchor();
      69        7299 :             if ( pPageFrmOfAnchor )
      70             :             {
      71        7299 :                 pNewEntry->mnPageNumOfAnchor = pPageFrmOfAnchor->GetPhyPageNum();
      72             :             }
      73             :             else
      74             :             {
      75           0 :                 pNewEntry->mnPageNumOfAnchor = 0;
      76             :             }
      77             :             // --> #i26945# - collect type of anchor
      78        7299 :             SwTxtFrm* pAnchorCharFrm = _rAnchoredObj.FindAnchorCharFrm();
      79        7299 :             if ( pAnchorCharFrm )
      80             :             {
      81        3465 :                 pNewEntry->mbAnchoredAtMaster = !pAnchorCharFrm->IsFollow();
      82             :             }
      83             :             else
      84             :             {
      85        3834 :                 pNewEntry->mbAnchoredAtMaster = true;
      86             :             }
      87        7299 :             maObjList.push_back( pNewEntry );
      88        7299 :         }
      89             : 
      90        6316 :         inline SwAnchoredObject* operator[]( sal_uInt32 _nIndex )
      91             :         {
      92        6316 :             SwAnchoredObject* bRetObj = 0L;
      93             : 
      94        6316 :             if ( _nIndex < Count())
      95             :             {
      96        6316 :                 bRetObj = maObjList[_nIndex]->mpAnchoredObj;
      97             :             }
      98             : 
      99        6316 :             return bRetObj;
     100             :         }
     101             : 
     102         880 :         inline sal_uInt32 GetPageNum( sal_uInt32 _nIndex ) const
     103             :         {
     104         880 :             sal_uInt32 nRetPgNum = 0L;
     105             : 
     106         880 :             if ( _nIndex < Count())
     107             :             {
     108         880 :                 nRetPgNum = maObjList[_nIndex]->mnPageNumOfAnchor;
     109             :             }
     110             : 
     111         880 :             return nRetPgNum;
     112             :         }
     113             : 
     114             :         // --> #i26945#
     115         880 :         inline bool AnchoredAtMaster( sal_uInt32 _nIndex )
     116             :         {
     117         880 :             bool bAnchoredAtMaster( true );
     118             : 
     119         880 :             if ( _nIndex < Count())
     120             :             {
     121         880 :                 bAnchoredAtMaster = maObjList[_nIndex]->mbAnchoredAtMaster;
     122             :             }
     123             : 
     124         880 :             return bAnchoredAtMaster;
     125             :         }
     126             : 
     127       16634 :         inline sal_uInt32 Count() const
     128             :         {
     129       16634 :             return maObjList.size();
     130             :         }
     131             : };
     132             : 
     133        5576 : SwObjectFormatter::SwObjectFormatter( const SwPageFrm& _rPageFrm,
     134             :                                       SwLayAction* _pLayAction,
     135             :                                       const bool _bCollectPgNumOfAnchors )
     136             :     : mrPageFrm( _rPageFrm ),
     137             :       mbFormatOnlyAsCharAnchored( false ),
     138        5576 :       mbConsiderWrapOnObjPos( _rPageFrm.GetFmt()->getIDocumentSettingAccess()->get(IDocumentSettingAccess::CONSIDER_WRAP_ON_OBJECT_POSITION) ),
     139             :       mpLayAction( _pLayAction ),
     140             :       // --> #i26945#
     141       11152 :       mpPgNumAndTypeOfAnchors( _bCollectPgNumOfAnchors ? new SwPageNumAndTypeOfAnchors() : 0L )
     142             : {
     143        5576 : }
     144             : 
     145        5576 : SwObjectFormatter::~SwObjectFormatter()
     146             : {
     147        5576 :     delete mpPgNumAndTypeOfAnchors;
     148        5576 : }
     149             : 
     150      101857 : SwObjectFormatter* SwObjectFormatter::CreateObjFormatter(
     151             :                                                       SwFrm& _rAnchorFrm,
     152             :                                                       const SwPageFrm& _rPageFrm,
     153             :                                                       SwLayAction* _pLayAction )
     154             : {
     155      101857 :     SwObjectFormatter* pObjFormatter = 0L;
     156      101857 :     if ( _rAnchorFrm.IsTxtFrm() )
     157             :     {
     158             :         pObjFormatter = SwObjectFormatterTxtFrm::CreateObjFormatter(
     159             :                                             static_cast<SwTxtFrm&>(_rAnchorFrm),
     160       92907 :                                             _rPageFrm, _pLayAction );
     161             :     }
     162        8950 :     else if ( _rAnchorFrm.IsLayoutFrm() )
     163             :     {
     164             :         pObjFormatter = SwObjectFormatterLayFrm::CreateObjFormatter(
     165             :                                         static_cast<SwLayoutFrm&>(_rAnchorFrm),
     166        8950 :                                         _rPageFrm, _pLayAction );
     167             :     }
     168             :     else
     169             :     {
     170             :         OSL_FAIL( "<SwObjectFormatter::CreateObjFormatter(..)> - unexcepted type of anchor frame" );
     171             :     }
     172             : 
     173      101857 :     return pObjFormatter;
     174             : }
     175             : 
     176             : /** method to format all floating screen objects at the given anchor frame
     177             : */
     178      101356 : bool SwObjectFormatter::FormatObjsAtFrm( SwFrm& _rAnchorFrm,
     179             :                                          const SwPageFrm& _rPageFrm,
     180             :                                          SwLayAction* _pLayAction )
     181             : {
     182      101356 :     bool bSuccess( true );
     183             : 
     184             :     // create corresponding object formatter
     185             :     SwObjectFormatter* pObjFormatter =
     186      101356 :         SwObjectFormatter::CreateObjFormatter( _rAnchorFrm, _rPageFrm, _pLayAction );
     187             : 
     188      101356 :     if ( pObjFormatter )
     189             :     {
     190             :         // format anchored floating screen objects
     191        5075 :         bSuccess = pObjFormatter->DoFormatObjs();
     192             :     }
     193      101356 :     delete pObjFormatter;
     194             : 
     195      101356 :     return bSuccess;
     196             : }
     197             : 
     198             : /** method to format a given floating screen object
     199             : */
     200         501 : bool SwObjectFormatter::FormatObj( SwAnchoredObject& _rAnchoredObj,
     201             :                                    SwFrm* _pAnchorFrm,
     202             :                                    const SwPageFrm* _pPageFrm,
     203             :                                    SwLayAction* _pLayAction )
     204             : {
     205         501 :     bool bSuccess( true );
     206             : 
     207             :     OSL_ENSURE( _pAnchorFrm || _rAnchoredObj.GetAnchorFrm(),
     208             :             "<SwObjectFormatter::FormatObj(..)> - missing anchor frame" );
     209         501 :     SwFrm& rAnchorFrm = _pAnchorFrm ? *(_pAnchorFrm) : *(_rAnchoredObj.AnchorFrm());
     210             : 
     211             :     OSL_ENSURE( _pPageFrm || rAnchorFrm.FindPageFrm(),
     212             :             "<SwObjectFormatter::FormatObj(..)> - missing page frame" );
     213         501 :     const SwPageFrm& rPageFrm = _pPageFrm ? *(_pPageFrm) : *(rAnchorFrm.FindPageFrm());
     214             : 
     215             :     // create corresponding object formatter
     216             :     SwObjectFormatter* pObjFormatter =
     217         501 :         SwObjectFormatter::CreateObjFormatter( rAnchorFrm, rPageFrm, _pLayAction );
     218             : 
     219         501 :     if ( pObjFormatter )
     220             :     {
     221             :         // format given floating screen object
     222             :         // --> #i40147# - check for moved forward anchor frame
     223         501 :         bSuccess = pObjFormatter->DoFormatObj( _rAnchoredObj, true );
     224             :     }
     225         501 :     delete pObjFormatter;
     226             : 
     227         501 :     return bSuccess;
     228             : }
     229             : 
     230             : /** helper method for method <_FormatObj(..)> - performs the intrinsic format
     231             :     of the layout of the given layout frame and all its lower layout frames.
     232             : 
     233             :     #i28701#
     234             :     IMPORTANT NOTE:
     235             :     Method corresponds to methods <SwLayAction::FormatLayoutFly(..)> and
     236             :     <SwLayAction::FormatLayout(..)>. Thus, its code for the formatting have
     237             :     to be synchronised.
     238             : */
     239        1007 : void SwObjectFormatter::_FormatLayout( SwLayoutFrm& _rLayoutFrm )
     240             : {
     241        1007 :     _rLayoutFrm.Calc();
     242             : 
     243        1007 :     SwFrm* pLowerFrm = _rLayoutFrm.Lower();
     244        3100 :     while ( pLowerFrm )
     245             :     {
     246        1086 :         if ( pLowerFrm->IsLayoutFrm() )
     247             :         {
     248           0 :             _FormatLayout( *(static_cast<SwLayoutFrm*>(pLowerFrm)) );
     249             :         }
     250        1086 :         pLowerFrm = pLowerFrm->GetNext();
     251             :     }
     252        1007 : }
     253             : 
     254             : /** helper method for method <_FormatObj(..)> - performs the intrinsic
     255             :     format of the content of the given floating screen object.
     256             : 
     257             :     #i28701#
     258             : */
     259        1007 : void SwObjectFormatter::_FormatObjCntnt( SwAnchoredObject& _rAnchoredObj )
     260             : {
     261        1007 :     if ( !_rAnchoredObj.ISA(SwFlyFrm) )
     262             :     {
     263             :         // only Writer fly frames have content
     264        1007 :         return;
     265             :     }
     266             : 
     267        1007 :     SwFlyFrm& rFlyFrm = static_cast<SwFlyFrm&>(_rAnchoredObj);
     268        1007 :     SwCntntFrm* pCntnt = rFlyFrm.ContainsCntnt();
     269             : 
     270        3100 :     while ( pCntnt )
     271             :     {
     272             :         // format content
     273        1086 :         pCntnt->OptCalc();
     274             : 
     275             :         // format floating screen objects at content text frame
     276             :         // #i23129#, #i36347# - pass correct page frame to
     277             :         // the object formatter
     278        1590 :         if ( pCntnt->IsTxtFrm() &&
     279             :              !SwObjectFormatter::FormatObjsAtFrm( *pCntnt,
     280         504 :                                                   *(pCntnt->FindPageFrm()),
     281        1008 :                                                   GetLayAction() ) )
     282             :         {
     283             :             // restart format with first content
     284           0 :             pCntnt = rFlyFrm.ContainsCntnt();
     285           0 :             continue;
     286             :         }
     287             : 
     288             :         // continue with next content
     289        1086 :         pCntnt = pCntnt->GetNextCntntFrm();
     290             :     }
     291             : }
     292             : 
     293             : /** performs the intrinsic format of a given floating screen object and its content.
     294             : 
     295             :     #i28701#
     296             : */
     297        7425 : void SwObjectFormatter::_FormatObj( SwAnchoredObject& _rAnchoredObj )
     298             : {
     299             :     // check, if only as-character anchored object have to be formatted, and
     300             :     // check the anchor type
     301        7425 :     if ( FormatOnlyAsCharAnchored() &&
     302           0 :          !(_rAnchoredObj.GetFrmFmt().GetAnchor().GetAnchorId() == FLY_AS_CHAR) )
     303             :     {
     304        7425 :         return;
     305             :     }
     306             : 
     307             :     // collect anchor object and its 'anchor' page number, if requested
     308        7425 :     if ( mpPgNumAndTypeOfAnchors )
     309             :     {
     310        7299 :         mpPgNumAndTypeOfAnchors->Collect( _rAnchoredObj );
     311             :     }
     312             : 
     313        7425 :     if ( _rAnchoredObj.ISA(SwFlyFrm) )
     314             :     {
     315        4469 :         SwFlyFrm& rFlyFrm = static_cast<SwFlyFrm&>(_rAnchoredObj);
     316             :         // --> #i34753# - reset flag, which prevents a positioning
     317        4469 :         if ( rFlyFrm.IsFlyLayFrm() )
     318             :         {
     319          91 :             static_cast<SwFlyLayFrm&>(rFlyFrm).SetNoMakePos( false );
     320             :         }
     321             : 
     322             :         // #i81146# new loop control
     323        4469 :         sal_uInt16 nLoopControlRuns = 0;
     324        4469 :         const sal_uInt16 nLoopControlMax = 15;
     325             : 
     326        4582 :         do {
     327        4582 :             if ( mpLayAction )
     328             :             {
     329        3575 :                 mpLayAction->FormatLayoutFly( &rFlyFrm );
     330             :                 // --> consider, if the layout action
     331             :                 // has to be restarted due to a delete of a page frame.
     332        3575 :                 if ( mpLayAction->IsAgain() )
     333             :                 {
     334           0 :                     break;
     335             :                 }
     336             :             }
     337             :             else
     338             :             {
     339        1007 :                 _FormatLayout( rFlyFrm );
     340             :             }
     341             :             // --> #i34753# - prevent further positioning, if
     342             :             // to-page|to-fly anchored Writer fly frame is already clipped.
     343        4582 :             if ( rFlyFrm.IsFlyLayFrm() && rFlyFrm.IsClipped() )
     344             :             {
     345           6 :                 static_cast<SwFlyLayFrm&>(rFlyFrm).SetNoMakePos( true );
     346             :             }
     347             :             // #i23129#, #i36347# - pass correct page frame
     348             :             // to the object formatter
     349             :             SwObjectFormatter::FormatObjsAtFrm( rFlyFrm,
     350        4582 :                                                 *(rFlyFrm.FindPageFrm()),
     351        9164 :                                                 mpLayAction );
     352        4582 :             if ( mpLayAction )
     353             :             {
     354        3575 :                 mpLayAction->_FormatFlyCntnt( &rFlyFrm );
     355             :                 // --> consider, if the layout action
     356             :                 // has to be restarted due to a delete of a page frame.
     357        3575 :                 if ( mpLayAction->IsAgain() )
     358             :                 {
     359           0 :                     break;
     360             :                 }
     361             :             }
     362             :             else
     363             :             {
     364        1007 :                 _FormatObjCntnt( rFlyFrm );
     365             :             }
     366             : 
     367        4582 :             if ( ++nLoopControlRuns >= nLoopControlMax )
     368             :             {
     369             :                 OSL_FAIL( "LoopControl in SwObjectFormatter::_FormatObj: Stage 3!!!" );
     370           0 :                 rFlyFrm.ValidateThisAndAllLowers( 2 );
     371           0 :                 nLoopControlRuns = 0;
     372             :             }
     373             : 
     374             :         // --> #i57917#
     375             :         // stop formatting of anchored object, if restart of layout process is requested.
     376        4921 :         } while ( !rFlyFrm.IsValid() &&
     377        4695 :                   !_rAnchoredObj.RestartLayoutProcess() &&
     378         113 :                   rFlyFrm.GetAnchorFrm() == &GetAnchorFrm() );
     379             :     }
     380        2956 :     else if ( _rAnchoredObj.ISA(SwAnchoredDrawObject) )
     381             :     {
     382        2956 :         _rAnchoredObj.MakeObjPos();
     383             :     }
     384             : }
     385             : 
     386             : /** invokes the intrinsic format method for all floating screen objects,
     387             :     anchored at anchor frame on the given page frame
     388             : 
     389             :     #i28701#
     390             :     #i26945# - for format of floating screen objects for
     391             :     follow text frames, the 'master' text frame is passed to the method.
     392             :     Thus, the objects, whose anchor character is inside the follow text
     393             :     frame can be formatted.
     394             : */
     395        5089 : bool SwObjectFormatter::_FormatObjsAtFrm( SwTxtFrm* _pMasterTxtFrm )
     396             : {
     397             :     // --> #i26945#
     398        5089 :     SwFrm* pAnchorFrm( 0L );
     399       14420 :     if ( GetAnchorFrm().IsTxtFrm() &&
     400        5117 :          static_cast<SwTxtFrm&>(GetAnchorFrm()).IsFollow() &&
     401             :          _pMasterTxtFrm )
     402             :     {
     403          14 :         pAnchorFrm = _pMasterTxtFrm;
     404             :     }
     405             :     else
     406             :     {
     407        5075 :         pAnchorFrm = &GetAnchorFrm();
     408             :     }
     409        5089 :     if ( !pAnchorFrm->GetDrawObjs() )
     410             :     {
     411             :         // nothing to do, if no floating screen object is registered at the anchor frame.
     412         780 :         return true;
     413             :     }
     414             : 
     415        4309 :     bool bSuccess( true );
     416             : 
     417        4309 :     sal_uInt32 i = 0;
     418       10924 :     for ( ; i < pAnchorFrm->GetDrawObjs()->Count(); ++i )
     419             :     {
     420        6938 :         SwAnchoredObject* pAnchoredObj = (*pAnchorFrm->GetDrawObjs())[i];
     421             : 
     422             :         // check, if object's anchor is on the given page frame or
     423             :         // object is registered at the given page frame.
     424             :         // --> #i26945# - check, if the anchor character of the
     425             :         // anchored object is located in a follow text frame. If this anchor
     426             :         // follow text frame differs from the given anchor frame, the given
     427             :         // anchor frame is a 'master' text frame of the anchor follow text frame.
     428             :         // If the anchor follow text frame is in the same body as its 'master'
     429             :         // text frame, do not format the anchored object.
     430             :         // E.g., this situation can occur during the table row splitting algorithm.
     431        6938 :         SwTxtFrm* pAnchorCharFrm = pAnchoredObj->FindAnchorCharFrm();
     432             :         const bool bAnchoredAtFollowInSameBodyAsMaster =
     433        2992 :                 pAnchorCharFrm && pAnchorCharFrm->IsFollow() &&
     434        6967 :                 pAnchorCharFrm != pAnchoredObj->GetAnchorFrm() &&
     435          12 :                 pAnchorCharFrm->FindBodyFrm() ==
     436        6950 :                     static_cast<SwTxtFrm*>(pAnchoredObj->AnchorFrm())->FindBodyFrm();
     437        6938 :         if ( bAnchoredAtFollowInSameBodyAsMaster )
     438             :         {
     439           0 :             continue;
     440             :         }
     441             :         // #i33751#, #i34060# - method <GetPageFrmOfAnchor()>
     442             :         // is replaced by method <FindPageFrmOfAnchor()>. It's return value
     443             :         // have to be checked.
     444        6938 :         SwPageFrm* pPageFrmOfAnchor = pAnchoredObj->FindPageFrmOfAnchor();
     445             :         OSL_ENSURE( pPageFrmOfAnchor,
     446             :                 "<SwObjectFormatter::_FormatObjsAtFrm()> - missing page frame." );
     447             :         // --> #i26945#
     448        6938 :         if ( pPageFrmOfAnchor && pPageFrmOfAnchor == &mrPageFrm )
     449             :         {
     450             :             // if format of object fails, stop formatting and pass fail to
     451             :             // calling method via the return value.
     452        6924 :             if ( !DoFormatObj( *pAnchoredObj ) )
     453             :             {
     454         323 :                 bSuccess = false;
     455         323 :                 break;
     456             :             }
     457             : 
     458             :             // considering changes at <pAnchorFrm->GetDrawObjs()> during
     459             :             // format of the object.
     460       13202 :             if ( !pAnchorFrm->GetDrawObjs() ||
     461        6601 :                  i > pAnchorFrm->GetDrawObjs()->Count() )
     462             :             {
     463           0 :                 break;
     464             :             }
     465             :             else
     466             :             {
     467             :                 sal_uInt32 nActPosOfObj =
     468        6601 :                     pAnchorFrm->GetDrawObjs()->ListPosOf( *pAnchoredObj );
     469        6601 :                 if ( nActPosOfObj == pAnchorFrm->GetDrawObjs()->Count() ||
     470             :                      nActPosOfObj > i )
     471             :                 {
     472           0 :                     --i;
     473             :                 }
     474        6601 :                 else if ( nActPosOfObj < i )
     475             :                 {
     476           0 :                     i = nActPosOfObj;
     477             :                 }
     478             :             }
     479             :         }
     480             :     } // end of loop on <pAnchorFrm->.GetDrawObjs()>
     481             : 
     482        4309 :     return bSuccess;
     483             : }
     484             : 
     485             : /** accessor to collected anchored object
     486             : 
     487             :     #i28701#
     488             : */
     489        6316 : SwAnchoredObject* SwObjectFormatter::GetCollectedObj( const sal_uInt32 _nIndex )
     490             : {
     491        6316 :     return mpPgNumAndTypeOfAnchors ? (*mpPgNumAndTypeOfAnchors)[_nIndex] : 0L;
     492             : }
     493             : 
     494             : /** accessor to 'anchor' page number of collected anchored object
     495             : 
     496             :     #i28701#
     497             : */
     498         880 : sal_uInt32 SwObjectFormatter::GetPgNumOfCollected( const sal_uInt32 _nIndex )
     499             : {
     500         880 :     return mpPgNumAndTypeOfAnchors ? mpPgNumAndTypeOfAnchors->GetPageNum(_nIndex) : 0L;
     501             : }
     502             : 
     503             : /** accessor to 'anchor' type of collected anchored object
     504             : 
     505             :     #i26945#
     506             : */
     507         880 : bool SwObjectFormatter::IsCollectedAnchoredAtMaster( const sal_uInt32 _nIndex )
     508             : {
     509             :     return mpPgNumAndTypeOfAnchors
     510         880 :            ? mpPgNumAndTypeOfAnchors->AnchoredAtMaster(_nIndex)
     511        1760 :            : true;
     512             : }
     513             : 
     514             : /** accessor to total number of collected anchored objects
     515             : 
     516             :     #i28701#
     517             : */
     518        8558 : sal_uInt32 SwObjectFormatter::CountOfCollected()
     519             : {
     520        8558 :     return mpPgNumAndTypeOfAnchors ? mpPgNumAndTypeOfAnchors->Count() : 0L;
     521             : }
     522             : 
     523             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10