LCOV - code coverage report
Current view: top level - sw/source/core/inc - UndoSplitMove.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 7 0.0 %
Date: 2012-08-25 Functions: 0 8 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 4 0.0 %

           Branch data     Line data    Source code
       1                 :            : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2                 :            : /*************************************************************************
       3                 :            :  *
       4                 :            :  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       5                 :            :  *
       6                 :            :  * Copyright 2000, 2010 Oracle and/or its affiliates.
       7                 :            :  *
       8                 :            :  * OpenOffice.org - a multi-platform office productivity suite
       9                 :            :  *
      10                 :            :  * This file is part of OpenOffice.org.
      11                 :            :  *
      12                 :            :  * OpenOffice.org is free software: you can redistribute it and/or modify
      13                 :            :  * it under the terms of the GNU Lesser General Public License version 3
      14                 :            :  * only, as published by the Free Software Foundation.
      15                 :            :  *
      16                 :            :  * OpenOffice.org is distributed in the hope that it will be useful,
      17                 :            :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      18                 :            :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      19                 :            :  * GNU Lesser General Public License version 3 for more details
      20                 :            :  * (a copy is included in the LICENSE file that accompanied this code).
      21                 :            :  *
      22                 :            :  * You should have received a copy of the GNU Lesser General Public License
      23                 :            :  * version 3 along with OpenOffice.org.  If not, see
      24                 :            :  * <http://www.openoffice.org/license.html>
      25                 :            :  * for a copy of the LGPLv3 License.
      26                 :            :  *
      27                 :            :  ************************************************************************/
      28                 :            : 
      29                 :            : #ifndef SW_UNDO_MOVE_HXX
      30                 :            : #define SW_UNDO_MOVE_HXX
      31                 :            : 
      32                 :            : #include <undobj.hxx>
      33                 :            : 
      34                 :            : class SwUndoSplitNode: public SwUndo
      35                 :            : {
      36                 :            :     SwHistory* pHistory;
      37                 :            :     SwRedlineData* pRedlData;
      38                 :            :     sal_uLong nNode;
      39                 :            :     xub_StrLen nCntnt;
      40                 :            :     sal_Bool bTblFlag : 1;
      41                 :            :     sal_Bool bChkTblStt : 1;
      42                 :            :     sal_uInt32 nParRsid;
      43                 :            : 
      44                 :            : public:
      45                 :            :     SwUndoSplitNode( SwDoc* pDoc, const SwPosition& rPos, sal_Bool bChkTbl );
      46                 :            : 
      47                 :            :     virtual ~SwUndoSplitNode();
      48                 :            : 
      49                 :            :     virtual void UndoImpl( ::sw::UndoRedoContext & );
      50                 :            :     virtual void RedoImpl( ::sw::UndoRedoContext & );
      51                 :            :     virtual void RepeatImpl( ::sw::RepeatContext & );
      52                 :            : 
      53                 :          0 :     void SetTblFlag()       { bTblFlag = sal_True; }
      54                 :            : };
      55                 :            : 
      56 [ #  # ][ #  # ]:          0 : class SwUndoMove : public SwUndo, private SwUndRng, private SwUndoSaveCntnt
      57                 :            : {
      58                 :            :     // nDest.. - destination range of move (after move!)
      59                 :            :     // nIns..  - source Position of move (after move!)
      60                 :            :     // nMv..   - destination position of move (before move!); for REDO
      61                 :            :     sal_uLong nDestSttNode, nDestEndNode, nInsPosNode, nMvDestNode;
      62                 :            :     xub_StrLen nDestSttCntnt, nDestEndCntnt, nInsPosCntnt, nMvDestCntnt;
      63                 :            : 
      64                 :            :     sal_uInt16 nFtnStt; // StartPos of Footnotes in History
      65                 :            : 
      66                 :            :     sal_Bool bJoinNext : 1,
      67                 :            :          bJoinPrev : 1,
      68                 :            :          bMoveRange : 1;
      69                 :            : 
      70                 :            :     bool bMoveRedlines; // use DOC_MOVEREDLINES when calling SwDoc::Move
      71                 :            : 
      72                 :            :     void DelFtn( const SwPaM& );
      73                 :            : 
      74                 :            : public:
      75                 :            :     SwUndoMove( const SwPaM&, const SwPosition& );
      76                 :            :     SwUndoMove( SwDoc* pDoc, const SwNodeRange&, const SwNodeIndex& );
      77                 :            : 
      78                 :            :     virtual void UndoImpl( ::sw::UndoRedoContext & );
      79                 :            :     virtual void RedoImpl( ::sw::UndoRedoContext & );
      80                 :            : 
      81                 :            :     /// set the destination range after the move
      82                 :            :     void SetDestRange( const SwPaM&, const SwPosition&, sal_Bool, sal_Bool );
      83                 :            :     void SetDestRange( const SwNodeIndex& rStt, const SwNodeIndex& rEnd,
      84                 :            :                         const SwNodeIndex& rInsPos );
      85                 :            : 
      86                 :          0 :     sal_Bool IsMoveRange() const        { return bMoveRange; }
      87                 :          0 :     sal_uLong GetEndNode() const        { return nEndNode; }
      88                 :          0 :     sal_uLong GetDestSttNode() const    { return nDestSttNode; }
      89                 :          0 :     xub_StrLen GetDestSttCntnt() const  { return nDestSttCntnt; }
      90                 :            : 
      91                 :          0 :     void SetMoveRedlines( bool b )       { bMoveRedlines = b; }
      92                 :            : };
      93                 :            : 
      94                 :            : #endif // SW_UNDO_MOVE_HXX
      95                 :            : 
      96                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10