Commit Graph

1281 Commits

Author SHA1 Message Date
45dfbdca6a Fix build with boost-1.56.0.
Change-Id: I61686bf61ff1e0561c385492c563e4495456ca47
Signed-off-by: Thomas Klausner <wiz@NetBSD.org>
2014-08-29 10:10:15 +01: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
4b339818bb add a VclViewport
like GtkViewport so that the scrolled region will be clipped,
which also has the side-effect of stopping glade clobbering
the non view-port scrolled .ui files on editing

Change-Id: Ic64174b3a35b77f068e0085cdc7721aeb33f1d82
2014-08-20 14:00:58 +01:00
47e2fd0dc8 Consistently use size_t and SAL_MAX_SIZE
Change-Id: Ibab89984ec94556ec368653b6db50c6c2e380dec
2014-08-16 21:52:32 +02:00
384cb5ff7b Consistently use size_t and SAL_MAX_SIZE
Instead of a mix of sal_uIntPtr, sal_uLong, int, and so on.
Also change CONTAINER_ENTRY_NOTFOUND=ULONG_MAX to SAL_MAX_SIZE as
return value in case of failure and in the related tests.

Change-Id: Ie778a849253b4be84fbcdab9557b7c4240233927
2014-08-16 21:52:28 +02:00
2bdefe6d83 warning C4706: assignment within conditional expression
Change-Id: I4295cf0a26a79848988d93df589e6e8e7d699989
2014-08-13 10:10:53 +02:00
1c5c0e48a3 remove unused resources
Change-Id: Ifdb5ab9f2a0a59d3ca31ca1fa5112449e1a6aa11
2014-08-09 18:12:14 +02:00
d916726456 CondFormat.hrc: remove unused resources
Change-Id: I1a1c099a9da38038e52673ad0f8e899a4b54eb59
2014-08-09 18:12:12 +02:00
151fbebf8c Consistency around SdrOnOffItem in svx/sdtagitm.hxx
...similar to what has been done for svx/sdtmfitm.hxx in
6a2ea81ca1622d2c2ad55bea8ddc28167fcc2794 "Remove unused ctors" and
68969cc61adecac481ae9656978ef952f435b310 "Consistency around SdrMetricItem."

Change-Id: I6d8b3709d6d55bd6958d38f262141c43779dfdcc
2014-08-04 19:22:55 +02:00
7e0e581c16 cleanup usage of MapUnit enum
some places were using the wrong enum constant, and some places were
unnnecessarily converting to sal_Int16

Change-Id: I754993533c840cd33106820d99af2dc951f26a80
2014-07-31 11:38:48 +02:00
20f6cf0377 Massive 'Dialogdiet fail' and similar to 'Dialog creation failed'
Change-Id: I6ca6914e80c186699df42253de46a3690c5130f2
2014-07-26 14:25:33 +02:00
8a690c88a9 Apply pimpl to XMLPropertySetMapper.
Let's hide its implementation for real this time.

Change-Id: I18c82f4969f2e3560536a68e9bbd86b9282e2ace
2014-07-25 11:50:02 -04:00
6a873638fa Renamed brdcst.[hc]xx to SfxBroadcaster.[hc]xx
- Remove includes from files where they are not needed.
- Update pch files

Change-Id: I0188e3934ef429008c1ef495ab1d5b27f38664d5
Reviewed-on: https://gerrit.libreoffice.org/10342
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-07-17 08:47:58 +00:00
dac4ca5f68 new loplugin: externalandnotdefined
Find "missing headers," where a function is declared directly in the
.cxx (as extern) and not defined, and should arguably instead be declared
in an include file.

Change-Id: I6d83ee432b2ab0cd050aec2b27c3658d32ac02a2
2014-07-11 14:12:25 +02:00
4ce9e4a68f Head cleanup - use forward declarations.
Change-Id: Icc4fa0acad77d61200eb77cc70e21866590b658e
2014-07-10 14:13:57 -04:00
aa9aff1483 -Werror,-Wunused-private-field
Change-Id: I9d540c2a404600bba038853d73d0cce63f162ea2
2014-07-09 08:14:30 +02:00
65f12c0e16 hook up scrolling
Change-Id: Iaf30a41dcc74e4542d3df60ca26354876badc81f
2014-07-08 16:14:46 +01:00
554a613172 Convert RID_CONDFORMAT to .ui
Change-Id: I23ac6a7328a43c2fb63f2f804f6718f64e73eb8e
2014-07-08 16:14:45 +01:00
8b499cea76 fix spelling in class name OSpecialHanldeXMLExportPropertyMapper
Change-Id: Ideaa021f76f1c384150caad5ec6a41bf65bae28e
2014-07-04 09:42:57 +02:00
4228f08d60 use assert when followed by deref
Change-Id: I8405e4d8f9fa1de3ef6ee474321b4ac2b4ce1624
2014-07-03 12:49:38 +01:00
4ff115b3e7 drop UniReference in favour of rtl::Reference
since they're doing the same thing.

Change-Id: I76134b6b848db8628f315fe5bd9eb972a6bf0cb6
2014-07-02 15:23:52 +02:00
1b6cefaf68 coverity#706608 Uncaught exception
Change-Id: I26cf7c33089ddfcbb7faf81295b9a9776c6a9065
2014-07-01 10:56:15 +01:00
28177b61a8 error: direct base 'boost::noncopyable' inaccessible due to ambiguity
Change-Id: I3d2d530ebdb3341956e9b7a3c1f22b621a52deff
2014-06-30 20:36:46 +02:00
7af733d9ef tweak assert so comment appears in abort message
Change-Id: Ibf78e5cd1620f0b61cae030e3870be4a6f87e71d
2014-06-27 08:55:56 +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
1d38cb3655 fdo#71076, fdo#71767: Preserve number formats when charts are copied.
Change-Id: If5ae8852152012483237e7602e56a0c46ea8748a
2014-06-19 14:46:56 -04:00
94546ae88d rtl::Reference fits just fine here
Change-Id: I354b546654e665607d9be0d65f6327fabb5694de
2014-06-18 11:26:34 +02:00
3e82897353 improve the inlinesimplememberfunctions clang plugin
Change-Id: I6d5a952901648e01904ef5c37f953c517304d31e
2014-06-17 10:55:17 +02:00
365fea447d loplugin:staticcall
Change-Id: I0d254902727f6d9c874aaeed7c22096f282422d0
2014-06-13 17:54:30 +02:00
0dc13e9c06 tweak things to allow switching between small and large toolbar icons
Change-Id: Ife4da4c6f4acc3b3f9fde18cdfc09635cf9b6776
2014-06-10 13:23:35 +01:00
184a00b962 loplugin: inlinesimplememberfunctions
Change-Id: I42119f656ca528286fb25d2d36c0af54b7d04a6b
2014-06-09 10:10:13 +02:00
0e507ae031 various: remove SAL_THROW macro
Change-Id: I9464179a736b91f5bc32eb5e5e89b3b4e3da3494
2014-06-05 08:17:52 +02:00
89d982ab83 ...and avoid SolarMutex deadlock when joining FactoryLoader threads
Change-Id: I6ae206d18dc03f99739ea20c72853db9662924d2
2014-06-04 23:43:47 +02:00
faf40b99aa Missing launch of FactoryLoader threads
...regression introduced with 06a09dd0ad1e8afcf69e877501036e068d477438 "Join
FactoryLoader threads."  (Also, hopefully, the original use of
osl::Thread::setPriority was just cargo cult, as salhelper::Thread does not make
that feature available to clients, so it had been dropped in
06a09dd0ad1e8afcf69e877501036e068d477438.)

Change-Id: I055c8fb20f3bbf13ba823436be24167d3446ed05
2014-06-04 23:34:33 +02:00
10ec4a7cb2 Left over "SAL_CALL"
Change-Id: I02cf4b4a145e29dc1bc529f0c0fbfbc4a6cdc47e
2014-06-04 14:16:59 +02:00
06a09dd0ad Join FactoryLoader threads
Change-Id: I22b313a895057edebc8bee715813de908826763a
2014-06-04 11:25:27 +02:00
abe5aaa726 coverity#706505 Uncaught exception
Change-Id: Ia00361fb1d86223a7ed65f0be295b291183e3ad6
2014-05-28 13:49:51 +01:00
426033250d reportdesign: Fix applying the last used color
The last used color is stored inside
SvxColorToolBoxControl, so we must call its Select method
to do that. (This also fixes using the last shape, See
commit ce842113ae728e8995c7c5398204a20d0707e843 for a
fix of exactly the same problem in chart2.)

