// forward declarations namespace com::sun::star::xml::dom
{ class XNode;
} namespace com::sun::star::xml::dom
{ class XNodeList;
}
namespace xforms
{ /** PathExpression represents an XPath Expression and caches results */ class PathExpression final : public ComputedExpression
{ public: typedef std::vector<css::uno::Reference<css::xml::dom::XNode>> NodeVector_t;
private: /// the node-list result from the last bind (cached from mxResult)
NodeVector_t maNodes;
/// get expression for evaluation
OUString _getExpressionForEvaluation() const;
public:
PathExpression();
~PathExpression();
/// set the expression string /// (overridden to do remove old listeners) /// (also defines simple expressions) void setExpression(const OUString& rExpression);
/// evaluate the expression relative to the content node. void evaluate(const xforms::EvaluationContext& rContext);
// get the result of this expression as node/node list/...
css::uno::Reference<css::xml::dom::XNode> getNode() const; const NodeVector_t& getNodeList() const { return maNodes; }
css::uno::Reference<css::xml::dom::XNodeList> getXNodeList() const;
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.