1737 Commits

Author SHA1 Message Date
Tor Lillqvist
f66d64ab2e Intermediate commit: un-revert last change
Change-Id: I3d18f8d6844377edc0864d81284c7fb9dbb9dbf9
2014-04-10 17:44:56 +03:00
Tor Lillqvist
29885b40df Revert special-casing tiled rendering here
It seems to do more harm than good. Using the default avoids some yet
not found bug in vcl (or somewhere) and fixes the rendering of some
complex SmartArt test documents. (As long as the use of delayed
rendering for "graphics" in svx is also disabled.)

Change-Id: I0ed4b25278101bdd995ce90e8fb65f65ca644ebe
2014-04-09 15:22:40 +03:00
Michael Stahl
d2a73cf323 SwMultiTOXTabDialog: fortunately the bogus SetTemplatePath call
... fails with exception and does not modify the configuration.

(regression from 1b0f7ee1e04d7b0fe81f7458ae2116615e0f6889)

Change-Id: I0e12cf0b531bc68147cf2be22c28c75c0f05f3ff
2014-04-08 21:51:49 +02:00
Faisal M. Al-Otaibi
d2771b63b9 fdo#77123: Add option ignore kashida to the search
This patch will add new checkbox to ignore kashida in the
search and replace dialog.

Change-Id: I9e7179242751103b8418d922ade5b9145170ad15
2014-04-08 10:58:15 +03:00
Stephan Bergmann
732c19b8f3 Clean up unused functions
Change-Id: Ic1ba88f99c3e0de0761a28b8ff0ca2e9416aecec
2014-04-07 13:47:22 +02:00
Tor Lillqvist
d9701f0ebc Typo: s/ouer/our
Change-Id: I0179678c6c5dd6a05b1d7d5038a901e7bf2af3de
2014-04-06 20:27:21 +03:00
Tor Lillqvist
be616c26f9 Bin empty @seealso, @param, @return and @onerror metacomments
Change-Id: I9a590b9e65960bf7360b37567aa5bfa7588c69f7
2014-04-06 19:37:47 +03:00
Tor Lillqvist
79247e9fa7 Kill superfluous spacing before semicolons
Change-Id: I2d8b430e1a6c23569eb0a67a2dcf8702cf7abc41
2014-04-06 19:37:47 +03:00
Tor Lillqvist
88bea0a5a8 Kill superfluous vertical whitespace
Change-Id: I949ba575951998d36cb4d38746f2182633046b3b
2014-04-06 19:37:47 +03:00
Caolán McNamara
880762357e coverity#708566 Uninitialized scalar field
Change-Id: I4a9c3faa194ae0885dc27571cc14c4c8cee8cb0f
2014-04-05 21:11:50 +01:00
Michaël Lefèvre
453ee351f3 fdo#43157 : clean up more OSL_POSTCOND
Change-Id: Iaca31b4e12c258b762b3d88fbad0fb08b4f1fc16
Reviewed-on: https://gerrit.libreoffice.org/8832
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-04-04 07:23:43 -05:00
Noel Grandin
5babf1b903 remove unnecessary scope qualifier from sal_Bool uses
i.e. convert "::sal_Bool" to "sal_Bool"

Change-Id: Ie5943aee4fee617bf2670655558927ed25b7e067
2014-04-03 13:54:02 +02:00
Stephan Bergmann
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
Stephan Bergmann
82b517de56 Remove unused inline function
Change-Id: I5601a1d6d37f5d30d50bbe22e1079d8c6acf2c4b
2014-04-01 09:22:39 +02:00
Norbert Thiebaud
c176cb8907 decorate tempfile name's to help identify leaks' author
unottols TempFile class check in debug bod for
and env variable LO_TESTNAME.. if present it use that as the root
for the tempfile filename.

cppunitteset framework is augmented so that it export such
LO_TESNAME using the cppunit testName(), after replacement of
non-alphnum characters by _

Change-Id: Iebb9545d3bd789083afbeaf4c64eab086b56049a
2014-03-30 20:20:39 -05:00
Michael Stahl
1258b576ae tools: support 64-bit file positions in SvStream
Bump stream positions to 64 bits on:

SvLockBytes::SetSize()
SvStream::SeekPos()
SvStream::SetSize()
SvStream::SetStreamSize()
SvStream::Seek()
SvStream::SeekRel()
SvStream::Tell()
SvStream::remainingSize()
SvStream::nActPos
SvStream::nBufFilePos

Change-Id: I0521fd60d31d1a33e5634cbf51dd42edc46ad919
TODO: adapt callers of Seek()/SeekRel()/Tell()/remainingSize()
2014-03-29 02:03:07 +01:00
Michael Stahl
19bbfc0b39 tools: allow 64-bit positions on SvLockBytes
Bump stream positions to 64 bits on:

SvLockBytes::ReadAt()
SvLockBytes::WriteAt()
SvAsyncLockBytes::m_nSize
SvOpenLockBytes::Seek()
SvOpenLockBytes::Tell()
SvOutputStreamOpenLockBytes::m_nPosition
OInputStreamHelper::m_nActPos

