LibreOffice Module forms (master) 1
|
#include <string.h>
#include <comphelper/servicehelper.hxx>
#include <o3tl/string_view.hxx>
#include <sal/types.h>
#include <rtl/ustring.hxx>
#include <rtl/string.hxx>
#include <rtl/strbuf.hxx>
#include <tools/date.hxx>
#include <tools/time.hxx>
#include <tools/datetime.hxx>
#include <com/sun/star/uno/Reference.hxx>
#include <com/sun/star/uno/Sequence.hxx>
#include <com/sun/star/xforms/XModel.hpp>
#include <com/sun/star/xml/dom/XNode.hpp>
#include <com/sun/star/xml/dom/XDocument.hpp>
#include <com/sun/star/lang/XUnoTunnel.hpp>
#include <boost/lexical_cast.hpp>
#include <libxml/xpathInternals.h>
#include "xpathlib.hxx"
#include "extension.hxx"
Go to the source code of this file.
Functions | |
xmlXPathFunction | xforms_lookupFunc (void *, const xmlChar *xname, const xmlChar *) |
void | xforms_booleanFromStringFunction (xmlXPathParserContextPtr ctxt, int nargs) |
xmlXPathParserContext: More... | |
void | xforms_ifFunction (xmlXPathParserContextPtr ctxt, int nargs) |
void | xforms_avgFunction (xmlXPathParserContextPtr ctxt, int nargs) |
void | xforms_minFunction (xmlXPathParserContextPtr ctxt, int nargs) |
void | xforms_maxFunction (xmlXPathParserContextPtr ctxt, int nargs) |
void | xforms_countNonEmptyFunction (xmlXPathParserContextPtr ctxt, int nargs) |
void | xforms_indexFunction (xmlXPathParserContextPtr, int) |
void | xforms_propertyFunction (xmlXPathParserContextPtr ctxt, int nargs) |
static OString | makeDateTimeString (const DateTime &aDateTime) |
void | xforms_nowFunction (xmlXPathParserContextPtr ctxt, int) |
static bool | parseDateTime (std::u16string_view aString, DateTime &aDateTime) |
void | xforms_daysFromDateFunction (xmlXPathParserContextPtr ctxt, int nargs) |
void | xforms_secondsFromDateTimeFunction (xmlXPathParserContextPtr ctxt, int nargs) |
static bool | parseDuration (const xmlChar *aString, bool &bNegative, sal_Int32 &nYears, sal_Int32 &nMonth, sal_Int32 &nDays, sal_Int32 &nHours, sal_Int32 &nMinutes, sal_Int32 &nSeconds) |
void | xforms_secondsFunction (xmlXPathParserContextPtr ctxt, int nargs) |
void | xforms_monthsFunction (xmlXPathParserContextPtr ctxt, int nargs) |
void | xforms_instanceFunction (xmlXPathParserContextPtr ctxt, int nargs) |
void | xforms_currentFunction (xmlXPathParserContextPtr ctxt, int nargs) |
|
static |
Definition at line 235 of file xpathlib.cxx.
References Date::GetDay(), tools::Time::GetHour(), tools::Time::GetMin(), Date::GetMonth(), tools::Time::GetSec(), and Date::GetYear().
Referenced by xforms_nowFunction().
|
static |
Definition at line 291 of file xpathlib.cxx.
References DateTime::ConvertToUTC(), o3tl::getToken(), nIndex, o3tl::toInt32(), and o3tl::trim().
Referenced by xforms_daysFromDateFunction(), and xforms_secondsFromDateTimeFunction().
|
static |
Definition at line 371 of file xpathlib.cxx.
Referenced by xforms_monthsFunction(), and xforms_secondsFunction().
void xforms_avgFunction | ( | xmlXPathParserContextPtr | ctxt, |
int | nargs | ||
) |
Definition at line 127 of file xpathlib.cxx.
References nCount, and pObject.
Referenced by xforms_lookupFunc().
void xforms_booleanFromStringFunction | ( | xmlXPathParserContextPtr | ctxt, |
int | nargs | ||
) |
xmlXPathParserContext:
An XPath parser context. It contains pure parsing information, an xmlXPathContext, and the stack of objects.
Definition at line 92 of file xpathlib.cxx.
Referenced by xforms_lookupFunc().
void xforms_countNonEmptyFunction | ( | xmlXPathParserContextPtr | ctxt, |
int | nargs | ||
) |
void xforms_currentFunction | ( | xmlXPathParserContextPtr | ctxt, |
int | nargs | ||
) |
void xforms_daysFromDateFunction | ( | xmlXPathParserContextPtr | ctxt, |
int | nargs | ||
) |
Definition at line 322 of file xpathlib.cxx.
References DateTime::EMPTY, and parseDateTime().
Referenced by xforms_lookupFunc().
void xforms_ifFunction | ( | xmlXPathParserContextPtr | ctxt, |
int | nargs | ||
) |
Definition at line 108 of file xpathlib.cxx.
Referenced by xforms_lookupFunc().
void xforms_indexFunction | ( | xmlXPathParserContextPtr | ctxt, |
int | nargs | ||
) |
Definition at line 208 of file xpathlib.cxx.
Referenced by xforms_lookupFunc().
void xforms_instanceFunction | ( | xmlXPathParserContextPtr | ctxt, |
int | nargs | ||
) |
xmlXPathFunction xforms_lookupFunc | ( | void * | ctxt, |
const xmlChar * | xname, | ||
const xmlChar * | ns_uri | ||
) |
Definition at line 53 of file xpathlib.cxx.
References name, xforms_avgFunction(), xforms_booleanFromStringFunction(), xforms_countNonEmptyFunction(), xforms_currentFunction(), xforms_daysFromDateFunction(), xforms_ifFunction(), xforms_indexFunction(), xforms_instanceFunction(), xforms_maxFunction(), xforms_minFunction(), xforms_monthsFunction(), xforms_nowFunction(), xforms_propertyFunction(), xforms_secondsFromDateTimeFunction(), and xforms_secondsFunction().
Referenced by CLibxml2XFormsExtension::getLibxml2ExtensionHandle().
void xforms_maxFunction | ( | xmlXPathParserContextPtr | ctxt, |
int | nargs | ||
) |
void xforms_minFunction | ( | xmlXPathParserContextPtr | ctxt, |
int | nargs | ||
) |
void xforms_monthsFunction | ( | xmlXPathParserContextPtr | ctxt, |
int | nargs | ||
) |
Definition at line 456 of file xpathlib.cxx.
References parseDuration().
Referenced by xforms_lookupFunc().
void xforms_nowFunction | ( | xmlXPathParserContextPtr | ctxt, |
int | nargs | ||
) |
Definition at line 261 of file xpathlib.cxx.
References DateTime::EMPTY, makeDateTimeString(), and DateTime::SYSTEM.
Referenced by xforms_lookupFunc().
void xforms_propertyFunction | ( | xmlXPathParserContextPtr | ctxt, |
int | nargs | ||
) |
Definition at line 219 of file xpathlib.cxx.
Referenced by xforms_lookupFunc().
void xforms_secondsFromDateTimeFunction | ( | xmlXPathParserContextPtr | ctxt, |
int | nargs | ||
) |
Definition at line 345 of file xpathlib.cxx.
References DateTime::EMPTY, tools::Time::GetHour(), tools::Time::GetMin(), tools::Time::GetSec(), and parseDateTime().
Referenced by xforms_lookupFunc().
void xforms_secondsFunction | ( | xmlXPathParserContextPtr | ctxt, |
int | nargs | ||
) |
Definition at line 426 of file xpathlib.cxx.
References parseDuration().
Referenced by xforms_lookupFunc().