Bump version to 6.4-15
[LibreOffice.git] / sfx2 / inc / guisaveas.hxx
blob5e73557096802d5822dcaf3a75b160d28ce60e29
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 <sfx2/signaturestate.hxx>
34 namespace com { namespace sun { namespace star {
35 namespace document {
36 class XDocumentProperties;
38 } } }
40 namespace weld { class Window; }
41 class ModelData_Impl;
43 class SfxStoringHelper
45 friend class ModelData_Impl;
47 private:
48 css::uno::Reference< css::container::XNameAccess > m_xFilterCFG;
49 css::uno::Reference< css::container::XContainerQuery > m_xFilterQuery;
50 css::uno::Reference< css::frame::XModuleManager2 > m_xModuleManager;
52 css::uno::Reference< css::container::XNameAccess > const & GetFilterConfiguration();
53 css::uno::Reference< css::container::XContainerQuery > const & GetFilterQuery();
54 css::uno::Reference< css::frame::XModuleManager2 > const & GetModuleManager();
56 public:
57 SfxStoringHelper();
59 bool GUIStoreModel(
60 const css::uno::Reference< css::frame::XModel >& xModel,
61 const OUString& aSlotName,
62 css::uno::Sequence< css::beans::PropertyValue >& aArgsSequence,
63 bool bPreselectPassword,
64 SignatureState nDocumentSignatureState );
66 static bool CheckFilterOptionsAppearance(
67 const css::uno::Reference< css::container::XNameAccess >& xFilterCFG,
68 const OUString& aFilterName );
71 static void SetDocInfoState(
72 const css::uno::Reference< css::frame::XModel >& xModel,
73 const css::uno::Reference< css::document::XDocumentProperties>& i_xOldDocInfo );
75 static bool WarnUnacceptableFormat(
76 const css::uno::Reference< css::frame::XModel >& xModel,
77 const OUString& aOldUIName,
78 const OUString& aDefExtension,
79 bool rDefaultIsAlien );
81 static css::uno::Reference<css::awt::XWindow> GetModelXWindow(const css::uno::Reference<css::frame::XModel>& rModel);
82 static weld::Window* GetModelWindow( const css::uno::Reference< css::frame::XModel >& xModel );
86 #endif
88 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */