Commit Graph

870 Commits

Author SHA1 Message Date
2ec55fd6a1 Related fdo#82088: removing namespace alias in hxx
Change-Id: Iaf455e8361653bc1262cda3bccc2e798b3c60580
Reviewed-on: https://gerrit.libreoffice.org/11225
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-09-02 04:01:27 -05:00
880c18f230 Resolves fdo#83278: Missing type of directory at "Tools/Options/LODev/Paths"
Revert "remove unused optpath.src"

This reverts commit b11d0a4d2b3b65a9ca06fd1de4ec4502eef2baa9.

Change-Id: I9c5f8c15b36c38e94603186cb9d2bb316bf31674
2014-08-31 01:06:43 +02:00
30ae83c268 fdo#82577: Handle KeyCode
Put the VCL KeyCode class in the vcl namespace. Avoids clash with the X11
KeyCode typedef.

Change-Id: I624c9d937f7c5f5986d313b6c5f060bd8bb7e028
2014-08-23 22:33:30 +03:00
8b62a475f7 QueryBox RID_SFXQB_SET_LANGUAGE -> MessageDialog + string
Change-Id: Ic1b5233563ff9ce3e3453b47fe86138ae2497a18
2014-08-21 14:07:55 +01:00
566e6fe58e QueryBox RID_SVXQB_DELETE_COLOR_CONFIG -> MessageDialog + string
Change-Id: I3ae71cf2fd4a8cf0db76845c60f633285bd00e27
2014-08-21 14:07:54 +01:00
d27cdf1caf QueryBox QUERY_DELETE_CONFIRM -> MessageDialog + string
Change-Id: Ieae9977fd77f7b28991771a31c18e15be4a4f0dd
2014-08-21 14:07:54 +01:00
d21d5a7261 drop unnecessary shl.hxx includes
Change-Id: Ieb984987c4a4f888a563377e0500444b12f43506
2014-08-18 12:59:49 +01:00
a107bdfdfc ErrorBox->MessageDialog
Change-Id: I57d4e43460e40d3aff54873280eddbb18c12446b
2014-08-18 10:57:21 +01:00
4376c524a3 remove unused strings
Change-Id: I1665bb72203964be071835547c50440f86e1761d
2014-08-17 13:42:27 +02:00
b11d0a4d2b remove unused optpath.src
all definitions are not used and the file is never included.

Change-Id: If88fab7843122bf6b5649808ea16c5fe0cc30b12
2014-08-17 13:42:26 +02:00
549fd2d229 fix build
Change-Id: I770b941c065ca41541f27d01f78727d9d0e32a7e
2014-08-16 00:43:15 +02:00
0ad58a0a45 WarningBox RID_SVX_MSGBOX_LANGUAGE_RESTART to String
As it's like RID_SVX_MSGBOX_LANGUAGE_RESTART

Change-Id: I49c68537c22b348dd165fd1cfb78b67d8f3f7c88
2014-08-15 23:30:32 +02:00
18f3a1a71d InfoBox RID_SVX_MSGBOX_LANGUAGE_RESTART to String
Change-Id: Ideeb3ae8aa6493fc2d2a761d46f95baf0158c6e8
2014-08-15 23:30:31 +02:00
2f46431fd0 ErrorBoxes from optjava to String
Change-Id: Ia3e200277a8a47b62a1ecbc21d9a83ba35c7ef7e
2014-08-15 23:30:28 +02:00
b64d7c9ecc remove unused RID_SVXERR_OPT_DOUBLEPATHS
Change-Id: I08cf8a3ecfa181fafe03e27fdbe0c43739bd4ad3
2014-08-15 23:30:26 +02:00
18b0e91e6c ErrorBox RID_SVXERR_OPT_PROXYPORTS to String
Change-Id: I1ab70b37d54c11023c161f76363a36acad78de62
2014-08-15 23:30:26 +02:00
b5688eb152 Replaced %1's with URL's to make the errors more descriptive.
Change-Id: I441085a7704eb3464e13723d8dc2ee1df833bd46
Reviewed-on: https://gerrit.libreoffice.org/10931
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2014-08-15 04:08:40 -05:00
5180edb7f2 WaE: passing class rtl::OUString by value, rather pass by reference
Change-Id: Ib2154a93192aa8342660b309f5307c1cb443063c
2014-08-15 02:26:53 +03:00
a6fc653bbf personas: Added a TODO FIXME wrt. ssl negotiation.
Change-Id: I5f5889b6e63e8e6763abc39690adb78d48929783
2014-08-14 19:44:47 +02:00
f4003ccbe4 personas: Better default searches, improved error messaging.
Change-Id: I0a1303f5864516efbf69e7a0227f17e43aea4af7
2014-08-14 19:43:34 +02:00
5a23c290b5 Removed hardcoded strings.
Replaced the hardcoded strings with their CUI_RES equivalents.

Change-Id: I1f4e0451839cd9fe10aa9d1c5ae82af9fa13dc4e
2014-08-14 19:43:34 +02:00
3fcd1064b3 Changed Select Persona Dialog.
The result buttons are visible initially but are disabled. These get
enabled when the results are available.

A little code clean up.

Change-Id: I6217d59220d871909bd001a6c7f3636b05cdf911
2014-08-14 19:43:33 +02:00
01153faccf Fixed crash when cancel is clicked without searching.
Change-Id: I67ca901270874794ec55d5b7db2cd18e6d3a997d
2014-08-14 19:43:33 +02:00
e372d28cbd Fixed thread related issues.
Added a data member m_bExecute which defaults to true but is set to
false when StopExecution is called. During execution, the member's value
is checked at various positions, if it is false, the execution is stopped
by returning from the execute method.

Following issues have been resolved:

* Multiple searches can be performed. The previous search is halted.
* Cancel button can be pressed in between any search or application of
  the persona.
* A theme can be selected and applied by clicking on OK while the search
  is being done.

Change-Id: Ic76c224ca0d317a6e1a44b3e8933a3ba50b371cb
2014-08-14 19:43:32 +02:00
95771f49f0 The "Select personas installed via extensions" label is invisible by default.
The label is not shown if there are no persona extensions installed.

Change-Id: I758bb7ff7f22d56bfb7fe212908f9f5f1f3e7979
2014-08-14 19:43:32 +02:00
9160e57847 Minor fix: Own persona selected when user selects installed persona.
Change-Id: I5ecd9e3b4a9b878cf5aeb2ccce2e51b45ce9a70a
2014-08-14 19:43:31 +02:00
e653a1fd2d Changed Personas installed through extensions procedure.
The UI now consists of a TreeView that lists all the personas that were
installed through extensions. When the user selects any name from the
list, the preview is shown in a button besides the list.

If there are no extensions installed, the list stays hidden.

Change-Id: I030d99549fd5b15d1104224116257ad62cdd1891
2014-08-14 19:43:31 +02:00
5bed7be540 Moved the personas installed through extensions handling to 'own'.
Change-Id: I12baaf22bfad73e228d3ed55dcf365f8eba9cf0a
2014-08-14 19:43:30 +02:00
7b57ab7a98 Fixed Bug: Persona info is deleted if No Persona is selected.
If the user selects 'Plain look..' and clicks OK, the previous persona
information is removed from the registry so that if the user selects either
of the other option and clicks OK, the previous theme is not applied.

Change-Id: I5f6a707e5f2724d2a3c39965d155cf47c898d392
2014-08-14 19:43:30 +02:00
b1824cfd16 Dropped 'Persona' from the properties in PersonasEntry template.
Change-Id: Ic662f59c084eacc7e99762c3e94fbcc191629557
2014-08-14 19:43:30 +02:00
49b08326e3 Changed application of personas through extensions procedure.
The PersonasEntry template in the registry now stores the setting as
splitted values rather than ';' separated terms. The corresponding ';'
separated setting is prepared and stored.

Change-Id: I154d519c475a48763a75b5c35ad20f170c1d7996
2014-08-14 19:43:29 +02:00
4017908018 The Personas can be install through oxt extensions.
The user can install an oxt extension and choose his/her theme from
the Personalization page.

* Created a template in Common.xcs registry to hold the values for the
  PersonasList set.
* Added 3 buttons to personalization_tab.ui to incorporate the latest 3
  personas installed through extensions.
* Currently, only 3 installed personas are shown alongwith the default
  available personas.

Change-Id: I30a40ae48d17f4ed8caef33854ef88afcbec5a54
2014-08-14 19:43:29 +02:00
e7e5ab1683 Fixed Typo.
Change-Id: I8d0b34e0c34c349baaa7c9a56fd1e6cfe3ad6934
2014-08-14 19:43:29 +02:00
67a6a411e5 Added some pre-defined search terms.
The user can now enter his/her own search term or can use the commonly
used search terms to browse for themes.

Change-Id: Ife4ad6b820784a6321f5b916a0069a915c114c7e
2014-08-14 19:43:29 +02:00
8181a7b608 Improved search: the images are displayed as they are downloaded.
Previously, all the search result images were displayed in one go,
but now the images are shown as they are downloaded.

Change-Id: I95990f36c242a0c90bd2b2fd65fd76953f46bcc2
2014-08-14 19:43:28 +02:00
27f4c752d0 Added functionality to apply default themes.
* The themes are stored in the share folder under the personas directory
  in the gallery. The information is stored in a personas_list.txt which
  contains the info in the form headerFile;footerFile;textColor;AccentColor
  for the default themes.
* Changed the personalization_tab.ui to include _three_ buttons to show
  the default images.
* Changed the vcl/source/app/settings.cxx to read the persona information
  properly in the case of default personas.
* Some variable name changes.

Change-Id: Ib5f2167729a5fb7eb8061925679560accb934a44
2014-08-14 19:43:28 +02:00
6f2136f583 The selected theme is shown in the progress label.
The name of the theme is displayed in the progress label whenever
the user clicks on one of the results.

Change-Id: I4810c9e5faec1b1a5156716b9a62b1256951425c
2014-08-14 19:43:28 +02:00
cdf4358953 Code cleanup.
Change-Id: Ifefc528b425ed9ae7f1cdba47282a4f0875bd728
2014-08-14 19:43:27 +02:00
318ce2a1ed Minor Fixes.
Changed number of search results from 1 (development code) to
9 (production code).

Change-Id: I9229f1db1df21bde3df60fd9d80e02307286b305
2014-08-14 19:43:27 +02:00
d38a3594c2 Fixed Bug: SelectPersonaDialog was not closing on clicking OK.
The dialog did not close on clicking OK if nothing was selected or if
nothing was searched. It does now.

Change-Id: I92f777bca8f306fea8da3ebd18ca41c34443a733
2014-08-14 19:43:27 +02:00
ad9bfe8ff7 Added check for no results.
The XML root node contains total_results attribute. If there are no
results matching the search term, then the user is notified of it.

Change-Id: I4b2ae5efe4af700dbc7a554a22a558f94c56e3bc
2014-08-14 19:43:27 +02:00
2304f03477 Added error message to the progess label if something goes wrong.
Change-Id: If9e7a76bea49fa681e3fc7b3586b04fbbcbe279d
2014-08-14 19:43:26 +02:00
46f9949da2 Moved the application of persona process to SelectPersonaDialog.
The theme is downloaded now when the user clicks OK on
SelectPersonaDialog instead of SvxPersonalizationTabPage. The task
is done in a separate thread.

Change-Id: I93173cce2ae9030ee8e271bd53b40e713c560731
2014-08-14 19:43:26 +02:00
961198a67e Fixed Bug: Multiple searches result in correct theme to be applied.
The vector that stores the persona settings is cleared every time a
new search is performed. This results in the correct theme being
selected for downloading and applying.

Change-Id: I8c0413a117c5a7ed660cd785c292c2fad4abd486
2014-08-14 19:43:26 +02:00
1192e0bd09 Fixed Bug: Progress label was not shown after another search.
If another search was performed with the same instance of the dialog,
then the progress label was not visible. It is visible now.

Change-Id: Ic9526248d4f79585f59f24197aac832a0bcaaeb9
2014-08-14 19:43:26 +02:00
9bd0e43fb1 The theme is download and applied in a separate thread.
Changed the SearchAndPersonaThread to include an instance of
SvxPersonalizationTabPage along with an instance of
SelectPersonaDialog. The constructor sets one of the instance and
the other one as null. In the execute() method, whichever instance
is null, the other one's process is done in the thread.

Change-Id: Iabfbdba63ce532ab794d3697977b6fab3fdaa832
2014-08-14 19:43:25 +02:00
c81bdc47ae Changed the Persona application process a bit.
The header and footer files of the selected theme are downloaded and
saved in the Theme's own folder and applied.

Change-Id: Ie974c9bedc01a20c70cb342196fb60550cb39a0f
2014-08-14 19:43:25 +02:00
86eed1d3c1 The selected theme is now applied to the suite.
1. Added IMPL_LINKs for the result buttons.
2. Created a vector to store the temporary persona settings in the
   format: name;headerURL;footerURL;textColor;accentColor.
3. When a button is clicked, the corresponding setting is copied to
   m_aPersonaSetting.
4. The persona setting is parsed in CopyPersonaToGallery and the
   header and footer images are downloaded.

Change-Id: Ib83016ad5bdfa83963843146ef6a4674fcd73868
2014-08-14 19:43:25 +02:00
70300fed9b Little code cleanup.
Changed a little bit of documentation and some variable names.

Change-Id: I292bf63b41c2b7d0a5ee7f03eb8ca49bf42b64ee
2014-08-14 19:43:25 +02:00
f143e343b7 Acquire the solar mutex, otherwise we cannot access vcl in the thread.
Change-Id: I02fdbbfd4c9516597df395163e28f1d616aa390d
2014-08-14 19:43:24 +02:00