Change-Id: Ica3b674e0ab23a756260a51475e97a5396ecdddb
2014-03-29 02:03:07 +01:00
Stephan Bergmann
a6c9d0046a Remove remaining DBG_CTOR etc. remnants from unotools
Change-Id: Ife6cecde4a9e89146493737d06cd9f0d8a041610
2014-03-28 17:26:08 +01:00
Stephan Bergmann
70cc2b191b First batch of adding SAL_OVERRRIDE to overriding function declarations
...mostly done with a rewriting Clang plugin, with just some manual tweaking
necessary to fix poor macro usage.

Change-Id: I71fa20213e86be10de332ece0aa273239df7b61a
2014-03-26 16:39:26 +01:00
Noel Grandin
bd8ce8b959 sal,toolkit,unotools: prefer passing OUString by reference
Change-Id: Ie62a59fd9ff3d6f6a34240fd562fbc91a143bf3a
2014-03-17 09:00:07 +02:00
Tor Lillqvist
45d09ea271 "overflow" is one word
Change-Id: Ib36c2c5d55f86aff27081a0da554f6e8a81474ee
2014-03-11 17:17:39 +02:00
Stephan Bergmann
a3cdc0c68b unotools: simplify deprecated XTypeProvider.getImplementationId
Change-Id: I99cea658b20cf342f503f61c1cb91a8e29abf1ad
2014-03-10 17:40:00 +01:00
Tor Lillqvist
440b90c994 Avoid "delayed" rendering in the tiled rendering case
Obviously, when using tiled rendering, all of the tile should be
rendered at once during the call to lo_touch_draw_tile(). Nothing
should be delayed to happen later (when the PaintTimer fires). The
main culprit causing such "delayed" rendering, at least in a certain
test document, seems to be SmartArt objects.

It is not 100% clear how to determine whether tiled rendering is being
used, though. For now, let's assume it is always the case on
non-desktop (i.e. iOS and Android, even if for Android we dont
actually do it). For desktop platforms, including liblibreoffice, will
have to figure out later how we want to do it, assume never for now.

Change-Id: I0f7e7172e7a699a0c6752ee465776f9da5c3098e
2014-03-10 17:38:07 +02:00
Jacobo Aragunde Pérez
09c3b8ab70 unotools: extractDate and extractTime functions
Added a pair of functions to split a UNO DateTime object into the
corresponding Date and Time objects.

Change-Id: I6bf31d83b3843a9482d6bf538a5dd7130c2c7046
2014-03-08 17:50:58 +01:00
Jacobo Aragunde Pérez
066dcba006 unotools: improve date parser to support timezones
ISO8601 defines timezones with formats like 'Z', '+01', '-08:30' or
'+0830' at the end of the datetime string, but our parser was failing
when the string contained any timezone information.

I have modified the parser so it doesn't fail in case of the string
contains a timezone. Moreover, I check that the timezone definition is
correct according to the standard [1] and I extract it to the string
tokTz.

Unfortunately UNO Time class doesn't contain any field to store the
timezone, only the boolean field IsUTC, which I fill accordingly.

TODO: add a timezone field to UNO and fill it from the parser.

[1] https://en.wikipedia.org/wiki/ISO_8601#Time_zone_designators

Change-Id: I9d33b19efbc6d41a74b02ece2dfa12fa12fac5eb
2014-03-08 17:50:58 +01:00
Caolán McNamara
e1d89089cf coverity#1190364 Uncaught exception
Change-Id: I647c7f7bf29c81c3ecafac4a8d18a61663e7738e
2014-03-06 16:35:43 +00:00
Stephan Bergmann
5e21a413c7 cppuhelper: retrofit std::exception into overriding exception specs
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2014-02-26 18:22:20 +01:00
Alexander Wilms
d722353b4b Remove visual noise from unotools
Change-Id: I1285c4e47ad381934adc3aea6671e7c95d820c39
Reviewed-on: https://gerrit.libreoffice.org/8334
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2014-02-26 03:50:41 -06:00
Noel Grandin
e428a99523 remove unused code utl::MediaDescriptor::PROP_DEEPDETECTION()
Change-Id: Ie80d0c00fe8725e59a6814707c9a4afcb6ac09b5
2014-02-25 15:16:55 +02:00
Noel Grandin
700161cce7 remove unused code utl::toISO8601(com::sun::util::Time const&)
Change-Id: I8df1934c7392ec38918be2a5b986c6ca871f9d15
2014-02-25 15:16:55 +02:00
Stephan Bergmann
ad73967e99 Remove unnecessary extractInterface
Change-Id: I4848bf84615274ad5732223a354fb7a6b845d9a8
2014-02-24 08:08:00 +01:00
Alexander Wilms
0ce0c369aa Remove unneccessary comments
Change-Id: I939160ae72fecbe3d4a60ce755730bd4c38497fb
Reviewed-on: https://gerrit.libreoffice.org/8182
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-23 03:38:49 +00:00
Stephan Bergmann
973b47a336 unotools: sal_Bool -> bool
Change-Id: I8051c0756e0474a5b4f748e0aa15a9922e82ea97
2014-02-19 12:47:07 +01:00
Caolán McNamara
db03076476 coverity#984168 Uninitialized scalar field
Change-Id: I7c0af2de872bb0064a2e5cb269fd2a08f228ce3e
2014-02-19 09:23:06 +00:00
Caolán McNamara
cdb19b8b00 coverity#984167 Uninitialized scalar field
Change-Id: I2f6b40def145ea478403fb566c4b0d57c87c0627
2014-02-18 10:10:02 +00:00
Matúš Kukan
094f92bb78 Introduce com.sun.star.util.thePathSettings singleton.
To replace single-instance com.sun.star.util.PathSettings service,
incorrectly converted in 89b0017b22889af6a8afe28b94c06e7095dc8c6f

