1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
11 module com
{ module sun
{ module star
{ module style
{
13 /** extends XStyleLoader interface to import styles from an already opened component.
15 @see com::sun::star::style::XStyleLoader
17 @since LibreOffice 4.4
19 interface XStyleLoader2
: com
::sun
::star
::style
::XStyleLoader
21 /** loads styles from a given document
23 @param aSourceComponent
24 a valid XComponent reference to source document
26 Specifies which of the Style families the method should load.
27 The <code>sequence<PropertyValue></code> has the following, optional items:
29 <li> boolean LoadCellStyles </li>
30 <li> boolean LoadTextStyles </li>
31 <li> boolean LoadFrameStyles </li>
32 <li> boolean LoadPageStyles </li>
33 <li> boolean LoadNumberingStyles </li>
34 <li> boolean OverwriteStyles</li>
36 If <var>OverwriteStyles</var> is `TRUE`, then all styles
37 will be loaded. Otherwise, only styles which are not already
38 defined in this document are loaded.</p>
39 <p>As the default, all supported style families are loaded and existing styles are overwritten.</p>
41 void loadStylesFromDocument
( [in] com
::sun
::star
::lang
::XComponent aSourceComponent
,
42 [in] sequence
<com
::sun
::star
::beans
::PropertyValue
> aOptions
)
43 raises
( com
::sun
::star
::io
::IOException
);
49 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */