summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2014-08-14Moving TemplateLocalView to the StartCenterEfe Gürkan YALAMAN3-42/+87
Added TemplateLocalView to the StartCenter. "Templates" Button will hide RecentDocs and show TemplateLocal view. Change-Id: I34fc7f6ed0d819cf0c29dd89ee154408c5d8434f
2014-08-14Massive scope level reduction by early bail-out.Kohei Yoshida1-58/+58
Change-Id: Ie620208f02bf74844f9b7cb904f9c5abbb10ca07
2014-08-14personas: Added a TODO FIXME wrt. ssl negotiation.Jan Holesovsky1-0/+31
Change-Id: I5f5889b6e63e8e6763abc39690adb78d48929783
2014-08-14personas: Better default searches, improved error messaging.Jan Holesovsky2-9/+10
Change-Id: I0a1303f5864516efbf69e7a0227f17e43aea4af7
2014-08-14fdo#82043: Instead of the bold font, use a higher multiplifier.Jan Holesovsky1-3/+1
This reverts commit 04b02f2f5a4f71198e0cb616404c4721c918afe6. Change-Id: Iac19a0ced09bc8372e3a572d57dd3ac33ece9191
2014-08-14Removed hardcoded strings.Rachit Gupta4-8/+71
Replaced the hardcoded strings with their CUI_RES equivalents. Change-Id: I1f4e0451839cd9fe10aa9d1c5ae82af9fa13dc4e
2014-08-14Changed Select Persona Dialog.Rachit Gupta2-19/+20
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-14Added title to the Select Persona Dialog.Rachit Gupta1-1/+3
Change-Id: Ia54e94c84e71fb794e7dec67f89306a5dd465f68
2014-08-14Fixed crash when cancel is clicked without searching.Rachit Gupta1-1/+2
Change-Id: I67ca901270874794ec55d5b7db2cd18e6d3a997d
2014-08-14Fixed thread related issues.Rachit Gupta2-5/+26
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-14The "Select personas installed via extensions" label is invisible by default.Rachit Gupta3-2/+5
The label is not shown if there are no persona extensions installed. Change-Id: I758bb7ff7f22d56bfb7fe212908f9f5f1f3e7979
2014-08-14Improved UI: Large buttons are not shown.Rachit Gupta1-3/+3
* In the Personalization Tab Page, the button sizes are not affected by the presence of the preview buttons. THey remain their original size. * Added some padding and spacing to avoid cluttering of the widgets. Change-Id: Iea919b9fbfce4a7bfc82f73ccb49f94aa10ec804
2014-08-14Added feature of clearing the registry in case something goes wrong.Rachit Gupta1-0/+10
If the installed extension is removed, then the persona settings in the registry are cleared to avoid odd look in the UI. Change-Id: Iaa99f4c87ec6ce4a663e1a3cebb3f8ff45e02079
2014-08-14Minor fix: Own persona selected when user selects installed persona.Rachit Gupta1-0/+2
Change-Id: I5ecd9e3b4a9b878cf5aeb2ccce2e51b45ce9a70a
2014-08-14Changed Personas installed through extensions procedure.Rachit Gupta3-65/+46
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-14Moved the personas installed through extensions handling to 'own'.Rachit Gupta4-66/+99
Change-Id: I12baaf22bfad73e228d3ed55dcf365f8eba9cf0a
2014-08-14Fixed Bug: Persona info is deleted if No Persona is selected.Rachit Gupta1-0/+2
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-14Dropped 'Persona' from the properties in PersonasEntry template.Rachit Gupta2-12/+12
Change-Id: Ic662f59c084eacc7e99762c3e94fbcc191629557
2014-08-14Changed application of personas through extensions procedure.Rachit Gupta2-10/+44
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-14The Personas can be install through oxt extensions.Rachit Gupta5-20/+137
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-14Fixed Typo.Rachit Gupta1-1/+1
Change-Id: I8d0b34e0c34c349baaa7c9a56fd1e6cfe3ad6934
2014-08-14Added some pre-defined search terms.Rachit Gupta3-7/+142
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-14Improved search: the images are displayed as they are downloaded.Rachit Gupta3-13/+14
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-14Added functionality to apply default themes.Rachit Gupta4-23/+142
* 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-14The selected theme is shown in the progress label.Rachit Gupta1-1/+8
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-14personas: Minor tweaks in the selection dialog.Jan Holesovsky1-61/+63
* make the buttons scaling * [Search] next to the input line * mnemonic widget setting Change-Id: Ia175ba33077bd87fc9cf2b87ed5aeda2b9fc7848
2014-08-14Code cleanup.Rachit Gupta1-60/+16
Change-Id: Ifefc528b425ed9ae7f1cdba47282a4f0875bd728
2014-08-14Minor Fixes.Rachit Gupta1-2/+2
Changed number of search results from 1 (development code) to 9 (production code). Change-Id: I9229f1db1df21bde3df60fd9d80e02307286b305
2014-08-14Fixed Bug: SelectPersonaDialog was not closing on clicking OK.Rachit Gupta1-1/+2
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-14Added check for no results.Rachit Gupta3-7/+25
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-14Added error message to the progess label if something goes wrong.Rachit Gupta1-0/+6
Change-Id: If9e7a76bea49fa681e3fc7b3586b04fbbcbe279d
2014-08-14Moved the application of persona process to SelectPersonaDialog.Rachit Gupta2-29/+60
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-14Fixed Bug: Small buttons are not visible initially.Rachit Gupta1-9/+9
Small ugly buttons were visible before searching. Their default visibility is set to false. Change-Id: I54baf50e4ffd7749391fbc0a48a07d7a1ffd5433
2014-08-14Fixed Bug: Multiple searches result in correct theme to be applied.Rachit Gupta2-0/+8
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-14Fixed Bug: Progress label was not shown after another search.Rachit Gupta1-1/+6
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-14The theme is download and applied in a separate thread.Rachit Gupta2-101/+130
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-14Changed the Persona application process a bit.Rachit Gupta1-1/+3
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-14The selected theme is now applied to the suite.Rachit Gupta2-50/+125
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-14Little code cleanup.Rachit Gupta2-10/+13
Changed a little bit of documentation and some variable names. Change-Id: I292bf63b41c2b7d0a5ee7f03eb8ca49bf42b64ee
2014-08-14Acquire the solar mutex, otherwise we cannot access vcl in the thread.Jan Holesovsky1-0/+4
Change-Id: I02fdbbfd4c9516597df395163e28f1d616aa390d
2014-08-14Changed images to buttons so they are clickable.Rachit Gupta3-41/+72
Changed some variable names too. Change-Id: I166d996389c84d00782cba42169c991f8f0f923e
2014-08-14Added setOptimalLayoutSize() to resize the dialog after images load.Rachit Gupta1-0/+1
Change-Id: If85d4baacbffb6b7e6bf8feceb9c58697ee158d8
2014-08-14The search result images are shown in the dialog.Rachit Gupta4-22/+269
1. Changed the UI to include a 3x3 grid of images 2. The preview images are downloaded in the thread 3. The images are downloaded in their respective folders 4. A progress label is shown Change-Id: Id87e72343d28e03b37e0c422e5ebfe1a9a37c1b5
2014-08-14Added SearchAndParseThread.Rachit Gupta2-22/+61
The search results data is retrieved and parsed in a separate thread so that the UI doesn't hang awkwardly. Change-Id: I51437edd4cfbd45f5fb7e487ad2baf5dba6618a4
2014-08-14Moved definition of SelectPersonaDialog to personalization.hxxRachit Gupta3-35/+24
Change-Id: Ic6ffcfb394e36d4d9ce9825b26095fe2a0f34fdd
2014-08-14Changed license and added #ifdef.Rachit Gupta1-10/+5
Change-Id: If1b0d447eba7c7afdc28aa4246556d14e2fcc98e
2014-08-14Created std::vector to store learnmore URLs.Rachit Gupta2-18/+13
For now, we have to parse the HTML and display the images as the result XML does not contain the header and footer URLs. Change-Id: Ie95a75e218bc3da12802c971ea744fb38951e574
2014-08-14select_persona_dialog.ui changed to include search.Rachit Gupta2-57/+28
The entered text is searched on Mozilla's test server and the result is parsed. Change-Id: I2be660b0f7f60d2bdb2c54cbc958084b87ad1e05
2014-08-14Created basic architecture for PersonasDocHandler.Rachit Gupta4-11/+178
Change-Id: Ic1454344756c48090ebe821799d10dd6ace0264c
2014-08-14sw: initialize SwDoc::mbCopyIsMoveMichael Stahl1-0/+1
(regression from 5494954b269267f6ee3bdd5ac73e7513fa69978f) Change-Id: I8bc2e0e079cbf86449ef0ce9c046eedb624127f2