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 _SFX_GUISAVEAS_HXX_
21 #define _SFX_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
;
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();
60 sal_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 sal_Bool bPreselectPassword
,
65 OUString aUserSelectedName
,
66 sal_uInt16 nDocumentSignatureState
= SIGNATURESTATE_NOSIGNATURES
);
68 static sal_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 sal_Bool
WarnUnacceptableFormat(
80 const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XModel
>& xModel
,
83 sal_Bool bCanProceedFurther
);
85 static Window
* GetModelWindow( const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XModel
>& xModel
);
91 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */