LibreOffice Module sw (master) 1
Public Member Functions | Private Attributes | List of all members
SwWordBasic Class Reference

This is a representation of the WordBasic statements and functions that were available in Word version 6.0 and Word for Windows 95. More...

#include <vbawordbasic.hxx>

Inheritance diagram for SwWordBasic:
[legend]
Collaboration diagram for SwWordBasic:
[legend]

Public Member Functions

 SwWordBasic (SwVbaApplication *pApp)
 
virtual sal_Int32 SAL_CALL getMailMergeMainDocumentType () override
 
virtual void SAL_CALL setMailMergeMainDocumentType (sal_Int32 _mailmergemaindocumenttype) override
 
virtual void SAL_CALL FileOpen (const OUString &Name, const css::uno::Any &ConfirmConversions, const css::uno::Any &ReadOnly, const css::uno::Any &AddToMru, const css::uno::Any &PasswordDoc, const css::uno::Any &PasswordDot, const css::uno::Any &Revert, const css::uno::Any &WritePasswordDoc, const css::uno::Any &WritePasswordDot) override
 
virtual void SAL_CALL FileSave () override
 
virtual void SAL_CALL FileSaveAs (const css::uno::Any &Name, const css::uno::Any &Format, const css::uno::Any &LockAnnot, const css::uno::Any &Password, const css::uno::Any &AddToMru, const css::uno::Any &WritePassword, const css::uno::Any &RecommendReadOnly, const css::uno::Any &EmbedFonts, const css::uno::Any &NativePictureFormat, const css::uno::Any &FormsData, const css::uno::Any &SaveAsAOCELetter) override
 
virtual void SAL_CALL FileClose (const css::uno::Any &Save) override
 
virtual void SAL_CALL ToolsOptionsView (const css::uno::Any &DraftFont, const css::uno::Any &WrapToWindow, const css::uno::Any &PicturePlaceHolders, const css::uno::Any &FieldCodes, const css::uno::Any &BookMarks, const css::uno::Any &FieldShading, const css::uno::Any &StatusBar, const css::uno::Any &HScroll, const css::uno::Any &VScroll, const css::uno::Any &StyleAreaWidth, const css::uno::Any &Tabs, const css::uno::Any &Spaces, const css::uno::Any &Paras, const css::uno::Any &Hyphens, const css::uno::Any &Hidden, const css::uno::Any &ShowAll, const css::uno::Any &Drawings, const css::uno::Any &Anchors, const css::uno::Any &TextBoundaries, const css::uno::Any &VRuler, const css::uno::Any &Highlight) override
 
virtual css::uno::Any SAL_CALL WindowName (const css::uno::Any &Number) override
 
virtual css::uno::Any SAL_CALL ExistingBookmark (const OUString &Name) override
 
virtual void SAL_CALL MailMergeOpenDataSource (const OUString &Name, const css::uno::Any &Format, const css::uno::Any &ConfirmConversions, const css::uno::Any &ReadOnly, const css::uno::Any &LinkToSource, const css::uno::Any &AddToRecentFiles, const css::uno::Any &PasswordDocument, const css::uno::Any &PasswordTemplate, const css::uno::Any &Revert, const css::uno::Any &WritePasswordDocument, const css::uno::Any &WritePasswordTemplate, const css::uno::Any &Connection, const css::uno::Any &SQLStatement, const css::uno::Any &SQLStatement1, const css::uno::Any &OpenExclusive, const css::uno::Any &SubType) override
 
virtual css::uno::Any SAL_CALL AppMaximize (const css::uno::Any &WindowName, const css::uno::Any &State) override
 
virtual css::uno::Any SAL_CALL DocMaximize (const css::uno::Any &State) override
 
virtual void SAL_CALL AppShow (const css::uno::Any &WindowName) override
 
virtual css::uno::Any SAL_CALL AppCount () override
 
virtual void SAL_CALL MsgBox (const OUString &sPrompt) override
 
virtual void SAL_CALL ScreenUpdating (const css::uno::Any &On) override
 

Private Attributes

SwVbaApplicationmpApp
 

Detailed Description

This is a representation of the WordBasic statements and functions that were available in Word version 6.0 and Word for Windows 95.

It can be specified as "Application.WordBasic." or "WordBasic.".

Starting with Word 2000, old macros were automatically converted into Visual Basic modules, and the WordBasic prefix was added where no VBA methods precisely corresponded.

In other words, it is a compatibility shim.

Definition at line 36 of file vbawordbasic.hxx.

Constructor & Destructor Documentation

◆ SwWordBasic()

SwWordBasic::SwWordBasic ( SwVbaApplication pApp)

Definition at line 41 of file vbawordbasic.cxx.

Member Function Documentation

◆ AppCount()

css::uno::Any SAL_CALL SwWordBasic::AppCount ( )
overridevirtual

Definition at line 239 of file vbawordbasic.cxx.

References SAL_INFO.

◆ AppMaximize()

css::uno::Any SAL_CALL SwWordBasic::AppMaximize ( const css::uno::Any &  WindowName,
const css::uno::Any &  State 
)
overridevirtual

Definition at line 215 of file vbawordbasic.cxx.

References SAL_INFO, and WindowName().

◆ AppShow()

void SAL_CALL SwWordBasic::AppShow ( const css::uno::Any &  WindowName)
overridevirtual

Definition at line 232 of file vbawordbasic.cxx.

References SAL_INFO, and WindowName().

◆ DocMaximize()

css::uno::Any SAL_CALL SwWordBasic::DocMaximize ( const css::uno::Any &  State)
overridevirtual

Definition at line 224 of file vbawordbasic.cxx.

References SAL_INFO.

◆ ExistingBookmark()

css::uno::Any SAL_CALL SwWordBasic::ExistingBookmark ( const OUString &  Name)
overridevirtual

Definition at line 192 of file vbawordbasic.cxx.

References SwVbaApplication::getActiveDocument(), mpApp, and Name.

◆ FileClose()

void SAL_CALL SwWordBasic::FileClose ( const css::uno::Any &  Save)
overridevirtual

◆ FileOpen()

void SAL_CALL SwWordBasic::FileOpen ( const OUString &  Name,
const css::uno::Any &  ConfirmConversions,
const css::uno::Any &  ReadOnly,
const css::uno::Any &  AddToMru,
const css::uno::Any &  PasswordDoc,
const css::uno::Any &  PasswordDot,
const css::uno::Any &  Revert,
const css::uno::Any &  WritePasswordDoc,
const css::uno::Any &  WritePasswordDot 
)
overridevirtual

Definition at line 57 of file vbawordbasic.cxx.

References SwVbaApplication::Documents(), mpApp, Name, and ReadOnly.

◆ FileSave()

void SAL_CALL SwWordBasic::FileSave ( )
overridevirtual

Definition at line 73 of file vbawordbasic.cxx.

References dispatchRequests(), SwVbaApplication::getCurrentDocument(), mpApp, and xModel.

Referenced by FileClose().

◆ FileSaveAs()

void SAL_CALL SwWordBasic::FileSaveAs ( const css::uno::Any &  Name,
const css::uno::Any &  Format,
const css::uno::Any &  LockAnnot,
const css::uno::Any &  Password,
const css::uno::Any &  AddToMru,
const css::uno::Any &  WritePassword,
const css::uno::Any &  RecommendReadOnly,
const css::uno::Any &  EmbedFonts,
const css::uno::Any &  NativePictureFormat,
const css::uno::Any &  FormsData,
const css::uno::Any &  SaveAsAOCELetter 
)
overridevirtual

◆ getMailMergeMainDocumentType()

sal_Int32 SAL_CALL SwWordBasic::getMailMergeMainDocumentType ( )
overridevirtual

Definition at line 46 of file vbawordbasic.cxx.

References SwVbaMailMerge::get(), SwVbaApplication::getContext(), and mpApp.

◆ MailMergeOpenDataSource()

void SAL_CALL SwWordBasic::MailMergeOpenDataSource ( const OUString &  Name,
const css::uno::Any &  Format,
const css::uno::Any &  ConfirmConversions,
const css::uno::Any &  ReadOnly,
const css::uno::Any &  LinkToSource,
const css::uno::Any &  AddToRecentFiles,
const css::uno::Any &  PasswordDocument,
const css::uno::Any &  PasswordTemplate,
const css::uno::Any &  Revert,
const css::uno::Any &  WritePasswordDocument,
const css::uno::Any &  WritePasswordTemplate,
const css::uno::Any &  Connection,
const css::uno::Any &  SQLStatement,
const css::uno::Any &  SQLStatement1,
const css::uno::Any &  OpenExclusive,
const css::uno::Any &  SubType 
)
overridevirtual

◆ MsgBox()

void SAL_CALL SwWordBasic::MsgBox ( const OUString &  sPrompt)
overridevirtual

◆ ScreenUpdating()

void SAL_CALL SwWordBasic::ScreenUpdating ( const css::uno::Any &  On)
overridevirtual

Definition at line 258 of file vbawordbasic.cxx.

References mpApp, and On.

◆ setMailMergeMainDocumentType()

void SAL_CALL SwWordBasic::setMailMergeMainDocumentType ( sal_Int32  _mailmergemaindocumenttype)
overridevirtual

Definition at line 51 of file vbawordbasic.cxx.

References SwVbaMailMerge::get(), SwVbaApplication::getContext(), and mpApp.

◆ ToolsOptionsView()

void SAL_CALL SwWordBasic::ToolsOptionsView ( const css::uno::Any &  DraftFont,
const css::uno::Any &  WrapToWindow,
const css::uno::Any &  PicturePlaceHolders,
const css::uno::Any &  FieldCodes,
const css::uno::Any &  BookMarks,
const css::uno::Any &  FieldShading,
const css::uno::Any &  StatusBar,
const css::uno::Any &  HScroll,
const css::uno::Any &  VScroll,
const css::uno::Any &  StyleAreaWidth,
const css::uno::Any &  Tabs,
const css::uno::Any &  Spaces,
const css::uno::Any &  Paras,
const css::uno::Any &  Hyphens,
const css::uno::Any &  Hidden,
const css::uno::Any &  ShowAll,
const css::uno::Any &  Drawings,
const css::uno::Any &  Anchors,
const css::uno::Any &  TextBoundaries,
const css::uno::Any &  VRuler,
const css::uno::Any &  Highlight 
)
overridevirtual

Definition at line 161 of file vbawordbasic.cxx.

References Highlight, SAL_INFO, and VRuler.

◆ WindowName()

css::uno::Any SAL_CALL SwWordBasic::WindowName ( const css::uno::Any &  Number)
overridevirtual

Definition at line 187 of file vbawordbasic.cxx.

References SwVbaApplication::getActiveSwVbaWindow(), and mpApp.

Referenced by AppMaximize(), and AppShow().

Member Data Documentation

◆ mpApp

SwVbaApplication* SwWordBasic::mpApp
private

The documentation for this class was generated from the following files: