Kaydet (Commit) b5d7f920 authored tarafından Thomas Arnhold's avatar Thomas Arnhold

fwk: some follow up of rtl cleanup

Change-Id: I434e714b6e5a38795c0baca85b51eef85a4732fd
üst fd438075
...@@ -569,13 +569,13 @@ void MenuManager::UpdateSpecialFileMenu( Menu* pMenu ) ...@@ -569,13 +569,13 @@ void MenuManager::UpdateSpecialFileMenu( Menu* pMenu )
else else
{ {
menuShortCut[1] = (char)( '1' + i ); menuShortCut[1] = (char)( '1' + i );
aMenuShortCut = OUString( RTL_CONSTASCII_USTRINGPARAM( menuShortCut ) ); aMenuShortCut = OUString::createFromAscii( menuShortCut );
} }
} }
else else
{ {
aMenuShortCut = OUString::valueOf((sal_Int32)( i + 1 )); aMenuShortCut = OUString::valueOf((sal_Int32)( i + 1 ));
aMenuShortCut += OUString( ": " ); aMenuShortCut += ": ";
} }
// Abbreviate URL // Abbreviate URL
......
...@@ -253,7 +253,7 @@ void SAL_CALL OReadMenuDocumentHandler::endDocument(void) ...@@ -253,7 +253,7 @@ void SAL_CALL OReadMenuDocumentHandler::endDocument(void)
if ( m_nElementDepth > 0 ) if ( m_nElementDepth > 0 )
{ {
OUString aErrorMessage = getErrorLineString(); OUString aErrorMessage = getErrorLineString();
aErrorMessage += OUString( "A closing element is missing!" ); aErrorMessage += "A closing element is missing!";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() ); throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
} }
} }
...@@ -300,7 +300,7 @@ void SAL_CALL OReadMenuDocumentHandler::endElement( const OUString& aName ) ...@@ -300,7 +300,7 @@ void SAL_CALL OReadMenuDocumentHandler::endElement( const OUString& aName )
if ( !aName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( ELEMENT_MENUBAR ))) if ( !aName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( ELEMENT_MENUBAR )))
{ {
OUString aErrorMessage = getErrorLineString(); OUString aErrorMessage = getErrorLineString();
aErrorMessage += OUString( "closing element menubar expected!" ); aErrorMessage += "closing element menubar expected!";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() ); throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
} }
} }
...@@ -411,7 +411,7 @@ throw( SAXException, RuntimeException ) ...@@ -411,7 +411,7 @@ throw( SAXException, RuntimeException )
else else
{ {
OUString aErrorMessage = getErrorLineString(); OUString aErrorMessage = getErrorLineString();
aErrorMessage += OUString( "attribute id for element menu required!" ); aErrorMessage += "attribute id for element menu required!";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() ); throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
} }
...@@ -422,7 +422,7 @@ throw( SAXException, RuntimeException ) ...@@ -422,7 +422,7 @@ throw( SAXException, RuntimeException )
else else
{ {
OUString aErrorMessage = getErrorLineString(); OUString aErrorMessage = getErrorLineString();
aErrorMessage += OUString( "element menu expected!" ); aErrorMessage += "element menu expected!";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() ); throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
} }
} }
...@@ -448,7 +448,7 @@ void OReadMenuBarHandler::endElement( const OUString& aName ) ...@@ -448,7 +448,7 @@ void OReadMenuBarHandler::endElement( const OUString& aName )
if ( !aName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( ELEMENT_MENU ))) if ( !aName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( ELEMENT_MENU )))
{ {
OUString aErrorMessage = getErrorLineString(); OUString aErrorMessage = getErrorLineString();
aErrorMessage += OUString( "closing element menu expected!" ); aErrorMessage += "closing element menu expected!";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() ); throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
} }
} }
...@@ -508,7 +508,7 @@ throw( SAXException, RuntimeException ) ...@@ -508,7 +508,7 @@ throw( SAXException, RuntimeException )
else else
{ {
OUString aErrorMessage = getErrorLineString(); OUString aErrorMessage = getErrorLineString();
aErrorMessage += OUString( "unknown element found!" ); aErrorMessage += "unknown element found!";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() ); throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
} }
} }
...@@ -534,7 +534,7 @@ void SAL_CALL OReadMenuHandler::endElement( const OUString& aName ) ...@@ -534,7 +534,7 @@ void SAL_CALL OReadMenuHandler::endElement( const OUString& aName )
if ( !aName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( ELEMENT_MENUPOPUP ))) if ( !aName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( ELEMENT_MENUPOPUP )))
{ {
OUString aErrorMessage = getErrorLineString(); OUString aErrorMessage = getErrorLineString();
aErrorMessage += OUString( "closing element menupopup expected!" ); aErrorMessage += "closing element menupopup expected!";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() ); throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
} }
} }
...@@ -642,7 +642,7 @@ throw( SAXException, RuntimeException ) ...@@ -642,7 +642,7 @@ throw( SAXException, RuntimeException )
else else
{ {
OUString aErrorMessage = getErrorLineString(); OUString aErrorMessage = getErrorLineString();
aErrorMessage += OUString( "attribute id for element menu required!" ); aErrorMessage += "attribute id for element menu required!";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() ); throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
} }
...@@ -712,7 +712,7 @@ throw( SAXException, RuntimeException ) ...@@ -712,7 +712,7 @@ throw( SAXException, RuntimeException )
else else
{ {
OUString aErrorMessage = getErrorLineString(); OUString aErrorMessage = getErrorLineString();
aErrorMessage += OUString( "unknown element found!" ); aErrorMessage += "unknown element found!";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() ); throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
} }
} }
...@@ -738,7 +738,7 @@ void SAL_CALL OReadMenuPopupHandler::endElement( const OUString& aName ) ...@@ -738,7 +738,7 @@ void SAL_CALL OReadMenuPopupHandler::endElement( const OUString& aName )
if ( !aName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( ELEMENT_MENU ))) if ( !aName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( ELEMENT_MENU )))
{ {
OUString aErrorMessage = getErrorLineString(); OUString aErrorMessage = getErrorLineString();
aErrorMessage += OUString( "closing element menu expected!" ); aErrorMessage += "closing element menu expected!";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() ); throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
} }
} }
...@@ -752,7 +752,7 @@ void SAL_CALL OReadMenuPopupHandler::endElement( const OUString& aName ) ...@@ -752,7 +752,7 @@ void SAL_CALL OReadMenuPopupHandler::endElement( const OUString& aName )
if ( !aName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( ELEMENT_MENUITEM ))) if ( !aName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( ELEMENT_MENUITEM )))
{ {
OUString aErrorMessage = getErrorLineString(); OUString aErrorMessage = getErrorLineString();
aErrorMessage += OUString( "closing element menuitem expected!" ); aErrorMessage += "closing element menuitem expected!";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() ); throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
} }
} }
...@@ -761,7 +761,7 @@ void SAL_CALL OReadMenuPopupHandler::endElement( const OUString& aName ) ...@@ -761,7 +761,7 @@ void SAL_CALL OReadMenuPopupHandler::endElement( const OUString& aName )
if ( !aName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( ELEMENT_MENUSEPARATOR ))) if ( !aName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( ELEMENT_MENUSEPARATOR )))
{ {
OUString aErrorMessage = getErrorLineString(); OUString aErrorMessage = getErrorLineString();
aErrorMessage += OUString( "closing element menuseparator expected!" ); aErrorMessage += "closing element menuseparator expected!";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() ); throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
} }
} }
......
...@@ -198,7 +198,7 @@ throw( SAXException, RuntimeException ) ...@@ -198,7 +198,7 @@ throw( SAXException, RuntimeException )
( !m_bStatusBarStartFound && m_bStatusBarEndFound ) ) ( !m_bStatusBarStartFound && m_bStatusBarEndFound ) )
{ {
OUString aErrorMessage = getErrorLineString(); OUString aErrorMessage = getErrorLineString();
aErrorMessage += OUString( "No matching start or end element 'statusbar' found!" ); aErrorMessage += "No matching start or end element 'statusbar' found!";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() ); throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
} }
} }
...@@ -219,7 +219,7 @@ throw( SAXException, RuntimeException ) ...@@ -219,7 +219,7 @@ throw( SAXException, RuntimeException )
if ( m_bStatusBarStartFound ) if ( m_bStatusBarStartFound )
{ {
OUString aErrorMessage = getErrorLineString(); OUString aErrorMessage = getErrorLineString();
aErrorMessage += OUString( "Element 'statusbar:statusbar' cannot be embeded into 'statusbar:statusbar'!" ); aErrorMessage += "Element 'statusbar:statusbar' cannot be embeded into 'statusbar:statusbar'!";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() ); throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
} }
...@@ -232,14 +232,14 @@ throw( SAXException, RuntimeException ) ...@@ -232,14 +232,14 @@ throw( SAXException, RuntimeException )
if ( !m_bStatusBarStartFound ) if ( !m_bStatusBarStartFound )
{ {
OUString aErrorMessage = getErrorLineString(); OUString aErrorMessage = getErrorLineString();
aErrorMessage += OUString( "Element 'statusbar:statusbaritem' must be embeded into element 'statusbar:statusbar'!" ); aErrorMessage += "Element 'statusbar:statusbaritem' must be embeded into element 'statusbar:statusbar'!";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() ); throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
} }
if ( m_bStatusBarItemStartFound ) if ( m_bStatusBarItemStartFound )
{ {
OUString aErrorMessage = getErrorLineString(); OUString aErrorMessage = getErrorLineString();
aErrorMessage += OUString( "Element statusbar:statusbaritem is not a container!" ); aErrorMessage += "Element statusbar:statusbaritem is not a container!";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() ); throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
} }
...@@ -284,7 +284,7 @@ throw( SAXException, RuntimeException ) ...@@ -284,7 +284,7 @@ throw( SAXException, RuntimeException )
else else
{ {
OUString aErrorMessage = getErrorLineString(); OUString aErrorMessage = getErrorLineString();
aErrorMessage += OUString( "Attribute statusbar:align must have one value of 'left','right' or 'center'!" ); aErrorMessage += "Attribute statusbar:align must have one value of 'left','right' or 'center'!";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() ); throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
} }
} }
...@@ -309,7 +309,7 @@ throw( SAXException, RuntimeException ) ...@@ -309,7 +309,7 @@ throw( SAXException, RuntimeException )
else else
{ {
OUString aErrorMessage = getErrorLineString(); OUString aErrorMessage = getErrorLineString();
aErrorMessage += OUString( "Attribute statusbar:autosize must have value 'true' or 'false'!" ); aErrorMessage += "Attribute statusbar:autosize must have value 'true' or 'false'!";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() ); throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
} }
} }
...@@ -324,7 +324,7 @@ throw( SAXException, RuntimeException ) ...@@ -324,7 +324,7 @@ throw( SAXException, RuntimeException )
else else
{ {
OUString aErrorMessage = getErrorLineString(); OUString aErrorMessage = getErrorLineString();
aErrorMessage += OUString( "Attribute statusbar:autosize must have value 'true' or 'false'!" ); aErrorMessage += "Attribute statusbar:autosize must have value 'true' or 'false'!";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() ); throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
} }
} }
...@@ -339,7 +339,7 @@ throw( SAXException, RuntimeException ) ...@@ -339,7 +339,7 @@ throw( SAXException, RuntimeException )
else else
{ {
OUString aErrorMessage = getErrorLineString(); OUString aErrorMessage = getErrorLineString();
aErrorMessage += OUString( "Attribute statusbar:ownerdraw must have value 'true' or 'false'!" ); aErrorMessage += "Attribute statusbar:ownerdraw must have value 'true' or 'false'!";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() ); throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
} }
} }
...@@ -372,7 +372,7 @@ throw( SAXException, RuntimeException ) ...@@ -372,7 +372,7 @@ throw( SAXException, RuntimeException )
if ( !bCommandURL ) if ( !bCommandURL )
{ {
OUString aErrorMessage = getErrorLineString(); OUString aErrorMessage = getErrorLineString();
aErrorMessage += OUString( "Required attribute statusbar:url must have a value!" ); aErrorMessage += "Required attribute statusbar:url must have a value!";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() ); throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
} }
else else
...@@ -418,7 +418,7 @@ throw( SAXException, RuntimeException ) ...@@ -418,7 +418,7 @@ throw( SAXException, RuntimeException )
if ( !m_bStatusBarStartFound ) if ( !m_bStatusBarStartFound )
{ {
OUString aErrorMessage = getErrorLineString(); OUString aErrorMessage = getErrorLineString();
aErrorMessage += OUString( "End element 'statusbar' found, but no start element 'statusbar'" ); aErrorMessage += "End element 'statusbar' found, but no start element 'statusbar'";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() ); throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
} }
...@@ -431,7 +431,7 @@ throw( SAXException, RuntimeException ) ...@@ -431,7 +431,7 @@ throw( SAXException, RuntimeException )
if ( !m_bStatusBarItemStartFound ) if ( !m_bStatusBarItemStartFound )
{ {
OUString aErrorMessage = getErrorLineString(); OUString aErrorMessage = getErrorLineString();
aErrorMessage += OUString( "End element 'statusbar:statusbaritem' found, but no start element 'statusbar:statusbaritem'" ); aErrorMessage += "End element 'statusbar:statusbaritem' found, but no start element 'statusbar:statusbaritem'";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() ); throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
} }
......
...@@ -210,7 +210,7 @@ throw( SAXException, RuntimeException ) ...@@ -210,7 +210,7 @@ throw( SAXException, RuntimeException )
( !m_bToolBarStartFound && m_bToolBarEndFound ) ) ( !m_bToolBarStartFound && m_bToolBarEndFound ) )
{ {
OUString aErrorMessage = getErrorLineString(); OUString aErrorMessage = getErrorLineString();
aErrorMessage += OUString( "No matching start or end element 'toolbar' found!" ); aErrorMessage += "No matching start or end element 'toolbar' found!";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() ); throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
} }
} }
...@@ -231,7 +231,7 @@ throw( SAXException, RuntimeException ) ...@@ -231,7 +231,7 @@ throw( SAXException, RuntimeException )
if ( m_bToolBarStartFound ) if ( m_bToolBarStartFound )
{ {
OUString aErrorMessage = getErrorLineString(); OUString aErrorMessage = getErrorLineString();
aErrorMessage += OUString( "Element 'toolbar:toolbar' cannot be embeded into 'toolbar:toolbar'!" ); aErrorMessage += "Element 'toolbar:toolbar' cannot be embeded into 'toolbar:toolbar'!";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() ); throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
} }
else else
...@@ -280,7 +280,7 @@ throw( SAXException, RuntimeException ) ...@@ -280,7 +280,7 @@ throw( SAXException, RuntimeException )
if ( !m_bToolBarStartFound ) if ( !m_bToolBarStartFound )
{ {
OUString aErrorMessage = getErrorLineString(); OUString aErrorMessage = getErrorLineString();
aErrorMessage += OUString( "Element 'toolbar:toolbaritem' must be embeded into element 'toolbar:toolbar'!" ); aErrorMessage += "Element 'toolbar:toolbaritem' must be embeded into element 'toolbar:toolbar'!";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() ); throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
} }
...@@ -290,7 +290,7 @@ throw( SAXException, RuntimeException ) ...@@ -290,7 +290,7 @@ throw( SAXException, RuntimeException )
m_bToolBarItemStartFound ) m_bToolBarItemStartFound )
{ {
OUString aErrorMessage = getErrorLineString(); OUString aErrorMessage = getErrorLineString();
aErrorMessage += OUString( "Element toolbar:toolbaritem is not a container!" ); aErrorMessage += "Element toolbar:toolbaritem is not a container!";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() ); throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
} }
...@@ -346,7 +346,7 @@ throw( SAXException, RuntimeException ) ...@@ -346,7 +346,7 @@ throw( SAXException, RuntimeException )
else else
{ {
OUString aErrorMessage = getErrorLineString(); OUString aErrorMessage = getErrorLineString();
aErrorMessage += OUString( "Attribute toolbar:visible must have value 'true' or 'false'!" ); aErrorMessage += "Attribute toolbar:visible must have value 'true' or 'false'!";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() ); throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
} }
} }
...@@ -408,7 +408,7 @@ throw( SAXException, RuntimeException ) ...@@ -408,7 +408,7 @@ throw( SAXException, RuntimeException )
if ( !bAttributeURL ) if ( !bAttributeURL )
{ {
OUString aErrorMessage = getErrorLineString(); OUString aErrorMessage = getErrorLineString();
aErrorMessage += OUString( "Required attribute toolbar:url must have a value!" ); aErrorMessage += "Required attribute toolbar:url must have a value!";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() ); throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
} }
...@@ -461,7 +461,7 @@ throw( SAXException, RuntimeException ) ...@@ -461,7 +461,7 @@ throw( SAXException, RuntimeException )
m_bToolBarItemStartFound ) m_bToolBarItemStartFound )
{ {
OUString aErrorMessage = getErrorLineString(); OUString aErrorMessage = getErrorLineString();
aErrorMessage += OUString( "Element toolbar:toolbarspace is not a container!" ); aErrorMessage += "Element toolbar:toolbarspace is not a container!";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() ); throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
} }
...@@ -486,7 +486,7 @@ throw( SAXException, RuntimeException ) ...@@ -486,7 +486,7 @@ throw( SAXException, RuntimeException )
m_bToolBarItemStartFound ) m_bToolBarItemStartFound )
{ {
OUString aErrorMessage = getErrorLineString(); OUString aErrorMessage = getErrorLineString();
aErrorMessage += OUString( "Element toolbar:toolbarbreak is not a container!" ); aErrorMessage += "Element toolbar:toolbarbreak is not a container!";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() ); throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
} }
...@@ -511,7 +511,7 @@ throw( SAXException, RuntimeException ) ...@@ -511,7 +511,7 @@ throw( SAXException, RuntimeException )
m_bToolBarItemStartFound ) m_bToolBarItemStartFound )
{ {
OUString aErrorMessage = getErrorLineString(); OUString aErrorMessage = getErrorLineString();
aErrorMessage += OUString( "Element toolbar:toolbarseparator is not a container!" ); aErrorMessage += "Element toolbar:toolbarseparator is not a container!";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() ); throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
} }
...@@ -549,7 +549,7 @@ throw( SAXException, RuntimeException ) ...@@ -549,7 +549,7 @@ throw( SAXException, RuntimeException )
if ( !m_bToolBarStartFound ) if ( !m_bToolBarStartFound )
{ {
OUString aErrorMessage = getErrorLineString(); OUString aErrorMessage = getErrorLineString();
aErrorMessage += OUString( "End element 'toolbar' found, but no start element 'toolbar'" ); aErrorMessage += "End element 'toolbar' found, but no start element 'toolbar'";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() ); throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
} }
...@@ -562,7 +562,7 @@ throw( SAXException, RuntimeException ) ...@@ -562,7 +562,7 @@ throw( SAXException, RuntimeException )
if ( !m_bToolBarItemStartFound ) if ( !m_bToolBarItemStartFound )
{ {
OUString aErrorMessage = getErrorLineString(); OUString aErrorMessage = getErrorLineString();
aErrorMessage += OUString( "End element 'toolbar:toolbaritem' found, but no start element 'toolbar:toolbaritem'" ); aErrorMessage += "End element 'toolbar:toolbaritem' found, but no start element 'toolbar:toolbaritem'";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() ); throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
} }
...@@ -575,7 +575,7 @@ throw( SAXException, RuntimeException ) ...@@ -575,7 +575,7 @@ throw( SAXException, RuntimeException )
if ( !m_bToolBarBreakStartFound ) if ( !m_bToolBarBreakStartFound )
{ {
OUString aErrorMessage = getErrorLineString(); OUString aErrorMessage = getErrorLineString();
aErrorMessage += OUString( "End element 'toolbar:toolbarbreak' found, but no start element 'toolbar:toolbarbreak'" ); aErrorMessage += "End element 'toolbar:toolbarbreak' found, but no start element 'toolbar:toolbarbreak'";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() ); throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
} }
...@@ -588,7 +588,7 @@ throw( SAXException, RuntimeException ) ...@@ -588,7 +588,7 @@ throw( SAXException, RuntimeException )
if ( !m_bToolBarSpaceStartFound ) if ( !m_bToolBarSpaceStartFound )
{ {
OUString aErrorMessage = getErrorLineString(); OUString aErrorMessage = getErrorLineString();
aErrorMessage += OUString( "End element 'toolbar:toolbarspace' found, but no start element 'toolbar:toolbarspace'" ); aErrorMessage += "End element 'toolbar:toolbarspace' found, but no start element 'toolbar:toolbarspace'";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() ); throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
} }
...@@ -601,7 +601,7 @@ throw( SAXException, RuntimeException ) ...@@ -601,7 +601,7 @@ throw( SAXException, RuntimeException )
if ( !m_bToolBarSeparatorStartFound ) if ( !m_bToolBarSeparatorStartFound )
{ {
OUString aErrorMessage = getErrorLineString(); OUString aErrorMessage = getErrorLineString();
aErrorMessage += OUString( "End element 'toolbar:toolbarseparator' found, but no start element 'toolbar:toolbarseparator'" ); aErrorMessage += "End element 'toolbar:toolbarseparator' found, but no start element 'toolbar:toolbarseparator'";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() ); throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
} }
......
...@@ -104,7 +104,7 @@ OUString XMLNamespaces::applyNSToAttributeName( const OUString& aName ) const th ...@@ -104,7 +104,7 @@ OUString XMLNamespaces::applyNSToAttributeName( const OUString& aName ) const th
if ( aName.getLength() > index+1 ) if ( aName.getLength() > index+1 )
{ {
OUString aAttributeName = getNamespaceValue( aName.copy( 0, index ) ); OUString aAttributeName = getNamespaceValue( aName.copy( 0, index ) );
aAttributeName += OUString("^"); aAttributeName += "^";
aAttributeName += aName.copy( index+1 ); aAttributeName += aName.copy( index+1 );
return aAttributeName; return aAttributeName;
} }
...@@ -135,7 +135,7 @@ OUString XMLNamespaces::applyNSToElementName( const OUString& aName ) const th ...@@ -135,7 +135,7 @@ OUString XMLNamespaces::applyNSToElementName( const OUString& aName ) const th
if ( !aNamespace.isEmpty() ) if ( !aNamespace.isEmpty() )
{ {
aElementName = aNamespace; aElementName = aNamespace;
aElementName += OUString("^"); aElementName += "^";
} }
else else
return aName; return aName;
......
...@@ -257,7 +257,7 @@ void SubstitutePathVariables_Impl::GetSharePointsRules( SubstituteVariables& aSu ...@@ -257,7 +257,7 @@ void SubstitutePathVariables_Impl::GetSharePointsRules( SubstituteVariables& aSu
while ( nSharePoints < aSharePointNames.getLength() ) while ( nSharePoints < aSharePointNames.getLength() )
{ {
OUString aSharePointNodeName( m_aSharePointsNodeName ); OUString aSharePointNodeName( m_aSharePointsNodeName );
aSharePointNodeName += OUString("/"); aSharePointNodeName += "/";
aSharePointNodeName += aSharePointNames[ nSharePoints ]; aSharePointNodeName += aSharePointNames[ nSharePoints ];
SubstituteRuleVector aRuleSet; SubstituteRuleVector aRuleSet;
......
...@@ -264,45 +264,45 @@ throw (::com::sun::star::uno::RuntimeException) ...@@ -264,45 +264,45 @@ throw (::com::sun::star::uno::RuntimeException)
{ {
//set selected language as current language for selection //set selected language as current language for selection
String aSelectedLang = aLangMap[nId]; String aSelectedLang = aLangMap[nId];
aURL.Complete += OUString(".uno:LanguageStatus?Language:string=Current_"); aURL.Complete += ".uno:LanguageStatus?Language:string=Current_";
aURL.Complete += aSelectedLang; aURL.Complete += aSelectedLang;
} }
else if (nId == MID_LANG_SEL_NONE) else if (nId == MID_LANG_SEL_NONE)
{ {
//set None as current language for selection //set None as current language for selection
aURL.Complete += OUString(".uno:LanguageStatus?Language:string=Current_LANGUAGE_NONE"); aURL.Complete += ".uno:LanguageStatus?Language:string=Current_LANGUAGE_NONE";
} }
else if (nId == MID_LANG_SEL_RESET) else if (nId == MID_LANG_SEL_RESET)
{ {
// reset language attributes for selection // reset language attributes for selection
aURL.Complete += OUString(".uno:LanguageStatus?Language:string=Current_RESET_LANGUAGES"); aURL.Complete += ".uno:LanguageStatus?Language:string=Current_RESET_LANGUAGES";
} }
else if (nId == MID_LANG_SEL_MORE) else if (nId == MID_LANG_SEL_MORE)
{ {
//open the dialog "format/character" for current selection //open the dialog "format/character" for current selection
aURL.Complete += OUString(".uno:FontDialog?Language:string=*"); aURL.Complete += ".uno:FontDialog?Language:string=*";
} }
else if (MID_LANG_PARA_1 <= nId && nId <= MID_LANG_PARA_9) else if (MID_LANG_PARA_1 <= nId && nId <= MID_LANG_PARA_9)
{ {
//set selected language for current paragraph //set selected language for current paragraph
String aSelectedLang = aLangMap[nId]; String aSelectedLang = aLangMap[nId];
aURL.Complete += OUString(".uno:LanguageStatus?Language:string=Paragraph_"); aURL.Complete += ".uno:LanguageStatus?Language:string=Paragraph_";
aURL.Complete += aSelectedLang; aURL.Complete += aSelectedLang;
} }
else if (nId == MID_LANG_PARA_NONE) else if (nId == MID_LANG_PARA_NONE)
{ {
//set None as language for current paragraph //set None as language for current paragraph
aURL.Complete += OUString(".uno:LanguageStatus?Language:string=Paragraph_LANGUAGE_NONE"); aURL.Complete += ".uno:LanguageStatus?Language:string=Paragraph_LANGUAGE_NONE";
} }
else if (nId == MID_LANG_PARA_RESET) else if (nId == MID_LANG_PARA_RESET)
{ {
// reset language attributes for paragraph // reset language attributes for paragraph
aURL.Complete += OUString(".uno:LanguageStatus?Language:string=Paragraph_RESET_LANGUAGES"); aURL.Complete += ".uno:LanguageStatus?Language:string=Paragraph_RESET_LANGUAGES";
} }
else if (nId == MID_LANG_PARA_MORE) else if (nId == MID_LANG_PARA_MORE)
{ {
//open the dialog "format/character" for current paragraph //open the dialog "format/character" for current paragraph
aURL.Complete += OUString(".uno:FontDialogForParagraph"); aURL.Complete += ".uno:FontDialogForParagraph";
} }
uno::Reference< util::XURLTransformer > xURLTransformer( util::URLTransformer::create(::comphelper::getComponentContext(m_xServiceManager)) ); uno::Reference< util::XURLTransformer > xURLTransformer( util::URLTransformer::create(::comphelper::getComponentContext(m_xServiceManager)) );
......
...@@ -156,13 +156,13 @@ void RecentFilesMenuController::fillPopupMenu( Reference< css::awt::XPopupMenu > ...@@ -156,13 +156,13 @@ void RecentFilesMenuController::fillPopupMenu( Reference< css::awt::XPopupMenu >
{ {
char menuShortCut[5] = "~n: "; char menuShortCut[5] = "~n: ";
menuShortCut[1] = (char)( '1' + i ); menuShortCut[1] = (char)( '1' + i );
aMenuShortCut = OUString( RTL_CONSTASCII_USTRINGPARAM( menuShortCut )); aMenuShortCut = OUString::createFromAscii( menuShortCut );
} }
} }
else else
{ {
aMenuShortCut = OUString::valueOf((sal_Int32)( i + 1 )); aMenuShortCut = OUString::valueOf((sal_Int32)( i + 1 ));
aMenuShortCut += OUString( ": " ); aMenuShortCut += ": ";
} }
// Abbreviate URL // Abbreviate URL
......
...@@ -159,7 +159,7 @@ throw( SAXException, RuntimeException ) ...@@ -159,7 +159,7 @@ throw( SAXException, RuntimeException )
( !m_bImageContainerStartFound && m_bImageContainerEndFound ) ) ( !m_bImageContainerStartFound && m_bImageContainerEndFound ) )
{ {
OUString aErrorMessage = getErrorLineString(); OUString aErrorMessage = getErrorLineString();
aErrorMessage += OUString( "No matching start or end element 'image:imagecontainer' found!" ); aErrorMessage += "No matching start or end element 'image:imagecontainer' found!";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() ); throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
} }
} }
...@@ -181,7 +181,7 @@ throw( SAXException, RuntimeException ) ...@@ -181,7 +181,7 @@ throw( SAXException, RuntimeException )
if ( m_bImageContainerStartFound ) if ( m_bImageContainerStartFound )
{ {
OUString aErrorMessage = getErrorLineString(); OUString aErrorMessage = getErrorLineString();
aErrorMessage += OUString( "Element 'image:imagecontainer' cannot be embeded into 'image:imagecontainer'!" ); aErrorMessage += "Element 'image:imagecontainer' cannot be embeded into 'image:imagecontainer'!";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() ); throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
} }
...@@ -194,14 +194,14 @@ throw( SAXException, RuntimeException ) ...@@ -194,14 +194,14 @@ throw( SAXException, RuntimeException )
if ( !m_bImageContainerStartFound ) if ( !m_bImageContainerStartFound )
{ {
OUString aErrorMessage = getErrorLineString(); OUString aErrorMessage = getErrorLineString();
aErrorMessage += OUString( "Element 'image:images' must be embeded into element 'image:imagecontainer'!" ); aErrorMessage += "Element 'image:images' must be embeded into element 'image:imagecontainer'!";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() ); throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
} }
if ( m_bImagesStartFound ) if ( m_bImagesStartFound )
{ {
OUString aErrorMessage = getErrorLineString(); OUString aErrorMessage = getErrorLineString();
aErrorMessage += OUString( "Element 'image:images' cannot be embeded into 'image:images'!" ); aErrorMessage += "Element 'image:images' cannot be embeded into 'image:images'!";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() ); throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
} }
...@@ -260,7 +260,7 @@ throw( SAXException, RuntimeException ) ...@@ -260,7 +260,7 @@ throw( SAXException, RuntimeException )
m_pImages = NULL; m_pImages = NULL;
OUString aErrorMessage = getErrorLineString(); OUString aErrorMessage = getErrorLineString();
aErrorMessage += OUString( "Attribute image:maskmode must be 'maskcolor' or 'maskbitmap'!" ); aErrorMessage += "Attribute image:maskmode must be 'maskcolor' or 'maskbitmap'!";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() ); throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
} }
} }
...@@ -290,7 +290,7 @@ throw( SAXException, RuntimeException ) ...@@ -290,7 +290,7 @@ throw( SAXException, RuntimeException )
m_pImages = NULL; m_pImages = NULL;
OUString aErrorMessage = getErrorLineString(); OUString aErrorMessage = getErrorLineString();
aErrorMessage += OUString( "Required attribute xlink:href must have a value!" ); aErrorMessage += "Required attribute xlink:href must have a value!";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() ); throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
} }
} }
...@@ -305,7 +305,7 @@ throw( SAXException, RuntimeException ) ...@@ -305,7 +305,7 @@ throw( SAXException, RuntimeException )
m_pImages = NULL; m_pImages = NULL;
OUString aErrorMessage = getErrorLineString(); OUString aErrorMessage = getErrorLineString();
aErrorMessage += OUString( "Element 'image:entry' must be embeded into element 'image:images'!" ); aErrorMessage += "Element 'image:entry' must be embeded into element 'image:images'!";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() ); throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
} }
...@@ -352,7 +352,7 @@ throw( SAXException, RuntimeException ) ...@@ -352,7 +352,7 @@ throw( SAXException, RuntimeException )
m_pImages = NULL; m_pImages = NULL;
OUString aErrorMessage = getErrorLineString(); OUString aErrorMessage = getErrorLineString();
aErrorMessage += OUString( "Required attribute 'image:bitmap-index' must have a value >= 0!" ); aErrorMessage += "Required attribute 'image:bitmap-index' must have a value >= 0!";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() ); throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
} }
...@@ -364,7 +364,7 @@ throw( SAXException, RuntimeException ) ...@@ -364,7 +364,7 @@ throw( SAXException, RuntimeException )
m_pImages = NULL; m_pImages = NULL;
OUString aErrorMessage = getErrorLineString(); OUString aErrorMessage = getErrorLineString();
aErrorMessage += OUString( "Required attribute 'image:command' must have a value!" ); aErrorMessage += "Required attribute 'image:command' must have a value!";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() ); throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
} }
...@@ -382,7 +382,7 @@ throw( SAXException, RuntimeException ) ...@@ -382,7 +382,7 @@ throw( SAXException, RuntimeException )
m_pImages = NULL; m_pImages = NULL;
OUString aErrorMessage = getErrorLineString(); OUString aErrorMessage = getErrorLineString();
aErrorMessage += OUString( "Element 'image:externalimages' must be embeded into element 'image:imagecontainer'!" ); aErrorMessage += "Element 'image:externalimages' must be embeded into element 'image:imagecontainer'!";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() ); throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
} }
...@@ -393,7 +393,7 @@ throw( SAXException, RuntimeException ) ...@@ -393,7 +393,7 @@ throw( SAXException, RuntimeException )
m_pImages = NULL; m_pImages = NULL;
OUString aErrorMessage = getErrorLineString(); OUString aErrorMessage = getErrorLineString();
aErrorMessage += OUString( "Element 'image:externalimages' cannot be embeded into 'image:externalimages'!" ); aErrorMessage += "Element 'image:externalimages' cannot be embeded into 'image:externalimages'!";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() ); throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
} }
...@@ -413,7 +413,7 @@ throw( SAXException, RuntimeException ) ...@@ -413,7 +413,7 @@ throw( SAXException, RuntimeException )
m_pExternalImages = NULL; m_pExternalImages = NULL;
OUString aErrorMessage = getErrorLineString(); OUString aErrorMessage = getErrorLineString();
aErrorMessage += OUString( "Element 'image:externalentry' must be embeded into 'image:externalimages'!" ); aErrorMessage += "Element 'image:externalentry' must be embeded into 'image:externalimages'!";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() ); throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
} }
...@@ -425,7 +425,7 @@ throw( SAXException, RuntimeException ) ...@@ -425,7 +425,7 @@ throw( SAXException, RuntimeException )
m_pExternalImages = NULL; m_pExternalImages = NULL;
OUString aErrorMessage = getErrorLineString(); OUString aErrorMessage = getErrorLineString();
aErrorMessage += OUString( "Element 'image:externalentry' cannot be embeded into 'image:externalentry'!" ); aErrorMessage += "Element 'image:externalentry' cannot be embeded into 'image:externalentry'!";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() ); throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
} }
...@@ -469,7 +469,7 @@ throw( SAXException, RuntimeException ) ...@@ -469,7 +469,7 @@ throw( SAXException, RuntimeException )
m_pExternalImages = NULL; m_pExternalImages = NULL;
OUString aErrorMessage = getErrorLineString(); OUString aErrorMessage = getErrorLineString();
aErrorMessage += OUString( "Required attribute 'image:command' must have a value!" ); aErrorMessage += "Required attribute 'image:command' must have a value!";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() ); throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
} }
...@@ -483,7 +483,7 @@ throw( SAXException, RuntimeException ) ...@@ -483,7 +483,7 @@ throw( SAXException, RuntimeException )
m_pExternalImages = NULL; m_pExternalImages = NULL;
OUString aErrorMessage = getErrorLineString(); OUString aErrorMessage = getErrorLineString();
aErrorMessage += OUString( "Required attribute 'xlink:href' must have a value!" ); aErrorMessage += "Required attribute 'xlink:href' must have a value!";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() ); throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment