summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2009-02-13 11:55:44 +0000
committerOliver Bolte <obo@openoffice.org>2009-02-13 11:55:44 +0000
commitd2524fbe2615f539576194ddacbf60f431bf55cc (patch)
treeeee801a0fcc7347a0acd7f561c5d16160dcbfa47
parent8aa719bcca9ee60c4c2f48269a3c1652191877bb (diff)
CWS-TOOLING: integrate CWS oooimprovement2
2009-01-28 14:35:33 +0100 b_michaelsen r267059 : #i98555# fixed help url 2009-01-27 12:47:40 +0100 b_michaelsen r266982 : #159112# fixed enabling vcl part of usage tracking in an running session 2009-01-27 12:28:58 +0100 b_michaelsen r266980 : #159129# deiniting eventlogger in vcl if it was inited, not if it was enabled (the logger can be disabled inbetween 2009-01-27 12:22:45 +0100 b_michaelsen r266978 : whitespace fixes 2009-01-27 10:32:02 +0100 b_michaelsen r266962 : #i94949# disposing of uploader thread 2009-01-23 17:00:57 +0100 b_michaelsen r266839 : #159112# enabling/disabling of usage tracking takes effect without restart 2009-01-23 16:58:59 +0100 b_michaelsen r266837 : #159112# enabling/disabling of usage tracking takes effect without restart 2009-01-23 01:08:49 +0100 b_michaelsen r266761 : #159081# fixed buildid in oooimprovement 2009-01-22 22:51:16 +0100 b_michaelsen r266759 : #i90370# including build id 2009-01-22 15:37:05 +0100 b_michaelsen r266727 : #i90370# fixing precompiled headers for win32 2009-01-22 15:34:05 +0100 b_michaelsen r266722 : #i90370# initializing startup counter 2009-01-22 15:30:52 +0100 b_michaelsen r266720 : #i90370# enabling startup counter 2009-01-21 13:52:56 +0100 b_michaelsen r266666 : #i98143# adjusted smoketest for usage tracking 2009-01-20 18:34:12 +0100 b_michaelsen r266617 : #i90370# 2009-01-20 15:08:45 +0100 is r266587 : #i90370# new improvement feature 2009-01-20 14:42:39 +0100 b_michaelsen r266583 : #i90370# changing delivered job registration location 2009-01-20 12:35:31 +0100 is r266567 : #i90370# new improvement feature 2009-01-20 12:33:51 +0100 is r266566 : #i90370# new improvement feature 2009-01-20 12:33:20 +0100 is r266565 : #i90370# new improvement feature 2009-01-20 11:47:13 +0100 b_michaelsen r266559 : #i90370# updating Usage Tracking Info Url 2009-01-20 11:28:37 +0100 b_michaelsen r266558 : #i90370# packing Usage Tracking config schema (xcs) 2009-01-20 11:19:00 +0100 b_michaelsen r266557 : #i90370# adding Usage Tracking config schema (xcs) 2009-01-19 18:16:34 +0100 b_michaelsen r266518 : #i90370# adding job registration (xcu) 2009-01-19 17:26:02 +0100 b_michaelsen r266513 : #i90370# adding liboooimprovement
-rw-r--r--officecfg/prj/build.lst3
-rw-r--r--officecfg/prj/d.lst3
-rwxr-xr-xofficecfg/registry/schema/org/openoffice/Office/OOoImprovement/Settings.xcs98
-rw-r--r--officecfg/registry/schema/org/openoffice/Office/OOoImprovement/makefile.mk46
-rw-r--r--officecfg/registry/schema/org/openoffice/Office/makefile.mk5
-rw-r--r--svx/source/dialog/optimprove.cxx5
-rw-r--r--svx/source/dialog/optimprove2.cxx5
7 files changed, 162 insertions, 3 deletions
diff --git a/officecfg/prj/build.lst b/officecfg/prj/build.lst
index b9aca07198..88495a6e72 100644
--- a/officecfg/prj/build.lst
+++ b/officecfg/prj/build.lst
@@ -6,6 +6,7 @@ oc officecfg\registry nmake - all oc_reg NULL
oc officecfg\registry\schema\org\openoffice nmake - all oc_reg_schema_ooo NULL
oc officecfg\registry\schema\org\openoffice\Office nmake - all oc_reg_schema_ooo_office NULL
oc officecfg\registry\schema\org\openoffice\Office\UI nmake - all oc_reg_schema_ooo_office_ui NULL
+oc officecfg\registry\schema\org\openoffice\Office\OOoImprovement nmake - all oc_reg_schema_ooo_office_oooimprovement NULL
oc officecfg\registry\schema\org\openoffice\TypeDetection nmake - all oc_reg_schema_ooo_td NULL
oc officecfg\registry\schema\org\openoffice\ucb nmake - all oc_reg_schema_ooo_ucb NULL
oc officecfg\registry\data\org\openoffice nmake - all oc_reg_data_ooo oc_reg NULL
@@ -13,4 +14,4 @@ oc officecfg\registry\data\org\openoffice\Office nmake - all oc_reg_data_
oc officecfg\registry\data\org\openoffice\Office\UI nmake - all oc_reg_data_ooo_office_ui oc_reg NULL
oc officecfg\registry\data\org\openoffice\TypeDetection nmake - all oc_reg_data_ooo_td oc_reg NULL
oc officecfg\registry\data\org\openoffice\ucb nmake - all oc_reg_data_ooo_ucb oc_reg NULL
-oc officecfg\util nmake - all oc_util oc_reg_schema oc_reg_schema_ooo oc_reg_schema_ooo_office oc_reg_schema_ooo_office_ui oc_reg_schema_ooo_td oc_reg_schema_ooo_ucb oc_reg_data_ooo oc_reg_data_ooo_office oc_reg_data_ooo_office_ui oc_reg_data_ooo_td oc_reg_data_ooo_ucb NULL
+oc officecfg\util nmake - all oc_util oc_reg_schema oc_reg_schema_ooo oc_reg_schema_ooo_office oc_reg_schema_ooo_office_ui oc_reg_schema_ooo_office_oooimprovement oc_reg_schema_ooo_td oc_reg_schema_ooo_ucb oc_reg_data_ooo oc_reg_data_ooo_office oc_reg_data_ooo_office_ui oc_reg_data_ooo_td oc_reg_data_ooo_ucb NULL
diff --git a/officecfg/prj/d.lst b/officecfg/prj/d.lst
index 106501f96c..d36f186606 100644
--- a/officecfg/prj/d.lst
+++ b/officecfg/prj/d.lst
@@ -4,12 +4,14 @@ mkdir: %_DEST%\xml%_EXT%\registry\schema\org
mkdir: %_DEST%\xml%_EXT%\registry\schema\org\openoffice
mkdir: %_DEST%\xml%_EXT%\registry\schema\org\openoffice\Office
mkdir: %_DEST%\xml%_EXT%\registry\schema\org\openoffice\Office\UI
+mkdir: %_DEST%\xml%_EXT%\registry\schema\org\openoffice\Office\OOoImprovement
mkdir: %_DEST%\xml%_EXT%\registry\schema\org\openoffice\ucb
mkdir: %_DEST%\xml%_EXT%\registry\schema\org\openoffice\TypeDetection
..\%__SRC%\misc\registry\schema\org\openoffice\*.xcs %_DEST%\xml%_EXT%\registry\schema\org\openoffice
..\%__SRC%\misc\registry\schema\org\openoffice\Office\*.xcs %_DEST%\xml%_EXT%\registry\schema\org\openoffice\Office
..\%__SRC%\misc\registry\schema\org\openoffice\Office\UI\*.xcs %_DEST%\xml%_EXT%\registry\schema\org\openoffice\Office\UI
+..\%__SRC%\misc\registry\schema\org\openoffice\Office\OOoImprovement\*.xcs %_DEST%\xml%_EXT%\registry\schema\org\openoffice\Office\OOoImprovement
..\%__SRC%\misc\registry\schema\org\openoffice\ucb\*.xcs %_DEST%\xml%_EXT%\registry\schema\org\openoffice\ucb
..\%__SRC%\misc\registry\schema\org\openoffice\TypeDetection\*.xcs %_DEST%\xml%_EXT%\registry\schema\org\openoffice\TypeDetection
@@ -18,6 +20,7 @@ mkdir: %_DEST%\xml%_EXT%\registry\data\org
mkdir: %_DEST%\xml%_EXT%\registry\data\org\openoffice
mkdir: %_DEST%\xml%_EXT%\registry\data\org\openoffice\Office
mkdir: %_DEST%\xml%_EXT%\registry\data\org\openoffice\Office\UI
+mkdir: %_DEST%\xml%_EXT%\registry\data\org\openoffice\Office\OOoImprovement
mkdir: %_DEST%\xml%_EXT%\registry\data\org\openoffice\ucb
mkdir: %_DEST%\xml%_EXT%\registry\data\org\openoffice\TypeDetection
diff --git a/officecfg/registry/schema/org/openoffice/Office/OOoImprovement/Settings.xcs b/officecfg/registry/schema/org/openoffice/Office/OOoImprovement/Settings.xcs
new file mode 100755
index 0000000000..7ff9146472
--- /dev/null
+++ b/officecfg/registry/schema/org/openoffice/Office/OOoImprovement/Settings.xcs
@@ -0,0 +1,98 @@
+<?xml version="1.0"?>
+<oor:component-schema xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" oor:name="Settings" oor:package="org.openoffice.Office.OOoImprovement" xml:lang="en-US">
+ <info>
+ <desc>Contains preferences for the OpenOffice.org Improvement Program components.</desc>
+ </info>
+ <templates/>
+ <component>
+ <group oor:name="Participation">
+ <info>
+ <desc>invitations to usage tracking etc.</desc>
+ </info>
+ <prop oor:name="OfficeStartCounterdown" oor:type="xs:int">
+ <info>
+ <desc>the number of starts that will be skipped before the user will get invited to the
+ OpenOffice.org Improvement Program. If this is zero the user will get asked.
+ </desc>
+ </info>
+ <value>1</value>
+ </prop>
+ <prop oor:name="InvitationAccepted" oor:type="xs:boolean">
+ <info>
+ <desc>true, if the user accepted the invitation.</desc>
+ </info>
+ <value>false</value>
+ </prop>
+ <prop oor:name="ShowedInvitation" oor:type="xs:boolean">
+ <info>
+ <desc>true, if the user was already invited.</desc>
+ </info>
+ <value>false</value>
+ </prop>
+ <prop oor:name="DeliveredPrebundled" oor:type="xs:boolean">
+ <info>
+ <desc>true, if the extension is prebundled - is set by an onFirstRunInitialization job.
+ (currently not implemented)</desc>
+ </info>
+ <value>false</value>
+ </prop>
+ <prop oor:name="HelpUrl" oor:type="xs:string">
+ <info>
+ <desc>the url where additional infomation can be found.</desc>
+ </info>
+ <value>http://wiki.services.openoffice.org/wiki/User_Experience/OpenOffice.org_User_Feedback_Program</value>
+ </prop>
+ </group>
+ <group oor:name="Counters">
+ <info>
+ <desc>counts of recorded events, uploaded reports etc.</desc>
+ </info>
+ <prop oor:name="UploadedReports" oor:type="xs:int">
+ <info>
+ <desc>the number of reports uploaded.</desc>
+ </info>
+ <value>0</value>
+ </prop>
+ <prop oor:name="LoggedEvents" oor:type="xs:int">
+ <info>
+ <desc>the number of events in zipped or already uploaded report.</desc>
+ </info>
+ <value>0</value>
+ </prop>
+ <prop oor:name="FailedAttempts" oor:type="xs:int">
+ <info>
+ <desc>the number of failed upload tries.</desc>
+ </info>
+ <value>0</value>
+ </prop>
+ </group>
+ <group oor:name="Upload">
+ <info>
+ <desc>settings on destination for uploading reports</desc>
+ </info>
+ <prop oor:name="SoapUrl" oor:type="xs:string">
+ <info>
+ <desc>the url where reports get send to.</desc>
+ </info>
+ <value>http://report.services.openoffice.org:80/soap/servlet/rpcrouter</value>
+ </prop>
+ <prop oor:name="SoapIdAdditions" oor:type="xs:string">
+ <info>
+ <desc>Additions to the SoapId for automated testing
+ DO NOT SET THIS VALUE UNLESS YOU KNOW WHAT YOU ARE DOING!
+ </desc>
+ </info>
+ <value></value>
+ </prop>
+ <prop oor:name="ReporterEmail" oor:type="xs:string">
+ <info>
+ <desc>The Emailaddress to fill out in the reportmail.xml file.
+ DO NOT SET THIS VALUE UNLESS YOU KNOW WHAT YOU ARE DOING!
+ Its only purpose is testing and quality assureance.
+ </desc>
+ </info>
+ <value></value>
+ </prop>
+ </group>
+ </component>
+</oor:component-schema>
diff --git a/officecfg/registry/schema/org/openoffice/Office/OOoImprovement/makefile.mk b/officecfg/registry/schema/org/openoffice/Office/OOoImprovement/makefile.mk
new file mode 100644
index 0000000000..1504d979b5
--- /dev/null
+++ b/officecfg/registry/schema/org/openoffice/Office/OOoImprovement/makefile.mk
@@ -0,0 +1,46 @@
+#*************************************************************************
+#
+# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+#
+# Copyright 2008 by Sun Microsystems, Inc.
+#
+# OpenOffice.org - a multi-platform office productivity suite
+#
+# $RCSfile: $
+#
+# $Revision: $
+#
+# This file is part of OpenOffice.org.
+#
+# OpenOffice.org is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# only, as published by the Free Software Foundation.
+#
+# OpenOffice.org is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License version 3 for more details
+# (a copy is included in the LICENSE file that accompanied this code).
+#
+# You should have received a copy of the GNU Lesser General Public License
+# version 3 along with OpenOffice.org. If not, see
+# <http://www.openoffice.org/license.html>
+# for a copy of the LGPLv3 License.
+#
+#*************************************************************************
+PRJ=..$/..$/..$/..$/..$/..
+
+PRJNAME=officecfg
+TARGET=schema_ooOImprovement
+PACKAGE=org.openoffice.Office.OOoImprovement
+
+.INCLUDE : settings.mk
+.INCLUDE : $(PRJ)$/util$/makefile.pmk
+
+# --- Targets ------------------------------------------------------
+
+XCSFILES= \
+ Settings.xcs
+
+.INCLUDE : target.mk
+
diff --git a/officecfg/registry/schema/org/openoffice/Office/makefile.mk b/officecfg/registry/schema/org/openoffice/Office/makefile.mk
index 4d21f778ec..320ec8eed2 100644
--- a/officecfg/registry/schema/org/openoffice/Office/makefile.mk
+++ b/officecfg/registry/schema/org/openoffice/Office/makefile.mk
@@ -78,8 +78,9 @@ XCSFILES= \
ExtendedColorScheme.xcs \
TypeDetection.xcs \
TabBrowse.xcs \
- Paths.xcs \
- Histories.xcs
+ Paths.xcs \
+ Histories.xcs \
+ OOoImprovement.xcs
.INCLUDE : target.mk
diff --git a/svx/source/dialog/optimprove.cxx b/svx/source/dialog/optimprove.cxx
index ae67f627ae..c50abdf026 100644
--- a/svx/source/dialog/optimprove.cxx
+++ b/svx/source/dialog/optimprove.cxx
@@ -50,6 +50,8 @@
#include <com/sun/star/oooimprovement/XCoreController.hpp>
#include <comphelper/configurationhelper.hxx>
#include <comphelper/processfactory.hxx>
+#include <comphelper/uieventslogger.hxx>
+#include <tools/testtoolloader.hxx>
namespace lang = ::com::sun::star::lang;
namespace uno = ::com::sun::star::uno;
@@ -191,6 +193,9 @@ IMPL_LINK( SvxImprovementDialog, HandleOK, OKButton*, EMPTYARG )
::rtl::OUString::createFromAscii("InvitationAccepted"),
uno::makeAny( m_pPage->IsYesChecked() ),
::comphelper::ConfigurationHelper::E_STANDARD );
+ // TODO: refactor
+ ::comphelper::UiEventsLogger::reinit();
+ ::tools::InitTestToolLib();
}
EndDialog( RET_OK );
return 0;
diff --git a/svx/source/dialog/optimprove2.cxx b/svx/source/dialog/optimprove2.cxx
index 843bf8ae92..81bf4be475 100644
--- a/svx/source/dialog/optimprove2.cxx
+++ b/svx/source/dialog/optimprove2.cxx
@@ -57,6 +57,8 @@
#include <comphelper/configurationhelper.hxx>
#include <comphelper/processfactory.hxx>
#include <comphelper/synchronousdispatch.hxx>
+#include <comphelper/uieventslogger.hxx>
+#include <tools/testtoolloader.hxx>
#define C2S(s) ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(s))
@@ -183,6 +185,9 @@ sal_Bool SvxImprovementOptionsPage::FillItemSet( SfxItemSet& /*rSet*/ )
::comphelper::ConfigurationHelper::writeRelativeKey(
xConfig, C2S("Participation"), C2S("InvitationAccepted"), uno::makeAny( m_aYesRB.IsChecked() != FALSE ) );
::comphelper::ConfigurationHelper::flush( xConfig );
+ // TODO: refactor
+ ::comphelper::UiEventsLogger::reinit();
+ ::tools::InitTestToolLib();
}
catch( uno::Exception& )
{