Xport Interface: stylesheet_item::write

Writes the called derived stylesheet_item object to a file or stream, through a stylesheet_formatter object.

virtual bool stylesheet_item::write(2nd Variety
  const stylesheet_formatter& fmtr
);

Parameters

fmtr

A formatter object, which allows the user to set specific formatting options before writing the stylesheet_item derived object.

Returns

true if the stylesheet_item derived object is written successfully, false otherwise.

Remarks

This operation is used to write a stylesheet_item derived object. For this operation, you pass a stylesheet_formatter which writes the stylesheet to the file or output stream that was specified when creating the stylesheet_formatter. A stylesheet_formatter is first created, and in it's constructor, the filename or output stream is specified. Then, there are many formatting options which can be set on the formatter object, which will determine how the stylesheet item will look when written.

Complexity

Linear

Example

Since this operation is overridden in all classes derived from stylesheet_item, examples will be given in the appropriate class. See stylesheet_rule::write(), stylesheet_import::write(), and stylesheet_comment::write().

Work Time Studio

Datasoft Solutions is proud to present their landmark product, Work Time Studio. Utilizing the tree container library, Work Time Studio provides unparalleled features in personal time, project and task management software. If you're looking for a way to increase your productivity, visit Work Time Studio's product website, and start being more productive today.