LCOV - code coverage report
Current view: top level - sw/source/core/inc - unoparaframeenum.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 6 6 100.0 %
Date: 2015-06-13 12:38:46 Functions: 8 11 72.7 %
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             : #ifndef INCLUDED_SW_SOURCE_CORE_INC_UNOPARAFRAMEENUM_HXX
      21             : #define INCLUDED_SW_SOURCE_CORE_INC_UNOPARAFRAMEENUM_HXX
      22             : 
      23             : #include <deque>
      24             : 
      25             : #include <com/sun/star/lang/XServiceInfo.hpp>
      26             : #include <com/sun/star/container/XEnumeration.hpp>
      27             : #include <com/sun/star/text/XTextContent.hpp>
      28             : 
      29             : #include <cppuhelper/implbase.hxx>
      30             : 
      31             : #include <calbck.hxx>
      32             : #include <unobaseclass.hxx>
      33             : 
      34             : 
      35             : class SwDepend;
      36             : class SwNodeIndex;
      37             : class SwPaM;
      38             : class SwFrameFormat;
      39             : 
      40             : namespace sw
      41             : {
      42         542 :     struct FrameClient : public SwClient
      43             :     {
      44         271 :         FrameClient(SwModify* pModify) : SwClient(pModify) {};
      45             :     };
      46             : }
      47         330 : struct FrameClientSortListEntry
      48             : {
      49             :     sal_Int32 nIndex;
      50             :     sal_uInt32 nOrder;
      51             :     std::shared_ptr<sw::FrameClient> pFrameClient;
      52             : 
      53         110 :     FrameClientSortListEntry (sal_Int32 const i_nIndex,
      54             :                 sal_uInt32 const i_nOrder, sw::FrameClient* const i_pClient)
      55         110 :         : nIndex(i_nIndex), nOrder(i_nOrder), pFrameClient(i_pClient) { }
      56             : };
      57             : 
      58             : typedef ::std::deque< FrameClientSortListEntry >
      59             :     FrameClientSortList_t;
      60             : 
      61             : typedef ::std::deque< std::shared_ptr<sw::FrameClient> >
      62             :     FrameClientList_t;
      63             : 
      64             : // #i28701# - adjust 4th parameter
      65             : void CollectFrameAtNode( const SwNodeIndex& rIdx,
      66             :                          FrameClientSortList_t& rFrames,
      67             :                          const bool bAtCharAnchoredObjs );
      68             : 
      69             : enum ParaFrameMode
      70             : {
      71             :     PARAFRAME_PORTION_PARAGRAPH,
      72             :     PARAFRAME_PORTION_CHAR,
      73             :     PARAFRAME_PORTION_TEXTRANGE,
      74             : };
      75             : 
      76        2302 : struct SwXParaFrameEnumeration
      77             :     : public SwSimpleEnumeration_Base
      78             : {
      79             :     static SwXParaFrameEnumeration* Create(const SwPaM& rPaM, const enum ParaFrameMode eParaFrameMode, SwFrameFormat* const pFormat = nullptr);
      80             : };
      81             : 
      82             : #endif // INCLUDED_SW_SOURCE_CORE_INC_UNOPARAFRAMEENUM_HXX
      83             : 
      84             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11