Commit Graph

379992 Commits

Author SHA1 Message Date
David Ostrovsky
1aad95eb96 Actually fix uno bridge on MSVC 14.0
VC runtime was substantially refactored on MSVC 14.0. Among other,
_tiddata structure defined in crt/src/mtdll.h was replaced with
__vcrt_getptd defined in crt/src/vcruntime/vcruntime_internal.h.

All members before

  unsigned long      _NLG_dwCode

were removed, so that the approach to access the member

  void *      _tpxcptinfoptrs; /* ptr to exception info pointers */

with __pxcptinfoptrs() and compute the offset to the _curexception
member of _tiddata doesn't work on MSVC 14.0.

As of MSVC 14.0 __vcrt_getptd symbol isn't exported but Microsoft
have introduced methods to access current exception, current exception
context and processing throw (the later can be accessed through C++17
std::unhandled_exceptions() that was made available in MSVC 14.0):

* __current_exception()
* __current_exception_context()
* __processing_throw() aka std::unhandled_exceptions()

Make use of __current_exception() which we can hope will be maintained
going forward.

Change-Id: Ibfffa5fba62d6928328ac976cb1b24937277363e
Reviewed-on: https://gerrit.libreoffice.org/18475
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: David Ostrovsky <david@ostrovsky.org>
2015-09-12 09:17:15 +00:00
Julien Nabet
074d4b2362 Typo: muliple->multiple
Change-Id: Iebcf44d99bd4cabd5f7f1242e44c1c1d8e5a10d5
2015-09-12 08:05:48 +02:00
Michael Stahl
4f918cd5da comphelper: give up on the XPropertySetInfos for now
PropertySetInfo_Impl in ucb/source/core/ucbstore.cxx is sheer insanity,
persisting a PropertySetInfo into the configuration => throw up
hands in despair.

Change-Id: Ic341e453571072a9ed66c6bf51e96dbe39806566
2015-09-12 00:00:40 +02:00
Michael Stahl
b3ee922299 basic: one more WeakImplHelper<XPropertySetInfo> duplicate
This one may be quite busted even since it compares
sal_Int32(-1) with USHRT_MAX.

Change-Id: I894b382ad499ee49f4616c7704afbb90f0556744
2015-09-11 23:44:59 +02:00
Julien Nabet
fb1e645e4a getFiles refactoring: kde part
1) kdecommandthread part
before:
getFiles retrieves all files with:
First element = path only of the files
other elements = file names (without path)

after:
Add getSelectedFiles which retrieves all files with their url
getFiles uses getSelectedFiles and truncates to 1 entry if more than 1 entry

2) kdefilepicker part
before:
getFiles case retrieves all files with names including path

after:
add getSelectedFiles case which retrieves all files with names including path
change getFiles to retrieve only the first file (with path)

See http://nabble.documentfoundation.org/Dev-f1639786.html for discussion

Change-Id: I73cf00e7c03a1f2379f4628b5d7f12418029cca1
Reviewed-on: https://gerrit.libreoffice.org/17064
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2015-09-11 20:57:57 +00:00
Michael Stahl
013f84d06f comphelper: another WeakImplHelper duplicate
Change-Id: I8b5fad24857f434cab351bbbae42c4b09bc6613a
2015-09-11 22:31:53 +02:00
Michael Stahl
03be785efe framework: yet another WeakImplHelper<XPropertySetInfo> dupcliate
There's a very similar comphelper::PropertySetInfo, unfortunately with
an additional mnMemberId on its properties, so convert a little...

Change-Id: I2a5fc0bb0ff6d680d546192b9d09afee6348f218
2015-09-11 22:31:53 +02:00
Albert Thuswaldner
ee9a98966a tdf#39468 translated german comments in hdrcont.cxx
Change-Id: I0dae68656f1dbe3828e58eb177ce9e98a071fe20
Reviewed-on: https://gerrit.libreoffice.org/18418
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2015-09-11 19:41:13 +00:00
Jacobo Aragunde Pérez
a952540aeb Android: i18-ize some strings
Change-Id: I35d0ef7976d6dcca65f3335ff9175c799faa99fe
2015-09-11 18:32:49 +00:00
Jacobo Aragunde Pérez
315ca033c6 Android: check file modify date to know if save is complete
The API does not allow to set a callback for the save operation, we
work this limitation around by checking the modification date of the
local file periodically. When that date changes, we are sure the
local save operation is complete and we can invoke the document
provider save operation to push the changes to the cloud, if
necessary.

Users may press "save" on a document with no changes, in this case we
have set a 20 seconds limit to stop checking the modification date.

We also add a "save complete" message for the user.

Change-Id: Ib8871fac682a5c03a187a7238e11874984143527
2015-09-11 18:29:58 +00:00
Jacobo Aragunde Pérez
626ebde44f Android: Implement cloud save
The LOMainActivity now needs to be aware of Document Providers, so we
pass the providerId and documentUri in the Intent so it can rebuild
the DocumentProvider and the IFile objects.

We also implement the ownCloud save operation.

TODO: since the local save operation does not have a callback, we do
not know when the cloud save operation should be performed. Now we
just wait 5 seconds to trigger it.

Change-Id: I060969e12888eca07c8c56ddc82cbed6c45a0739
2015-09-11 18:29:01 +00:00
Jacobo Aragunde Pérez
a3c3a13e84 Android: provide an ID to document providers
This ID will be useful to get an instance of a document provider back
from a different activity.

Change-Id: I9419ea23d51f8e9ffd70252bd8e367cf51bde1ad
2015-09-11 18:29:00 +00:00
Eike Rathke
04e66812ef unit test for MoveBlock / ScUndoDragDrop caption life cycle, tdf#92995
Change-Id: Ide7ec10cee3aefaa89feda73181ac9c11ebcbb5a
2015-09-11 19:26:08 +02:00
Takeshi Abe
50b26404de vcl: tdf#88206 replace cppu::WeakImplHelper* etc.
with the variadic variants.

Change-Id: I4499569f73b04cc7444787d51bf804c090a5c951
Reviewed-on: https://gerrit.libreoffice.org/18478
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2015-09-11 17:19:39 +00:00
Takeshi Abe
8358eadcba xmloff: tdf#88206 replace cppu::WeakImplHelper*
with the variadic variants.

Change-Id: I47002abab1e025d0683f4cf8ef7b6c99e668d425
Reviewed-on: https://gerrit.libreoffice.org/18479
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2015-09-11 17:16:17 +00:00
Jan Holesovsky
f1f179ba0f LOK: Implement an own trivial InteractionHandler.
So far it just selects 'Approve' for any interaction that is done through
that, later we want to route the information via callbacks to the caller.

Change-Id: I7ae3e2dcc04877b8b0197b0396299126e1217a2a
2015-09-11 18:50:00 +02:00
Jan Holesovsky
560e2ea851 tdf#93480: Don't send an EMPTY Invalidate() on .uno:DefaultBullet.
When there was no modification to the document, and .uno:DefaultBullet was
sent, we have got an invalidtion of the entire document.

It seems that Invalidate() was not supposed to be called in the Validate()
call, and instead, we should rely on what the Validate() invalidates :-)

Change-Id: Ia65df90e4ff34078b59c1b2eb1ce1faac790b40d
2015-09-11 18:50:00 +02:00
Lubosz Sarnecki
c5e3cf0f17 tdf#94031 - slideshow: bind correct GL context for prepareEnvironment
Change-Id: Ib139e81f770531f7d808764dd3a77c7ac8d6fa3c
2015-09-11 17:43:07 +01:00
Michael Stahl
3aec17698a sw: replace boost::ptr_vector with std::vector<std::unique_ptr>
Change-Id: I8baa909f5e3ddb6b227337f3731e4d4b4ca183e5
2015-09-11 17:44:28 +02:00
Michael Stahl
a0c41f53cd sw: replace boost::ptr_vector with std::vector<std::unique_ptr>
Change-Id: I5316874cb8abe191da4fd385b281599d422a23ee
2015-09-11 17:44:28 +02:00
Michael Stahl
d5ffcba07a sw: add unit test for the redline frame duplication regression
Change-Id: I4b0f6199ebb8a9f462e53f3fdf8be871a267ba69
2015-09-11 17:44:27 +02:00
Michael Stahl
e84f0a9b32 Revert "Fix single node CopyRange"
This reverts commit 9099e21b89.

It causes the problem that frames anchored to the same node where
redlines start or end get duplicated during Hide.

Jan-Marek said that the original mail-merge related problem this change
was fixing is now most likely fixed differently, and the test in
testMultiPageAnchoredDraws() still passes.

Change-Id: Ie84fed3f64be7696782bc557004eb18fccc5b64b
2015-09-11 17:44:27 +02:00
László Németh
ed031895f6 tdf#92145: Writer table rows/columns can't be resized
with disabled rulers. (This fix was suggested by Tomaž Vajngerl.)

Change-Id: I161237cdb4941c0eaf934223b078acd94d72e21d
2015-09-11 17:32:11 +02:00
Caolán McNamara
b43e03353a check stream status more often
Change-Id: I233c2fff9c06a81117f8114ccee83b53ea4026db
2015-09-11 15:38:39 +01:00
n.r.pearson
ab4bb0c0dd tdf#93243 replace boost::bind with C++11 lambdas in Metadatable.cxx
Change-Id: I18f72bb6768fae9717c9d88be84ac2bfabd37a3b
Reviewed-on: https://gerrit.libreoffice.org/18471
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2015-09-11 13:42:46 +00:00
Miklos Vajna
88c51cd55d LOK: don't use unstable API unconditionally when including the GTK header
Change-Id: I679ddfdadbf4746d3fba64d3d5157ec070b4f6dd
2015-09-11 15:05:32 +02:00
Caolán McNamara
064fd83421 Resolves: rhbz#1261421 crash on mashing hangul korean keyboard
Change-Id: Ie066c7f83ad15bec198f2091a3b084468c502766
2015-09-11 13:50:11 +01:00
Matthew Nicholls
e594d13a53 tdf#93240: replace boost::ptr_deque with std::deque<std::unique_ptr>
Change-Id: Iba77946a00c6c43c4377b2bae62467581cfed19f
Reviewed-on: https://gerrit.libreoffice.org/18468
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2015-09-11 12:48:12 +00:00
Oliver Specht
2062d5d6f4 tdf#94045: negative margins in OOXML reenabled
OOXMLUniversalMeasureValue is an integer value and needs to be converted
to a signed integer. unit test included

Change-Id: I7fe3fdf4b8b12df55e9cea2a968b9537676687eb
Reviewed-on: https://gerrit.libreoffice.org/18496
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Oliver Specht <oliver.specht@cib.de>
2015-09-11 12:00:19 +00:00
Stephan Bergmann
cb0e8c4feb Useless cargo cult?
Change-Id: I0bb5582a6aef51ac65466531115d67c6dbad1fcd
Reviewed-on: https://gerrit.libreoffice.org/18493
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2015-09-11 11:47:49 +00:00
Oliver Specht
a212ef2b6e tdf#93901: apply handling in style/edit dialog improved
introduced SfxTabPage::ChangesApplied() to enable resetting values
to their initial state while editing styles

