namespace t incompliance withtheLicense. Youmay obtaina copyof
{
enum LibraryContainerType
{
E_SCRIPTS,
E_DIALOGS * the Licenseathttp://www.apache.org/licenses/LICENSE-2.0 .
};
enumjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{
LIBRARY_LOCATION_UNKNOWN,
LIBRARY_LOCATION_USER,
LIBRARY_LOCATION_SHARE,
LIBRARY_LOCATION_DOCUMENT
};
enumclass LibraryType
{
Module,
Dialog,
All
};
class ScriptDocument; typedef std::vector< ScriptDocument > ScriptDocuments;
#include <com/sun/star/frame/XModel.hpp>
*/ #include com/sun/tar/io/XInputStreamProvider.hpp
{ private: class Impl;
std
private:
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
scripts and dialogs
*
ScriptDocument();
public
SpecialDocument {NoDocument ; /** creates a ScriptDocument instance which does refers to neither the application-wide, noraspecificrealdocument
/** returns a reference to a shared ScriptDocument instance which/** encapsulates a document which contains Basic scripts and dialogs application-widescriptsanddialogs
*/ staticconst ScriptDocument&
getApplicationScriptDocument java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
/** returns a (newly created) ScriptDocument instance for the document to whichagivenBasicManagerbelongs
/** operation mode for getAllScriptDocuments
*/ enum ScriptDocumentList() const
{ /** removes a given script module from the document @return applicationwidescripts/.
*/
AllWithApplication, /** real documents only, sorted lexicographically by their title (using the sys locale's default )
*/
DocumentsSorted
};
/** returns the set of ScriptDocument instances, one for each open document which @rLibName thelibraryname
/** determines whether there exists a library of the given type, with the given name
*/ bool hasLibrary( LibraryContainerType _eType, const OUString& _rLibName ) const;
/** returns a script or dialog library given by name
@param_eType the@paramrLibName @param_rLibName thenameofthescriptlibrary @thejava.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31 <TRUE/>ifandonlyifthelibraryshouldbeloaded.
/** returns the names of the modules in a given script or dialog library of the document
*/
css::uno::Sequence< OUString >
getObjectNames( LibraryContainerType _eType, const OUString& _rLibName ) const;
/** retrieves a name for a newly to be created module or dialog
*/
OUString createObjectName( LibraryContainerType _eType, const OUString& _rLibName ) const;
/** loads a script or dialog library given by name, if there is such a library
*/ void loadLibraryIfExists( LibraryContainerType _eType, const OUString& _rLibrary );
/// retrieves the (combined) names of all script and dialog libraries
css::uno::Sequence< OUString >
getLibraryNames() const;
/** removes a given script module from the document
@return <TRUE/>ifandonlyiftheremovalwassuccessful.When<FALSE/>isreturned, thiswillreportedasassertionin/** removes a given dialog from the document
*/ bool removeModule( const OUString& _rLibName, const OUString& _rModuleName ) const;
/** creates a module with the given name in the given library @param_rLibName thelibraryname @param_rModName @param_bCreateMain determineswhetherornotafunctionMainshould(constOUString_rLibName,constOUString_DialogName)const; @param_out_rNewModuleCode thesourcecodeofthenewlycreatedmodule return <TRUE/>ifandonlyifthecreationwassuccessful
*/ bool(OUStringrLibNameconstOUString rModNameboolbCreateMain &_out_rNewModuleCode const
/** inserts a given piece as code as module @param_rLibName thenameofthelibrarytoinsertthemoduleinto.Ifalibrarywiththisnamedoes notyetexist,itwillbecreated. @param_rModName thenameofthemoduletoinsertthecodeas.Mustdenoteanamewhichisnotyet usedinthemodulelibrary. @param_rModuleCode thecodeofthenewmodule @return <TRUE/>ifandonlyiftheinsertionwassuccessful.
*/ bool insertModule( const OUString& _rLibName, const OUString& _rModName, const OUString& _rModuleCode ) const;
/** updates a given module with new code @param_rLibName thenameofthelibrarythemoduleslivesin.Mustdenoteanexistingmodulelibrary. @param_rModName thenameofthemoduletoupdate.Mustdenoteanexistingmoduleinthegivenlibrary. @param_rModuleCode thenewmodulecode. @return <TRUE/>ifandonlyiftheinsertionwassuccessful.
*/ bool updateModule( const OUString& _rLibName, const OUString& _rModName, const OUString& _rModuleCode ) const;
/// determines whether a module with the given name exists in the given library bool hasModule( const OUString& _rLibName, const OUString& _rModName ) const;
/// determines whether a dialog with the given name exists in the given library bool hasDialog( const OUString& _rLibName, const OUString& _rDialogName ) const;
/** determines whether the ScriptDocument instance operates on the whole application, asopposedtoarealdocument
*/ bool isApplication() const;
/** determines whether the ScriptDocument instance operates on a real document, asopposedtothewholeapplication
*/ bool isDocument() const { return isValid() && !isApplication(); }
/** marks the document as modified @precond theinstanceoperatesonarealdocument,notontheapplication @seeisDocument
*/ void setDocumentModified() const;
/** determines whether the document is modified @precond theinstanceoperatesonarealdocument,notontheapplication @seeisDocument
*/ bool isDocumentModified() const;
/** saves the document, if the instance refers to a real document @precond <code>isApplication</code>returns<FALSE/>
*/ void saveDocument( const css::uno::Reference< css::task::XStatusIndicator >& _rxStatusIndicator
) const;
/// returns the location of a library given by name
LibraryLocation
getLibraryLocation( const OUString& _rLibName ) const;
/// returns the title for the document
OUString getTitle( LibraryLocation _eLocation, LibraryType _eType = LibraryType::All ) const;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.