diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-11-30 08:52:25 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-11-30 08:54:55 +0100 |
commit | a83c6301d856d7f63ef3c9a9b372220da58e5ffb (patch) | |
tree | a7a7b5d94ae6f9a57b06e4ed35868ae69fee6df1 | |
parent | 0b58adfe5293d5a072a3e770a58355ffb55aa596 (diff) |
Remove deprecated and unused entries from /org.openoffice.Setup
...but ooSetupInstCompleted is apparently not (yet) deprecated.
Change-Id: I21237f804266e1f119bcf51f957ff4f22a64e3b2
4 files changed, 3 insertions, 146 deletions
diff --git a/officecfg/registry/schema/org/openoffice/Setup.xcs b/officecfg/registry/schema/org/openoffice/Setup.xcs index ec91fff35831..c2a505c91a57 100644 --- a/officecfg/registry/schema/org/openoffice/Setup.xcs +++ b/officecfg/registry/schema/org/openoffice/Setup.xcs @@ -355,60 +355,16 @@ factories for creating documents.</desc> </info> <prop - oor:name="ooSetupInstallPath" oor:type="xs:string" - oor:nillable="false"> - <!-- OldPath: Service User/[username] --> - <!-- OldLocation: userdb.ini --> - <info> - <deprecated/> - <author>AS/BEI</author> - <desc>Specifies the path to where the user data is installed. User - data can only be installed in a valid directory.</desc> - </info> - <value/> - <!-- JB: Empty default inserted into empty property node. Remove if NIL - was intended --> - </prop> - <prop - oor:name="ooSetupInstallURL" oor:type="xs:string" - oor:nillable="false"> - <!-- OldPath: Service User/[username] --> - <!-- OldLocation: userdb.ini --> - <info> - <deprecated/> - <author>AS/BEI</author> - <desc>Specifies the user install path as a URL. The path must match - the UCB configuration.</desc> - </info> - <value/> - <!-- JB: Empty default inserted into empty property node. Remove if NIL - was intended --> - </prop> - <prop oor:name="ooSetupInstCompleted" oor:type="xs:boolean" oor:nillable="false"> <!-- OldPath: Service User/[username] --> <!-- OldLocation: userdb.ini --> <info> - <deprecated/> <author>IS/BEI</author> <desc>Indicates if the user data is copied successfully.</desc> </info> <value>false</value> </prop> - <prop oor:name="ooSetupLocales" oor:type="oor:string-list"> - <!-- OldLocation: setup.inf--> - <!-- UIHints: setup --> - <!--The default list must be deleted, as soon as the setup writes the - values (#79254).--> - <info> - <deprecated>This list value was replaced by the Installedlanguages - set.</deprecated> - <author>PB / IS</author> - <desc>Specifies the application languages that are installed, if a - multilingual version is used.</desc> - </info> - </prop> <set oor:name="InstalledLocales" oor:node-type="InstalledLocale"> <info> <author>JB / IS</author> @@ -417,21 +373,6 @@ </info> </set> <prop - oor:name="ooSetupShowIntro" oor:type="xs:boolean" - oor:nillable="false"> - <!-- OldPath: Common/Show-Intro --> - <!-- OldLocation: soffice.ini --> - <!-- UIHints: Tools - Options - General - View --> - <info> - <deprecated>This feature is controlled by an entry in the soffice.ini - or the -nologo command line parameter.</deprecated> - <author>CD</author> - <desc>Specifies whether the splash screen is displayed during - startup.</desc> - </info> - <value>true</value> - </prop> - <prop oor:name="ooSetupConnectionURL" oor:type="xs:string" oor:nillable="false"> <!-- OldPath: Common--> @@ -445,24 +386,6 @@ <!-- JB: Empty default inserted into empty property node. Remove if NIL was intended --> </prop> - <prop oor:name="LicenseAcceptDate" oor:type="xs:string"> - <info> - <author>LO</author> - <desc>The xsd:datetime (YYYY-MM-DDTHH:MM:SS) on which the user has - accepted the license. If the current installation has a license that - is newer then this date, the license has to be accepted again.</desc> - </info> - </prop> - <prop - oor:name="FirstStartWizardCompleted" oor:type="xs:boolean" - oor:nillable="false"> - <info> - <author>LO</author> - <desc>is set to true, when the FirstStartWizard has been - completed</desc> - </info> - <value>false</value> - </prop> <prop oor:name="MigrationCompleted" oor:type="xs:boolean" oor:nillable="false"> @@ -587,23 +510,6 @@ <value/> </prop> </group> - <group oor:name="Configuration"> - <info> - <author>JB</author> - <desc>Contains settings that control configuration data access.</desc> - </info> - <prop - oor:name="TransferUserSettingsOnce" oor:type="xs:boolean" - oor:nillable="false"> - <info> - <deprecated>This feature is not supported any more since - OOo 2.0</deprecated> - <author>JB</author> - <desc>Deprecated</desc> - </info> - <value>true</value> - </prop> - </group> <group oor:name="Migration"> <info> <desc>Contains settings that control the migration process for certain diff --git a/qadevOOo/tests/java/ifc/configuration/backend/_XLayerHandler.java b/qadevOOo/tests/java/ifc/configuration/backend/_XLayerHandler.java index 4b824ef30bc4..45deb0a4a19d 100644 --- a/qadevOOo/tests/java/ifc/configuration/backend/_XLayerHandler.java +++ b/qadevOOo/tests/java/ifc/configuration/backend/_XLayerHandler.java @@ -48,14 +48,6 @@ public class _XLayerHandler extends MultiMethodTest { new Type(java.lang.String.class), false); oObj.setPropertyValue(new Boolean(false)); oObj.endProperty(); - oObj.overrideProperty("ooSetupShowIntro", (short) 0, - new Type(java.lang.String.class), false); - oObj.setPropertyValue(new Boolean(true)); - oObj.endProperty(); - oObj.overrideProperty("ooSetupLocales", (short) 0, - new Type(java.lang.String.class), false); - oObj.setPropertyValue("en-US"); - oObj.endProperty(); oObj.overrideNode("Factories", (short) 0, false); oObj.addOrReplaceNode("com.sun.star.chart.ChartDocument", (short) 0); @@ -215,12 +207,6 @@ public class _XLayerHandler extends MultiMethodTest { expected += ("overrideProperty(ooSetupInstCompleted,0,Type[string],false);" + ls); expected += ("setPropertyValue(false);" + ls); expected += ("endProperty();" + ls); - expected += ("overrideProperty(ooSetupShowIntro,0,Type[string],false);" + ls); - expected += ("setPropertyValue(true);" + ls); - expected += ("endProperty();" + ls); - expected += ("overrideProperty(ooSetupLocales,0,Type[string],false);" + ls); - expected += ("setPropertyValue(en-US);" + ls); - expected += ("endProperty();" + ls); expected += ("overrideNode(Factories,0,false);" + ls); expected += ("addOrReplace(com.sun.star.chart.ChartDocument,0);" + ls); expected += ("overrideProperty(ooSetupFactoryEmptyDocumentURL,0,Type[string],false);" + ls); @@ -254,4 +240,4 @@ public class _XLayerHandler extends MultiMethodTest { return expected; } -}
\ No newline at end of file +} diff --git a/qadevOOo/tests/java/ifc/configuration/backend/_XUpdateHandler.java b/qadevOOo/tests/java/ifc/configuration/backend/_XUpdateHandler.java index c1e0f773b4c9..8f1daf4b5a39 100644 --- a/qadevOOo/tests/java/ifc/configuration/backend/_XUpdateHandler.java +++ b/qadevOOo/tests/java/ifc/configuration/backend/_XUpdateHandler.java @@ -43,16 +43,6 @@ public class _XUpdateHandler extends MultiMethodTest { false); xLayerHandler.setPropertyValue(new Boolean(false)); xLayerHandler.endProperty(); - xLayerHandler.overrideProperty("ooSetupShowIntro", (short) 0, - new Type(java.lang.String.class), - false); - xLayerHandler.setPropertyValue(new Boolean(true)); - xLayerHandler.endProperty(); - xLayerHandler.overrideProperty("ooSetupLocales", (short) 0, - new Type(java.lang.String.class), - false); - xLayerHandler.setPropertyValue("en-US"); - xLayerHandler.endProperty(); xLayerHandler.overrideNode("Factories", (short) 0, false); xLayerHandler.addOrReplaceNode("com.sun.star.chart.ChartDocument", (short) 0); @@ -216,7 +206,6 @@ public class _XUpdateHandler extends MultiMethodTest { oObj.setPropertyValue("newValue"); oObj.setPropertyValueForLocale("newValue-US", "de-DE"); oObj.endProperty(); - oObj.removeProperty("ooSetupShowIntro"); oObj.modifyNode("org.openoffice.Setup", (short) 0, (short) 0, true); oObj.removeNode("whatever"); oObj.resetProperty("prop"); diff --git a/unotools/source/config/startoptions.cxx b/unotools/source/config/startoptions.cxx index a3c0a8c56243..9233091bb3c0 100644 --- a/unotools/source/config/startoptions.cxx +++ b/unotools/source/config/startoptions.cxx @@ -32,16 +32,12 @@ using namespace ::rtl ; using namespace ::osl ; using namespace ::com::sun::star::uno ; -#define DEFAULT_SHOWINTRO sal_True - #define ROOTNODE_START OUString(RTL_CONSTASCII_USTRINGPARAM("Setup/Office" )) -#define PROPERTYNAME_SHOWINTRO OUString(RTL_CONSTASCII_USTRINGPARAM("ooSetupShowIntro" )) #define PROPERTYNAME_CONNECTIONURL OUString(RTL_CONSTASCII_USTRINGPARAM("ooSetupConnectionURL" )) -#define PROPERTYHANDLE_SHOWINTRO 0 -#define PROPERTYHANDLE_CONNECTIONURL 1 +#define PROPERTYHANDLE_CONNECTIONURL 0 -#define PROPERTYCOUNT 2 +#define PROPERTYCOUNT 1 class SvtStartOptions_Impl : public ConfigItem { @@ -120,7 +116,6 @@ class SvtStartOptions_Impl : public ConfigItem private: - sal_Bool m_bShowIntro ; /// cache "ShowIntro" of Start section OUString m_sConnectionURL ; /// cache "Connection" of Start section }; @@ -130,8 +125,6 @@ class SvtStartOptions_Impl : public ConfigItem SvtStartOptions_Impl::SvtStartOptions_Impl() // Init baseclasses first : ConfigItem ( ROOTNODE_START ) - // Init member then. - , m_bShowIntro ( DEFAULT_SHOWINTRO ) { // Use our static list of configuration keys to get his values. Sequence< OUString > seqNames = impl_GetPropertyNames(); @@ -152,12 +145,6 @@ SvtStartOptions_Impl::SvtStartOptions_Impl() DBG_ASSERT( !(seqValues[nProperty].hasValue()==sal_False), "SvtStartOptions_Impl::SvtStartOptions_Impl()\nInvalid property value for property detected!\n" ); switch( nProperty ) { - case PROPERTYHANDLE_SHOWINTRO : { - DBG_ASSERT(!(seqValues[nProperty].getValueTypeClass()!=TypeClass_BOOLEAN), "SvtStartOptions_Impl::SvtStartOptions_Impl()\nWho has changed the value type of \"Office.Common\\Start\\ShowIntro\"?" ); - seqValues[nProperty] >>= m_bShowIntro; - } - break; - case PROPERTYHANDLE_CONNECTIONURL : { DBG_ASSERT(!(seqValues[nProperty].getValueTypeClass()!=TypeClass_STRING), "SvtStartOptions_Impl::SvtStartOptions_Impl()\nWho has changed the value type of \"Office.Common\\Start\\Connection\"?" ); seqValues[nProperty] >>= m_sConnectionURL; @@ -196,12 +183,6 @@ void SvtStartOptions_Impl::Notify( const Sequence< OUString >& seqPropertyNames sal_Int32 nCount = seqPropertyNames.getLength(); for( sal_Int32 nProperty=0; nProperty<nCount; ++nProperty ) { - if( seqPropertyNames[nProperty] == PROPERTYNAME_SHOWINTRO ) - { - DBG_ASSERT(!(seqValues[nProperty].getValueTypeClass()!=TypeClass_BOOLEAN), "SvtStartOptions_Impl::Notify()\nWho has changed the value type of \"Office.Common\\Start\\ShowIntro\"?" ); - seqValues[nProperty] >>= m_bShowIntro; - } - else if( seqPropertyNames[nProperty] == PROPERTYNAME_CONNECTIONURL ) { DBG_ASSERT(!(seqValues[nProperty].getValueTypeClass()!=TypeClass_STRING), "SvtStartOptions_Impl::Notify()\nWho has changed the value type of \"Office.Common\\Start\\Connection\"?" ); @@ -226,10 +207,6 @@ void SvtStartOptions_Impl::Commit() { switch( nProperty ) { - case PROPERTYHANDLE_SHOWINTRO : { - seqValues[nProperty] <<= m_bShowIntro; - } - break; case PROPERTYHANDLE_CONNECTIONURL : { seqValues[nProperty] <<= m_sConnectionURL; } @@ -256,7 +233,6 @@ Sequence< OUString > SvtStartOptions_Impl::impl_GetPropertyNames() // Build list of configuration key names. const OUString pProperties[] = { - PROPERTYNAME_SHOWINTRO , PROPERTYNAME_CONNECTIONURL , }; // Initialize return sequence with these list ... |