(incubating) | The Free and Open Productivity Suite

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous

Content for OpenOffice.org version 3.3.

:: com :: sun :: star :: style ::

interface XStyleLoader
Description
enables the object to import styles from documents.

Methods' Summary
loadStylesFromURL loads styles from a document at the given URL.  
getStyleLoaderOptions  
Methods' Details
loadStylesFromURL
void
loadStylesFromURL( [in] string  URL,
[in] 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
sequence< ::com::sun::star::beans::PropertyValue >
getStyleLoaderOptions();

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

Apache OpenOffice is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.

Copyright & License
Apache and the Apache feather logos are trademarks of The Apache Software Foundation. OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.