LibreOffice Module forms (master) 1
Functions
xpathlib.cxx File Reference
#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"
Include dependency graph for xpathlib.cxx:

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)
 

Function Documentation

◆ makeDateTimeString()

static OString makeDateTimeString ( const DateTime aDateTime)
static

◆ parseDateTime()

static bool parseDateTime ( std::u16string_view  aString,
DateTime aDateTime 
)
static

◆ parseDuration()

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 
)
static

Definition at line 371 of file xpathlib.cxx.

Referenced by xforms_monthsFunction(), and xforms_secondsFunction().

◆ xforms_avgFunction()

void xforms_avgFunction ( xmlXPathParserContextPtr  ctxt,
int  nargs 
)

Definition at line 127 of file xpathlib.cxx.

References nCount, and pObject.

Referenced by xforms_lookupFunc().

◆ xforms_booleanFromStringFunction()

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().

◆ xforms_countNonEmptyFunction()

void xforms_countNonEmptyFunction ( xmlXPathParserContextPtr  ctxt,
int  nargs 
)

Definition at line 195 of file xpathlib.cxx.

References i.

Referenced by xforms_lookupFunc().

◆ xforms_currentFunction()

void xforms_currentFunction ( xmlXPathParserContextPtr  ctxt,
int  nargs 
)

Definition at line 519 of file xpathlib.cxx.

References pObject.

Referenced by xforms_lookupFunc().

◆ xforms_daysFromDateFunction()

void xforms_daysFromDateFunction ( xmlXPathParserContextPtr  ctxt,
int  nargs 
)

Definition at line 322 of file xpathlib.cxx.

References DateTime::EMPTY, and parseDateTime().

Referenced by xforms_lookupFunc().

◆ xforms_ifFunction()

void xforms_ifFunction ( xmlXPathParserContextPtr  ctxt,
int  nargs 
)

Definition at line 108 of file xpathlib.cxx.

Referenced by xforms_lookupFunc().

◆ xforms_indexFunction()

void xforms_indexFunction ( xmlXPathParserContextPtr  ctxt,
int  nargs 
)

Definition at line 208 of file xpathlib.cxx.

Referenced by xforms_lookupFunc().

◆ xforms_instanceFunction()

void xforms_instanceFunction ( xmlXPathParserContextPtr  ctxt,
int  nargs 
)

Definition at line 486 of file xpathlib.cxx.

References pObject.

Referenced by xforms_lookupFunc().

◆ xforms_lookupFunc()

xmlXPathFunction xforms_lookupFunc ( void *  ctxt,
const xmlChar *  xname,
const xmlChar *  ns_uri 
)

◆ xforms_maxFunction()

void xforms_maxFunction ( xmlXPathParserContextPtr  ctxt,
int  nargs 
)

Definition at line 174 of file xpathlib.cxx.

References i.

Referenced by xforms_lookupFunc().

◆ xforms_minFunction()

void xforms_minFunction ( xmlXPathParserContextPtr  ctxt,
int  nargs 
)

Definition at line 152 of file xpathlib.cxx.

References i.

Referenced by xforms_lookupFunc().

◆ xforms_monthsFunction()

void xforms_monthsFunction ( xmlXPathParserContextPtr  ctxt,
int  nargs 
)

Definition at line 456 of file xpathlib.cxx.

References parseDuration().

Referenced by xforms_lookupFunc().

◆ xforms_nowFunction()

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().

◆ xforms_propertyFunction()

void xforms_propertyFunction ( xmlXPathParserContextPtr  ctxt,
int  nargs 
)

Definition at line 219 of file xpathlib.cxx.

Referenced by xforms_lookupFunc().

◆ xforms_secondsFromDateTimeFunction()

void xforms_secondsFromDateTimeFunction ( xmlXPathParserContextPtr  ctxt,
int  nargs 
)

◆ xforms_secondsFunction()

void xforms_secondsFunction ( xmlXPathParserContextPtr  ctxt,
int  nargs 
)

Definition at line 426 of file xpathlib.cxx.

References parseDuration().

Referenced by xforms_lookupFunc().