diff options
-rwxr-xr-x | configmgr/qa/unit/data.xcd | 5 | ||||
-rw-r--r-- | framework/source/fwe/classes/addonmenu.cxx | 31 | ||||
-rw-r--r-- | framework/source/services/backingwindow.cxx | 19 | ||||
-rw-r--r-- | framework/source/services/backingwindow.hxx | 1 | ||||
-rw-r--r-- | framework/source/uielement/menubarmanager.cxx | 11 | ||||
-rw-r--r-- | officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu | 5 | ||||
-rwxr-xr-x | sfx2/inc/sfx2/sfxcommands.h | 2 | ||||
-rwxr-xr-x | sfx2/inc/sfx2/sfxsids.hrc | 3 | ||||
-rwxr-xr-x | sfx2/sdi/appslots.sdi | 8 | ||||
-rwxr-xr-x | sfx2/sdi/sfx.sdi | 50 | ||||
-rw-r--r-- | sfx2/source/appl/appserv.cxx | 49 | ||||
-rwxr-xr-x | svx/inc/globlmn_tmpl.hrc | 6 |
12 files changed, 6 insertions, 184 deletions
diff --git a/configmgr/qa/unit/data.xcd b/configmgr/qa/unit/data.xcd index 97e0aed31989..cd1cdd3a63d0 100755 --- a/configmgr/qa/unit/data.xcd +++ b/configmgr/qa/unit/data.xcd @@ -3578,11 +3578,6 @@ <value>1</value> </prop> </node> - <node oor:name=".uno:OnlineRegistrationDlg" oor:op="replace"> - <prop oor:name="Label" oor:type="xs:string"> - <value xml:lang="x-no-translate"></value><value xml:lang="en-US">~Registration...</value> - </prop> - </node> <node oor:name=".uno:GoToStartSel" oor:op="replace"> <prop oor:name="Label" oor:type="xs:string"> <value xml:lang="x-no-translate"></value><value xml:lang="en-US">Select to File Begin</value> diff --git a/framework/source/fwe/classes/addonmenu.cxx b/framework/source/fwe/classes/addonmenu.cxx index baaf086e4702..bae9efb23419 100644 --- a/framework/source/fwe/classes/addonmenu.cxx +++ b/framework/source/fwe/classes/addonmenu.cxx @@ -66,7 +66,6 @@ using namespace ::com::sun::star::beans; // Please look at sfx2/inc/sfxsids.hrc the values are defined there. Due to build dependencies // we cannot include the header file. const sal_uInt16 SID_HELPMENU = (SID_SFX_START + 410); -const sal_uInt16 SID_ONLINE_REGISTRATION = (SID_SFX_START + 1537); namespace framework { @@ -213,40 +212,21 @@ void AddonMenuManager::MergeAddonHelpMenu( const Reference< XFrame >& rFrame, Me if ( pHelpMenu ) { - static const char REFERENCECOMMAND_AFTER[] = ".uno:OnlineRegistrationDlg"; static const char REFERENCECOMMAND_BEFORE[] = ".uno:About"; // Add-Ons help menu items should be inserted after the "registration" menu item - bool bAddAfter = true; sal_uInt16 nItemCount = pHelpMenu->GetItemCount(); - sal_uInt16 nRegPos = pHelpMenu->GetItemPos( SID_ONLINE_REGISTRATION ); - sal_uInt16 nInsPos = nRegPos; sal_uInt16 nInsSepAfterPos = MENU_APPEND; sal_uInt16 nUniqueMenuId = ADDONMENU_ITEMID_START; AddonsOptions aOptions; - if ( nRegPos == USHRT_MAX ) - { - // try to detect the online registration dialog menu item with the command URL - sal_uInt16 nId = FindMenuId( pHelpMenu, String::CreateFromAscii( REFERENCECOMMAND_AFTER )); - nRegPos = pHelpMenu->GetItemPos( nId ); - nInsPos = nRegPos; - } - - if ( nRegPos == USHRT_MAX ) - { - // second try: - // try to detect the about menu item with the command URL - sal_uInt16 nId = FindMenuId( pHelpMenu, String::CreateFromAscii( REFERENCECOMMAND_BEFORE )); - nRegPos = pHelpMenu->GetItemPos( nId ); - nInsPos = nRegPos; - bAddAfter = false; - } + // try to detect the about menu item with the command URL + sal_uInt16 nId = FindMenuId( pHelpMenu, String::CreateFromAscii( REFERENCECOMMAND_BEFORE )); + sal_uInt16 nInsPos = pHelpMenu->GetItemPos( nId ); Sequence< Sequence< PropertyValue > > aAddonSubMenu; const Sequence< Sequence< PropertyValue > >& rAddonHelpMenuEntries = aOptions.GetAddonsHelpMenu(); - nInsPos = bAddAfter ? AddonMenuManager::GetNextPos( nInsPos ) : nInsPos; if ( nInsPos < nItemCount && pHelpMenu->GetItemType( nInsPos ) != MENUITEM_SEPARATOR ) nInsSepAfterPos = nInsPos; @@ -261,10 +241,7 @@ void AddonMenuManager::MergeAddonHelpMenu( const Reference< XFrame >& rFrame, Me if ( pHelpMenu->GetItemType( nInsSepAfterPos ) != MENUITEM_SEPARATOR ) pHelpMenu->InsertSeparator( nInsSepAfterPos ); } - if ( nRegPos < MENU_APPEND ) - pHelpMenu->InsertSeparator( nRegPos+1 ); - else - pHelpMenu->InsertSeparator( nItemCount ); + pHelpMenu->InsertSeparator( nItemCount ); } } } diff --git a/framework/source/services/backingwindow.cxx b/framework/source/services/backingwindow.cxx index 32616a1e1d5e..a475abd93ae3 100644 --- a/framework/source/services/backingwindow.cxx +++ b/framework/source/services/backingwindow.cxx @@ -905,25 +905,6 @@ IMPL_LINK( BackingWindow, ToolboxHdl, void*, EMPTYARG ) pNodePath = "/org.openoffice.Office.Common/Help/StartCenter"; pNode = "AddFeatureURL"; break; - case nItemId_Reg: - try - { - // create the Desktop component which can load components - Reference < lang::XMultiServiceFactory > xFactory = ::comphelper::getProcessServiceFactory(); - if( xFactory.is() ) - { - Reference< task::XJobExecutor > xProductRegistration( - xFactory->createInstance( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.setup.ProductRegistration" ) ) ), - UNO_QUERY_THROW ); - - // tell it that the user wants to register - xProductRegistration->trigger( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "RegistrationRequired" ) ) ); - } - } - catch (const Exception&) - { - } - break; case nItemId_Info: pNodePath = "/org.openoffice.Office.Common/Help/StartCenter"; pNode = "InfoURL"; diff --git a/framework/source/services/backingwindow.hxx b/framework/source/services/backingwindow.hxx index 5eebccb80c5f..410862f51aaa 100644 --- a/framework/source/services/backingwindow.hxx +++ b/framework/source/services/backingwindow.hxx @@ -135,7 +135,6 @@ namespace framework std::vector< LoadRecentFile > maRecentFiles; static const int nItemId_Extensions = 1; - static const int nItemId_Reg = 2; static const int nItemId_Info = 3; static const int nItemId_TplRep = 4; static const int nShadowTop = 32; diff --git a/framework/source/uielement/menubarmanager.cxx b/framework/source/uielement/menubarmanager.cxx index 3284067a5804..62ddc7338a68 100644 --- a/framework/source/uielement/menubarmanager.cxx +++ b/framework/source/uielement/menubarmanager.cxx @@ -782,7 +782,6 @@ void SAL_CALL MenuBarManager::disposing( const EventObject& Source ) throw ( Run void MenuBarManager::CheckAndAddMenuExtension( Menu* pMenu ) { RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "framework", "Ocke.Janssen@sun.com", "MenuBarManager::CheckAndAddMenuExtension" ); - static const char REFERENCECOMMAND_AFTER[] = ".uno:OnlineRegistrationDlg"; static const char REFERENCECOMMAND_BEFORE[] = ".uno:About"; // retrieve menu extension item @@ -793,24 +792,18 @@ void MenuBarManager::CheckAndAddMenuExtension( Menu* pMenu ) // remove all old window list entries from menu sal_uInt16 nNewItemId( 0 ); sal_uInt16 nInsertPos( MENU_APPEND ); - sal_uInt16 nAfterPos( MENU_APPEND ); sal_uInt16 nBeforePos( MENU_APPEND ); - String aCommandAfter( String::CreateFromAscii ( REFERENCECOMMAND_AFTER )); String aCommandBefore( String::CreateFromAscii ( REFERENCECOMMAND_BEFORE )); for ( sal_uInt16 n = 0; n < pMenu->GetItemCount(); n++ ) { sal_uInt16 nItemId = pMenu->GetItemId( n ); nNewItemId = std::max( nItemId, nNewItemId ); - if ( pMenu->GetItemCommand( nItemId ) == aCommandAfter ) - nAfterPos = n+1; - else if ( pMenu->GetItemCommand( nItemId ) == aCommandBefore ) + if ( pMenu->GetItemCommand( nItemId ) == aCommandBefore ) nBeforePos = n; } ++nNewItemId; - if ( nAfterPos != MENU_APPEND ) - nInsertPos = nAfterPos; - else if ( nBeforePos != MENU_APPEND ) + if ( nBeforePos != MENU_APPEND ) nInsertPos = nBeforePos; pMenu->InsertItem( nNewItemId, aMenuItem.aLabel, 0, nInsertPos ); diff --git a/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu b/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu index 7ff694cf93a4..d091beccf921 100644 --- a/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu +++ b/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu @@ -3556,11 +3556,6 @@ <value>1</value> </prop> </node> - <node oor:name=".uno:OnlineRegistrationDlg" oor:op="replace"> - <prop oor:name="Label" oor:type="xs:string"> - <value xml:lang="en-US">~Registration...</value> - </prop> - </node> <node oor:name=".uno:GoToStartSel" oor:op="replace"> <prop oor:name="Label" oor:type="xs:string"> <value xml:lang="en-US">Select to File Begin</value> diff --git a/sfx2/inc/sfx2/sfxcommands.h b/sfx2/inc/sfx2/sfxcommands.h index 035f2f187bb8..e7a1d902b9f0 100755 --- a/sfx2/inc/sfx2/sfxcommands.h +++ b/sfx2/inc/sfx2/sfxcommands.h @@ -253,7 +253,6 @@ #define CMD_SID_SHOWPOPUPS ".uno:ShowPopups" #define CMD_SID_BASICIDE_SHOWSBX ".uno:ShowSbx" #define CMD_SID_SOURCEVIEW ".uno:SourceView" -#define CMD_SID_ONLINE_REGISTRATION_DLG ".uno:StartRegistrationDialog" #define CMD_SID_STATUSBARTEXT ".uno:StatusBar" #define CMD_SID_TOGGLESTATUSBAR ".uno:StatusBarVisible" #define CMD_SID_BASICIDE_STAT_DATE ".uno:StatusGetDate" @@ -308,7 +307,6 @@ #define CMD_SID_ADDONHELP ".uno:AddonHelp" #define CMD_SID_FORMATMENUSTATE ".uno:FormatMenuState" #define CMD_SID_INET_DLG ".uno:InternetDialog" -#define CMD_SID_ONLINE_REGISTRATION ".uno:OnlineRegistrationDlg" #define CMD_SID_OFFICE_CHECK_PLZ ".uno:CheckPLZ" #define CMD_SID_ADDRESS_DATA_SOURCE ".uno:AutoPilotAddressDataSource" #define CMD_FN_BUSINESS_CARD ".uno:InsertBusinessCard" diff --git a/sfx2/inc/sfx2/sfxsids.hrc b/sfx2/inc/sfx2/sfxsids.hrc index 594c2691d894..baf4b5615d3b 100755 --- a/sfx2/inc/sfx2/sfxsids.hrc +++ b/sfx2/inc/sfx2/sfxsids.hrc @@ -206,9 +206,6 @@ #define SID_BASEURL (SID_SFX_START + 1518) #define SID_TEMPLATE (SID_SFX_START + 1519) -#define SID_ONLINE_REGISTRATION (SID_SFX_START + 1537) - -#define SID_ONLINE_REGISTRATION_DLG (SID_SFX_START + 1540) #define SID_CONTENTTYPE (SID_SFX_START + 1541) #define SID_SAVETO (SID_SFX_START + 1546) diff --git a/sfx2/sdi/appslots.sdi b/sfx2/sdi/appslots.sdi index 3bd2bc8b1e02..39d26692ceb4 100755 --- a/sfx2/sdi/appslots.sdi +++ b/sfx2/sdi/appslots.sdi @@ -232,14 +232,6 @@ shell SfxApplication //---------------------------------------------------------------------- - SID_ONLINE_REGISTRATION - [ - ExecMethod = OfaExec_Impl; - StateMethod = OfaState_Impl; - ] - - //---------------------------------------------------------------------- - SID_OFFICE_CHECK_PLZ [ ExecMethod = OfaExec_Impl; diff --git a/sfx2/sdi/sfx.sdi b/sfx2/sdi/sfx.sdi index e69bf590a322..b5b432fa39db 100755 --- a/sfx2/sdi/sfx.sdi +++ b/sfx2/sdi/sfx.sdi @@ -5967,31 +5967,6 @@ SfxBoolItem SourceView SID_SOURCEVIEW ] //-------------------------------------------------------------------------- -SfxVoidItem StartRegistrationDialog SID_ONLINE_REGISTRATION_DLG -() -[ - /* flags: */ - AutoUpdate = FALSE, - Cachable = Cachable, - FastCall = FALSE, - HasCoreId = FALSE, - HasDialog = FALSE, - ReadOnlyDoc = TRUE, - Toggle = FALSE, - Container = TRUE, - RecordAbsolute = FALSE, - RecordPerSet; - Synchron; - - /* config: */ - AccelConfig = FALSE, - MenuConfig = FALSE, - StatusBarConfig = FALSE, - ToolBoxConfig = FALSE, - GroupId = GID_SPECIAL; -] - -//-------------------------------------------------------------------------- SfxStringItem StatusBar SID_STATUSBARTEXT [ @@ -7414,31 +7389,6 @@ SfxVoidItem InternetDialog SID_INET_DLG ] //-------------------------------------------------------------------------- -SfxVoidItem OnlineRegistrationDlg SID_ONLINE_REGISTRATION -() -[ - /* flags: */ - AutoUpdate = FALSE, - Cachable = Cachable, - FastCall = FALSE, - HasCoreId = FALSE, - HasDialog = TRUE, - ReadOnlyDoc = TRUE, - Toggle = FALSE, - Container = FALSE, - RecordAbsolute = FALSE, - RecordPerSet; - Synchron; - - /* config: */ - AccelConfig = TRUE, - MenuConfig = TRUE, - StatusBarConfig = FALSE, - ToolBoxConfig = TRUE, - GroupId = GID_APPLICATION; -] - -//-------------------------------------------------------------------------- SfxBoolItem CheckPLZ SID_OFFICE_CHECK_PLZ (SfxStringItem PLZ SID_OFFICE_CHECK_PLZ) [ diff --git a/sfx2/source/appl/appserv.cxx b/sfx2/source/appl/appserv.cxx index e3c7fd09be5c..6b691e6fcd57 100644 --- a/sfx2/source/appl/appserv.cxx +++ b/sfx2/source/appl/appserv.cxx @@ -741,12 +741,6 @@ void SfxApplication::MiscState_Impl(SfxItemSet &rSet) } } -static const ::rtl::OUString& getProductRegistrationServiceName( ) -{ - static ::rtl::OUString s_sServiceName(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.setup.ProductRegistration")); - return s_sServiceName; -} - typedef rtl_uString* (SAL_CALL *basicide_choose_macro)(XModel*, sal_Bool, rtl_uString*); typedef void (SAL_CALL *basicide_macro_organizer)( sal_Int16 ); @@ -991,30 +985,6 @@ void SfxApplication::OfaExec_Impl( SfxRequest& rReq ) break; } - case SID_ONLINE_REGISTRATION: - { - try - { - // create the ProductRegistration component - Reference< com::sun::star::lang::XMultiServiceFactory > xORB( ::comphelper::getProcessServiceFactory() ); - Reference< com::sun::star::task::XJobExecutor > xProductRegistration; - if ( xORB.is() ) - xProductRegistration = xProductRegistration.query( xORB->createInstance( getProductRegistrationServiceName() ) ); - DBG_ASSERT( xProductRegistration.is(), "OfficeApplication::ExecuteApp_Impl: could not create the service!" ); - - // tell it that the user wants to register - if ( xProductRegistration.is() ) - { - xProductRegistration->trigger( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("RegistrationRequired")) ); - } - } - catch( const ::com::sun::star::uno::Exception& ) - { - OSL_FAIL( "OfficeApplication::ExecuteApp_Impl(SID_ONLINE_REGISTRATION): caught an exception!" ); - } - } - break; - case SID_BASICIDE_APPEAR: { SfxViewFrame* pView = lcl_getBasicIDEViewFrame( NULL ); @@ -1332,25 +1302,6 @@ void SfxApplication::OfaExec_Impl( SfxRequest& rReq ) void SfxApplication::OfaState_Impl(SfxItemSet &rSet) { - const sal_uInt16 *pRanges = rSet.GetRanges(); - DBG_ASSERT(pRanges && *pRanges, "Set without Region"); - while ( *pRanges ) - { - for(sal_uInt16 nWhich = *pRanges++; nWhich <= *pRanges; ++nWhich) - { - switch(nWhich) - { - case SID_ONLINE_REGISTRATION: - { - ::utl::RegOptions aOptions; - if ( !aOptions.allowMenu() ) - rSet.DisableItem( SID_ONLINE_REGISTRATION ); - } - break; - } - } - } - SvtModuleOptions aModuleOpt; if( !aModuleOpt.IsWriter()) diff --git a/svx/inc/globlmn_tmpl.hrc b/svx/inc/globlmn_tmpl.hrc index 227d57425e63..632a4c5c0a8d 100755 --- a/svx/inc/globlmn_tmpl.hrc +++ b/svx/inc/globlmn_tmpl.hrc @@ -909,12 +909,6 @@ HelpID = SID_SHOW_CREDITS ; \ Text [ en-US ] = "%PRODUCTNAME Credits..." ; -#define ITEM_HELP_ONLINE_REGISTRATION \ - Identifier = SID_ONLINE_REGISTRATION ; \ - Command = ".uno:OnlineRegistrationDlg" ; \ - Text [ en-US ] = "~Registration..." ; \ - - #define ITEM_HELP_ABOUT \ Identifier = SID_ABOUT ; \ Command = ".uno:About" ; \ |