(incubating) | The Free and Open Productivity Suite

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous

Content for OpenOffice.org version 3.3.

:: com :: sun :: star :: script ::

deprecated interface XStarBasicAccess
Usage Restrictions
deprecated
Description
Interface representing a library and provides access to its modules

Methods' Summary
getLibraryContainer returns the library container giving access to the libraries stored in a document or basic library file.  
createLibrary Creates an empty library. This method can be called alternatively to accessing directly the NameContainer returned by getLibraryContainer. By using this method together with addModule and addStarBasicDialog the caller does not have to implement XStarBasicLibraryInfo, XModuleInfo, and XStarBasicDialogInfo  
addModule Adds a module to an existing (e.g., created by createLibrary) library. By using this method together with createLibrary the caller does not have to implement XStarBasicLibraryInfo and XModuleInfo.  
addDialog Adds an old style basic dialog (SI controls) to an existing (e.g., created by createLibrary) library. By using this method together with createLibrary the caller does not have to implement XStarBasicLibraryInfo and XStarBasicDialogInfo  
Methods' Details
getLibraryContainer
::com::sun::star::container::XNameContainer
getLibraryContainer();

Description
returns the library container giving access to the libraries stored in a document or basic library file.
createLibrary
void
createLibrary( [in] string  LibName,
[in] string  Password,
[in] string  ExternalSourceURL,
[in] string  LinkTargetURL )
raises( ::com::sun::star::container::ElementExistException );

Description
Creates an empty library. This method can be called alternatively to accessing directly the NameContainer returned by getLibraryContainer. By using this method together with addModule and addStarBasicDialog the caller does not have to implement XStarBasicLibraryInfo, XModuleInfo, and XStarBasicDialogInfo
addModule
void
addModule( [in] string  LibraryName,
[in] string  ModuleName,
[in] string  Language,
[in] string  Source )
raises( ::com::sun::star::container::NoSuchElementException );

Description
Adds a module to an existing (e.g., created by createLibrary) library. By using this method together with createLibrary the caller does not have to implement XStarBasicLibraryInfo and XModuleInfo.
Throws
NoSuchElementException if the library doesn't exist.
addDialog
void
addDialog( [in] string  LibraryName,
[in] string  DialogName,
[in] sequence< byte >  Data )
raises( ::com::sun::star::container::NoSuchElementException );

Description
Adds an old style basic dialog (SI controls) to an existing (e.g., created by createLibrary) library. By using this method together with createLibrary the caller does not have to implement XStarBasicLibraryInfo and XStarBasicDialogInfo
Throws
NoSuchElementException if the library doesn't exist.
Top of Page

Apache OpenOffice is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.

Copyright & License
Apache and the Apache feather logos are trademarks of The Apache Software Foundation. OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.