Branch data 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 _SFX_GUISAVEAS_HXX_
21 : : #define _SFX_GUISAVEAS_HXX_
22 : :
23 : : #include <com/sun/star/uno/Sequence.hxx>
24 : : #include <com/sun/star/lang/XMultiServiceFactory.hpp>
25 : : #include <com/sun/star/beans/PropertyValue.hpp>
26 : : #include <com/sun/star/beans/NamedValue.hpp>
27 : : #include <com/sun/star/container/XNameAccess.hpp>
28 : : #include <com/sun/star/container/XContainerQuery.hpp>
29 : : #include <com/sun/star/frame/XModel.hpp>
30 : : #include <com/sun/star/frame/XModuleManager.hpp>
31 : :
32 : : #include <comphelper/sequenceashashmap.hxx>
33 : : #include <sfx2/signaturestate.hxx>
34 : :
35 : :
36 : : namespace com { namespace sun { namespace star {
37 : : namespace document {
38 : : class XDocumentInfo;
39 : : }
40 : : } } }
41 : :
42 : : class Window;
43 : : class ModelData_Impl;
44 : :
45 : 0 : class SfxStoringHelper
46 : : {
47 : : friend class ModelData_Impl;
48 : :
49 : : private:
50 : : ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > m_xFactory;
51 : : ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > m_xFilterCFG;
52 : : ::com::sun::star::uno::Reference< ::com::sun::star::container::XContainerQuery > m_xFilterQuery;
53 : : ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModuleManager > m_xModuleManager;
54 : : ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > m_xNamedModManager;
55 : :
56 : : ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > GetServiceFactory();
57 : : ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > GetFilterConfiguration();
58 : : ::com::sun::star::uno::Reference< ::com::sun::star::container::XContainerQuery > GetFilterQuery();
59 : : ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModuleManager > GetModuleManager();
60 : : ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > GetNamedModuleManager();
61 : :
62 : :
63 : : public:
64 : : SfxStoringHelper( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xFactory );
65 : :
66 : : sal_Bool GUIStoreModel(
67 : : const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >& xModel,
68 : : const ::rtl::OUString& aSlotName,
69 : : ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aArgsSequence,
70 : : sal_Bool bPreselectPassword,
71 : : ::rtl::OUString aUserSelectedName,
72 : : sal_uInt16 nDocumentSignatureState = SIGNATURESTATE_NOSIGNATURES );
73 : :
74 : : static sal_Bool CheckFilterOptionsAppearence(
75 : : const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess >& xFilterCFG,
76 : : const ::rtl::OUString& aFilterName );
77 : :
78 : :
79 : : static void SetDocInfoState(
80 : : const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >& xModel,
81 : : const ::com::sun::star::uno::Reference< ::com::sun::star::document::XDocumentInfo>& i_xOldDocInfo,
82 : : sal_Bool bNoModify );
83 : :
84 : : static sal_Bool WarnUnacceptableFormat(
85 : : const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >& xModel,
86 : : ::rtl::OUString aOldUIName,
87 : : ::rtl::OUString aDefUIName,
88 : : sal_Bool bCanProceedFurther );
89 : :
90 : : static Window* GetModelWindow( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >& xModel );
91 : :
92 : : };
93 : :
94 : : #endif
95 : :
96 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|