diff options
Diffstat (limited to 'framework/source/fwe/xml/menudocumenthandler.cxx')
-rw-r--r-- | framework/source/fwe/xml/menudocumenthandler.cxx | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/framework/source/fwe/xml/menudocumenthandler.cxx b/framework/source/fwe/xml/menudocumenthandler.cxx index 85479e99aaa3..4f02287d7001 100644 --- a/framework/source/fwe/xml/menudocumenthandler.cxx +++ b/framework/source/fwe/xml/menudocumenthandler.cxx @@ -17,7 +17,6 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ - #include <stdio.h> #include <sal/macros.h> @@ -34,7 +33,6 @@ #include <comphelper/processfactory.hxx> #include <comphelper/attributelist.hxx> - #define XMLNS_MENU "http://openoffice.org/2001/menu" #define ELEMENT_MENUBAR "http://openoffice.org/2001/menu^menubar" @@ -83,10 +81,8 @@ static const char CMD_PROTOCOL[] = ".uno:"; static const char ADDDIRECT_CMD[] = ".uno:AddDirect" ; static const char AUTOPILOTMENU_CMD[] = ".uno:AutoPilotMenu" ; - // using namespaces - using namespace ::com::sun::star::uno; using namespace ::com::sun::star::lang; using namespace ::com::sun::star::beans; @@ -109,7 +105,6 @@ MenuStyleItem MenuItemStyles[ ] = { { ::com::sun::star::ui::ItemStyle::RADIO_CHECK, ATTRIBUTE_ITEMSTYLE_RADIO } }; - sal_Int32 nMenuStyleItemEntries = (sizeof (MenuItemStyles) / sizeof (MenuItemStyles[0])); static void ExtractMenuParameters( const Sequence< PropertyValue > rProp, @@ -150,8 +145,6 @@ static void ExtractMenuParameters( const Sequence< PropertyValue > rProp, } } - - // Base class implementation ReadMenuDocumentHandlerBase::ReadMenuDocumentHandlerBase() : @@ -222,8 +215,6 @@ void ReadMenuDocumentHandlerBase::initPropertyCommon( rProps[5].Value <<= ::com::sun::star::ui::ItemType::DEFAULT; } - - OReadMenuDocumentHandler::OReadMenuDocumentHandler( const Reference< XIndexContainer >& rMenuBarContainer ) : m_nElementDepth( 0 ), @@ -237,13 +228,11 @@ OReadMenuDocumentHandler::~OReadMenuDocumentHandler() { } - void SAL_CALL OReadMenuDocumentHandler::startDocument(void) throw ( SAXException, RuntimeException, std::exception ) { } - void SAL_CALL OReadMenuDocumentHandler::endDocument(void) throw( SAXException, RuntimeException, std::exception ) { @@ -255,7 +244,6 @@ void SAL_CALL OReadMenuDocumentHandler::endDocument(void) } } - void SAL_CALL OReadMenuDocumentHandler::startElement( const OUString& aName, const Reference< XAttributeList > &xAttrList ) throw( SAXException, RuntimeException, std::exception ) @@ -275,13 +263,11 @@ throw( SAXException, RuntimeException, std::exception ) } } - void SAL_CALL OReadMenuDocumentHandler::characters(const OUString&) throw( SAXException, RuntimeException, std::exception ) { } - void SAL_CALL OReadMenuDocumentHandler::endElement( const OUString& aName ) throw( SAXException, RuntimeException, std::exception ) { @@ -304,9 +290,6 @@ void SAL_CALL OReadMenuDocumentHandler::endElement( const OUString& aName ) } } - - - OReadMenuBarHandler::OReadMenuBarHandler( const Reference< XIndexContainer >& rMenuBarContainer, const Reference< XSingleComponentFactory >& rFactory ) @@ -317,24 +300,20 @@ OReadMenuBarHandler::OReadMenuBarHandler( { } - OReadMenuBarHandler::~OReadMenuBarHandler() { } - void SAL_CALL OReadMenuBarHandler::startDocument(void) throw ( SAXException, RuntimeException, std::exception ) { } - void SAL_CALL OReadMenuBarHandler::endDocument(void) throw( SAXException, RuntimeException, std::exception ) { } - void SAL_CALL OReadMenuBarHandler::startElement( const OUString& rName, const Reference< XAttributeList > &xAttrList ) throw( SAXException, RuntimeException, std::exception ) @@ -424,13 +403,11 @@ throw( SAXException, RuntimeException, std::exception ) } } - void SAL_CALL OReadMenuBarHandler::characters(const OUString&) throw( SAXException, RuntimeException, std::exception ) { } - void OReadMenuBarHandler::endElement( const OUString& aName ) throw( SAXException, RuntimeException, std::exception ) { @@ -454,10 +431,6 @@ void OReadMenuBarHandler::endElement( const OUString& aName ) } } - - - - OReadMenuHandler::OReadMenuHandler( const Reference< XIndexContainer >& rMenuContainer, const Reference< XSingleComponentFactory >& rFactory ) : @@ -468,24 +441,20 @@ OReadMenuHandler::OReadMenuHandler( { } - OReadMenuHandler::~OReadMenuHandler() { } - void SAL_CALL OReadMenuHandler::startDocument(void) throw ( SAXException, RuntimeException, std::exception ) { } - void SAL_CALL OReadMenuHandler::endDocument(void) throw( SAXException, RuntimeException, std::exception) { } - void SAL_CALL OReadMenuHandler::startElement( const OUString& aName, const Reference< XAttributeList > &xAttrList ) throw( SAXException, RuntimeException, std::exception ) @@ -510,13 +479,11 @@ throw( SAXException, RuntimeException, std::exception ) } } - void SAL_CALL OReadMenuHandler::characters(const OUString&) throw( SAXException, RuntimeException, std::exception ) { } - void SAL_CALL OReadMenuHandler::endElement( const OUString& aName ) throw( SAXException, RuntimeException, std::exception ) { @@ -540,10 +507,6 @@ void SAL_CALL OReadMenuHandler::endElement( const OUString& aName ) } } - - - - OReadMenuPopupHandler::OReadMenuPopupHandler( const Reference< XIndexContainer >& rMenuContainer, const Reference< XSingleComponentFactory >& rFactory ) : @@ -556,18 +519,15 @@ OReadMenuPopupHandler::OReadMenuPopupHandler( { } - OReadMenuPopupHandler::~OReadMenuPopupHandler() { } - void SAL_CALL OReadMenuPopupHandler::startDocument(void) throw ( SAXException, RuntimeException, std::exception ) { } - void SAL_CALL OReadMenuPopupHandler::endDocument(void) throw( SAXException, RuntimeException, std::exception) { @@ -714,13 +674,11 @@ throw( SAXException, RuntimeException, std::exception ) } } - void SAL_CALL OReadMenuPopupHandler::characters(const OUString&) throw( SAXException, RuntimeException, std::exception ) { } - void SAL_CALL OReadMenuPopupHandler::endElement( const OUString& aName ) throw( SAXException, RuntimeException, std::exception ) { @@ -767,10 +725,8 @@ void SAL_CALL OReadMenuPopupHandler::endElement( const OUString& aName ) } } - // --------------------------------- Write XML --------------------------------- - OWriteMenuDocumentHandler::OWriteMenuDocumentHandler( const Reference< XIndexAccess >& rMenuBarContainer, const Reference< XDocumentHandler >& rDocumentHandler ) : @@ -782,12 +738,10 @@ OWriteMenuDocumentHandler::OWriteMenuDocumentHandler( m_aAttributeType = OUString( ATTRIBUTE_TYPE_CDATA ); } - OWriteMenuDocumentHandler::~OWriteMenuDocumentHandler() { } - void OWriteMenuDocumentHandler::WriteMenuDocument() throw ( SAXException, RuntimeException ) { @@ -823,7 +777,6 @@ throw ( SAXException, RuntimeException ) m_xWriteDocumentHandler->endDocument(); } - void OWriteMenuDocumentHandler::WriteMenu( const Reference< XIndexAccess >& rMenuContainer ) throw ( SAXException, RuntimeException ) { @@ -904,7 +857,6 @@ throw ( SAXException, RuntimeException ) } } - void OWriteMenuDocumentHandler::WriteMenuItem( const OUString& aCommandURL, const OUString& aLabel, const OUString& aHelpURL, sal_Int16 nStyle ) { ::comphelper::AttributeList* pList = new ::comphelper::AttributeList; @@ -952,7 +904,6 @@ void OWriteMenuDocumentHandler::WriteMenuItem( const OUString& aCommandURL, cons m_xWriteDocumentHandler->endElement( OUString( ELEMENT_NS_MENUITEM ) ); } - void OWriteMenuDocumentHandler::WriteMenuSeparator() { m_xWriteDocumentHandler->ignorableWhitespace( OUString() ); |