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

interface XStyleLoader2
Base Interfaces
XStyleLoader2XStyleLoader

XStyleLoader
(referenced interface's summary:)

Methods' Summary
loadStylesFromDocument loads styles from a given document  
Methods' Details
loadStylesFromDocument
void
loadStylesFromDocument( [in] ::com::sun::star::lang::XComponent  aSourceComponent,
[in] sequence< ::com::sun::star::beans::PropertyValue >  aOptions )
raises( ::com::sun::star::io::IOException );

Description
loads styles from a given document

Parameter aSourceComponent
a valid XComponent reference to source document
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
If OverwriteStyles is `TRUE`, then all styles will be loaded. Otherwise, only styles which are not already defined in this document are loaded.

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

Top of Page