LCOV - code coverage report
Current view: top level - usr/local/src/libreoffice/sc/source/filter/xml - editattributemap.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 1 1 100.0 %
Date: 2013-07-09 Functions: 1 1 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             : 
      10             : #ifndef __SC_XML_EDITATTRIBUTEMAP_HXX__
      11             : #define __SC_XML_EDITATTRIBUTEMAP_HXX__
      12             : 
      13             : #include "rtl/ustring.hxx"
      14             : 
      15             : #include <boost/unordered_map.hpp>
      16             : 
      17             : /**
      18             :  * Provide mapping from ODF text formatting styles to EditEngine's, for
      19             :  * rich-text cell content import.
      20             :  */
      21           4 : class ScXMLEditAttributeMap
      22             : {
      23             : public:
      24             :     struct Entry
      25             :     {
      26             :         sal_uInt16 mnItemID;
      27             :         sal_uInt8 mnFlag;
      28             : 
      29             :         Entry(sal_uInt16 nItemID, sal_uInt8 nFlag);
      30             :     };
      31             : 
      32             :     ScXMLEditAttributeMap();
      33             : 
      34             :     const Entry* getEntry(const OUString& rXMLName) const;
      35             : 
      36             : private:
      37             :     typedef boost::unordered_map<OUString, Entry, OUStringHash> EntriesType;
      38             :     EntriesType maEntries;
      39             : };
      40             : 
      41             : #endif
      42             : 
      43             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10