summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorMarcos Paulo de Souza <marcos.souza.org@gmail.com>2013-09-02 10:55:15 -0300
committerThomas Arnhold <thomas@arnhold.org>2013-09-03 09:16:14 +0000
commitb62826ad3887305a76ee1ceabe2060f9d6e8723f (patch)
tree554edd25a04e870c00799bb8d103ddfa3baf8de2 /unotools
parentea7ce8cf08521a7609d2ffc0969b1541fbbb9d0c (diff)
Remove more unused methods
Change-Id: I79548f9dd1b83ef940e7a1302cf7b728610fed4a Reviewed-on: https://gerrit.libreoffice.org/5757 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/config/xmlaccelcfg.cxx63
1 files changed, 0 insertions, 63 deletions
diff --git a/unotools/source/config/xmlaccelcfg.cxx b/unotools/source/config/xmlaccelcfg.cxx
index c0143d4f0a24..9fe1d929b2bd 100644
--- a/unotools/source/config/xmlaccelcfg.cxx
+++ b/unotools/source/config/xmlaccelcfg.cxx
@@ -332,67 +332,4 @@ void SAL_CALL OReadAccelatorDocumentHandler::endElement( const OUString& aName )
}
}
-// ------------------------------------------------------------------
-
-OWriteAccelatorDocumentHandler::OWriteAccelatorDocumentHandler(
- const SvtAcceleratorItemList& aWriteAcceleratorList, Reference< XDocumentHandler > xDocumentHandler ) :
- m_xWriteDocumentHandler( xDocumentHandler ),
- m_aWriteAcceleratorList( aWriteAcceleratorList )
-{
- m_aAttributeType = OUString( ATTRIBUTE_TYPE_CDATA );
-}
-
-OWriteAccelatorDocumentHandler::~OWriteAccelatorDocumentHandler()
-{
-}
-
-void OWriteAccelatorDocumentHandler::WriteAcceleratorDocument()
- throw ( SAXException, RuntimeException )
-{
- AttributeListImpl* pList = new AttributeListImpl;
- Reference< XAttributeList > rList( (XAttributeList *)pList , UNO_QUERY );
-
- m_xWriteDocumentHandler->startDocument();
- m_xWriteDocumentHandler->startElement( OUString( ELEMENT_ACCELERATORLIST ), rList );
- m_xWriteDocumentHandler->ignorableWhitespace( OUString() );
-
- std::list< SvtAcceleratorConfigItem>::const_iterator p;
- for ( p = m_aWriteAcceleratorList.begin(); p != m_aWriteAcceleratorList.end(); ++p )
- WriteAcceleratorItem( *p );
-
- m_xWriteDocumentHandler->endElement( OUString( ELEMENT_ACCELERATORLIST ) );
- m_xWriteDocumentHandler->endDocument();
-}
-
-void OWriteAccelatorDocumentHandler::WriteAcceleratorItem(
- const SvtAcceleratorConfigItem& aAcceleratorItem )
- throw( SAXException, RuntimeException )
-{
- AttributeListImpl* pAcceleratorAttributes = new AttributeListImpl;
- Reference< XAttributeList > xAcceleratorAttrList( (XAttributeList *)pAcceleratorAttributes , UNO_QUERY );
-
- // set attributes
- pAcceleratorAttributes->addAttribute(
- OUString( ATTRIBUTE_KEYCODE ),
- m_aAttributeType,
- OUString( aAcceleratorItem.nCode ));
-
- pAcceleratorAttributes->addAttribute(
- OUString( ATTRIBUTE_MODIFIER ),
- m_aAttributeType,
- OUString( aAcceleratorItem.nModifier ));
-
- pAcceleratorAttributes->addAttribute(
- OUString( ATTRIBUTE_URL ),
- m_aAttributeType,
- aAcceleratorItem.aCommand );
-
- // write start element
- m_xWriteDocumentHandler->startElement(
- OUString( ELEMENT_ACCELERATORITEM ),
- xAcceleratorAttrList );
- m_xWriteDocumentHandler->ignorableWhitespace( OUString() );
- m_xWriteDocumentHandler->endElement( OUString( ELEMENT_ACCELERATORITEM ) );
-}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */