3868 Commits

Author SHA1 Message Date
Noel Grandin
b62f4c2cd9 convert RECT_POINT to scoped enum
Change-Id: I3f0304d69d5d638230b64135c73497192dc00cb3
2016-08-30 08:40:03 +02:00
Stephan Bergmann
5536aea822 Let OUStringLiteral1 take its arg as ctor arg, not template arg
...which makes it more flexible, can now also be used on non-const arguments.
The drawback of the argument no longer being a compile-time constant is remedied
by making the ctor constexpr.

Change-Id: Ia4903a2cc86791fece92eac0cb8406b6659dd19d
2016-08-30 07:43:52 +02:00
Stephan Bergmann
bdd60f1f5e Adapt loplugin:stringconstant to improved OUStringLiteral1
Change-Id: Ibc5128df8bcf8cb5f2f09551c0de6dfdb46bdee0
Reviewed-on: https://gerrit.libreoffice.org/28447
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2016-08-29 11:44:44 +00:00
Stephan Bergmann
c98cb7af57 Typo
...(ever since c5bcf0e5e7a467b41c955a5f13affbccd23004eb "convert sw pos/size
page to .ui"), leading to out-of-bounds reads, but which should be harmless, as
all they could do is add bad StringIds inot aFrames, but the only use of those
IDs in SvxSwFramePosString::GetString (svx/source/dialog/swframeposstrings.cxx)
guards against bad IDs.

Change-Id: I7a50230c12bcf8a197f787201442c503fe5974e7
2016-08-29 09:54:48 +02:00
Stephan Bergmann
9e00f6d70c loplugin:vclwidgets
Change-Id: Icce2f463d9263de4c0e40b38600677dbe74d83b3
2016-08-29 09:16:02 +02:00
Stephan Bergmann
31714a78eb loplugin:unreffun
Change-Id: If65f8ef5accad8d6317b07938ec97c7b129763b5
2016-08-29 07:48:10 +02:00
Jochen Nitschke
854dfdc944 loplugin:salbool
Change-Id: Icfc96f978a0fd73ceadbe3a4d57b9758e244ff2b
Reviewed-on: https://gerrit.libreoffice.org/28436
Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
Tested-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
2016-08-28 12:55:22 +00:00
Jochen Nitschke
bf7a7d6d10 loplugin:implicitboolconversion
Change-Id: I6fa51f65e75ca84f746ff5d1c7dcf97a5225d2d2
Reviewed-on: https://gerrit.libreoffice.org/28435
Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
Tested-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
2016-08-28 12:55:01 +00:00
Caolán McNamara
fe828d3cb1 coverity#1242829 Uninitialized scalar field
Change-Id: Icd847c620610b23e28daa58145bf333b7a9a10a3
2016-08-28 13:38:24 +01:00
Jochen Nitschke
0140d931e1 loplugin:defaultparams
Change-Id: I9e6b81855e421186af92e53c71f5ba9bd8005319
Reviewed-on: https://gerrit.libreoffice.org/28433
Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
Tested-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
2016-08-28 10:04:31 +00:00
Armin Le Grand
c665e7f630 screenshot: fixup some details for screenshot dlg
Edge-rounding and linewidth for selection/cursor, default
filename for save dialog. Code cosmetics.

Change-Id: I8a76d68f4f3070458ec4ba51a81bb046057218ab
2016-08-28 00:32:50 +02:00
Armin Le Grand
e2d26860f9 screenshot: added functionality to dialog
Moved code to cui, added abstraction for AbstractDialog,
adapted rendering, changed selection, added better selection
visualization, added save ressources and dialog, creating
pure screenshot with annotation display

Change-Id: I533d9f559ee17cd46105b934bcf4beef87b96168
2016-08-28 00:32:50 +02:00
Rishabh Kumar
2c2f0eaf6a [GSoC] Remove popup confirmation dialog in fill style tabs
Enable users to apply custom values without adding it to the preset list

Change-Id: Ida00c6eeb06e717a8aed30f4d230ab616c5b03dd
Reviewed-on: https://gerrit.libreoffice.org/28333
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Yousuf Philips <philipz85@hotmail.com>
Tested-by: Yousuf Philips <philipz85@hotmail.com>
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
2016-08-26 12:12:14 +00:00
Jochen Nitschke
ef699b4d41 convert SV_ITEM_ID_LBOX defines to scoped enum
and remove unused SV_ITEM_ID_EXTENDRLBOXSTRING

Change-Id: Ic84d9341d0225b01b9ef46814483c66b1af307b5
Reviewed-on: https://gerrit.libreoffice.org/28397
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-08-26 07:51:19 +00:00
Rishabh Kumar
28da3aed71 [GSoC]Remove Colors entry from Options dialog
Change-Id: I6865bd159659d2386bf32876f5c65ac533522fbc
Reviewed-on: https://gerrit.libreoffice.org/28330
Tested-by: Jenkins <ci@libreoffice.org>
Tested-by: Yousuf Philips <philipz85@hotmail.com>
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
2016-08-25 12:47:42 +00:00
Noel Grandin
3aa7db4586 convert SvxAnchorIds to scoped enum
Change-Id: I4375fa07eb6ac81b21b904e965e4c2f9600ca99a
2016-08-25 08:40:00 +02:00
Noel Grandin
fdaa46f065 convert SvxDistributeHorizontal to scoped enum
Change-Id: I7f3592ac8ef90686954624f37394a6e8f047ca44
2016-08-25 08:40:00 +02:00
Noel Grandin
b8d03c61db convert SvxDistributeVertical to scoped enum
Change-Id: I1797b9cd0164f8fcee2fb768a1db08ae17457534
2016-08-25 08:40:00 +02:00
Noel Grandin
9296ec4403 convert SvxNumValCategory to scoped enum
and fix bug in NumFormatListBox::GetDefValue in SW

Change-Id: I459b7d5bd181235daa5d128315604f1ed1259ed4
2016-08-25 08:40:00 +02:00
Noel Grandin
1332241a03 convert FmSearchProgress::State to scoped enum
Change-Id: I7ca1afedd6ca9b626c1e61322bffc66016ec7d58
2016-08-25 08:40:00 +02:00
Noel Grandin
07f355c95d convert FrameBorderType to scoped enum
Change-Id: I089a981d1d33e15460d66b30ee2b9a91081da781
2016-08-25 08:40:00 +02:00
Noel Grandin
ce7eb4c7cb convert FrameSelFlags to typed_flags_set
Change-Id: Ia62e4a99a67e1a094be8bf71ce551f88eef0ef5d
2016-08-25 08:40:00 +02:00
Noel Grandin
9e2750f6ac convert FrameBorderState to scoped enum
Change-Id: I100b5f5030da5610a350ac42c993ca4cfa786857
2016-08-25 08:40:00 +02:00
Stephan Bergmann
b1c64670f1 loplugin:stringconstant
Change-Id: I9d729c5c135f556a0dab7bcb8274b940e3452140
2016-08-24 09:24:14 +02:00
Gökhan Gurbetoğlu
c899cc46fc tdf#100726 - Improve readability of OUString concatanations
Change-Id: I59c605bb31859a2a419cc9e9e60c174e842a03db
Reviewed-on: https://gerrit.libreoffice.org/28349
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-08-24 06:55:00 +00:00
Noel Grandin
3d226bdc44 convert EditedAndValid to scoped enum
Change-Id: I0f321de899771fe826224decddab1ec92d64a21a
2016-08-24 08:47:57 +02:00
Noel Grandin
00c3ea0ac6 convert SvxNumberValueType to scoped enum
Change-Id: Ic82c18c16de8bd756a444de47c9a68e88fa1c7ee
2016-08-24 08:47:57 +02:00
Noel Grandin
20d1ee06c0 convert PaperSizeApp to scoped enum
Change-Id: Ifd452ed0ca53223ae9b45e1b3b232fcfc6d29496
2016-08-24 08:47:57 +02:00
Noel Grandin
02329af0cb convert SdrTextAniDirection to scoped enum
Change-Id: I67d1ffb1169e9faf4df90dd70a5496aa485979cf
2016-08-24 08:47:57 +02:00
Noel Grandin
92743c1da6 convert SdrFitToSizeType to scoped enum
Change-Id: Id732c74b590db7006058d1919be2438b649a795e
2016-08-24 08:47:57 +02:00
Tor Lillqvist
db231633af Simplify user name option GUI: Just a single "name" field
See https://www.kalzumeus.com/2010/06/17/falsehoods-programmers-believe-about-names/

And it makes the code simpler. Win-win.

It is just a single full name that is stored in ODF and OOXML anyway.

Take care of migrating separate given names, father's names and
surnames from older user profiles if modifying the data. Handle the
"Eastern" (as the code calls it) case, too.

Change-Id: Iebf59f224995f722669f844d03053a55c088bc6e
2016-08-23 20:13:12 +03:00
Muhammet Kara
5214eba02c tdf#82840 Add 'delete' button to toolbar customization
Added 'delete' button for contents of Menus, Context Menus,
and Toolbars pages of the 'Customize' dialog. And removed
the 'delete' item from the 'Modify' menu in those pages.

Change-Id: Ie59a32e0b92116f8058fe8efe288bfb215b522b0
Reviewed-on: https://gerrit.libreoffice.org/28323
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-08-23 12:30:34 +00:00
Rishabh Kumar
32abc402ee [GSoC] Keep the column width constant in fill style tabs
Change-Id: I55c182a31aa862a4683304f2e4ffff5d0cacf603
Reviewed-on: https://gerrit.libreoffice.org/28332
Tested-by: Jenkins <ci@libreoffice.org>
Tested-by: Yousuf Philips <philipz85@hotmail.com>
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
2016-08-23 12:04:17 +00:00
Tor Lillqvist
95212d11fc Rename two functions that had misleading names
GetAddress_Impl() and SetAddress_Impl() handled more than just
addresses. So somewhat boringly, s/Address/Data.

Change-Id: I56c4e5ff7a4983a7fbb04d056c64333a016164c5
2016-08-23 14:59:51 +03:00
Rishabh Kumar
fc185fd353 Add spacing between listbox and spin box in gradient tab
Change-Id: Ib0e3ec686681ea71f24ccc52fbc408c091bdb270
Reviewed-on: https://gerrit.libreoffice.org/28328
Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
Tested-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
2016-08-22 19:36:04 +00:00
Julien Nabet
454e1ebcfc tdf#101629: fix https://addons.mozilla.org/ case
Don't call copy function if its argument is -1 because "firefox" isn't present in searchTerm

There's still at least 1 other case to deal (eg: ../en-US/ as indicated in bugreport)

Change-Id: Id78ec6c174abecd9cc101ac730f5e83b5acd167d
Reviewed-on: https://gerrit.libreoffice.org/28271
Reviewed-by: Susobhan Ghosh <susobhang70@gmail.com>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2016-08-21 10:49:43 +00:00
Caolán McNamara
396138a6bc Resolves: coverity#705366 Mixing enum types
and

coverity#705367 Mixing enum types
coverity#705371 Mixing enum types
coverity#982694 Mixing enum types
coverity#1027717 Mixing enum types
coverity#1371228 Mixing enum types
coverity#1371242 Mixing enum types
coverity#1371280 Mixing enum types
coverity#1371310 Mixing enum types

MapUnit and SfxMapUnit share the same values and
are freely cast from one to the other.

Now that

commit d30a4298bdb5ba53cd1fe659f2b742f218a2e527
Date:   Thu Aug 11 15:02:19 2016 +0200

    loplugin:unusedenumconstants in package..svtools

removed the SfxMapUnit entries that were directly unused, they
don't match anymore and casting from one to the other is dangerous.

Why there was two of these anyway escapes me, get rid of SfxMapUnit
and just use MapUnit universally

Change-Id: I4db5dcd04b59be2f85b62b728f96c90afe00c57e
Reviewed-on: https://gerrit.libreoffice.org/28234
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2016-08-19 11:25:18 +00:00
Caolán McNamara
13194412aa coverity#1371441 Uninitialized scalar field
since

commit 7438bc1f0c4fd42420460a144cc074bfb8091705
Author: Rishabh Kumar <kris.kr296@gmail.com>
Date:   Fri Jul 8 02:48:42 2016 +0530

    [GSoC] Remove bitmap controls from area tab

Change-Id: I7290fda782bf7bb5c8a47168f5f74798bc353769
2016-08-18 21:08:40 +01:00
Muhammet Kara
6bfa24aacb Use English category names instead of localized ones in theme search tdf#87597
Added an OUString array to hold the original English strings
for search categories. The array is initialized in ctor by using
an initializer list of strings.

Also grouped the related strings of category names. So it can be
iterated easily without writing their names one by one.

Buttons in the UI will be displayed with localized strings,
but the search will take place with the original strings
coming from the array created in ctor.

Change-Id: Ieb72644203df1325e97693b14d5b3476020c6ff1
Reviewed-on: https://gerrit.libreoffice.org/28027
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2016-08-18 10:46:40 +00:00
Noel Grandin
6fdfa13a09 convert SdrCaptionEscDir to scoped enum
Change-Id: Iec6dfbdc65efde86ff24ddc51c48eb697bf4ead1
2016-08-18 08:49:02 +02:00
Noel Grandin
55b74b454f convert SdrCaptionType to scoped enum
Change-Id: I5c1a2300ec6b3d9dc3085affa08cc544f46b27d6
2016-08-18 08:49:02 +02:00
Noel Grandin
b6471fa515 convert SdrMeasureTextHPos to scoped enum
Change-Id: I27dccc90565b9e3fb14e88581a181c421caee56b
2016-08-18 08:49:02 +02:00
Noel Grandin
d4ec2ed0c5 convert SdrMeasureTextVPos to scoped enum
Change-Id: I89cc8bc2cfdd3fe059bb38216a10d36dcfea3953
2016-08-18 08:49:02 +02:00
Noel Grandin
d643cad3f0 convert ColorModel to scoped enum
and move it into CUI, since it is only used there

Change-Id: I6f8dcfc8d705aa2de2a05eec16f087f17c488872
2016-08-18 08:49:02 +02:00
Noel Grandin
fde3facbc8 convert PageType to scoped enum
and move it inside CUI, since it's only used there

Change-Id: I83ac1afaa60da9fb34480363a351608b133154cb
2016-08-18 08:49:02 +02:00
Armin Le Grand
ce6cbf86a5 screenshots: add new global make target
Up to now the screenshot creation was added/dependent of
target slowcheck. Since quite some modules have added screenshot
creations now, I added an own target 'screenshot' to allow to keep
current slowcheck and screenshot creation separated

Change-Id: I80a49a0db607edf8e0405672d570f624d29912e7
2016-08-18 02:39:15 +02:00
Armin Le Grand
b85600c9d4 screenshots: fix Linux, exclude a few crashing dialogs
Change-Id: Ie06bb6b0bfd280e386bc418abdc496cb747f44b6
2016-08-18 02:39:15 +02:00
Armin Le Grand
2a5ac6f634 screenshots: unify dumping of dialog test batch file
Change-Id: Ia1e79216d9537c65f8b7362778a2e1ad3ec6c2c2
2016-08-18 02:39:15 +02:00
Armin Le Grand
56336f9762 screenshots: add dialog test cases for chart2
All *.ui files create a screenshot, but not all look useful

Change-Id: I90d977ae84a65e9576ba9cc9b178407997e4ba79
2016-08-18 02:39:12 +02:00
Armin Le Grand
fd73a4b6ea screenshots: add dialog test cases for cui
Only one dialog had to be disabled, some others look not
very useful

Change-Id: Icbf46365e1824ea320ce721b8c783883336e9278
2016-08-18 02:39:12 +02:00