Change-Id: I60fd68d8464e12e795b0e0d2f2e53882a225c181
Reviewed-on: https://gerrit.libreoffice.org/18467
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2015-09-11 11:13:23 +00:00
Miklos Vajna
88b6dd3ea7 lokdocview: GTK+ calls should be made from the main thread
Change-Id: Ia76ef111170700ef507550222ca917986d4fe00e
2015-09-11 11:43:22 +02:00
Caolán McNamara
a0fa0fb57d downgrade warning, exception on opening a missing file is an expected thing
Change-Id: I3ca2d6af48adb226e0f56d0500c31f19676c6567
2015-09-11 10:32:17 +01:00
Caolán McNamara
bf237ceccc valgrind: silence worrying invalid pthread lock/unlock warnings on exit
Invalid read of size 4
   at 0x57F48E0: __pthread_mutex_unlock_full (in /usr/lib64/libpthread-2.21.so)
   by 0x4E903F7: osl_releaseMutex (mutex.cxx:136)
   by 0xB3EECF0: osl::Mutex::release() (mutex.hxx:74)
   by 0xB3EF92C: osl::Guard<osl::Mutex>::~Guard() (mutex.hxx:135)
   by 0xB3F755A: SvtCommandOptions::~SvtCommandOptions() (cmdoptions.cxx:318)
   by 0xB3F75B3: SvtCommandOptions::~SvtCommandOptions() (cmdoptions.cxx:328)
   by 0x2B13BDE9: std::default_delete<SvtCommandOptions>::operator()(SvtCommandOptions*) const (unique_ptr.h:76)
   by 0x2B13A3C6: std::unique_ptr<SvtCommandOptions, std::default_delete<SvtCommandOptions> >::~unique_ptr() (unique_ptr.h:236)
   by 0x2B134063: framework::Desktop::~Desktop() (desktop.cxx:183)
   by 0x2B13418B: framework::Desktop::~Desktop() (desktop.cxx:187)
   by 0x79892AD: cppu::OWeakObject::release() (weak.cxx:205)
   by 0x2B1399B7: framework::Desktop::release() (desktop.hxx:133)
   by 0x2B13B860: rtl::Reference<framework::Desktop>::~Reference() (ref.hxx:81)
   by 0x2B13956B: (anonymous namespace)::Instance::~Instance() (desktop.cxx:1780)
   by 0x54635D7: __run_exit_handlers (in /usr/lib64/libc-2.21.so)
   by 0x5463624: exit (in /usr/lib64/libc-2.21.so)

Change-Id: I98e0e70567ab39a06813fd9b614ba1e04ec22bd1
2015-09-11 10:12:21 +01:00
Caolán McNamara
044deb37ae coverity#1323754 we apparently can survive std::abort for a while
so try and suppress this warning

Change-Id: I096352af0116f1ba0911cc201eb884267095a797
2015-09-11 09:40:31 +01:00
Caolán McNamara
0f36d4a923 coverity#1323755 Using invalid iterator
try and help coverity to know that aEnd and maFragments.end() are the same
place

Change-Id: I9ce4187d5ed15d0ae26b69bb360dbd47c2a6a185
2015-09-11 09:31:45 +01:00
Stephan Bergmann
3c319565a5 Missing dependency
(for typeinfo for SvxFontLitsItem, as needed by -fsanitize=vptr)

Change-Id: I13ee8f4f52509ca2b26cba16a3e5c93a7223ceb7
2015-09-11 09:38:59 +02:00
Miklos Vajna
226df017ee sw: indentation fixes
Change-Id: I7cf97f06053275fa229bbd24a06f7b0104f024fb
2015-09-11 09:25:20 +02:00
Miklos Vajna
29ec512e8c windows opengl: make sure mpLastContext is indeed the current context
There were two problems here:

1) The OpenGLContext ctor registered the instance on the list of
contexts, but platform-specific call (e.g. wglMakeCurrent()) was only
made later. Add a registerAsCurrent() member function that helps
ensuring that the last item in the context list is indeed the current
context.

