LCOV - code coverage report
Current view: top level - sfx2/inc - guisaveas.hxx (source / functions) Hit Total Coverage
Test: commit 0e63ca4fde4e446f346e35849c756a30ca294aab Lines: 0 1 0.0 %
Date: 2014-04-11 Functions: 0 1 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             :  * 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 INCLUDED_SFX2_INC_GUISAVEAS_HXX
      21             : #define INCLUDED_SFX2_INC_GUISAVEAS_HXX
      22             : 
      23             : #include <com/sun/star/uno/Sequence.hxx>
      24             : #include <com/sun/star/beans/PropertyValue.hpp>
      25             : #include <com/sun/star/beans/NamedValue.hpp>
      26             : #include <com/sun/star/container/XNameAccess.hpp>
      27             : #include <com/sun/star/container/XContainerQuery.hpp>
      28             : #include <com/sun/star/frame/XModel.hpp>
      29             : #include <com/sun/star/frame/XModuleManager2.hpp>
      30             : 
      31             : #include <comphelper/sequenceashashmap.hxx>
      32             : #include <sfx2/signaturestate.hxx>
      33             : 
      34             : 
      35             : namespace com { namespace sun { namespace star {
      36             :     namespace document {
      37             :         class XDocumentProperties;
      38             :     }
      39             : } } }
      40             : 
      41             : class Window;
      42             : class ModelData_Impl;
      43             : 
      44           0 : class SfxStoringHelper
      45             : {
      46             :     friend class ModelData_Impl;
      47             : 
      48             : private:
      49             :     ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > m_xFilterCFG;
      50             :     ::com::sun::star::uno::Reference< ::com::sun::star::container::XContainerQuery > m_xFilterQuery;
      51             :     ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModuleManager2 > m_xModuleManager;
      52             : 
      53             :     ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > GetFilterConfiguration();
      54             :     ::com::sun::star::uno::Reference< ::com::sun::star::container::XContainerQuery > GetFilterQuery();
      55             :     ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModuleManager2 > GetModuleManager();
      56             : 
      57             : public:
      58             :     SfxStoringHelper();
      59             : 
      60             :     bool GUIStoreModel(
      61             :                     ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > xModel,
      62             :                     const OUString& aSlotName,
      63             :                     ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aArgsSequence,
      64             :                     bool bPreselectPassword,
      65             :                     const OUString& aUserSelectedName,
      66             :                     sal_uInt16 nDocumentSignatureState = SIGNATURESTATE_NOSIGNATURES );
      67             : 
      68             :     static bool CheckFilterOptionsAppearence(
      69             :                     const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess >& xFilterCFG,
      70             :                     const OUString& aFilterName );
      71             : 
      72             : 
      73             :     static void SetDocInfoState(
      74             :         const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >& xModel,
      75             :         const ::com::sun::star::uno::Reference<
      76             :             ::com::sun::star::document::XDocumentProperties>& i_xOldDocInfo,
      77             :         bool bNoModify );
      78             : 
      79             :     static bool WarnUnacceptableFormat(
      80             :                                     const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >& xModel,
      81             :                                     const OUString& aOldUIName,
      82             :                                     const OUString& aDefUIName,
      83             :                                     bool bCanProceedFurther );
      84             : 
      85             :     static Window* GetModelWindow( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >& xModel );
      86             : 
      87             : };
      88             : 
      89             : #endif
      90             : 
      91             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10