interface XStyleLoader in module com::sun::star::style::

(Global Index)

Syntax

interface XStyleLoader : com::sun::star::uno::XInterface ;

Description

enables the object to import styles from documents.

Method Summary

loadStylesFromURL loads styles from a document at the given URL.

getStyleLoaderOptions

Method Details



loadStylesFromURL

Syntax

void loadStylesFromURL (
string URL,
sequence< com::sun::star::beans::PropertyValue > aOptions )
raises ( com::sun::star::io::IOException );

Description

loads styles from a document at the given URL.

If OverwriteStyles is true , then all styles will be loaded. Otherwise, only styles which are not already defined in this document are loaded.

Parameter string

URL: The directory and the filename from document with the styles

Parameter aOptions

: Specifies which of the Style families the method should load. The sequence has the following, optional items:
  • boolean LoadCellStyles
  • boolean LoadTextStyles
  • boolean LoadFrameStyles
  • boolean LoadPageStyles
  • boolean LoadNumberingStyles
  • boolean OverwriteStyles

As the default, all supported style families are loaded and existing styles are overwritten.


getStyleLoaderOptions

Syntax

sequence< com::sun::star::beans::PropertyValue > getStyleLoaderOptions ();

Returns

a sequence of the supported properties as declared in loadStylesFromURL with their current values.
Top of Page