Commit Graph

1149 Commits

Author SHA1 Message Date
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
c70f22b9a5 QueryBox STR_QUERY_DELETE -> MessageDialog + string
Change-Id: I570fe82f3207e8b40a0e4727c6641fdf59113978
2014-08-22 09:33:44 +01:00
d21d5a7261 drop unnecessary shl.hxx includes
Change-Id: Ieb984987c4a4f888a563377e0500444b12f43506
2014-08-18 12:59:49 +01:00
e379401618 Test compiling before committing is overrated
Change-Id: I65e4a6ad59aee21b62454b4fcdd6d6ca056cb249
2014-08-18 08:16:31 +03:00
d6baf2ce1a move strings to global file
Change-Id: I6e1b54a66d0b669ecbba4eb305c1dd8925747edd
2014-08-18 03:57:30 +02:00
d18c577162 InfoBox STR_SRTERR to String
Change-Id: Ic3b7de3d26e91b260d775e629602758f63a40b85
2014-08-18 03:18:20 +02:00
cf65baa920 InfoBox MSG_DOUBLE_SHORTNAME and MSG_NO_GLOSSARIES to String
Change-Id: Ie3934ebc3209b8ba0358cca5fad9883e3b8cd262
2014-08-18 03:16:06 +02:00
20f6cf0377 Massive 'Dialogdiet fail' and similar to 'Dialog creation failed'
Change-Id: I6ca6914e80c186699df42253de46a3690c5130f2
2014-07-26 14:25:33 +02:00
88a874fcb3 convert SfxItemState constants to a proper enum
and while we're at it
- use the enum type all over the place instead of passing around
sal_uInt16
- don't use bitwise logic on enum values
- use enum values instead of numeric constants

Change-Id: I7f24cb4d242e1c00703e7bbcf1a00c18ef1e9fd4
2014-07-23 13:26:19 +02:00
2d5a7c36ee sal_uInt16 to size_t
Change-Id: Ia36a8d833b697dad4f6bbc611b703efcda4b220c
2014-07-22 23:50:39 +02:00
da0c0f2a84 this string is in svx
we shouldn't be in this condition, but seeing as we are fix the
string source.

Change-Id: Ia746a24db3daae7952f4b5dbd94a315a4e79cf12
2014-07-03 14:52:30 +01:00
e2080e70fe new compilerplugin returnbyref
Find places where we are returning a pointer to something, where we can
be returning a reference.
e.g.
   class A {
     struct X x;
     public X* getX() { return &x; }
   }
which can be:
     public X& getX() { return x; }

Change-Id: I796fd23fd36a18aedf6e36bc28f8fab4f518c6c7
2014-06-24 11:34:21 +02:00
fc2a0de936 turn the no-space edit widgets into a editwidget feature
especially because most of them don't handle intercepting text getting *pasted*
into them right, so start with the one which does that right.

Change-Id: If6770798872ed3c72c469656ebf0d4fd76d2171d
2014-06-16 16:59:09 +01:00
887b3a3562 loplugin:staticcall
Change-Id: I26e1e0f66dad5ed4e8351fc7509449b312559166
2014-06-13 17:54:35 +02:00
bb761be472 Change SfxTabPage ctor SfxItemSet param from ref to pointer
...and also corresponding param of CreateTabPage function type and corresponding
Craete functions.  There were some call sites that passed undefined "null
pointer references" and SfxTabPage internally uses a pointer member pSet that is
checked for null anyway.

Change-Id: I4eb3636155eac46c9c9d26e6e6e842e85d7e95af
2014-06-11 14:39:04 +02:00
a92e973b6d Change SfxTabPage::Reset param from ref to pointer
...there was a call site that passed undefined "null pointer reference"
(apparently in a case where the passed argument was actually unused)

Change-Id: I663d4264b7a84f44ca69c732f3bc502f614b2b2a
2014-06-11 10:39:03 +02:00
4dbeadb9c1 Change SfxTabPage::FillItemSet param from ref to pointer
...there were a number of call sites that passed undefined "null pointer
references" (apparently in cases where the passed argument was actually unused)

Change-Id: I19799e90f0cd8e98367782441a5ea9df27b59830
2014-06-10 17:25:23 +02:00
e6f8ec366b Avoid possible memory leaks in case of exceptions
Change-Id: Iaf672463cf51d596148822d9b5effe5ab40f70d4
2014-06-05 15:36:34 +09:00
7883992dd5 Avoid possible memory leaks in case of exceptions
Change-Id: I45929aae52fa106b5f5c0199f8ce8b60c0ac5438
2014-06-04 04:17:18 +09:00
0a3fe4c281 Remove ASCII art and useless comments from sw module
Change-Id: I3ba4ac78fd4810e006b1034bbe7c28b1803895d2
Reviewed-on: https://gerrit.libreoffice.org/9494
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-05-27 01:46:44 -05:00
e0eb5fa849 Resolves: #i124204# make fields empty on the auto text dialog...
when parent node is selected

(cherry picked from commit 3e285da1115b83bfd168567d561615fb3ee3e6c9)

Conflicts:
	sw/source/ui/misc/glossary.cxx

Change-Id: I9ef8b28e55a27d4b48432b50678e1a8bc19e0935
2014-05-23 20:38:12 +01:00
f04803ecd3 coverity#736863 Dereference before null check
Change-Id: If719ed8411ee65c6b81452434810a21ac1da7e58
2014-05-11 21:05:56 +01:00
bf30c8b16d use new VCL IsValueChangedFromSaved method
follow to commit ff1a7a59434f5f793d4044aad615bcf78148e963
"RFC: add IsValueChangedFromSaved to VCL button and listbox"

Change-Id: If2e6d9e7c18590dc4abbc90362d7897ca2557dd6
2014-05-08 14:55:12 +02:00
4bf3cb7668 coverity#738912 Uninitialized scalar field
Change-Id: Id9b60bb33a1200f5fa6264d0801121ac9e12dc23
2014-05-01 17:19:49 +01:00
a182ed8479 coverity#738911 Uninitialized pointer field
Change-Id: I89c9a17a7ea8dde3475826d03bdeef9e94da322c
2014-05-01 17:19:49 +01:00
9147f41ebf coverity#738910 Uninitialized scalar field
Change-Id: I69583731182c09ffb995a2e86b46e0192544950c
2014-05-01 17:19:49 +01:00
d1ffea3a27 coverity#738909 Uninitialized scalar field
Change-Id: I332d57bd7a82a734e509afe24c0c716ce8a4e455
2014-04-30 21:02:48 +01:00
6aa35db393 sw: sal_Bool->bool
Change-Id: I324a0ffde2ddcca105451c19e7aadcfad15211d8
2014-04-30 08:44:42 +02:00
322c3e6222 coverity#1210183 Uninitialized pointer field
Change-Id: I9a86030d988473ac56ee1c6c1325b1eede2ba010
2014-04-29 11:40:27 +01:00
37c3a1c097 const
Change-Id: I0ce6965f191d1455bcc7a793025282e20b7433a5
2014-04-27 17:01:46 +02:00
a30fc66dd2 remove unused hrc files
Change-Id: I7ce04c206250db40076bed699bee892bdfbf19b6
2014-04-22 13:03:19 +02:00
40064f479b clean up hrc files
and remove some unused stuff

Change-Id: Iea6177c3d2f9d0668187e66155b62688ae2ecb04
2014-04-22 13:03:17 +02:00
2df39f400d sw: clean up inter-module includes
Change-Id: I812842e76ae0b7bc252530d2b4aaa2b452c2babf
2014-04-15 21:22:04 +02:00
380d4600d7 use TriState instead of sal_Bool as there's three possibilities
Change-Id: If24d4cec9ef4369f20419fe70de7392614a35316
2014-04-08 09:18:33 +01:00
d913a5a9df untangle the bFmt == 2 hack
Firstly, IsFormat is unused so there's no "escape" of
bFmt back into the outside world.

Then bFmt has two purposes.

Purpose 1 is 'not be a format dialog, be a format dialog, be a format dialog but hide standard button'

so, lets just add an explicit "Hide standard button" method and call
it in the (apparently) one place where it's necessary.

Purpose 2 is to flag that "BaseFmtHdl" was called from clicking
the "Standard" button at which point its set to 2.

SfxTabDialog::Init_Impl had...

"
  // bFmt = temporary Flag passed on in the Constructor(),
  // if bFmt == 2, then also sal_True,
  // additional suppression of the standard button,
  // after the Initializing set to sal_True again
  if ( bFmtFlag != 2 )
      m_pBaseFmtBtn->Show();
  else
      bFmtFlag = sal_True;
"

but the variable acted on is bFmtFlag a copy of bFmt, and is never read again
after that line, so setting it to sal_True is meaningless. The comment suggests
that the intent is to reset bFmt to true if it was 2 during initialization,
which fits with the later use of bFmt == 2 to indicate that the standard button was
clicked, i.e. reset bFmt back to its standard value.

So make bFmt a simple toggle of dialog as a format dialog or not, add a way
to remove the standard button and add a second variable to indicate the standard
button got pressed.

Change-Id: I98a441f5f314845abe243e05b6d92fd71d7b0b04
2014-04-07 13:47:02 +01:00
362d4f0cd4 Explicitly mark overriding destructors as "virtual"
It appears that the C++ standard allows overriding destructors to be marked
"override," but at least some MSVC versions complain about it, so at least make
sure such destructors are explicitly marked "virtual."

Change-Id: I0e1cafa7584fd16ebdce61f569eae2373a71b0a1
2014-04-01 19:22:54 +02:00
b6dbe2be87 Bin pointless INET_PATH_TOKEN
There is nothing mnemonic in the name 'INET_PATH_TOKEN' that would tell the
code reader that it simply means '/'.

Change-Id: I89ce72e8be5cf0ef2c66b23ad6e721ad49105648
2014-04-01 12:14:45 +03:00
5129ed7014 coverity#1194912 Overflowed return value
Change-Id: Ia32931ddb122e31bcd1cb18ecca694ae562d5d7f
2014-03-30 21:21:29 +01:00
6ef2df7b9b Remove remaining DBG_NAME* uses
...that had been used for DBG_CTOR, DBG_PROF, etc.

Change-Id: I8eac38e24b7110511feb7813aaf5a20ab82bdbe0
2014-03-28 17:26:09 +01:00
567ef6d578 Second batch of adding SAL_OVERRIDE to overriding function declarations
...mostly done with a rewriting Clang plugin, with just some manual tweaking
necessary to fix poor macro usage.

Change-Id: Ie656f9d653fc716f72ac175925272696d509038f
2014-03-27 18:12:18 +01:00
34002c4e5c sfx2: sal_Bool->bool
Change-Id: I1fd02cc148fd9a54d2092dad1e548f51a0813a14
2014-03-27 13:45:09 +02:00
436cd90095 svtools: sal_Bool->bool
Change-Id: Ifd3e643dbc6755839ad4af73ae141fd115ddb4f4
2014-03-25 14:32:56 +02:00
7f48d14419 sal_uInt16 to sal_Int32 and remove a temporary OUString
Change-Id: Ia305ad3b1e04129e172f0f2fe3428f84e4654576
2014-03-24 23:22:10 +01:00
9c925ddd5e Constify and reduce scope
Change-Id: If80b842a79d476e5e90eeedc4520fc952c8f8f2a
2014-03-24 23:22:10 +01:00
edf385a19b Remove some OUString concatenated appends and some temporaries
Change-Id: I9f92a57644239b11941236a1cee5302eca993a7b
2014-03-24 23:22:09 +01:00
a3ea6e856f Result of expression is unused, remove that code
This code has been there at least since 2000-09-18, so removing it
seems to be safer than adding the evaluated token to the sMsg
OUString, as the surrounding code would suggest.

Change-Id: Ie9b2446b80a7bf79efbf6963b3a5e40548d4154c
2014-03-24 23:22:09 +01:00
5b592e25e7 sal_uInt16 to sal_uLong and remove unneeded cast
Change-Id: I45152c575720e0720139d8a6d973333b105e1fa5
2014-03-24 23:22:09 +01:00
009799fda5 sal_uInt16 to sal_Int32
Change-Id: I9d92d5866be5f579a2d645d9039f9fb939e6e61e
2014-03-24 23:22:09 +01:00
c373dc5d6c Group common expression
Change-Id: Id286b57ccba1edb35490c374740a58128ce7f0c4
2014-03-24 23:22:08 +01:00
0dcd33cf92 sal_uInt16 to sal_Int32 and removed some unneeded casts
Change-Id: I122af4ed8a2504242f527cf98b26c9e1599497ea
2014-03-24 23:22:08 +01:00