Xport Interface: stylesheet::insert

Inserts a stylesheet rule, comment, or import rule into the called stylesheet.

stylesheet::iterator stylesheet::insert(1st Variety
  const stylesheet_item& item
);
stylesheet::iterator stylesheet::insert(2nd Variety
  const stylesheet::const_iterator& pos,
  const stylesheet_item& item
);

Parameters

item

A stylesheet_item object to be inserted. As stylesheet_item is a base class, the passed object will actually be one of the following types, stylesheet_rule, stylesheet_import, or stylesheet_comment.

pos

A stylesheet iterator which points to the position where the stylesheet item is to be inserted.

Returns

Returns a stylesheet iterator which points to the inserted stylesheet item.

Remarks

This operation is used to insert stylesheet items from the called stylesheet. The most common stylesheet item you'll insert into a stylesheet is a stylesheet_rule. In the first variety, the stylesheet item is inserted at the end of the stylesheet. The 2nd variety allows you to specify where the stylesheet item is inserted.

Complexity

Logarithmic

Examples

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.