Keeping util::PathSettings::create in
sc/source/ui/vba/vbaapplication.cxx because for some reason
util::thePathSettings::get does not work in sc_macros_test
while testing sc/qa/extras/testdocuments/Ranges.xls.

Change-Id: I75b68ae56ac5b58f72416070dba100ab3ab70fe8
2014-02-06 12:03:25 +01:00
Jan Holesovsky
e2eda70f27 startcenter: fdo#72469: Thumbnails also for other file types than ODF.
Change-Id: If905b2f3e51adf7e64df9385ede74368acd11771
2014-02-04 09:11:29 +01:00
Stephan Bergmann
961b42ca1e Remove needless SAL_DLLPRIVATE annotations
Change-Id: I6b560474e38230a0c8b6ba3be0bbffe9e7dcae48
2014-02-03 16:05:12 +01:00
Alexandre Vicenzi
f9369d33a4 fdo#54938 Convert to cppu::supportsService
Change-Id: I512c525029ebd63d261560d27e9f38bbe94f7e10
Reviewed-on: https://gerrit.libreoffice.org/7649
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Marcos Souza <marcos.souza.org@gmail.com>
Tested-by: Marcos Souza <marcos.souza.org@gmail.com>
2014-02-03 14:35:46 +00:00
Norbert Thiebaud
0d8679da48 coverity#984169 : Uninitialized scalar field
Change-Id: Ie304c66b7a3abb163428fb481c3cca3de2b4379b
2014-01-29 23:36:54 -06:00
Stephan Bergmann
9d1c20259f bool improvements
Change-Id: I7020537797b181b0fcbf78de3d7b962b96744895
2014-01-28 20:26:17 +01:00
Caolán McNamara
1a940e329a coverity#440774 Logically dead code
Change-Id: Id6f13ba0f51bef17de6b5e200c71dbde06e3ab63
2014-01-28 11:29:19 +00:00
Stephan Bergmann
e3133ae237 Let C++ inline functions return bool instead of sal_Bool
...to improve diagnosing misuses of boolean expressions in client code (cf.
compilerplugins/clang/implicitboolconversion.cxx).  This change should be
transparent to client code.

Missing overloads of insert() for bool have been added to OStringBuffer and
OUStringBuffer (which required dropping one !VALID_CONVERSION check that would
now pick that overload, but would be flagged by
compilerplugins/clang/pointertobool.cxx).

Change-Id: I2d64cd923b8f47bfaa31e753def6515c29a3f8c9
2014-01-23 18:43:53 +01:00
Alexandre Vicenzi
4bdf9a0247 fdo#63154 Removed unused solar.h reference
Change-Id: I6b2f9e04e2232570c8bb9f36252b23a70c5f7525
Reviewed-on: https://gerrit.libreoffice.org/7604
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2014-01-23 09:48:42 +00:00
Stephan Bergmann
bbd9668d5f bool improvements (related to mixing bool/sal_Bool in &=, |=, ^=)
Change-Id: I9869d9709f28b68ef7b518527175589d80644668
2014-01-22 15:00:54 +01:00
Stephan Bergmann
436b10ce8a bool improvements
Change-Id: Ie9951690fa99705d2083e0d1515261f2f99fd97a
2014-01-21 18:24:04 +01:00
Stephan Bergmann
891ffcb141 bool improvements
Change-Id: I2733b729fe516c0e857490369d493bb7d8fb7c77
2014-01-21 13:24:31 +01:00
Stephan Bergmann
0743b5ec9a Use bool
Change-Id: I00d347a395bc81e31e1575c453e9e7d2d6eb60ed
2014-01-10 17:11:42 +01:00
Noel Grandin
82625bb98e remove unnecessary sal_Unicode casts in OUStringBuffer::append calls
Convert code like:
    buf.append( static_cast<sal_Unicode>('!') );
to:
    buf.append( '!' );

Change-Id: Iacb03a61de65a895540940953b49620677b3d051
2014-01-07 09:43:37 +02:00
Andras Timar
b55259eeb5 typo fixes
Change-Id: Ia5f104bfd707bcf4e159c78ca2764c861fb0b6d9
2013-12-20 15:55:00 +01:00