1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_SFX2_INC_GUISAVEAS_HXX
21 #define INCLUDED_SFX2_INC_GUISAVEAS_HXX
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>
31 #include <comphelper/sequenceashashmap.hxx>
32 #include <sfx2/signaturestate.hxx>
35 namespace com
{ namespace sun
{ namespace star
{
37 class XDocumentProperties
;
41 namespace vcl
{ class Window
; }
44 class SfxStoringHelper
46 friend class ModelData_Impl
;
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
;
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();
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 SignatureState nDocumentSignatureState
= SignatureState::NOSIGNATURES
);
68 static bool CheckFilterOptionsAppearence(
69 const ::com::sun::star::uno::Reference
< ::com::sun::star::container::XNameAccess
>& xFilterCFG
,
70 const OUString
& aFilterName
);
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
,
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 const OUString
& aDefExtension
,
84 bool bCanProceedFurther
,
85 bool rDefaultIsAlien
);
87 static vcl::Window
* GetModelWindow( const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XModel
>& xModel
);
93 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */