summaryrefslogtreecommitdiff
path: root/sax/inc
diff options
context:
space:
mode:
authorMichael Stahl <mst@openoffice.org>2009-10-09 15:14:09 +0200
committerMichael Stahl <mst@openoffice.org>2009-10-09 15:14:09 +0200
commit609de6a8feea12300005a6b8f4dc29fc00fd2697 (patch)
tree4e212ed291c62dc41e6e6bc175f3dcdc692fb212 /sax/inc
parentebd43b03d516d0d2ee06d9f00cfc884aa81e5631 (diff)
#i97029#: sax::Converter: add convertDateOrDateTime() and convertDate()
Diffstat (limited to 'sax/inc')
-rw-r--r--sax/inc/sax/tools/converter.hxx15
1 files changed, 13 insertions, 2 deletions
diff --git a/sax/inc/sax/tools/converter.hxx b/sax/inc/sax/tools/converter.hxx
index 18212dfb9b8b..6632dda8507e 100644
--- a/sax/inc/sax/tools/converter.hxx
+++ b/sax/inc/sax/tools/converter.hxx
@@ -154,15 +154,26 @@ public:
static bool convertTime( ::com::sun::star::util::DateTime& rDateTime,
const ::rtl::OUString& rString );
- /** convert util::DateTime to ISO Date String */
+ /** convert util::Date to ISO Date String */
+ static void convertDate( ::rtl::OUStringBuffer& rBuffer,
+ const com::sun::star::util::Date& rDate );
+
+ /** convert util::DateTime to ISO Date or DateTime String */
static void convertDateTime( ::rtl::OUStringBuffer& rBuffer,
const com::sun::star::util::DateTime& rDateTime,
bool bAddTimeIf0AM = false );
- /** convert ISO Date String to util::DateTime */
+ /** convert ISO Date or DateTime String to util::DateTime */
static bool convertDateTime( com::sun::star::util::DateTime& rDateTime,
const ::rtl::OUString& rString );
+ /** convert ISO Date or DateTime String to util::DateTime or util::Date */
+ static bool convertDateOrDateTime(
+ com::sun::star::util::Date & rDate,
+ com::sun::star::util::DateTime & rDateTime,
+ bool & rbDateTime,
+ const ::rtl::OUString & rString );
+
/** gets the position of the first comma after npos in the string
rStr. Commas inside '"' pairs are not matched */
static sal_Int32 indexOfComma( const ::rtl::OUString& rStr,