2) OpenGLContext::prepareForYield() is called without the solar mutex
being locked, but it still assumes that the last context in the context
list is the thread's current context, which may not be true.  The result
is that during JunitTest_sd_unoapi, we end up in a situation like:

debug:4640:5240: OpenGLContext::registerAsCurrent: wglGetCurrentContext() is 00010001, pSVData->maGDIData.mpLastContext is 00FA65F8
debug:4640:7944: OpenGLContext::registerAsCurrent: wglGetCurrentContext() is 000D0003, pSVData->maGDIData.mpLastContext is 00FA6C70
debug:4640:5240: OpenGLContext::prepareForYield: start, wglGetCurrentContext() is 00010001, pSVData->maGDIData.mpLastContext is 00FA6C70

I.e. one thread registers as current, an other registers as current, too (while
the other thread has the solar mutex), then once the original thread wants to
release the solar mutex, the real current context and the last item in the
context list won't match, so the assert at the end of prepareForYield() will
fail.

Fix this by releasing the GL context in WinSalInstance::DestroyFrame().

With this, JunitTest_sd_unoapi passes on Windows with GL enabled.

Change-Id: Icfb9c65c871586b5df69b5a2ab3aa91843dfc799
Reviewed-on: https://gerrit.libreoffice.org/18473
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
2015-09-11 06:55:54 +00:00
Noel Grandin
9e3820ac21 convert Link<> to typed
Change-Id: I70d7c7ae4fc68d2f36a00d7c1b6eba71f63872d7
2015-09-11 08:48:55 +02:00
Noel Grandin
71a83295d8 convert Link<> to typed
and remove unused maChildEventListeners

Change-Id: I845a9af608c3429cf9ccb0e8041f24f423839513
2015-09-11 08:48:55 +02:00
Noel Grandin
c80fb09256 convert Link<> to typed
Change-Id: I8f64b8f8e1e8ac7ce1475fc5132acb7171237a32
2015-09-11 08:48:55 +02:00
Noel Grandin
cf0c04a428 convert Link<> to typed
Change-Id: I85658fa35b9b85106a3b9c8ef303584cad6f39b0
2015-09-11 08:48:54 +02:00
Noel Grandin
e8ee847336 convert Link<> to typed
Change-Id: I3defac5fff9708228d9bf3200e51853a127bfdc5
2015-09-11 08:48:54 +02:00
Noel Grandin
23175c02b0 convert Link<> to typed
Change-Id: I473ab8d77273c512e843427c86664f9eefbff116
2015-09-11 08:48:54 +02:00
Noel Grandin
52a949e538 convert Link<> to typed
Change-Id: Ia8dd531759ab4d609d1c3eeb31283612c0d70219
2015-09-11 08:48:54 +02:00
László Németh
240d1f289c tdf#93957 fix Emoji pattern of horizontal ellipsis
Typing :.: (one ASCII dot between colons) will enter the Unicode
horizontal ellipsis (U+2026: …) instead of the bad :…: (the
requested Unicode character between colons).

Note: the pattern :...: (three ASCII dots between colons) was
originally intended for the horizontal ellipsis, but that
collides with .*... pattern (default in English and in several
other languages, meaning: replace word ending three ASCII dots).

Change-Id: I97632ff81e04ab9e53026da425b82a2541db0eb1
2015-09-11 01:07:03 +02:00
Stephan Bergmann
62f489c88e loplugin:staticmethods
Change-Id: I00acce39f94653ef8e2465f15ba572b619a1c7fb
2015-09-10 23:04:36 +02:00
Stephan Bergmann
1a9293242b Remove unused INetMIMEMessage parts
Change-Id: Ica7d3e7e52ccdfe833ac10567c6f5f7bb7085dee
2015-09-10 23:04:35 +02:00
Stephan Bergmann
9371a5f0a0 More INetMIMEMessageStream clean up
Change-Id: Ibb2b93261e2d8ef370ac106766e39685a03a6ef3
2015-09-10 23:04:35 +02:00