833 Commits

Author SHA1 Message Date
Tor Lillqvist
f98407403f Revert "String Cleanup and news OUString methods/constructors"
Broke a unit test and made all tinderboxes red.

This reverts commit 3179055dc3e267c961a5618c810fbc0df1858d72.
2012-12-29 12:50:32 +02:00
Ricardo Montania
3179055dc3 String Cleanup and news OUString methods/constructors
Change-Id: Ia6142020330d0e12650fdc519b66f00e607eac42
Reviewed-on: https://gerrit.libreoffice.org/1491
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2012-12-28 18:16:04 +00:00
Markus Mohrhard
5c0e79f821 remove unused ifndef
Change-Id: I759d2c7cea6a27fe676d1c1a17586445aa013ee9
2012-12-17 23:57:22 +01:00
Caolán McNamara
0d5644bbe9 UniString::Fill -> OUStringBuffer::padToLength
none of these strings starts out before "Fill" longer than the size they are
asked to be filled to so there are no trailing unfilled bits to consider

all of which means that we can get rid of UniString::Fill now

Change-Id: I8da21e9787017da9243a2c1d7118d3fbcca2a7fb
2012-12-17 09:35:24 +00:00
Caolán McNamara
55b3794950 callcatcher: update unused code list
Change-Id: Ie975cd2df17461de1bb94a23d4daf081f6588fe7
2012-12-14 11:37:22 +00:00
Noel Grandin
805ec83f18 whitespace cleanup
Since I'm hacking in this file anyhow, make the class definition
a little prettier.

Change-Id: Id47f1084fe103e85cf1dacc84a9e536774767e61
2012-12-13 13:40:09 +02:00
Noel Grandin
c317b7f963 make the "inline" method attributes match with the method definition.
And make the whitespace layout a little cleaner.

Change-Id: I12b042600f061e74825de92ce836ee34ebdfabdb
2012-12-13 13:40:08 +02:00
Christos Strubulis
c13ad097fb Replacing '__LOADONCALLAPI' with 'SAL_CALL' definition
Change-Id: I692a9cfdca5ad50170eea2178a6aa87e8154b951
2012-12-10 21:38:28 +00:00
Caolán McNamara
d0b590fe19 callcatcher: remove unused rtf filter and associated methods
update and remove newly unused code, mostly original rtf filter

Change-Id: I2dd302851ee6fad62d79fbc81cb8a61a861396db
2012-12-10 09:28:16 +00:00
Tor Lillqvist
d9cf110dae Bye bye ODMA
SUSE has no interest in it any longer, and I doubt anybody else has
either.
2012-12-05 08:56:52 +02:00
Luboš Luňák
c94b9c4866 tools String support for fast operator+
Change-Id: I13f49a49f86a7097fce115d62271ad82609036f1
2012-12-03 18:04:24 +01:00
Markus Mohrhard
204e3eb381 ugly hack to avoid virtual method in Window
Change-Id: I7ffc13167f5ecbfe3afab6451e1ef52e81130d48
2012-12-03 03:56:11 +01:00
Tor Lillqvist
a3ce60eb3c We only support MSVC 2008 (_MSC_VER 1500) or later
We can drop or simplify many conditionals.

Change-Id: I37e820e515cc09845c30b62c89ddb3b6ff370f97
2012-11-28 20:53:40 +02:00
Tor Lillqvist
b050504802 Simplify SVLIBRARY
No need for a __DLLEXTENSION macro that is used nowhere else, and
which is in the namespace reserved for the compiler implementation
(two initial underscores) even. Just one #ifdef tree is enough.

Change-Id: Ib2612ceba385250792c52066a720b220eb294aea
2012-11-27 13:07:12 +02:00
Luboš Luňák
be677b5686 include necessary header
Change-Id: Ibfad213031a2ff07a752cf6b14a2fe35b6e285f4
2012-11-21 18:25:56 +01:00
Luboš Luňák
3b1dcf2e35 debug helpers for Point, Size, Rect, etc.
I'm kinda tired of typing it out (what kind of imbecile lumps all these
classes together into one header and still can't decide whether accessors
are Foo() or getFoo() and the capitalization of that?).

Change-Id: I15b69280265ae8570378f9f905cca66d546a252c
2012-11-21 17:57:20 +01:00
Matteo Casalin
53ad646f54 Enforce use of accessors on gen.hxx structures
Change-Id: Icd1b2937fdeaba6de1877258731f53ddf996002e
Reviewed-on: https://gerrit.libreoffice.org/936
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2012-11-20 19:32:43 +00:00
Tor Lillqvist
56d3de7360 Bin pointless _SOLAR__PRIVATE which was always 1 anyway
Change-Id: I98f35920f02d4ee71787a9968158b220af69bde6
2012-11-20 15:01:31 +02:00
Tor Lillqvist
160cfb5e5e Bin the HACK() sillyness
Change-Id: Ieeebc4098404fa006d66bb8b656172a4348b1dc1
2012-11-19 21:23:27 +02:00
Tor Lillqvist
7238177ba3 Drop ILLEGAL_POINTER sillyness
Change-Id: I19316f0fd04f75d980719676c928c3455e0f07b7
2012-11-19 12:26:44 +02:00
Caolán McNamara
3b23870673 callcatcher: remove another layer of binfilter-released methods
Change-Id: Id5bedd660b2ada460ffc48ce28d4f8ab9cd89226
2012-11-17 20:10:50 +00:00
Caolán McNamara
690ce9f1b9 callcatcher: more binfilter freed up methods
Change-Id: Iea3716e5c7a21f083f36ce4b8d43ae9fc85227f7
2012-11-14 10:11:33 +00:00
Caolán McNamara
a94b6ec2d5 callcatcher: update unused code post binfilter death
Change-Id: I5b25d14ef2769126f98523551597f43812b9feb7
2012-11-14 10:11:32 +00:00
Norbert Thiebaud
060219ac1a binfilter.die.die.die
Change-Id: Ia3c103e4343d309b997ed37e33a382ffdfbddac3
Reviewed-on: https://gerrit.libreoffice.org/1014
Reviewed-by: Tor Lillqvist <tml@iki.fi>
Tested-by: Tor Lillqvist <tml@iki.fi>
2012-11-09 07:58:02 +00:00
Cédric Bosdonnat
4cc2571e49 CMIS urls: remove +atom in the internal URLS as the binding is guessed
Change-Id: I9ae0704f1e5203778e97de5843efe777ba717271
2012-10-31 12:03:28 +01:00
Caolán McNamara
0dd085f8f3 UniString->rtl::OUStringBuffer
Change-Id: I9938d7c4ab5594baeb10f405f0aa0964ef84d6c5
2012-10-28 23:09:32 +00:00
Caolán McNamara
bb90189d7c sprinkle some more SAL_WARN_UNUSED around
Change-Id: Iaa1508584f005cba6e2ab63d4053cde4ce8637df
2012-10-27 20:24:49 +01:00
Matúš Kukan
91e81cd4bd private field 'eType' is not used [-Werror,-Wunused-private-field]
Change-Id: I0c21a0af88eda56a9ccfeeb9691617c67340b3d2
2012-10-19 13:25:43 +02:00
Norbert Thiebaud
e5090510cb remove unused define
Change-Id: Ia000af4680ea5a58db52ca0c341b1a454b3de4c1
Reviewed-on: https://gerrit.libreoffice.org/890
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2012-10-19 11:03:48 +00:00
Caolán McNamara
639c256dc5 loplugin: markup some more suitable classes with SAL_WARN_UNUSED
Change-Id: Ia89ef962aed9ecd1e907c9f46e2f05a7018ca8a0
2012-10-12 09:42:37 +01:00
Caolán McNamara
b66a72cba2 loplugin: markup the POD tools classes and UniString with SAL_WARN_UNUSED
Change-Id: Idb0636772e4c93d25259487a130720cb62cca5af
2012-10-11 15:15:15 +01:00
Caolán McNamara
e38d9aa925 add a stub ScrolledWindow to store scroll properties
e.g. VclMultiLineEdit manages its own scrolling, so just
store that info in a dummy ScrolledWindow for now and
set the scroll window settings onto the VCLMultiLineEdit
if it has a scrolledwindow parent

Change-Id: I8f7282e1348aa4e9ff77cce384dcc367b17bd3b0
2012-10-11 09:21:42 +01:00
Noel Grandin
58528348fa String->OUString in tools::ErrorContext
Change-Id: Ibd0cd3e8d7281b5abde420df5cc1d51e9354069c
Reviewed-on: https://gerrit.libreoffice.org/769
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2012-10-09 21:15:07 +00:00
Caolán McNamara
fca9bc70c0 add a new stock reset/revert button
Change-Id: Ie854c063856eb8ed7401162ed60114d7cc904d26
2012-09-28 08:48:48 +01:00
Caolán McNamara
eb1e793906 add and use a "WINDOW_CONTAINER" type
use it instead of dynamic_cast seeing as we already are dragging
the window type information around with us
2012-09-28 08:48:31 +01:00
Caolán McNamara
a983689039 Implement conversion scheme for dialogs without changing their code
This supports a scheme where we can change over a dialog to GtkBuilder xml
without touching its code by the presence of a .ui file in the right place e.g.
share/config/soffice.cfg/cui/10000.ui for the zoom dialog
2012-09-28 08:48:20 +01:00
Caolán McNamara
3e0e87545f UniString->OUString
Change-Id: I65db3f419a69542d1dc19a3879eb1a07d7f2ff43
2012-08-31 10:10:41 +01:00
Noel Grandin
ca166a7a42 Remove the Container class
Change-Id: I296d2c90af59524280c2582670c6cfe7a10f2269
2012-08-16 18:44:06 +02:00
Julien Nabet
1be58f5c25 Related fdo#44989: Bin (Un)LockRegion functions
Change-Id: I65f6e62ee045f5d9bdbd9cef02cfc7470aaca635
2012-08-15 16:39:29 +02:00
Michael Stahl
18f010bb6e tools/list.hxx: Now that's what i call a dead parrot.
Change-Id: Ice454bf28119c8291d3ed6b2bd8bf578acc63f3d
2012-08-14 21:33:27 +02:00
Philipp Riemer
d170a36bbf re-indent LOC to match coding styles (in tools/inc/)
This is a follow-up patch of c8b7aa55138848fe07108779099267424bc03e3d.

Change-Id: I368c1e119225bbee2adf71cbde0ebc41120c4b15
2012-08-13 23:52:41 +02:00
Philipp Riemer
70fc650319 remove ascii art and blank lines in tools/inc/
Also added some lines for better readability.

This is a follow-up patch of c8b7aa55138848fe07108779099267424bc03e3d.

Change-Id: I50e6c05141ef3b8db70302d8853b46c38414c6d5
2012-08-13 23:52:40 +02:00
Philipp Riemer
8f032e04ad removed "// end of sth." comments in tools/inc/
This is a follow-up patch of c8b7aa55138848fe07108779099267424bc03e3d.

Change-Id: I597be0bbcda36580c8607cab094e53e9f39133e2
2012-08-13 23:52:39 +02:00
Philipp Riemer
731f3ce64a clean-up of existing comments in tools/inc
This is a follow-up patch of c8b7aa55138848fe07108779099267424bc03e3d.

Change-Id: Ie220db245c08a6144f74a3727db3d6bdc2786495
2012-08-13 23:52:37 +02:00
Philipp Riemer
7dfba55bfd "doxygenized" comments in tools/inc
This is a follow-up patch to c8b7aa55138848fe07108779099267424bc03e3d.

Change-Id: I124d01ff13d12ea392e6ef283a585d63b1b82e1e
2012-08-13 23:52:36 +02:00
Noel Grandin
07f4263cde Move definition of LIST_APPEND to contnr.hxx
This definition is used everywhere as a flag value, even where
the List class itself is not used. Move it as part of stripping
away usage of the List class.

Change-Id: I064dc25368bd04b038f4e07a337bf8adf0b8d0eb
2012-08-13 22:47:03 +02:00
Oliver Günther
c8b7aa5513 fdo#39468: Translated German comments in core/tools
Change-Id: I5b6fd5712f08dae180bdd3b57b63713946b82433
2012-08-13 21:37:02 +02:00
Caolán McNamara
c8218367a0 callcatcher: update list
Change-Id: If9b76e5282c22a479ff709174fbc8ee4d3c337cc
2012-08-13 10:53:42 +01:00
Caolán McNamara
0c0d24589f callcatcher: reduce Container, update unused code list
Change-Id: I11733daf2668c4142052ceb4498f5500e7e291ef
2012-08-10 16:07:03 +01:00
Luboš Luňák
320117aba7 adding missing typename
Change-Id: I2bc828cdb636e84257311135ce7204bc6500ba5d
2012-08-08 16:35:51 +02:00