1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
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/.
12 #include <sal/config.h>
14 #include "basctldllapi.h"
15 #include "scriptdocument.hxx"
16 #include <sfx2/dispatch.hxx>
17 #include <vcl/weld.hxx>
21 BASCTL_DLLPUBLIC
bool IsValidSbxName(std::u16string_view rName
);
22 BASCTL_DLLPUBLIC SAL_RET_MAYBENULL SfxDispatcher
* GetDispatcher();
23 BASCTL_DLLPUBLIC
void MarkDocumentModified(const ScriptDocument
& rDocument
);
25 BASCTL_DLLPUBLIC
bool QueryDelDialog(std::u16string_view rName
, weld::Widget
* pParent
);
26 BASCTL_DLLPUBLIC
bool QueryDelModule(std::u16string_view rName
, weld::Widget
* pParent
);
27 BASCTL_DLLPUBLIC
bool QueryDelLib(std::u16string_view rName
, bool bRef
, weld::Widget
* pParent
);
29 QueryPassword(weld::Widget
* pDialogParent
,
30 const css::uno::Reference
<css::script::XLibraryContainer
>& xLibContainer
,
31 const OUString
& rLibName
, OUString
& rPassword
, bool bRepeat
= false,
32 bool bNewTitle
= false);
34 BASCTL_DLLPUBLIC
void ImportLib(const ScriptDocument
& rDocument
, weld::Dialog
* pDialog
,
35 const std::function
<void(OUString
& rLibName
)>& func_remove_entry
,
36 const std::function
<void(OUString
& rLibName
)>& func_insert_entry
,
37 const std::function
<void()>& func_insert_entries
);
39 BASCTL_DLLPUBLIC
void Export(const ScriptDocument
& rDocument
, const OUString
& aLibName
,
40 weld::Dialog
* pDialog
);
43 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */