LCOV - code coverage report
Current view: top level - libreoffice/solver/unxlngi6.pro/inc/xmloff - settingsstore.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 2 2 100.0 %
Date: 2012-12-17 Functions: 2 2 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             :  * Version: MPL 1.1 / GPLv3+ / LGPLv3+
       4             :  *
       5             :  * The contents of this file are subject to the Mozilla Public License Version
       6             :  * 1.1 (the "License"); you may not use this file except in compliance with
       7             :  * the License or as specified alternatively below. You may obtain a copy of
       8             :  * the License at http://www.mozilla.org/MPL/
       9             :  *
      10             :  * Software distributed under the License is distributed on an "AS IS" basis,
      11             :  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
      12             :  * for the specific language governing rights and limitations under the
      13             :  * License.
      14             :  *
      15             :  * Major Contributor(s):
      16             :  * Copyright (C) 2011 Novell, Inc. <michael.meeks@novell.com> (initial developer)
      17             :  *
      18             :  * All Rights Reserved.
      19             :  *
      20             :  * For minor contributions see the git repository.
      21             :  *
      22             :  * Alternatively, the contents of this file may be used under the terms of
      23             :  * either the GNU General Public License Version 3 or later (the "GPLv3+"), or
      24             :  * the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
      25             :  * in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
      26             :  * instead of those above.
      27             :  */
      28             : 
      29             : // Simple interface to allow serialization of document settings
      30             : 
      31             : #ifndef _XMLOFF_SETTINGS_STORE_HXX
      32             : #define _XMLOFF_SETTINGS_STORE_HXX
      33             : 
      34             : #include <vector>
      35             : #include <com/sun/star/beans/PropertyValue.hpp>
      36             : #include <com/sun/star/embed/XStorage.hpp>
      37             : 
      38             : // Scans list of properties for certain URL properties that could refer
      39             : // to internal objects, and initializes from these.
      40           8 : class DocumentSettingsSerializer {
      41             : public:
      42             :   // Import objects and update properties (eliding URLs)
      43             :   virtual com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>
      44             :         filterStreamsFromStorage(
      45             :                 const com::sun::star::uno::Reference< com::sun::star::embed::XStorage > &xStorage,
      46             :                 const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>& aConfigProps ) = 0;
      47             :   // Export objects and update properties with relative URLs into this storage
      48             :   virtual com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>
      49             :         filterStreamsToStorage(
      50             :                 const com::sun::star::uno::Reference< com::sun::star::embed::XStorage > &xStorage,
      51             :                 const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>& aConfigProps ) = 0;
      52             : 
      53             : protected:
      54           8 :     ~DocumentSettingsSerializer() {}
      55             : };
      56             : 
      57             : #endif // _XMLOFF_SETTINGS_STORE_HXX
      58             : 
      59             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10