summaryrefslogtreecommitdiff
path: root/xmloff/source/forms/propertyimport.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source/forms/propertyimport.cxx')
-rw-r--r--xmloff/source/forms/propertyimport.cxx40
1 files changed, 0 insertions, 40 deletions
diff --git a/xmloff/source/forms/propertyimport.cxx b/xmloff/source/forms/propertyimport.cxx
index 0ba21d22ba99..d305a86dc77b 100644
--- a/xmloff/source/forms/propertyimport.cxx
+++ b/xmloff/source/forms/propertyimport.cxx
@@ -17,7 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-
#include "propertyimport.hxx"
#include <sax/tools/converter.hxx>
@@ -41,10 +40,8 @@
#include <osl/thread.h>
#endif
-//.........................................................................
namespace xmloff
{
-//.........................................................................
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::beans;
@@ -58,12 +55,9 @@ namespace xmloff
#define TYPE_TIME 2
#define TYPE_DATETIME 3
-//=====================================================================
//= PropertyConversion
-//=====================================================================
namespace
{
- //---------------------------------------------------------------------
::com::sun::star::util::Time lcl_getTime(double _nValue)
{
::com::sun::star::util::Time aTime;
@@ -80,7 +74,6 @@ namespace
return aTime;
}
- //---------------------------------------------------------------------
static ::com::sun::star::util::Date lcl_getDate( double _nValue )
{
Date aToolsDate((sal_uInt32)_nValue);
@@ -90,7 +83,6 @@ namespace
}
}
-//---------------------------------------------------------------------
Any PropertyConversion::convertString( SvXMLImport& _rImporter, const ::com::sun::star::uno::Type& _rExpectedType,
const OUString& _rReadCharacters, const SvXMLEnumMapEntry* _pEnumMap, const sal_Bool _bInvertBoolean )
{
@@ -241,7 +233,6 @@ Any PropertyConversion::convertString( SvXMLImport& _rImporter, const ::com::sun
return aReturn;
}
-//---------------------------------------------------------------------
Type PropertyConversion::xmlTypeToUnoType( const OUString& _rType )
{
Type aUnoType( ::getVoidCppuType() );
@@ -263,10 +254,7 @@ Type PropertyConversion::xmlTypeToUnoType( const OUString& _rType )
return aUnoType;
}
-//=====================================================================
//= OPropertyImport
-//=====================================================================
-//---------------------------------------------------------------------
OPropertyImport::OPropertyImport(OFormLayerXMLImport_Impl& _rImport, sal_uInt16 _nPrefix, const OUString& _rName)
:SvXMLImportContext(_rImport.getGlobalContext(), _nPrefix, _rName)
,m_rContext(_rImport)
@@ -274,7 +262,6 @@ OPropertyImport::OPropertyImport(OFormLayerXMLImport_Impl& _rImport, sal_uInt16
{
}
-//---------------------------------------------------------------------
SvXMLImportContext* OPropertyImport::CreateChildContext(sal_uInt16 _nPrefix, const OUString& _rLocalName,
const Reference< XAttributeList >& _rxAttrList)
{
@@ -292,7 +279,6 @@ SvXMLImportContext* OPropertyImport::CreateChildContext(sal_uInt16 _nPrefix, con
}
}
-//---------------------------------------------------------------------
void OPropertyImport::StartElement(const Reference< XAttributeList >& _rxAttrList)
{
OSL_ENSURE(_rxAttrList.is(), "OPropertyImport::StartElement: invalid attribute list!");
@@ -319,14 +305,12 @@ void OPropertyImport::StartElement(const Reference< XAttributeList >& _rxAttrLis
// default
}
-//---------------------------------------------------------------------
sal_Bool OPropertyImport::encounteredAttribute(const OUString& _rAttributeName) const
{
OSL_ENSURE(m_bTrackAttributes, "OPropertyImport::encounteredAttribute: attribute tracking not enabled!");
return m_aEncounteredAttributes.end() != m_aEncounteredAttributes.find(_rAttributeName);
}
-//---------------------------------------------------------------------
void OPropertyImport::Characters(const OUString&
#if OSL_DEBUG_LEVEL > 0
_rChars
@@ -337,7 +321,6 @@ _rChars
OSL_ENSURE(_rChars.trim().isEmpty(), "OPropertyImport::Characters: non-whitespace characters!");
}
-//---------------------------------------------------------------------
bool OPropertyImport::handleAttribute(sal_uInt16 /*_nNamespaceKey*/, const OUString& _rLocalName, const OUString& _rValue)
{
const OAttribute2Property::AttributeAssignment* pProperty = m_rContext.getAttributeMap().getAttributeTranslation(_rLocalName);
@@ -367,10 +350,7 @@ bool OPropertyImport::handleAttribute(sal_uInt16 /*_nNamespaceKey*/, const OUStr
return true;
}
-//=====================================================================
//= OPropertyElementsContext
-//=====================================================================
-//---------------------------------------------------------------------
OPropertyElementsContext::OPropertyElementsContext(SvXMLImport& _rImport, sal_uInt16 _nPrefix, const OUString& _rName,
const OPropertyImportRef& _rPropertyImporter)
:SvXMLImportContext(_rImport, _nPrefix, _rName)
@@ -378,7 +358,6 @@ OPropertyElementsContext::OPropertyElementsContext(SvXMLImport& _rImport, sal_uI
{
}
-//---------------------------------------------------------------------
SvXMLImportContext* OPropertyElementsContext::CreateChildContext(sal_uInt16 _nPrefix, const OUString& _rLocalName,
const Reference< XAttributeList >&)
{
@@ -400,14 +379,12 @@ SvXMLImportContext* OPropertyElementsContext::CreateChildContext(sal_uInt16 _nPr
}
#if OSL_DEBUG_LEVEL > 0
- //---------------------------------------------------------------------
void OPropertyElementsContext::StartElement(const Reference< XAttributeList >& _rxAttrList)
{
OSL_ENSURE(0 == _rxAttrList->getLength(), "OPropertyElementsContext::StartElement: the form:properties element should not have attributes!");
SvXMLImportContext::StartElement(_rxAttrList);
}
- //---------------------------------------------------------------------
void OPropertyElementsContext::Characters(const OUString& _rChars)
{
OSL_ENSURE(0 == _rChars.trim(), "OPropertyElementsContext::Characters: non-whitespace characters detected!");
@@ -416,10 +393,7 @@ SvXMLImportContext* OPropertyElementsContext::CreateChildContext(sal_uInt16 _nPr
#endif
-//=====================================================================
//= OSinglePropertyContext
-//=====================================================================
-//---------------------------------------------------------------------
OSinglePropertyContext::OSinglePropertyContext(SvXMLImport& _rImport, sal_uInt16 _nPrefix, const OUString& _rName,
const OPropertyImportRef& _rPropertyImporter)
:SvXMLImportContext(_rImport, _nPrefix, _rName)
@@ -427,7 +401,6 @@ OSinglePropertyContext::OSinglePropertyContext(SvXMLImport& _rImport, sal_uInt16
{
}
-//---------------------------------------------------------------------
SvXMLImportContext* OSinglePropertyContext::CreateChildContext(sal_uInt16 _nPrefix, const OUString& _rLocalName,
const Reference< XAttributeList >&)
{
@@ -437,7 +410,6 @@ SvXMLImportContext* OSinglePropertyContext::CreateChildContext(sal_uInt16 _nPref
return new SvXMLImportContext(GetImport(), _nPrefix, _rLocalName);
}
-//---------------------------------------------------------------------
void OSinglePropertyContext::StartElement(const Reference< XAttributeList >& _rxAttrList)
{
::com::sun::star::beans::PropertyValue aPropValue; // the property the instance imports currently
@@ -495,10 +467,7 @@ void OSinglePropertyContext::StartElement(const Reference< XAttributeList >& _rx
m_xPropertyImporter->implPushBackGenericPropertyValue(aPropValue);
}
-//=====================================================================
//= OListPropertyContext
-//=====================================================================
-//---------------------------------------------------------------------
OListPropertyContext::OListPropertyContext( SvXMLImport& _rImport, sal_uInt16 _nPrefix, const OUString& _rName,
const OPropertyImportRef& _rPropertyImporter )
:SvXMLImportContext( _rImport, _nPrefix, _rName )
@@ -506,7 +475,6 @@ OListPropertyContext::OListPropertyContext( SvXMLImport& _rImport, sal_uInt16 _n
{
}
-//---------------------------------------------------------------------
void OListPropertyContext::StartElement( const Reference< XAttributeList >& _rxAttrList )
{
sal_Int32 nAttributeCount = _rxAttrList->getLength();
@@ -538,7 +506,6 @@ void OListPropertyContext::StartElement( const Reference< XAttributeList >& _rxA
}
}
-//---------------------------------------------------------------------
void OListPropertyContext::EndElement()
{
OSL_ENSURE( !m_sPropertyName.isEmpty() && !m_sPropertyType.isEmpty(),
@@ -565,7 +532,6 @@ void OListPropertyContext::EndElement()
m_xPropertyImporter->implPushBackGenericPropertyValue( aSequenceValue );
}
-//---------------------------------------------------------------------
SvXMLImportContext* OListPropertyContext::CreateChildContext( sal_uInt16 _nPrefix, const OUString& _rLocalName, const Reference< XAttributeList >& /*_rxAttrList*/ )
{
if ( token::IsXMLToken( _rLocalName, token::XML_LIST_VALUE ) )
@@ -582,17 +548,13 @@ SvXMLImportContext* OListPropertyContext::CreateChildContext( sal_uInt16 _nPrefi
}
}
-//=====================================================================
//= OListValueContext
-//=====================================================================
-//---------------------------------------------------------------------
OListValueContext::OListValueContext( SvXMLImport& _rImport, sal_uInt16 _nPrefix, const OUString& _rName, OUString& _rListValueHolder )
:SvXMLImportContext( _rImport, _nPrefix, _rName )
,m_rListValueHolder( _rListValueHolder )
{
}
-//---------------------------------------------------------------------
void OListValueContext::StartElement( const Reference< XAttributeList >& _rxAttrList )
{
const sal_Int32 nAttributeCount = _rxAttrList->getLength();
@@ -621,8 +583,6 @@ void OListValueContext::StartElement( const Reference< XAttributeList >& _rxAttr
}
}
-//.........................................................................
} // namespace xmloff
-//.........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */