LCOV - code coverage report
Current view: top level - libreoffice/sw/inc - IDocumentStylePoolAccess.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 2 2 100.0 %
Date: 2012-12-27 Functions: 2 3 66.7 %
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 IDOCUMENTSTYLEPOOLACCESS_HXX_INCLUDED
      21             :  #define IDOCUMENTSTYLEPOOLACCESS_HXX_INCLUDED
      22             : 
      23             :  #ifndef _SAL_TYPES_H_
      24             :  #include <sal/types.h>
      25             :  #endif
      26             : 
      27             :  class SwTxtFmtColl;
      28             :  class SwCharFmt;
      29             :  class SwFmt;
      30             :  class SwFrmFmt;
      31             :  class String;
      32             :  class SwNumRule;
      33             :  class SwPageDesc;
      34             : 
      35             :  /** Access to the style pool
      36             :  */
      37         276 :  class IDocumentStylePoolAccess
      38             :  {
      39             :  public:
      40             : 
      41             :     /** Return "Auto-Collection with ID.
      42             :         Create, if it does not yet exist.
      43             :         If string pointer is defined request only description
      44             :         of attributes, do not create style sheet!
      45             :     */
      46             :     virtual SwTxtFmtColl* GetTxtCollFromPool( sal_uInt16 nId, bool bRegardLanguage = true ) = 0;
      47             : 
      48             :     /** Return required automatic format base class.
      49             :     */
      50             :     virtual SwFmt* GetFmtFromPool( sal_uInt16 nId ) = 0;
      51             : 
      52             :     /** Return required automatic format.
      53             :      */
      54             :     virtual SwFrmFmt* GetFrmFmtFromPool( sal_uInt16 nId ) = 0;
      55             : 
      56             :     virtual SwCharFmt* GetCharFmtFromPool( sal_uInt16 nId ) = 0;
      57             : 
      58             :     /** Return required automatic page style.
      59             :      */
      60             :     virtual SwPageDesc* GetPageDescFromPool( sal_uInt16 nId, bool bRegardLanguage = true ) = 0;
      61             : 
      62             :     virtual SwNumRule* GetNumRuleFromPool( sal_uInt16 nId ) = 0;
      63             : 
      64             :     /** Check whether this "auto-collection" is used in document.
      65             :      */
      66             :     virtual bool IsPoolTxtCollUsed( sal_uInt16 nId ) const = 0;
      67             :     virtual bool IsPoolFmtUsed( sal_uInt16 nId ) const = 0;
      68             :     virtual bool IsPoolPageDescUsed( sal_uInt16 nId ) const = 0;
      69             : 
      70             :  protected:
      71         102 :     virtual ~IDocumentStylePoolAccess() {};
      72             : };
      73             : 
      74             : #endif // IDOCUMENTSTYLEPOOLACCESS_HXX_INCLUDED
      75             : 
      76             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10