A string which specifies the property name of the called declaration.
Remarks
This operation is used to reveal the property name of the called declaration. This operation returns a string value representing the name of the
declaration's property.
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 the property name of each declaration
std::cout << "List all property names in the declarations.\n\n";
stylesheet::const_iterator sit = ss.begin();
for (; sit != ss.end(); ++sit) {
if (sit->stylesheet_item_type() == sit_rule) {
std::cout << "Properties for rule '" << sit->selector() << "'.\n";
stylesheet_item::const_iterator it = sit->begin();
for (; it != sit->end(); ++it) {
std::cout << it->property_name() << "\n";
}
std::cout << "\n\n";
}
}
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.