LCOV - code coverage report
Current view: top level - vcl/source/edit - textund2.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 2 0.0 %
Date: 2015-06-13 12:38:46 Functions: 0 4 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             : #ifndef INCLUDED_VCL_SOURCE_EDIT_TEXTUND2_HXX
      20             : #define INCLUDED_VCL_SOURCE_EDIT_TEXTUND2_HXX
      21             : 
      22             : #include "textundo.hxx"
      23             : #include <vcl/textdata.hxx>
      24             : 
      25             : class TextUndoDelPara : public TextUndo
      26             : {
      27             : private:
      28             :     bool            mbDelObject;
      29             :     sal_uLong       mnPara;
      30             :     TextNode*       mpNode; // points at the valid not-destroyed object
      31             : 
      32             : public:
      33             :                     TYPEINFO_OVERRIDE();
      34             :                     TextUndoDelPara( TextEngine* pTextEngine, TextNode* pNode, sal_uLong nPara );
      35             :                     virtual ~TextUndoDelPara();
      36             : 
      37             :     virtual void    Undo() SAL_OVERRIDE;
      38             :     virtual void    Redo() SAL_OVERRIDE;
      39             : 
      40             :     virtual OUString GetComment () const SAL_OVERRIDE;
      41             : };
      42             : 
      43             : class TextUndoConnectParas : public TextUndo
      44             : {
      45             : private:
      46             :     sal_uLong           mnPara;
      47             :     sal_uInt16          mnSepPos;
      48             : 
      49             : public:
      50             :                     TYPEINFO_OVERRIDE();
      51             :                     TextUndoConnectParas( TextEngine* pTextEngine, sal_uLong nPara, sal_uInt16 nSepPos );
      52             :                     virtual ~TextUndoConnectParas();
      53             : 
      54             :     virtual void    Undo() SAL_OVERRIDE;
      55             :     virtual void    Redo() SAL_OVERRIDE;
      56             : 
      57             :     virtual OUString GetComment () const SAL_OVERRIDE;
      58             : };
      59             : 
      60             : class TextUndoSplitPara : public TextUndo
      61             : {
      62             : private:
      63             :     sal_uLong           mnPara;
      64             :     sal_uInt16          mnSepPos;
      65             : 
      66             : public:
      67             :                     TYPEINFO_OVERRIDE();
      68             :                     TextUndoSplitPara( TextEngine* pTextEngine, sal_uLong nPara, sal_uInt16 nSepPos );
      69             :                     virtual ~TextUndoSplitPara();
      70             : 
      71             :     virtual void    Undo() SAL_OVERRIDE;
      72             :     virtual void    Redo() SAL_OVERRIDE;
      73             : 
      74             :     virtual OUString GetComment () const SAL_OVERRIDE;
      75             : };
      76             : 
      77           0 : class TextUndoInsertChars : public TextUndo
      78             : {
      79             : private:
      80             :     TextPaM         maTextPaM;
      81             :     OUString        maText;
      82             : 
      83             : public:
      84             :                     TYPEINFO_OVERRIDE();
      85             :                     TextUndoInsertChars( TextEngine* pTextEngine, const TextPaM& rTextPaM, const OUString& rStr );
      86             : 
      87             :     virtual void    Undo() SAL_OVERRIDE;
      88             :     virtual void    Redo() SAL_OVERRIDE;
      89             : 
      90             :     virtual bool    Merge( SfxUndoAction *pNextAction ) SAL_OVERRIDE;
      91             : 
      92             :     virtual OUString GetComment () const SAL_OVERRIDE;
      93             : };
      94             : 
      95           0 : class TextUndoRemoveChars : public TextUndo
      96             : {
      97             : private:
      98             :     TextPaM         maTextPaM;
      99             :     OUString        maText;
     100             : 
     101             : public:
     102             :                     TYPEINFO_OVERRIDE();
     103             :                     TextUndoRemoveChars( TextEngine* pTextEngine, const TextPaM& rTextPaM, const OUString& rStr );
     104             : 
     105             :     virtual void    Undo() SAL_OVERRIDE;
     106             :     virtual void    Redo() SAL_OVERRIDE;
     107             : 
     108             :     virtual OUString GetComment () const SAL_OVERRIDE;
     109             : };
     110             : 
     111             : class TextUndoSetAttribs: public TextUndo
     112             : {
     113             : private:
     114             :     TextSelection       maSelection;
     115             : 
     116             : public:
     117             :                         TYPEINFO_OVERRIDE();
     118             :                         TextUndoSetAttribs( TextEngine* pTextEngine, const TextSelection& rESel );
     119             :                         virtual ~TextUndoSetAttribs();
     120             : 
     121             :     virtual void        Undo() SAL_OVERRIDE;
     122             :     virtual void        Redo() SAL_OVERRIDE;
     123             : 
     124             :     virtual OUString GetComment () const SAL_OVERRIDE;
     125             : };
     126             : 
     127             : #endif // INCLUDED_VCL_SOURCE_EDIT_TEXTUND2_HXX
     128             : 
     129             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11