Use o3tl::convert in Math
[LibreOffice.git] / sfx2 / inc / guisaveas.hxx
blobc19f78e3fdf13582dab9a6235c2f8f75cf5cb179
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 <sal/config.h>
25 #include <string_view>
27 #include <com/sun/star/uno/Sequence.hxx>
28 #include <com/sun/star/beans/PropertyValue.hpp>
29 #include <com/sun/star/container/XNameAccess.hpp>
30 #include <com/sun/star/container/XContainerQuery.hpp>
31 #include <com/sun/star/frame/XModel.hpp>
32 #include <com/sun/star/frame/XModuleManager2.hpp>
34 #include <sfx2/signaturestate.hxx>
37 namespace com::sun::star::document { class XDocumentProperties; }
39 namespace weld { class Window; }
40 class ModelData_Impl;
42 class SfxStoringHelper
44 friend class ModelData_Impl;
46 private:
47 css::uno::Reference< css::container::XNameAccess > m_xFilterCFG;
48 css::uno::Reference< css::container::XContainerQuery > m_xFilterQuery;
49 css::uno::Reference< css::frame::XModuleManager2 > m_xModuleManager;
51 css::uno::Reference< css::container::XNameAccess > const & GetFilterConfiguration();
52 css::uno::Reference< css::container::XContainerQuery > const & GetFilterQuery();
53 css::uno::Reference< css::frame::XModuleManager2 > const & GetModuleManager();
55 public:
56 SfxStoringHelper();
58 bool GUIStoreModel(
59 const css::uno::Reference< css::frame::XModel >& xModel,
60 std::u16string_view aSlotName,
61 css::uno::Sequence< css::beans::PropertyValue >& aArgsSequence,
62 bool bPreselectPassword,
63 SignatureState nDocumentSignatureState );
65 static bool CheckFilterOptionsAppearance(
66 const css::uno::Reference< css::container::XNameAccess >& xFilterCFG,
67 const OUString& aFilterName );
70 static void SetDocInfoState(
71 const css::uno::Reference< css::frame::XModel >& xModel,
72 const css::uno::Reference< css::document::XDocumentProperties>& i_xOldDocInfo );
74 static bool WarnUnacceptableFormat(
75 const css::uno::Reference< css::frame::XModel >& xModel,
76 std::u16string_view aOldUIName,
77 const OUString& aDefExtension,
78 bool rDefaultIsAlien );
80 static css::uno::Reference<css::awt::XWindow> GetModelXWindow(const css::uno::Reference<css::frame::XModel>& rModel);
81 static weld::Window* GetModelWindow( const css::uno::Reference< css::frame::XModel >& xModel );
85 #endif
87 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */