LCOV - code coverage report
Current view: top level - sw/source/core/inc - UndoSection.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 2 2 100.0 %
Date: 2014-11-03 Functions: 2 2 100.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_UNDOSECTION_HXX
      21             : #define INCLUDED_SW_SOURCE_CORE_INC_UNDOSECTION_HXX
      22             : 
      23             : #include <undobj.hxx>
      24             : #include <memory>
      25             : #include <swdllapi.h>
      26             : 
      27             : class SfxItemSet;
      28             : class SwTxtNode;
      29             : class SwSectionData;
      30             : class SwSectionFmt;
      31             : class SwTOXBase;
      32             : 
      33             : class SwUndoInsSection : public SwUndo, private SwUndRng
      34             : {
      35             : private:
      36             :     const ::std::unique_ptr<SwSectionData> m_pSectionData;
      37             :     const ::std::unique_ptr<SwTOXBase> m_pTOXBase; /// set iff section is TOX
      38             :     const ::std::unique_ptr<SfxItemSet> m_pAttrSet;
      39             :     ::std::unique_ptr<SwHistory> m_pHistory;
      40             :     ::std::unique_ptr<SwRedlineData> m_pRedlData;
      41             :     ::std::unique_ptr<SwRedlineSaveDatas> m_pRedlineSaveData;
      42             :     sal_uLong m_nSectionNodePos;
      43             :     bool m_bSplitAtStart : 1;
      44             :     bool m_bSplitAtEnd : 1;
      45             :     bool m_bUpdateFtn : 1;
      46             : 
      47             :     void Join( SwDoc& rDoc, sal_uLong nNode );
      48             : 
      49             : public:
      50             :     SwUndoInsSection(SwPaM const&, SwSectionData const&,
      51             :         SfxItemSet const*const pSet, SwTOXBase const*const pTOXBase);
      52             : 
      53             :     virtual ~SwUndoInsSection();
      54             : 
      55             :     virtual void UndoImpl( ::sw::UndoRedoContext & ) SAL_OVERRIDE;
      56             :     virtual void RedoImpl( ::sw::UndoRedoContext & ) SAL_OVERRIDE;
      57             :     virtual void RepeatImpl( ::sw::RepeatContext & ) SAL_OVERRIDE;
      58             : 
      59          72 :     void SetSectNdPos(sal_uLong const nPos)     { m_nSectionNodePos = nPos; }
      60             :     void SaveSplitNode(SwTxtNode *const pTxtNd, bool const bAtStart);
      61          72 :     void SetUpdtFtnFlag(bool const bFlag)   { m_bUpdateFtn = bFlag; }
      62             : };
      63             : 
      64             : SwUndo * MakeUndoDelSection(SwSectionFmt const&);
      65             : 
      66             : SwUndo * MakeUndoUpdateSection(SwSectionFmt const&, bool const);
      67             : 
      68             : #endif // INCLUDED_SW_SOURCE_CORE_INC_UNDOSECTION_HXX
      69             : 
      70             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10