LCOV - code coverage report
Current view: top level - libreoffice/sfx2/inc/sfx2 - templaterepository.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 7 0.0 %
Date: 2012-12-27 Functions: 0 8 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             : 
      10             : #ifndef __SFX2_TEMPLATEREPOSITORY_HXX__
      11             : #define __SFX2_TEMPLATEREPOSITORY_HXX__
      12             : 
      13             : #include <sfx2/templateproperties.hxx>
      14             : 
      15             : class TemplateRepository
      16             : {
      17             : public:
      18             : 
      19           0 :     TemplateRepository () : mnId(0) { };
      20             : 
      21           0 :     virtual ~TemplateRepository () { };
      22             : 
      23           0 :     void setURL (const rtl::OUString &rURL) { maUrl = rURL; }
      24             : 
      25           0 :     const rtl::OUString& getURL () const { return maUrl; }
      26             : 
      27           0 :     void insertTemplate (const TemplateItemProperties &prop) { maTemplates.push_back(prop); }
      28             : 
      29           0 :     void clearTemplates () { maTemplates.clear(); }
      30             : 
      31           0 :     const std::vector<TemplateItemProperties>& getTemplates () const { return maTemplates; }
      32             : 
      33             : public:
      34             : 
      35             :     sal_uInt16 mnId;
      36             :     rtl::OUString maTitle;
      37             : 
      38             : private:
      39             : 
      40             :     rtl::OUString maUrl;
      41             :     std::vector<TemplateItemProperties> maTemplates;
      42             : };
      43             : 
      44             : #endif // __SFX2_TEMPLATEREPOSITORY_HXX__
      45             : 
      46             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10