summaryrefslogtreecommitdiff
path: root/xmloff/source/xforms
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source/xforms')
-rw-r--r--xmloff/source/xforms/SchemaRestrictionContext.cxx16
-rw-r--r--xmloff/source/xforms/xformsexport.cxx26
2 files changed, 21 insertions, 21 deletions
diff --git a/xmloff/source/xforms/SchemaRestrictionContext.cxx b/xmloff/source/xforms/SchemaRestrictionContext.cxx
index c1720b1f5c60..fcf58ce5eb2f 100644
--- a/xmloff/source/xforms/SchemaRestrictionContext.cxx
+++ b/xmloff/source/xforms/SchemaRestrictionContext.cxx
@@ -132,26 +132,26 @@ void SchemaRestrictionContext::HandleAttribute(
typedef Any (*convert_t)( const OUString& );
-Any xforms_string( const OUString& rValue )
+static Any xforms_string( const OUString& rValue )
{
return makeAny( rValue );
}
-Any xforms_int32( const OUString& rValue )
+static Any xforms_int32( const OUString& rValue )
{
sal_Int32 nValue;
bool bSuccess = ::sax::Converter::convertNumber( nValue, rValue );
return bSuccess ? makeAny( nValue ) : Any();
}
-Any xforms_int16( const OUString& rValue )
+static Any xforms_int16( const OUString& rValue )
{
sal_Int32 nValue;
bool bSuccess = ::sax::Converter::convertNumber( nValue, rValue );
return bSuccess ? makeAny( static_cast<sal_Int16>( nValue ) ) : Any();
}
-Any xforms_whitespace( const OUString& rValue )
+static Any xforms_whitespace( const OUString& rValue )
{
Any aValue;
if( IsXMLToken( rValue, XML_PRESERVE ) )
@@ -163,14 +163,14 @@ Any xforms_whitespace( const OUString& rValue )
return aValue;
}
-Any xforms_double( const OUString& rValue )
+static Any xforms_double( const OUString& rValue )
{
double fValue;
bool bSuccess = ::sax::Converter::convertDouble( fValue, rValue );
return bSuccess ? makeAny( fValue ) : Any();
}
-Any xforms_date( const OUString& rValue )
+static Any xforms_date( const OUString& rValue )
{
Any aAny;
@@ -191,14 +191,14 @@ Any xforms_date( const OUString& rValue )
return aAny;
}
-Any xforms_dateTime( const OUString& rValue )
+static Any xforms_dateTime( const OUString& rValue )
{
util::DateTime aDateTime;
bool const bSuccess = ::sax::Converter::parseDateTime(aDateTime, rValue);
return bSuccess ? makeAny( aDateTime ) : Any();
}
-Any xforms_time( const OUString& rValue )
+static Any xforms_time( const OUString& rValue )
{
Any aAny;
Duration aDuration;
diff --git a/xmloff/source/xforms/xformsexport.cxx b/xmloff/source/xforms/xformsexport.cxx
index 98291990581a..db14dec1e36b 100644
--- a/xmloff/source/xforms/xformsexport.cxx
+++ b/xmloff/source/xforms/xformsexport.cxx
@@ -101,10 +101,10 @@ void exportXForms( SvXMLExport& rExport )
}
-void exportXFormsInstance( SvXMLExport&, const Sequence<PropertyValue>& );
-void exportXFormsBinding( SvXMLExport&, const Reference<XPropertySet>& );
-void exportXFormsSubmission( SvXMLExport&, const Reference<XPropertySet>& );
-void exportXFormsSchemas( SvXMLExport&, const Reference<css::xforms::XModel>& );
+static void exportXFormsInstance( SvXMLExport&, const Sequence<PropertyValue>& );
+static void exportXFormsBinding( SvXMLExport&, const Reference<XPropertySet>& );
+static void exportXFormsSubmission( SvXMLExport&, const Reference<XPropertySet>& );
+static void exportXFormsSchemas( SvXMLExport&, const Reference<css::xforms::XModel>& );
typedef OUString (*convert_t)( const Any& );
@@ -123,15 +123,15 @@ static void lcl_export( const Reference<XPropertySet>& rPropertySet,
#define TABLE_END { nullptr, 0, 0, nullptr }
// any conversion functions
-OUString xforms_string( const Any& );
-OUString xforms_bool( const Any& );
-OUString xforms_whitespace( const Any& );
-template<typename T, void (*FUNC)( OUStringBuffer&, T )> OUString xforms_convert( const Any& );
-template<typename T, void (*FUNC)( OUStringBuffer&, const T& )> OUString xforms_convertRef( const Any& );
-
-void xforms_formatDate( OUStringBuffer& aBuffer, const util::Date& aDate );
-void xforms_formatTime( OUStringBuffer& aBuffer, const css::util::Time& aTime );
-void xforms_formatDateTime( OUStringBuffer& aBuffer, const util::DateTime& aDateTime );
+static OUString xforms_string( const Any& );
+static OUString xforms_bool( const Any& );
+static OUString xforms_whitespace( const Any& );
+template<typename T, void (*FUNC)( OUStringBuffer&, T )> static OUString xforms_convert( const Any& );
+template<typename T, void (*FUNC)( OUStringBuffer&, const T& )> static OUString xforms_convertRef( const Any& );
+
+static void xforms_formatDate( OUStringBuffer& aBuffer, const util::Date& aDate );
+static void xforms_formatTime( OUStringBuffer& aBuffer, const css::util::Time& aTime );
+static void xforms_formatDateTime( OUStringBuffer& aBuffer, const util::DateTime& aDateTime );
static void convertNumber(OUStringBuffer & b, sal_Int32 n) {
b.append(n);