android: Update app-specific/MIME type icons
[LibreOffice.git] / sw / source / ui / vba / vbawordbasic.hxx
blob05589f0c58c5890e4ec811d90e6992aeab4835d4
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
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 .
19 #ifndef INCLUDED_SW_SOURCE_UI_VBA_VBAWORDBASIC_HXX
20 #define INCLUDED_SW_SOURCE_UI_VBA_VBAWORDBASIC_HXX
22 class SwVbaApplication;
24 /**
25 * This is a representation of the WordBasic statements and functions
26 * that were available in Word version 6.0 and Word for Windows 95.
28 * It can be specified as "Application.WordBasic." or "WordBasic.".
30 * Starting with Word 2000, old macros were automatically converted
31 * into Visual Basic modules, and the WordBasic prefix was added where
32 * no VBA methods precisely corresponded.
34 * In other words, it is a compatibility shim.
36 class SwWordBasic : public cppu::WeakImplHelper<ooo::vba::word::XWordBasic>
38 private:
39 SwVbaApplication* mpApp;
41 public:
42 SwWordBasic(SwVbaApplication* pApp);
44 // XWordBasic
45 virtual sal_Int32 SAL_CALL getMailMergeMainDocumentType() override;
46 virtual void SAL_CALL
47 setMailMergeMainDocumentType(sal_Int32 _mailmergemaindocumenttype) override;
49 virtual void SAL_CALL FileOpen(const OUString& Name, const css::uno::Any& ConfirmConversions,
50 const css::uno::Any& ReadOnly, const css::uno::Any& AddToMru,
51 const css::uno::Any& PasswordDoc,
52 const css::uno::Any& PasswordDot, const css::uno::Any& Revert,
53 const css::uno::Any& WritePasswordDoc,
54 const css::uno::Any& WritePasswordDot) override;
55 virtual void SAL_CALL FileSave() override;
56 virtual void SAL_CALL FileSaveAs(
57 const css::uno::Any& Name, const css::uno::Any& Format, const css::uno::Any& LockAnnot,
58 const css::uno::Any& Password, const css::uno::Any& AddToMru,
59 const css::uno::Any& WritePassword, const css::uno::Any& RecommendReadOnly,
60 const css::uno::Any& EmbedFonts, const css::uno::Any& NativePictureFormat,
61 const css::uno::Any& FormsData, const css::uno::Any& SaveAsAOCELetter) override;
62 virtual void SAL_CALL FileClose(const css::uno::Any& Save) override;
63 virtual void SAL_CALL ToolsOptionsView(
64 const css::uno::Any& DraftFont, const css::uno::Any& WrapToWindow,
65 const css::uno::Any& PicturePlaceHolders, const css::uno::Any& FieldCodes,
66 const css::uno::Any& BookMarks, const css::uno::Any& FieldShading,
67 const css::uno::Any& StatusBar, const css::uno::Any& HScroll, const css::uno::Any& VScroll,
68 const css::uno::Any& StyleAreaWidth, const css::uno::Any& Tabs, const css::uno::Any& Spaces,
69 const css::uno::Any& Paras, const css::uno::Any& Hyphens, const css::uno::Any& Hidden,
70 const css::uno::Any& ShowAll, const css::uno::Any& Drawings, const css::uno::Any& Anchors,
71 const css::uno::Any& TextBoundaries, const css::uno::Any& VRuler,
72 const css::uno::Any& Highlight) override;
73 virtual css::uno::Any SAL_CALL WindowName(const css::uno::Any& Number) override;
74 virtual css::uno::Any SAL_CALL ExistingBookmark(const OUString& Name) override;
75 virtual void SAL_CALL MailMergeOpenDataSource(
76 const OUString& Name, const css::uno::Any& Format, const css::uno::Any& ConfirmConversions,
77 const css::uno::Any& ReadOnly, const css::uno::Any& LinkToSource,
78 const css::uno::Any& AddToRecentFiles, const css::uno::Any& PasswordDocument,
79 const css::uno::Any& PasswordTemplate, const css::uno::Any& Revert,
80 const css::uno::Any& WritePasswordDocument, const css::uno::Any& WritePasswordTemplate,
81 const css::uno::Any& Connection, const css::uno::Any& SQLStatement,
82 const css::uno::Any& SQLStatement1, const css::uno::Any& OpenExclusive,
83 const css::uno::Any& SubType) override;
84 virtual css::uno::Any SAL_CALL AppMaximize(const css::uno::Any& WindowName,
85 const css::uno::Any& State) override;
86 virtual css::uno::Any SAL_CALL DocMaximize(const css::uno::Any& State) override;
87 virtual void SAL_CALL AppShow(const css::uno::Any& WindowName) override;
88 virtual css::uno::Any SAL_CALL AppCount() override;
89 virtual void SAL_CALL MsgBox(const OUString& sPrompt) override;
90 virtual void SAL_CALL ScreenUpdating(const css::uno::Any& On) override;
93 #endif // INCLUDED_SW_SOURCE_UI_VBA_VBAWORDBASIC_HXX
95 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */