Commit graph

348112 commits

Author SHA1 Message Date
Noel Grandin
4f9ce93ecb sfx2: sal_Bool->bool
Change-Id: I125e09933be2841315252fbc3fc021c195f255f8
2014-03-18 11:26:04 +02:00
Noel Grandin
85341374cb remove unused parameter
Change-Id: Iab723e78b0305dadee5598b21a9ea78093109b65
2014-03-18 11:25:17 +02:00
Stephan Bergmann
309951d6d6 Access safe data members directly
Change-Id: Ide204709c54fa476b9cc4f6a9446a8fb2730950c
2014-03-18 09:43:18 +01:00
Stephan Bergmann
093df487b4 Access safe data members directly
Change-Id: If0acaa04b61a72f47b70cbbfc37c615c909d0c18
2014-03-18 09:43:18 +01:00
Stephan Bergmann
31052b36be Use SolarMutexGuard directly
Change-Id: I2ae1a43862754030f88df033551c93fdbeeab14a
2014-03-18 09:43:18 +01:00
Stephan Bergmann
c63f42e26a Use SolarMutexGuard directly
Change-Id: Ieb26a4b63bc93254c54b18c209514aee55186407
2014-03-18 09:43:18 +01:00
Stephan Bergmann
8ca1c57f04 Access safe data members directly
Change-Id: I06df992ca9a77e8ac21dbd1faffa9fa906daab62
2014-03-18 09:43:17 +01:00
Stephan Bergmann
43ed93b256 Use SolarMutexGuard directly
Change-Id: Ia8c994a86f1693dd1f06b2f1183f392e0ba4bdd2
2014-03-18 09:43:17 +01:00
Stephan Bergmann
445ec65a85 Use SolarMutexGuard directly
Change-Id: Iddb38d3404a8b1a4e33e291e1f51ad63cacaa255
2014-03-18 09:43:17 +01:00
Stephan Bergmann
15bb864ea8 Use SolarMutexGuard directly
(and access safe data members directly)

Change-Id: I4a033fc2acd858534d329023c72c278f8b4b9244
2014-03-18 09:43:17 +01:00
Stephan Bergmann
faef574c55 Access safe data members directly
Change-Id: I077318a2ecb9b3d9708930742c458422aadeb064
2014-03-18 09:43:16 +01:00
Stephan Bergmann
9a67d4f419 Use SolarMutexGuard directly
Change-Id: Iaf7a74fed1846ce39de01cc343d7a75763e81e50
2014-03-18 09:43:16 +01:00
Stephan Bergmann
99b6c3d413 Use SolarMutexGuard directly
Change-Id: I8c6a0873e2b0bb371775a2342292a819fe630b51
2014-03-18 09:43:16 +01:00
Stephan Bergmann
32a082a7b3 Use SolarMutexGuard directly
Change-Id: Ic133d616d730e332de7354d5de4a5ab21944378f
2014-03-18 09:43:16 +01:00
Stephan Bergmann
fd7479de09 Remove unused ThreadHelpBase base
Change-Id: I1fb145bd660400ecc52be97fe0cefee3c03666f0
2014-03-18 09:43:16 +01:00
Stephan Bergmann
83408619a7 Use SolarMutexGuard directly
Change-Id: I5fd051b77e52d98c4c2f14b1dda3b72efc4bdf49
2014-03-18 09:43:15 +01:00
Stephan Bergmann
fbc72e5feb Use SolarMutexGuard directly
Change-Id: I6ca88538be5400714fcbe880776ac30cca3d68ae
2014-03-18 09:43:15 +01:00
Stephan Bergmann
65b718dad2 Use SolarMutexGuard directly
Change-Id: I8e76a9cc9c06420fde3a1c5564410624ce5a91ec
2014-03-18 09:43:15 +01:00
Tor Lillqvist
6013967b39 Add some more source files for debugging convenience
Change-Id: Ibf4f18e0e8efe0d220e087559578747b45e03942
2014-03-18 10:14:05 +02:00
Tor Lillqvist
847b6169c6 Enable one more level of zooming in, just for fun
Change-Id: I7181199363f93dd7da851674c7f593f509082475
2014-03-18 10:14:04 +02:00
Miklos Vajna
710c3920c9 adapt CppunitTest_sw_ooxmlexport to 6820dec890
Change-Id: I718829fe4821f36a37b0503be18c56d1151abd9c
2014-03-18 08:08:30 +01:00
Noel Grandin
86a32589e9 Find places where OUString and OString are passed by value.
It's not very efficient, because we generally end up copying it twice -
once into the parameter and again into the destination OUString.

So I create a clang plugin that finds such places and generates a
warning so that we can convert them to pass-by-reference.

Change-Id: I5341a6ea9e3190f4b4c05c42c85595e3dcd83361
2014-03-18 08:32:26 +02:00
Takeshi Abe
bb17844099 Avoid possible resource leaks by boost::scoped_array
Change-Id: I54a175ce1e4cb624d94770ee849d97675987e7b2
2014-03-18 11:55:05 +09:00
Kohei Yoshida
87efec9cc2 Make this non-inline.
Change-Id: I2002f7278b63b7678a5274e4213ab9dfb50e525e
2014-03-17 22:48:53 -04:00
Kohei Yoshida
d2eb2c5a02 fdo#76195: Set the border type to NONE to ensure it won't be drawn.
We can no longer rely on the width being zero for no border condition.

Change-Id: I02c5c825661b4a0aa4190306e8276bdfd8bff944
2014-03-17 19:43:05 -04:00
Kohei Yoshida
1c6fb26656 fdo#75260: These old hacks no longer make sense.
The clip region in fact cuts off the lower part of the bottom border, both
on screen and when printing / exporting to PDF.

Change-Id: Id350531f09b3ded66fd05ea7ebeefe8771260b62
2014-03-17 19:43:05 -04:00
Zolnai Tamás
374efa7253 Skeleton of drawinglayer object called OpenGLObject
- Shape name: com.sun.star.drawing.OpenGLObject
- Drawinglayer object: SdrOpenGLObject
- Uno object: SvxOpenGLObject
- View contact: ViewContactOfOpenGL
- Primitive: OpenGLPrimitive2D

Change-Id: I7fc0829d58cb4a8432d0e3007c90223707e5dd84
2014-03-17 23:48:28 +01:00
Kohei Yoshida
ca25cdcb39 fdo#76140: Reimplement XIRR OpenCL test.
1) Use ods format and store the expected formula results as numeric cells,
   to avoid having to load the same file twice (which is slower).

2) Use rtl::math::approxEqual to evaluate two numbers that may be subject
   to numerical instability especially when the expected values are very
   small.

Change-Id: Ie08e91f797065f4593f996df3541da84019cc53c
2014-03-17 18:41:58 -04:00
peilin
c33d96aa8b modify SetBackGroundColor to fix background color and gradients issue
Change-Id: Ie2ffa39f6aad8df127e99109618a64fb0d32599e
2014-03-17 21:13:26 +01:00
Jacobo Aragunde Pérez
6820dec890 ooxml: preserve several simple types of sdt
This patch is to preserve the sdt blocks for several simple sdt types:
equation, picture, citation and group.

This patch reuses the infrastructure created at commit
55211e612d to grab-bag the properties of
the sdt block and write them back on export, with small modifications
in particular related with the fact that these tags don't have
children.

The type of the property tags equation, picture, citation and group
was modified in the ooxml model file to be able to process them. They
were previously empty.

A unit test was added to check the preservation of these fields.
Another had to be modified.

Change-Id: Ica1a340f589f5d6c85c1a35d2a3a4bf930eb2d8a
2014-03-17 21:09:35 +01:00
Manas Joshi
de226dcfae fdo#76181 - cleanup OUString constructors
Change-Id: I0a5fbfc0b33b16e0eba7410957ab83ffbff4e008
2014-03-17 19:50:18 +00:00
Matúš Kukan
4f4d9c0635 Avoid duplicate symbols in libmerged for Windows too.
This is working version of fc27a685d4

Change-Id: I48e861b5b7692ea051edf52d7ad9cc54ca989e22
2014-03-17 20:38:22 +01:00
Matúš Kukan
ef87ff6680 fdo#51819: autorecovery: fix saving password in protected documents.
Thanks to sayt@mailinator.com for the idea.

Change-Id: Ib79abafe3d4d3ba21f7914aeb284d86ce662824c
2014-03-17 20:38:20 +01:00
Stephan Bergmann
c5630fed3b Use SolarMutexGuard directly
Change-Id: I5286db18d3d273f4678c9f332d5184b46e5bb720
2014-03-17 18:28:40 +01:00
Stephan Bergmann
60d14352f7 Remove dead file
Change-Id: I53dfb7f9d49a4b383dc8a32e4cd3b30a4db47819
2014-03-17 18:04:42 +01:00
Stephan Bergmann
07b32bc2bf Consolidate framework::{Resetable,}Guard
Change-Id: I97290c2504992f4a92e6aeb71e02a2542dd35faa
2014-03-17 18:00:10 +01:00
Stephan Bergmann
a98d7543ad No need for framework::LockHelper to derive from framework::IMutex
Change-Id: I677abeb9e313b983f750331ec925c24ade04e95b
2014-03-17 17:41:23 +01:00
Stephan Bergmann
4eb0625d01 Use LockHelper directly
Change-Id: I4d83ab49187590728326f4f60bb205d1d0b3dfe7
2014-03-17 17:37:40 +01:00
Stephan Bergmann
0659daef93 Use LockHelper directly
Change-Id: I99a0b6dea0b1de2ed1afe51e2584699819eadf04
2014-03-17 17:35:20 +01:00
Stephan Bergmann
d697a05905 Remove unused framework::IMutexGuard::reset
Change-Id: If05ef86284c4ed7bf66a6a6de17a4bf8d49e89e1
2014-03-17 17:25:16 +01:00
Stephan Bergmann
00550fbd19 Fold framework::IGuard into framework::IMutexGuard
Change-Id: I14a77fc3fbf225862bc01f677d09d5b5a52bb1aa
2014-03-17 17:25:16 +01:00
Sourav
d44abe1724 fdo#76108 : The RT file is getting corrupted.
Description:The RT file is getting corrupted.
The <w:fldChar w:fldCharType="end" /> tag is there inside the hyperlink tag where as the <w:fldChar w:fldCharType="begin"> is starting before the hyperlink tag.This is causing the issue.

The rootcause found is in DocxAttributeOutput::EndRun().
A check is introduced before the code that writes the <w:fldChar w:fldCharType="end" /> after the hyperlink to check if the m_startedHyperlink is false.

I have added test case to verify that now the RT file is opening
I also verified this change on a set of 440 real world documents (containing many combinations of MS Office features) to make sure there is no regression because of this change.

Conflicts:
	sw/qa/extras/ooxmlexport/ooxmlexport.cxx
Reviewed on:
	https://gerrit.libreoffice.org/8603

Change-Id: Ibc3ca8edcfb68d52a9394580bac1ce878eda9405
2014-03-17 17:22:55 +01:00
umeshkadam
ac5078a466 FDO#76107 : RT file gets corrupted for files having paragraph/page comments
- In case of multiple paragraph comments/ page comments there used to be a
  mismatch while relating the comment id's in document.xml and comments.xml
- This was happening because the annotation mark id's were getting overwritten.
- Fixed this issue and added UT for the same.

Change-Id: Ie0ac6b5c865555d143115a79b3fc146f9a4ef5fc
Reviewed-on: https://gerrit.libreoffice.org/8602
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2014-03-17 15:57:42 +00:00
Stephan Bergmann
ab3acb7ef7 Consolidate framework::{Read,Write}Guard
...now that it is obvious that they both do the same

Change-Id: I6878acca4750ef4204fe32a695b6d9e1c5140115
2014-03-17 16:52:34 +01:00
Stephan Bergmann
803a8a04e9 Remove unused framework::WriteGuard::getMode
...and consequently unused framework::ELockMode

Change-Id: Icba47a9007e7250871be4bf5ee151504cad43f75
2014-03-17 16:52:34 +01:00
Stephan Bergmann
1997de8690 Remove single, unnecessary use of framework::WriteGuard::downgrade
...and its implementation, and the now-unused E_READLOCK cases.

Change-Id: I2df514f9351a1b63da3063c8db9892e11e9bf83b
2014-03-17 16:52:33 +01:00
Stephan Bergmann
571a34e350 Remove superfluous framework::LockHelper::{acquire,release{Read,Write}Access
Change-Id: I2f8b8c07b943f8aea47523db99a019c7c4541248
2014-03-17 16:52:33 +01:00
Stephan Bergmann
7cb41ae451 Remove no-op framework::LockHelper::downgradeWriteAccess
Change-Id: I26c8dbfb2ad3b159d3b32dea450e063f1552d714
2014-03-17 16:52:33 +01:00
Stephan Bergmann
23b13bce74 No need for framework::IRWLock interface
...of which framework::LockHelper is the only implementation

Change-Id: I235bb699ff26b1579803f617990fc4f71fe18b22
2014-03-17 16:52:33 +01:00
Stephan Bergmann
5f93d80b4a Drop framework::INonCopyable duplication of boost::noncopyable
Change-Id: Ie4135353c7917fddf3efd15d0f3022b3aada8025
2014-03-17 16:52:33 +01:00