diff options
author | Laurent Godard <lgodard.libre@laposte.net> | 2014-07-10 10:35:12 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-07-11 08:26:31 +0000 |
commit | fe6311fce7e7305b2f6c87f57407ea13e2625c53 (patch) | |
tree | f4d761f4cbbd2f15de4ed613daba553eadb155db /offapi/com/sun/star/style | |
parent | 713735fc89b9e0222d8b62d051153da6932b3ebd (diff) |
add UNO API loadStylesFromDocument
avoid opening again a document that is already available
apply to calc - refactoring ScStyleFamiliesObj::loadStylesFromURL
Change-Id: I6b26c91265dcafa73b472bc68ee684ba0733b0ac
Reviewed-on: https://gerrit.libreoffice.org/10214
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'offapi/com/sun/star/style')
-rw-r--r-- | offapi/com/sun/star/style/XStyleLoader2.idl | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/offapi/com/sun/star/style/XStyleLoader2.idl b/offapi/com/sun/star/style/XStyleLoader2.idl new file mode 100644 index 000000000000..f55760a8cdaf --- /dev/null +++ b/offapi/com/sun/star/style/XStyleLoader2.idl @@ -0,0 +1,56 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#ifndef __com_sun_star_style_XStyleLoader2_idl__ +#define __com_sun_star_style_XStyleLoader2_idl__ + +#include <com/sun/star/beans/PropertyValue.idl> +#include <com/sun/star/io/IOException.idl> +#include <com/sun/star/lang/XComponent.idl> + + +module com { module sun { module star { module style { + +/** extends XStyleLoader interface to import styles from an already opened calc or writer component. + + @see com::sun::star::style::XStyleLoader + */ +interface XStyleLoader2: com::sun::star::style::XStyleLoader +{ + /** loads styles from a given document + <p> + @param aSourceComponent + a valid XComponent reference to source doc (calc or writer) + @param aOptions + Specifies which of the Style families the method should load. + The <code>sequence<PropertyValue></code> has the following, optional items: + <ul> + <li> boolean LoadCellStyles </li> + <li> boolean LoadTextStyles </li> + <li> boolean LoadFrameStyles </li> + <li> boolean LoadPageStyles </li> + <li> boolean LoadNumberingStyles </li> + <li> boolean OverwriteStyles</li> + </ul> + If <var>OverwriteStyles</var> is `TRUE`, then all styles + will be loaded. Otherwise, only styles which are not already + defined in this document are loaded.</p> + <p>As the default, all supported style families are loaded and existing styles are overwritten.</p> + */ + void loadStylesFromDocument( [in] com::sun::star::lang::XComponent aSourceComponent, + [in] sequence<com::sun::star::beans::PropertyValue> aOptions ) + raises( com::sun::star::io::IOException ); +}; + + +}; }; }; }; + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |