Commit Graph

364292 Commits

Author SHA1 Message Date
Matteo Casalin
184d8aee0b sw: convert 'a ? sal_True : b' to 'a || b'
Change-Id: I582edaf0e9c138822135c614f973ff205d751aa0
2014-11-16 16:54:43 +01:00
Matteo Casalin
e7061b8ecb sw: convert 'a ? sal_False : b' to '!a && b'
Change-Id: I999404544b1ed35a19096df58172e62bd1685e75
2014-11-16 16:54:43 +01:00
Matteo Casalin
f65dea36d2 sw: convert 'a ? b : sal_True' to '!a || b'
Change-Id: I7177521a9bf9c845216e2b6c91d20df93b137987
2014-11-16 16:54:42 +01:00
Matteo Casalin
195fd6b5e3 sw: convert 'a ? sal_False : sal_True' to '!a'
Change-Id: I8b3d1f7af217d36a9baf62df3e62f1361b8c57bb
2014-11-16 16:54:42 +01:00
Matteo Casalin
93193e2375 sw: convert 'a ? b : sal_False' to 'a && b'
Change-Id: I4b7829a1abe1459f2e4915159588fd3e16a14eea
2014-11-16 16:54:42 +01:00
Matteo Casalin
f2eb1eabd5 int + sal_True/sal_False ==> bool, and reduce scope of a static variable
Change-Id: I8006aaa4474f086ce5381f59afcf7a5f15279b55
2014-11-16 16:54:41 +01:00
Matteo Casalin
b60d741be6 EndDialog(sal_True) ==> EndDialog(RET_OK)
Change-Id: I07a822a7c03a4746fd609ca6ea743b92253cf6de
2014-11-16 16:54:40 +01:00
Matteo Casalin
a080c8f34d sw: avoid 'condition ? sal_True : sal_False' expressions
Change-Id: Idd6c9f9752659fc5da575e5a3f0ffc15ce5dbe1c
2014-11-16 16:54:39 +01:00
Matteo Casalin
2abe293f08 makeAny(sal_True/sal_False) to makeAny(true/false) in sw
Change-Id: Ie368fecd39189dc6ea72737b0c695c55a2d350a9
2014-11-16 16:54:39 +01:00
Matteo Casalin
fe4901829f SetStrmStgPtr can return bool instead of sal_True/sal_False in an int
Change-Id: I5348977de17d3f916cecabe4b5c3f7630a89667e
2014-11-16 16:54:39 +01:00
Matteo Casalin
9ba8304dad sal_True/sal_False to true/false in sw comments (also delete obsolete ones)
Change-Id: Ifb29bd3e9c5dc7671c189fd9daa010305f7a85a4
2014-11-16 16:54:38 +01:00
Matteo Casalin
4bdae9c9fb Let operator== return bool
Change-Id: I86d9f131ed48067984cee3fce13d48c82e7f4775
2014-11-16 16:52:45 +01:00
Matteo Casalin
1e61a6eaa7 Remove sal_True/sal_False from code and comments in sw includes
Change-Id: Icfbbae898749196e27199802ec728417d5205bc5
2014-11-16 16:52:45 +01:00
Matteo Casalin
e2f4289ff2 Remove obsolete comment, there is no boolean here
Change-Id: I55ea4ca2774433b204d2b0197e720ece4b0dadab
2014-11-16 16:52:43 +01:00
Matteo Casalin
9a5fe57282 Remove code commented out since February 2011
Change-Id: I4eec581ad83c8aceea8e853d2d19275f77029a68
2014-11-16 16:52:43 +01:00
Matteo Casalin
9529e62a48 Use boolean operators instead of ?: with sal_True/sal_False
Change-Id: I3e2738210b2fb598e15528e262f76a3ec140ab18
2014-11-16 16:52:42 +01:00
Matteo Casalin
bed1203e02 Reformat: code after {
Change-Id: Icba402cecdc4997e95250544a887b9ed3399f197
2014-11-16 16:52:42 +01:00
Matteo Casalin
bd17413bef sal_uInt16 to more proper integer types, make some constification
Change-Id: I474006e128788336680e28c9f73d4a26e68541c6
2014-11-16 16:52:42 +01:00
Matteo Casalin
bed58e399a Clarify flow by avoiding assignment in if condition
Change-Id: Ifed65f41ab2375d702bf0c4299c65d1e3d78a7f0
2014-11-16 16:48:48 +01:00
Matteo Casalin
240ca5feab nNum is never read: remove it
Change-Id: I615ee0ec9aca3c30018fb45f91240471b88e96eb
2014-11-16 16:36:55 +01:00
Caolán McNamara
2ab73c3817 callcatcher: update unused code
pleasing cleanup of whacky ScRawToken::sbyteOffset, etc.

Change-Id: I5ad97f8dab7c5dc9d5f0286bf606b619126c22c9
2014-11-16 15:19:04 +00:00
Mark Hung
93b9a2381f Improve rtf import filter to handle Chinese suffixes of numbered lists.
Currently rtftok doesn't handle multibyte string as destination
text very well. For example, RTF files created by MSO 2010 Traditional
Chinese version use CP950 (aka BIG5) for unicode to ansi conversion.
When a Chinsese numbered list was picked, the Chinese dot ( unicode
0x3001, big5 0xa142 ), was used by default as a list number suffix.
However when it is imported , only a single B (0x42) were left.
The theory of the patch is to collect both hex string and normal
character with m_aHexBuffer, and convert it into OUString as late
as possible. It allows prefixes and suffixes to be imported from
RTF files created by MSO 2010 TC correctly.

Reviewed on:
	https://gerrit.libreoffice.org/12435

Conflicts:
	sw/qa/extras/rtfimport/rtfimport.cxx

Change-Id: I63062da39bf36ea27ec11e5d0eb1d1abf5018d96
2014-11-16 15:42:13 +01:00
Michael Meeks
19866932cc emfplus: re-work and cleanup unit test
Change-Id: I484331c4dd5feedf8587530912bb65556c1689c0
2014-11-16 14:32:12 +01:00
Miklos Vajna
133c295bbe vcl: let the ModalDialog ctor take an OUString
Change-Id: I839435338f4acf80c40896b6c86f7ef122f5449d
2014-11-16 12:37:03 +01:00
Miklos Vajna
b04759db66 writerfilter: this is expected to be UTF-8
Change-Id: I7408be90f1ff552f4bb33e8a89d4b9075634e3e5
2014-11-16 12:37:03 +01:00
Miklos Vajna
8a30ba5734 fdo#83204 RTF import: handle \pard<para props> after \bkmkstart
Change-Id: I4f5f0f653f2ce7782ec1d1fc5ef550a21a9c1d35
2014-11-16 12:37:03 +01:00
Miklos Vajna
7ae56e48e2 vcl: let the ModelessDialog ctor take an OUString
Change-Id: Iae88a9889c674337fb999a23a799d8730d2793d5
2014-11-16 12:37:03 +01:00
Miklos Vajna
6a499c904f writerfilter: these are expected to be UTF-8
Change-Id: I8cd2ce341996a219ee885969de3482be422730b3
2014-11-16 12:37:02 +01:00
Michael Meeks
7cf996cf6e vcldemo: create multiple windows sharing the same renderer.
Change-Id: Iac813b78c476b69dc6aa78d48c025f5fda76db1a
2014-11-16 12:06:00 +01:00
Takeshi Abe
1bbda773e9 Mark as noncopyable
Change-Id: Ibbec7a5d9b6726865da14c9bdfad8b8118f85e5b
2014-11-16 19:04:33 +09:00
Chris Sherlock
29dd297739 vcl: fdo#86307 removed Solaris workaround from #i64273#
Basically, they were working around issues with XmbTextListToTextProperty
returning garbage characters, which showed on window titles.

The comment in the code is far more informative than the bug report:

 /* #i64273# there are some weird cases when using IIIMP on Solaris
    where for unknown reasons XmbTextListToTextProperty results in
    garbage. Test one string once to ensure safety.

    FIXME: This must be a bug in xiiimp.so.2 somewhere. However
    it was not possible to recreate this in a small sample program.
    This reeks of memory corruption somehow.
 */

Now I did a bit of research (aka "Google search") and discovered #i6759#
which was logged in 2002. This shows that the codebase was using __XOpenIM
in xiimp.so.2, which probably caused this issue. From the bug:

    I've tried to look into this problem and have found out, that
    apparently the
    use of the '__XOpenIM' subroutine from the
    /usr/openwin/lib/locale/common/xiiimp.so.2
    shared library causes this problem.  When running on Solaris, OO tries to
    dlopen() the above mentioned shared library, looks up the  '__XOpenIM'
    symbol in it and calls this function ( function XvaOpenIM() in file
    vcl/unx/source/app/i18n_wrp.cxx ).

    There's alternate code in OO that just calls the X11 documented function
    'XOpenIM()' instead.  This is enabled by running OO 1.0.x with the
    environment variable USE_XOPENIM defined to some value.  When running
    OO with

      env USE_XOPENIM=1 ~/OpenOffice.org1.0.1/soffice

    the problem does *not* occur any more and xprop for the same two windows
    mentioned in the initial bug report shows:

    % xprop |egrep '_NAME|_LOCALE'
    WM_LOCALE_NAME(STRING) = "de_DE..ISO8859-15"
    WM_ICON_NAME(STRING) = "unbenannt1 - OpenOffice.org 1.0.1 "
    WM_NAME(STRING) = "unbenannt1 - OpenOffice.org 1.0.1 "

    % xprop | egrep '_NAME|_LOCALE'
    WM_LOCALE_NAME(STRING) = "de_DE..ISO8859-15"
    WM_ICON_NAME(STRING) = "Umbruch einfÿ77777774gen"
    WM_NAME(STRING) = "Umbruch einfÿ77777774gen"

    As far as I can tell, the use of '__XOpenIM' frees some memory inside the
    Solaris X11 shared library that is still in use by the X11 character set
    conversion routines. Or in other words: the X11 character set conversion
    routines operate on freed memory, after __XOpenIM was called.

    These character set conversion routines are used by
    XmbTextListToTextProperty
    ( in WMAdaptor::setWMName() in file vcl/unx/source/app/wmadaptor.cxx ) and
    it seems they still access memory that was freed by the use of
    '__XOpenIM'.

Now later on, Caolan removed XvaOpenIM() in commit
4d6dab2cde and then later committed a patch that
removed the ability to use the environment variable USE_XOPENIM as it wasn't
necessary anymore (commit: 8b0287543d). I'd say
that this was probably fixed in one of these changes.

Change-Id: I20effd77e0cdcde26d1be756cc6231f30f35118e
2014-11-16 20:30:12 +11:00
Chris Sherlock
28effca640 vcl: SalGraphics::mirror() - always use GetGraphicsWidth()
There's never a case where we need to get the width from VirtualDevice,
we really should only get it from the SalGraphics instance. This vastly
simplifies matters.

Change-Id: I8bae9c163fcb0ce5d064d802c2783437124ebcb2
Reviewed-on: https://gerrit.libreoffice.org/12473
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
2014-11-16 08:59:09 +00:00
Brij Mohan Lal Srivastava
c5092a8d0e fdo#85432 : Add locale details to help->about
Added locale text to About dialog

Change-Id: Ic26219e8fe845b4c5027b65d5f5edba9279b1b11
Reviewed-on: https://gerrit.libreoffice.org/12464
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
2014-11-16 08:35:38 +00:00
Tor Lillqvist
1defd9aeb9 Avoid error: redefinition of 'GetImpl' for iOS
Whether this stuff actually works at all for iOS any more I have no
idea, and can't be bothered to check in my own time. Why do I bother
fixing compilation errors then? Good question.

Change-Id: If0ec4fbde42536d3d90e8c5337948815b5f47cef
2014-11-16 08:31:22 +02:00
Kohei Yoshida
2f342c6161 Remove unused header include.
Change-Id: I57cfac2993301e438124c224655fdcac0ed0fd32
2014-11-15 19:25:10 -05:00
Kohei Yoshida
30123b9559 Remove brdcst.hxx from document.hxx.
Change-Id: Ie44a743a6814cdf1bc15f850547ae71afd595836
2014-11-15 19:04:51 -05:00
Kohei Yoshida
3cf226622a Remove tools/fract.hxx from document.hxx.
If a forward declaration does the job, use that.  Adding a new header
in document.hxx is a very expensive operation since almost everyone in sc
includes document.hxx.

Change-Id: I2d78440d65da7207ceb16cb28a7404249eba066a
2014-11-15 18:18:57 -05:00
Marcos Paulo de Souza
2ff1cc856a Math: Remove aqua and fuchsia from the Elements Dock
We can remove these colors from the UI because these colors are equal to
cyan and magenta, and will be useful just in the import/exports filters. If the
user still wants to use aqua and fuchsia, they can type them in the Math editor.

Change-Id: Ia93d458e07b218aa007ec43bd490f774e5b4ea5b
Reviewed-on: https://gerrit.libreoffice.org/12467
Reviewed-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
Tested-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
2014-11-15 22:07:35 +00:00
Tor Lillqvist
f8782d8ca1 WaE: unused variable 'aSize'
Change-Id: I74a671656a703eefa9ae10e839c156a4c0f66335
2014-11-15 20:29:35 +02:00
Takeshi Abe
2492783bd8 Avoid possible memory leaks in case of exceptions
Change-Id: I06525aa32bc17464291126ed676809e23e4227b1
2014-11-16 03:01:26 +09:00
Tomaž Vajngerl
84a32aae9f t-test & F-test Statistics dialog: rename VAR -> VARIABLE
Change-Id: I51fb7cb025f4dc2bb7f3bf0ba5c9b8ee90298cd8
2014-11-15 18:42:48 +01:00
Tomaž Vajngerl
475c2a0839 fdo#74669 Add z-test Statistics Dialog
Change-Id: I8169e9ceefc48c06b358d5a8e1fc08dabf019eb3
2014-11-15 18:42:48 +01:00
Tomaž Vajngerl
225af09be9 Make room for more IDs and rename common IDs in Statistics dialogs
Change-Id: I0c7c28ef77676f8bcb6cf66423d30e3ea164a5bc
2014-11-15 18:42:48 +01:00
Tomaž Vajngerl
817b0b51e7 fdo#81801 add first and third quartile to "Descriptive Statistics"
Change-Id: I7bfdb02a97d6a33c0a6e16b058cbb10b8ab2869b
2014-11-15 18:42:47 +01:00
Caolán McNamara
a6db5e6a2a Resolves: fdo#86222 hard-coded pixel dimensions are too high/wide
Change-Id: Ie6183a7e78b671a2d126127e4fcaa3b353d8a324
2014-11-15 17:31:31 +00:00
Caolán McNamara
d7402886d4 Related: fdo#86222 rework area graphic fill page for better height
Change-Id: Ibd8e68a5a2ebd6ac2a829004c8918f9a449ef5d7
2014-11-15 17:25:20 +00:00
Noel Grandin
1866d90d81 remove unused code in ScRawToken
Change-Id: I8f644ac7f7bbdd2c9cb6f5a41709e41efa737885
Reviewed-on: https://gerrit.libreoffice.org/12423
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-11-15 16:04:01 +00:00
Yousuf Philips
b29f745a26 fdo#85817 changed 'Document as Email' to 'Email Document'
Change-Id: I4d1bd7429c05ca22abcd1cd8efbe281fd64d4f2a
Reviewed-on: https://gerrit.libreoffice.org/12419
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-11-15 15:42:31 +00:00
Yousuf Philips
c481f59687 fdo#86132 add useful tooltips to number formatting toolbar buttons
Change-Id: Iffd27c92cdec48b269c85ff9aef0483e742e36c7
Reviewed-on: https://gerrit.libreoffice.org/12416
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-11-15 15:42:11 +00:00
Yousuf Philips
65faf6938d fdo#86289 renaming 'Page Preview' to 'Print Preview'
Change-Id: Ibf87f59238e1c07ebb23d3749a2447c5ccc50481
Reviewed-on: https://gerrit.libreoffice.org/12430
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-11-15 15:38:57 +00:00