summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-04-05 08:38:09 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-04-05 13:59:06 +0100
commit53600134ec737d50808c0f630b536229ad3310bb (patch)
tree266c4120a30a0acdfc814fd7022277510bd7d6df /xmloff
parent5688b51bcb23b12b335dadf4430b7b7c4407cbfb (diff)
no use is made of FmFormObj::m_nType
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/inc/txtflde.hxx6
-rw-r--r--xmloff/source/text/XMLPropertyBackpatcher.cxx41
-rw-r--r--xmloff/source/text/XMLPropertyBackpatcher.hxx15
-rw-r--r--xmloff/source/text/txtflde.cxx15
4 files changed, 0 insertions, 77 deletions
diff --git a/xmloff/inc/txtflde.hxx b/xmloff/inc/txtflde.hxx
index 2c94703596ea..4aad9a6bfc96 100644
--- a/xmloff/inc/txtflde.hxx
+++ b/xmloff/inc/txtflde.hxx
@@ -377,12 +377,6 @@ protected:
sal_Bool bIsDate, /// export as date (rather than date/time)?
sal_uInt16 nPrefix = XML_NAMESPACE_TEXT); /// attribute name prefix
- /// export date according to ISO 8601
- void ProcessDate(
- enum ::xmloff::token::XMLTokenEnum eXMLName, /// attribute token
- const ::com::sun::star::util::Date& rTime, /// date value
- sal_uInt16 nPrefix = XML_NAMESPACE_TEXT); /// attribute name prefix
-
/// export all attributes for bibliography data fields
void ProcessBibliographyData(
const ::com::sun::star::uno::Reference <
diff --git a/xmloff/source/text/XMLPropertyBackpatcher.cxx b/xmloff/source/text/XMLPropertyBackpatcher.cxx
index 0d8beec53194..9e4f47dababe 100644
--- a/xmloff/source/text/XMLPropertyBackpatcher.cxx
+++ b/xmloff/source/text/XMLPropertyBackpatcher.cxx
@@ -53,47 +53,6 @@ XMLPropertyBackpatcher<A>::XMLPropertyBackpatcher(
{
}
-template<class A>
-XMLPropertyBackpatcher<A>::XMLPropertyBackpatcher(
- const OUString& sPropName,
- const OUString& sPreserveName,
- sal_Bool bDefault,
- A aDef)
-: sPropertyName(sPropName)
-, bDefaultHandling(bDefault)
-, bPreserveProperty(!sPreserveName.isEmpty())
-, sPreservePropertyName(sPreserveName)
-, aDefault(aDef)
-{
-}
-
-template<class A>
-XMLPropertyBackpatcher<A>::XMLPropertyBackpatcher(
- const sal_Char* pPropName)
-: bDefaultHandling(sal_False)
-, bPreserveProperty(sal_False)
-{
- DBG_ASSERT(pPropName != NULL, "need property name");
- sPropertyName = OUString::createFromAscii(pPropName);
-}
-
-template<class A>
-XMLPropertyBackpatcher<A>::XMLPropertyBackpatcher(
- const sal_Char* pPropName,
- const sal_Char* pPreservePropName,
- sal_Bool bDefault,
- A aDef)
-: bDefaultHandling(bDefault)
-, bPreserveProperty(pPreservePropName != NULL)
-, aDefault(aDef)
-{
- DBG_ASSERT(pPropName != NULL, "need property name");
- sPropertyName = OUString::createFromAscii(pPropName);
- if (pPreservePropName != NULL)
- {
- sPreservePropertyName = OUString::createFromAscii(pPreservePropName);
- }
-}
template<class A>
XMLPropertyBackpatcher<A>::~XMLPropertyBackpatcher()
diff --git a/xmloff/source/text/XMLPropertyBackpatcher.hxx b/xmloff/source/text/XMLPropertyBackpatcher.hxx
index 42f2009f25e0..872bf2d1b0d3 100644
--- a/xmloff/source/text/XMLPropertyBackpatcher.hxx
+++ b/xmloff/source/text/XMLPropertyBackpatcher.hxx
@@ -105,21 +105,6 @@ public:
XMLPropertyBackpatcher(
const ::rtl::OUString& sPropertyName);
- XMLPropertyBackpatcher(
- const ::rtl::OUString& sPropertyName,
- const ::rtl::OUString& sPreservePropertyName,
- sal_Bool bDefault,
- A aDef);
-
- XMLPropertyBackpatcher(
- const sal_Char* pPropertyName);
-
- XMLPropertyBackpatcher(
- const sal_Char* pPropertyName,
- const sal_Char* pPreservePropertyName,
- sal_Bool bDefault,
- A aDef);
-
~XMLPropertyBackpatcher();
/// resolve a known ID.
diff --git a/xmloff/source/text/txtflde.cxx b/xmloff/source/text/txtflde.cxx
index cc8a3991633c..410bb05d6938 100644
--- a/xmloff/source/text/txtflde.cxx
+++ b/xmloff/source/text/txtflde.cxx
@@ -2656,21 +2656,6 @@ void XMLTextFieldExport::ProcessDateTime(enum XMLTokenEnum eName,
ProcessString(eName, aBuffer.makeStringAndClear(), sal_True, nPrefix);
}
-/// export date according to ISO 8601
-void XMLTextFieldExport::ProcessDate(
- enum XMLTokenEnum eName,
- const ::com::sun::star::util::Date& rDate,
- sal_uInt16 nPrefix)
-{
- // the easiest way: delegate to ProcessDateTime (as date)
- DateTime aDateTime;
- aDateTime.Day = rDate.Day;
- aDateTime.Month = rDate.Month;
- aDateTime.Year = rDate.Year;
- ProcessDateTime(eName, aDateTime, sal_True, nPrefix);
-}
-
-
/// export a date, time, or duration
void XMLTextFieldExport::ProcessDateTime(enum XMLTokenEnum eName,
sal_Int32 nMinutes,