Xport Interface: stylesheet_rule::insert

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

virtual stylesheet_item::iterator stylesheet_item::insert(1st Variety
  const declaration& decl
);
virtual stylesheet_item::iterator stylesheet_rule::insert(2nd Variety
  const const stylesheet_item::const_iterator& pos,
  const declaration& decl
);

Parameters

decl

A declaration object.

pos

A stylesheet_item iterator which points to the position where the declaration is to be inserted.

Returns

Returns a stylesheet_item iterator which points to the inserted declaration.

Remarks

This operation is used to insert declarations into the called stylesheet_rule. The 2nd variety allows you to specify where the declaration 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.