LCOV - code coverage report
Current view: top level - libreoffice/sw/source/core/inc - textapi.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 5 5 100.0 %
Date: 2012-12-27 Functions: 5 5 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             : #include <editeng/unoedsrc.hxx>
      21             : #include <editeng/unotext.hxx>
      22             : #include <editeng/eeitem.hxx>
      23             : #include <editeng/outliner.hxx>
      24             : #include <editeng/unoipset.hxx>
      25             : #include <editeng/unoprnms.hxx>
      26             : #include <editeng/unoforou.hxx>
      27             : 
      28             : class SwDoc;
      29             : 
      30             : struct SwTextAPIEditSource_Impl;
      31             : class SwTextAPIEditSource : public SvxEditSource
      32             : {
      33             :     SwTextAPIEditSource_Impl* pImpl;
      34             : 
      35             :     virtual SvxEditSource*      Clone() const;
      36             :     virtual SvxTextForwarder*   GetTextForwarder();
      37             :     virtual void                UpdateData();
      38             :     explicit            SwTextAPIEditSource( const SwTextAPIEditSource& rSource );
      39             : 
      40             : public:
      41             :                         SwTextAPIEditSource(SwDoc* pDoc);
      42             :     virtual             ~SwTextAPIEditSource();
      43             : 
      44             :     void                Dispose();
      45             :     void                SetText( OutlinerParaObject& rText );
      46             :     void                SetString( const String& rText );
      47             :     OutlinerParaObject* CreateText();
      48             :     String              GetText();
      49             : };
      50             : 
      51             : class SwTextAPIObject : public SvxUnoText
      52             : {
      53             :     SwTextAPIEditSource* pSource;
      54             : public:
      55             :                         SwTextAPIObject( SwTextAPIEditSource* p);
      56             :     virtual             ~SwTextAPIObject() throw();
      57           8 :     void                DisposeEditSource() { pSource->Dispose(); }
      58           6 :     OutlinerParaObject* CreateText() { return pSource->CreateText(); }
      59           2 :     void                SetString( const String& rText ) { pSource->SetString( rText ); }
      60           2 :     void                SetText( OutlinerParaObject& rText ) { pSource->SetText( rText ); }
      61           6 :     String              GetText() { return pSource->GetText(); }
      62             : };
      63             : 
      64             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10