LibreOffice
LibreOffice 6.2 SDK API Reference
XStorage.idl
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
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/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
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 .
18  */
19 #ifndef __com_sun_star_embed_XStorage_idl__
20 #define __com_sun_star_embed_XStorage_idl__
21 
36 
37 
38 
39  module com { module sun { module star { module embed {
40 
43 published interface XStorage
44 {
45  // INTERFACES
57  interface ::com::sun::star::container::XNameAccess;
58 
66  interface ::com::sun::star::lang::XComponent;
67 
68 
69  // METHODS
93  void copyToStorage( [in] XStorage xDest )
98 
129  ::com::sun::star::io::XStream openStreamElement(
130  [in] string sStreamName,
131  [in] long nOpenMode )
137 
181  ::com::sun::star::io::XStream openEncryptedStreamElement(
182  [in] string sStreamName,
183  [in] long nOpenMode,
184  [in] string sPassword )
191 
220  XStorage openStorageElement( [in] string sStorName,
221  [in] long nOpenMode )
226 
253  ::com::sun::star::io::XStream cloneStreamElement( [in] string sStreamName )
259 
304  ::com::sun::star::io::XStream cloneEncryptedStreamElement(
305  [in] string sStreamName,
306  [in] string sPassword )
313 
337  void copyLastCommitTo( [in] XStorage xTargetStorage )
342 
369  void copyStorageElementLastCommitTo(
370  [in] string sStorName,
371  [in] XStorage xTargetStorage )
376 
401  boolean isStreamElement( [in] string sElementName )
405 
406 
431  boolean isStorageElement( [in] string sElementName )
435 
457  void removeElement( [in] string sElementName )
463 
491  void renameElement( [in] string sElementName, [in] string sNewName )
498 
531  void copyElementTo(
532  [in] string sElementName,
533  [in] XStorage xDest,
534  [in] string sNewName )
541 
574  void moveElementTo(
575  [in] string sElementName,
576  [in] XStorage xDest,
577  [in] string sNewName )
584 
585 };
586 
587 
588 }; }; }; };
589 
590 #endif
591 
592 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
is thrown when an input or output error has occurred.
Definition: IOException.idl:30
This interface represents main storage functionality.
Definition: XStorage.idl:43
Definition: Ambiguous.idl:22
This exception can be thrown in case object is not encrypted one as expected.
Definition: NoEncryptionException.idl:30
offers read and write access to the same stream.
Definition: XStream.idl:32
This exception can wrap an exception thrown during XStorage methods execution.
Definition: StorageWrappedTargetException.idl:32
This exception is thrown to indicate that a method has passed an illegal or inappropriate argument...
Definition: IllegalArgumentException.idl:29
This exception can be thrown in case a storage is invalid.
Definition: InvalidStorageException.idl:35
is thrown by child access methods of collections, if the addressed child does not exist...
Definition: NoSuchElementException.idl:34
This exception can be thrown in case wrong password was provided.
Definition: WrongPasswordException.idl:30
is thrown by container methods, if an element is added which is already a child of the container...
Definition: ElementExistException.idl:38