5970 Commits

Author SHA1 Message Date
Luboš Luňák
af51f3fb5a handle .doc cropping also inside groups (fdo#38411)
Writer does handle cropping on its own, but only for "toplevel" images,
not for those inside groups, so there still use the generic code.

Change-Id: I805a4cbd2d4cea7008e0322688ccd7f35a6d4a2c
2014-04-13 23:09:00 +02:00
Caolán McNamara
cb35c7cd49 add test case for CVE-2007-2356
Change-Id: I9bf6ca1c5a23dd0e3ef6b7d7c0de041a48df45b6
2014-04-12 12:41:14 +01:00
Michael Stahl
e98e738a82 replace some SvStream seeking with calls to remainingSize()
Change-Id: I2905e98425b9991d6138ab0adc15083d313ca445
2014-04-11 23:08:11 +02:00
Caolán McNamara
e02a6cb2c3 add a ras import test
Change-Id: Idc9267a2bb1bca13c40c746ab3b1974d7e4258ab
2014-04-11 21:51:22 +01:00
Caolán McNamara
eacfa63670 coverity#707839 Uninitialized scalar field
Change-Id: Ib9cf1d3da0cf03b6aa0aaa7b5206803730115cc8
2014-04-11 21:16:23 +01:00
Caolán McNamara
dfc39fcdbf coverity#707837 Uninitialized scalar field
Change-Id: Icce1d2cd9abfebcf26e916c4c79341b617e97b2e
2014-04-11 20:49:57 +01:00
Caolán McNamara
2c2b3a16bd coverity#707834 Uninitialized scalar field
Change-Id: I405b981c9234a662cf1d305ad437482d10cbf432
2014-04-11 20:45:09 +01:00
Caolán McNamara
d30ee7f7ce coverity#707812 Uninitialized scalar field
Change-Id: I04e65d6c0124a2f370ae006bbaa991d5e7753e12
2014-04-11 20:37:10 +01:00
Caolán McNamara
ffa82c4d14 coverity#738630 Uninitialized scalar field
Change-Id: Ie6b6347a8cdddfcf6b1aada2aa5c34b94cc73490
2014-04-11 20:27:35 +01:00
Kohei Yoshida
c9c4148f00 Add this back.
Change-Id: Ia342671c460d07fae4764712b2c814616ff427ba
2014-04-11 15:19:31 -04:00
Takeshi Abe
4e939b9599 Avoid possible memory leaks in case of exceptions
Change-Id: I4f1e00dd275976cdba8490f35ccbb491914829b7
2014-04-12 01:34:45 +09:00
Armin Le Grand
af2a70abc0 Resolves: #i124661# secure possible out of bound access to vector
(cherry picked from commit c9cdd9751d45b5b8b0288e9dc477e6d272ba0a0d)

Change-Id: I1c0637029fd7b4ab493956538c6e9fdf33307cbe
2014-04-11 17:26:41 +01:00
Caolán McNamara
5d60ae3fc1 coverity#738631 Uninitialized scalar field
Change-Id: I931e819da93ef952d9ad3a755471302472b4d580
2014-04-11 17:09:27 +01:00
Caolán McNamara
cbe71fb3d4 coverity#738632 Uninitialized scalar field
Change-Id: Ic5ca12b6e18890fbc289063fc7518b44abf90e2c
2014-04-11 17:07:46 +01:00
Caolán McNamara
66bafdd56f coverity#738634 Uninitialized scalar field
Change-Id: Ie83aa769b1737692a0e518b9c21371c92ec6382c
2014-04-11 15:38:05 +01:00
Caolán McNamara
ea957cc01d coverity#738635 Uninitialized scalar field
Change-Id: I033b3e2420edcc8a7529cd60c2ef372f2abfed23
2014-04-11 15:30:20 +01:00
Caolán McNamara
60a0a093ca coverity#738637 Uninitialized scalar field
Change-Id: I9e8abf725c348c4d779d779e24e411609df64986
2014-04-11 15:25:13 +01:00
Caolán McNamara
999377f113 coverity#738639 Uninitialized scalar field
Change-Id: Ib7c75d87237113641fd80e5a87dc08cbf1910a55
2014-04-11 14:11:22 +01:00
Armin Le Grand
f864c09a9d Resolves: i124608 when exporting selection...
use selection boundrect as svg canvas

(cherry picked from commit bfc1aa46b9ee9ad37728389eb636fc9fb5b9827f)

Conflicts:
	filter/source/svg/svgexport.cxx
	filter/source/svg/svgfilter.cxx
	filter/source/svg/svgfilter.hxx

Change-Id: Ib10e785ebb611f0e33ea3ae799dfea20b05d250a
2014-04-11 10:18:48 +01:00
Takeshi Abe
896cacf059 Avoid possible memory leaks in case of exceptions
Change-Id: I43cce6b6c41582a65ff7e59de9a107b30cf8b1e8
2014-04-11 09:55:01 +09:00
Tor Lillqvist
6835d9f307 It's "its", not "it's"
Change-Id: Ieaa787afd7cc622b4750a2ee8f17f6dad934ba63
2014-04-10 20:22:50 +03:00
Takeshi Abe
22f7c87dbd Avoid possible memory leaks in case of exceptions
Change-Id: I288c77190a8205ba320bb788a52f3b2ef9d2557f
2014-04-09 16:36:19 +09:00
Stephan Bergmann
09eacfbd91 loplugin:implicitboolconversion
Change-Id: I82ec1212b29d1e5b0e56e81952fb1b514b5798d0
2014-04-08 21:39:07 +02:00
Armin Le Grand
70ba557865 Resolves: #i56084# added support for export selection in swf export
(cherry picked from commit 9cfa6464411e39e1cbaef8f0c7c64bddbed4033b)

Conflicts:
	filter/source/flash/swfexporter.cxx
	filter/source/flash/swfexporter.hxx
	filter/source/flash/swffilter.cxx

Change-Id: I987c43af54982daea532c8f4f915eb2bd91ea267
2014-04-08 15:46:20 +01:00
Armin Le Grand
de37aa18fa Resolves: #i124608# functionality to export only selected objects...
in SVG export

(cherry picked from commit 42c2b0cecfae5845439e0392a399497062238b15)

Conflicts:
	filter/source/svg/svgexport.cxx
	filter/source/svg/svgfilter.cxx
	filter/source/svg/svgfilter.hxx

Change-Id: Iac4fe6d93c95cc5ab25185245cf642703a02d0ed
2014-04-08 15:22:00 +01:00
Stephan Bergmann
c90588635e Fix namespace ambiguity
Change-Id: Ie32085d67157a48cef2713eec5495d01b7d5867c
2014-04-07 16:43:41 +02:00
Caolán McNamara
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
Takeshi Abe
099dd432b2 Avoid possible memory leaks in case of exceptions
Change-Id: If541e39e34490adccc8baab43ea9516c3dc6cc1a
2014-04-07 15:00:12 +09:00
Caolán McNamara
fa84cdbf06 coverity#704635 Explicit null dereferenced
Change-Id: I2c4c14d28e6e0217a821efe4deb38ef6a97b5f74
2014-04-05 20:34:33 +01:00
Takeshi Abe
be8f375039 Avoid possible resource leaks in case of exceptions
Change-Id: I6f1f6669b222f03ad220f01cae2e09d03550a58b
2014-04-05 23:57:32 +09:00
Caolán McNamara
17db9b37bd coverity#738638 Uninitialized scalar field
Change-Id: I4349f084950c21dd5d8b6bdb0438f00748e50eb6
2014-04-04 16:24:32 +01:00
Takeshi Abe
eaf260871e Drop dead code since 2002
AUGUSTUS has been never defined

Change-Id: I7dafcf57586483f590f26a1c164c8f958aa511f3
Reviewed-on: https://gerrit.libreoffice.org/8835
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-04-04 07:13:38 -05:00
Caolán McNamara
c48dd16187 coverity#707860 Uninitialized scalar field
Change-Id: I5ac73f41333f465a63daa3de44cd6d4e7d931689
2014-04-04 12:14:20 +01: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
Noel Grandin
a718b02f8e vcl: sal_Bool->bool and cleanup
- remove unused PFilterDlgCall typedef
- remove bool parameter from PFilterCall typedef - it was always being

  called with false, and nothing was reading it

Change-Id: Ic56127e7d55254a7b9b65849a21cb286f52344d1
2014-04-03 09:17:55 +02:00
Noel Grandin
abc429987c filter/msfilter: sal_Bool->bool
Change-Id: I24deda680469ce99ba358a68e83551bdb584751a
2014-04-03 09:17:52 +02:00
Noel Grandin
6f7ca49591 package: sal_Bool->bool
Change-Id: I66999e5d9f827650f4c1bccb14178f8fa8a57cbf
2014-04-03 09:17:50 +02:00
Caolán McNamara
f95f708548 coverity#707833 Uninitialized pointer field
Change-Id: I355ada53d637ad16d88c7e8d8b0f333915f54b6e
2014-04-02 15:51:16 +01:00
Caolán McNamara
8e45fbd60e coverity#707828 Uninitialized pointer field
Change-Id: If4635aa5adc5d82712a779ae487b0a27539c2d70
2014-04-02 15:51:16 +01:00
Caolán McNamara
e326b5e06d detect add to table beyond MAX_TABLE_SIZE
Change-Id: I9b1357e583620c59898cd7a649a5b39a6d7e3739
2014-04-02 09:03:56 +01: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
Noel Grandin
6ac6fb820f xmloff: sal_Bool->bool
Change-Id: I64c33ae4c157e270acac9a1f820d3e6272ba0bea
2014-03-31 12:39:02 +02:00
Julien Nabet
f110f4875b Typo: manualy->manually
Change-Id: I136347660d91c619941fb1036dd77678e0f945df
2014-03-30 15:08:17 +02:00
Matúš Kukan
7a120ad4ac few more type fixes
Change-Id: I6b953a6792c8c72c29dc0e7b25bdae41da50ca6d
2014-03-29 12:52:52 +01:00
Matúš Kukan
d761d5e219 error: no matching function for call to..
Change-Id: I4792f9deb162c5e7bde16e54a55f80a83eb90b70
2014-03-29 12:08:09 +01:00
Armin Le Grand
62175dfc7e Resolves: i124477 set object shadow always at PPT import...
it may be applied to object text

(cherry picked from commit 5fb2c24bd0cfc0b911aa2d0389960c5ee3d14c4a)

Conflicts:
	filter/source/msfilter/msdffimp.cxx

Change-Id: I8b93ff85333078d3e79cc9aa1002f232214a5be1
2014-03-28 12:38:33 +00:00
Stephan Bergmann
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
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
Caolán McNamara
6137b5f72f coverity#735432 Logically dead code
Change-Id: I6bbbe539d28aefcad04ccae48f2518e78f15b240
2014-03-25 12:33:21 +00:00
Noel Grandin
554e54429c svtools: sal_Bool->bool
Change-Id: Ic9b4838c4d1b4d2d2ea4665811dd396bdbec31b7
2014-03-24 08:12:09 +02:00