diff options
author | Adam Co <rattles2013@gmail.com> | 2013-11-26 13:56:46 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2013-11-26 14:02:02 +0100 |
commit | 8d7cb7773dafda969c22bb9cca658bf1c677798d (patch) | |
tree | 18d9efda9a959322f98d9fd69e77615fdebf2036 /sw | |
parent | fc708d6286e184d7f1b63e4a334d5aa1c7959516 (diff) |
Moved 'DateTimeToOString' from 'filter' package to 'tools' package
After the move now other classes can convert DateTime to OString also
Reviewed on:
https://gerrit.libreoffice.org/6816
Change-Id: I0ceb9a5cc26103a6cb36d7765a717770ec3fbe7d
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/ww8/docxattributeoutput.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx index 5780aff2c9fa..2a8205cda637 100644 --- a/sw/source/filter/ww8/docxattributeoutput.cxx +++ b/sw/source/filter/ww8/docxattributeoutput.cxx @@ -80,6 +80,7 @@ #include <svx/xflgrit.hxx> #include <svl/grabbagitem.hxx> #include <sfx2/sfxbasemodel.hxx> +#include <tools/datetimeutils.hxx> #include <anchoredobject.hxx> #include <docufld.hxx> @@ -1461,7 +1462,7 @@ void DocxAttributeOutput::Redline( const SwRedlineData* pRedline) OString aId( OString::number( pRedline->GetSeqNo() ) ); const OUString &rAuthor( SW_MOD()->GetRedlineAuthor( pRedline->GetAuthor() ) ); OString aAuthor( OUStringToOString( rAuthor, RTL_TEXTENCODING_UTF8 ) ); - OString aDate( msfilter::util::DateTimeToOString( pRedline->GetTimeStamp() ) ); + OString aDate( DateTimeToOString( pRedline->GetTimeStamp() ) ); OUString sVal; OString sOVal; @@ -1522,7 +1523,7 @@ void DocxAttributeOutput::StartRedline() const OUString &rAuthor( SW_MOD()->GetRedlineAuthor( pRedlineData->GetAuthor() ) ); OString aAuthor( OUStringToOString( rAuthor, RTL_TEXTENCODING_UTF8 ) ); - OString aDate( msfilter::util::DateTimeToOString( pRedlineData->GetTimeStamp() ) ); + OString aDate( DateTimeToOString( pRedlineData->GetTimeStamp() ) ); switch ( pRedlineData->GetType() ) { @@ -4944,7 +4945,7 @@ void DocxAttributeOutput::WritePostitFields() const SwPostItField* f = m_postitFields[ i ]; m_pSerializer->startElementNS( XML_w, XML_comment, FSNS( XML_w, XML_id ), idstr.getStr(), FSNS( XML_w, XML_author ), OUStringToOString( f->GetPar1(), RTL_TEXTENCODING_UTF8 ).getStr(), - FSNS( XML_w, XML_date ), msfilter::util::DateTimeToOString(f->GetDateTime()).getStr(), + FSNS( XML_w, XML_date ), DateTimeToOString(f->GetDateTime()).getStr(), FSNS( XML_w, XML_initials ), OUStringToOString( f->GetInitials(), RTL_TEXTENCODING_UTF8 ).getStr(), FSEND ); // Check for the text object existing, it seems that it can be NULL when saving a newly created // comment without giving focus back to the main document. As GetTxt() is empty in that case as well, |