For the font color, there was also another problem:
The SID used for that button is SID_ATTR_CHAR_COLOR2.
The problem is that SvxColorToolBoxControl::Select
actually calls for that SID the ".uno:CharColorExt"
command instead of ".uno:FontColor" (which activates
in writer the format paintbrush mode). Given that since
commit 584b415924bba22db23a4258062e54973de0ed7c this
command also receives the last used color as argument,
the easiest solution is to register ".uno:CharColorExt"
here as well.

Change-Id: I2db25a7fb537ce10dfec7b1c2d049dd77d9f8f6b
2014-05-27 17:23:36 +03:00
7b8e9ea4f9 fdo#67937 "print on group change" defaults to TRUE
Thus it needs to be saved when it is *false*.

Change-Id: I01bae547afe71ede12fb852c1a9040b7e45bf7b9
Reviewed-on: https://gerrit.libreoffice.org/9502
Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu>
Tested-by: Lionel Elie Mamane <lionel@mamane.lu>
2014-05-27 05:46:51 -05:00
3a99c2f91e OXMLSubDocument: copy PrintWhenGroupChange, too
Change-Id: If6a5d9a50f5d600b96faebc51b9798a8e63eec49
Reviewed-on: https://gerrit.libreoffice.org/9501
Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu>
Tested-by: Lionel Elie Mamane <lionel@mamane.lu>
2014-05-27 05:45:39 -05:00
9b791f9c31 remove unnecessary use of OUString constructor when throwing
Change-Id: I4a3f3f911dcfbf88696053215a2fb7a94678244c
2014-05-27 08:20:11 +02:00
8ce3c6f7c3 coverity#704659 Unchecked dynamic_cast
Change-Id: I773351290293b1e54f6e983852baf6ffd2fc3e05
2014-05-26 15:52:00 +01:00
16ba360f2a reportdesign: Update shape buttons with sub toolbar selection
Change-Id: Ie39f1005182da118475fdf9c4e463bfb902d4446
2014-05-25 10:42:44 +03:00
ac76cc7e60 Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part20
Change-Id: If87cdfb2c605254f6d69baa4ca5aec09091caa68
2014-05-23 22:11:52 +02:00
787d41c26d coverity#1215313 Uncaught exception
Change-Id: I22cd98a35c6c638e3476d54b742762d8a2dfa7fa
2014-05-23 08:54:37 +01:00
3db8d606d5 hrc and src files: squeeze multiple newlines
for i in `find . -name *.src -or -name *.hrc`; do FILE=$(cat -s "$i"); echo "$FILE" > "$i"; done

Change-Id: I2bac5ad3e1eb3c566e5c867ccf45893a19e1561e
2014-05-19 20:04:22 +02:00
f62de9113a Comment why it's not a copy paste error
See http://nabble.documentfoundation.org/Question-unoType-for-getXmlToken-dbaccess-reportdesign-module-td4109071.html
Thank you Lionel!

Change-Id: I999bad0d6de0327bea7ba04a6c61a497d45f53a0
2014-05-17 09:37:35 +02:00
c288b17cc5 Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part12
Change-Id: I7c514b7a1d86f52d77672b826b1f08b825fd7aa7
2014-05-14 23:18:57 +02:00
c12998c9d3 update_pch: add reportdesign
3m44s reduced to 53s...

Change-Id: I9a7601e4cb23430b850fe4303e7da877ab1d63e2
2014-05-14 22:35:50 +02:00
4185015225 fix-includes.pl: reportdesign
Change-Id: I01ad1f4c3a8e0ee8173ceb147ce20945b7d5433d
2014-05-14 22:35:50 +02:00