nss: upgrade to release 3.73
[LibreOffice.git] / sfx2 / inc / guisaveas.hxx
bloba62c5fc3822e7d71a2d3c2c0f5b1a93774ba6a2d
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/container/XNameAccess.hpp>
26 #include <com/sun/star/container/XContainerQuery.hpp>
27 #include <com/sun/star/frame/XModel.hpp>
28 #include <com/sun/star/frame/XModuleManager2.hpp>
30 #include <sfx2/signaturestate.hxx>
33 namespace com::sun::star::document { class XDocumentProperties; }
35 namespace weld { class Window; }
36 class ModelData_Impl;
38 class SfxStoringHelper
40 friend class ModelData_Impl;
42 private:
43 css::uno::Reference< css::container::XNameAccess > m_xFilterCFG;
44 css::uno::Reference< css::container::XContainerQuery > m_xFilterQuery;
45 css::uno::Reference< css::frame::XModuleManager2 > m_xModuleManager;
47 css::uno::Reference< css::container::XNameAccess > const & GetFilterConfiguration();
48 css::uno::Reference< css::container::XContainerQuery > const & GetFilterQuery();
49 css::uno::Reference< css::frame::XModuleManager2 > const & GetModuleManager();
51 public:
52 SfxStoringHelper();
54 bool GUIStoreModel(
55 const css::uno::Reference< css::frame::XModel >& xModel,
56 const OUString& aSlotName,
57 css::uno::Sequence< css::beans::PropertyValue >& aArgsSequence,
58 bool bPreselectPassword,
59 SignatureState nDocumentSignatureState );
61 static bool CheckFilterOptionsAppearance(
62 const css::uno::Reference< css::container::XNameAccess >& xFilterCFG,
63 const OUString& aFilterName );
66 static void SetDocInfoState(
67 const css::uno::Reference< css::frame::XModel >& xModel,
68 const css::uno::Reference< css::document::XDocumentProperties>& i_xOldDocInfo );
70 static bool WarnUnacceptableFormat(
71 const css::uno::Reference< css::frame::XModel >& xModel,
72 std::u16string_view aOldUIName,
73 const OUString& aDefExtension,
74 bool rDefaultIsAlien );
76 static css::uno::Reference<css::awt::XWindow> GetModelXWindow(const css::uno::Reference<css::frame::XModel>& rModel);
77 static weld::Window* GetModelWindow( const css::uno::Reference< css::frame::XModel >& xModel );
81 #endif
83 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */