A css_property enumeration which specifies the property of the called declaration.
Remarks
This operation is used to reveal the property of the called declaration. This operation returns an enuerated value. If you need a string
representation of the declaration's property, use declaration::property_name().
Complexity
Constant
Example
#include "xhtml_doc.h"
#include "xport_brochure.h"
#include <iostream>
int main(int argc, char* argv[])
{
using namespace Xport;
document doc(root_doc);
stylesheet ss;
xport_brochure broch;
broch.create(doc, ss);
stylesheet_formatter fmtr(std::cout);
// iterate over all rules and list those that contain the color property
std::cout << "List all rules which include the color property.\n\n";
stylesheet::const_iterator sit = ss.begin();
for (; sit != ss.end(); ++sit) {
stylesheet_item::const_iterator it = sit->begin();
for (; it != sit->end(); ++it) {
if (it->property() == css::color) {
sit->write(fmtr);
}
}
}
std::cout << "\n\n";
}
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.