LCOV - code coverage report
Current view: top level - sw/source/core/inc - UndoSplitMove.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 0 7 0.0 %
Date: 2014-11-03 Functions: 0 8 0.0 %
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_UNDOSPLITMOVE_HXX
      21             : #define INCLUDED_SW_SOURCE_CORE_INC_UNDOSPLITMOVE_HXX
      22             : 
      23             : #include <undobj.hxx>
      24             : 
      25             : class SwUndoSplitNode: public SwUndo
      26             : {
      27             :     SwHistory* pHistory;
      28             :     SwRedlineData* pRedlData;
      29             :     sal_uLong nNode;
      30             :     sal_Int32 nCntnt;
      31             :     bool bTblFlag : 1;
      32             :     bool bChkTblStt : 1;
      33             :     sal_uInt32 nParRsid;
      34             : 
      35             : public:
      36             :     SwUndoSplitNode( SwDoc* pDoc, const SwPosition& rPos, bool bChkTbl );
      37             : 
      38             :     virtual ~SwUndoSplitNode();
      39             : 
      40             :     virtual void UndoImpl( ::sw::UndoRedoContext & ) SAL_OVERRIDE;
      41             :     virtual void RedoImpl( ::sw::UndoRedoContext & ) SAL_OVERRIDE;
      42             :     virtual void RepeatImpl( ::sw::RepeatContext & ) SAL_OVERRIDE;
      43             : 
      44           0 :     void SetTblFlag()       { bTblFlag = true; }
      45             : };
      46             : 
      47           0 : class SwUndoMove : public SwUndo, private SwUndRng, private SwUndoSaveCntnt
      48             : {
      49             :     // nDest.. - destination range of move (after move!)
      50             :     // nIns..  - source Position of move (after move!)
      51             :     // nMv..   - destination position of move (before move!); for REDO
      52             :     sal_uLong nDestSttNode, nDestEndNode, nInsPosNode, nMvDestNode;
      53             :     sal_Int32 nDestSttCntnt, nDestEndCntnt, nInsPosCntnt, nMvDestCntnt;
      54             : 
      55             :     sal_uInt16 nFtnStt; // StartPos of Footnotes in History
      56             : 
      57             :     bool bJoinNext : 1,
      58             :          bJoinPrev : 1,
      59             :          bMoveRange : 1;
      60             : 
      61             :     bool bMoveRedlines; // use DOC_MOVEREDLINES when calling SwDoc::Move
      62             : 
      63             :     void DelFtn( const SwPaM& );
      64             : 
      65             : public:
      66             :     SwUndoMove( const SwPaM&, const SwPosition& );
      67             :     SwUndoMove( SwDoc* pDoc, const SwNodeRange&, const SwNodeIndex& );
      68             : 
      69             :     virtual void UndoImpl( ::sw::UndoRedoContext & ) SAL_OVERRIDE;
      70             :     virtual void RedoImpl( ::sw::UndoRedoContext & ) SAL_OVERRIDE;
      71             : 
      72             :     /// set the destination range after the move
      73             :     void SetDestRange( const SwPaM&, const SwPosition&, bool, bool );
      74             :     void SetDestRange( const SwNodeIndex& rStt, const SwNodeIndex& rEnd,
      75             :                         const SwNodeIndex& rInsPos );
      76             : 
      77           0 :     bool IsMoveRange() const        { return bMoveRange; }
      78           0 :     sal_uLong GetEndNode() const        { return nEndNode; }
      79           0 :     sal_uLong GetDestSttNode() const    { return nDestSttNode; }
      80           0 :     sal_Int32 GetDestSttCntnt() const  { return nDestSttCntnt; }
      81             : 
      82           0 :     void SetMoveRedlines( bool b )       { bMoveRedlines = b; }
      83             : };
      84             : 
      85             : #endif // INCLUDED_SW_SOURCE_CORE_INC_UNDOSPLITMOVE_HXX
      86             : 
      87             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10