Commit graph

2054 commits

Author SHA1 Message Date
Cédric Bosdonnat
11066aca8f cmisucp: catch the exception when getting CMIS object
Fixes crashers like the one when cancelling authentication request.
The error message are still not meaningful for the user, but this would
require libcmis API changes.

Change-Id: I22afbf4d39522a2b0dbd043a68dfef2b9308dcec
2012-06-26 12:51:29 +02:00
Takeshi Abe
4ba4b87042 removed unused forward declarations of class
except moving CGMBitmapDescriptor into filter/source/graphicfilter/icgm/outact.hxx

Change-Id: Ib11d1c907b4c52c6e0f261b20992659b52f4c136
2012-06-26 10:35:23 +09:00
Thomas Arnhold
66cd9eeb90 Remove various commented out defines
Most of them in hrc files.

Change-Id: I3944f6ed9befd2b498385f61b851790362221a4f
2012-06-25 14:12:57 +02:00
Michael Meeks
b9042fad7c re-base on ALv2 code.
Change-Id: I6c145e984c885c7e06caa1c27bfb354ea49ad9ce
2012-06-21 15:00:05 +01:00
Michael Meeks
b6db3e3acc re-base on ALv2 code.
Change-Id: Ice06e639213aeb6f7f23cbf4634947dd25613db1
2012-06-21 13:11:06 +01:00
Cédric Bosdonnat
4f5c523b97 CMIS UCP: fixed Save As into a CMIS repo
Change-Id: I8ab65f917e9442f8871a39d7d25a63336065bee6
2012-06-14 10:07:52 +02:00
Stephan Bergmann
4d0e3127ed rhbz#678440: Always include User-Agent to avoid 403 from picky servers
Change-Id: I4fa7b45062b0058427f77cf9dc0abebd6b26fb49
2012-06-12 18:17:58 +02:00
Takeshi Abe
16738213c4 nuke dead code
Change-Id: If8b6b4a3d9222726ae562e5b685710d86b5fe332
2012-06-12 14:16:45 +09:00
Stephan Bergmann
9631f96aca Do not copy etc. singular iterator values.
This also reverts previous attempts at fixing this, commits
33839f90e6 "ucb: try to fix weird STL assertion on
tinderbox" and 6506af86b5 "ucb: second try to fix
weird STL assertion on tinderbox."

Change-Id: I89d0eb87fbd164c0a4cf24d60f225767cb2bfc1a
2012-06-06 12:45:37 +02:00
Michael Stahl
6506af86b5 ucb: second try to fix weird STL assertion on tinderbox
It's possible that the constructor of RegexpMapIterImpl does not
initialize m_aIndex, so try to park m_aIndex on some end() iterator;
it looks like m_aIndex will not actually be used in this case, because
m_nList = -1.

Change-Id: I74cd0d1d87f3e90217c39bcd3168f157066ff3cb
2012-06-06 12:00:16 +02:00
Michael Stahl
33839f90e6 ucb: try to fix weird STL assertion on tinderbox
Seems there's uninitialized iterators somewhere, let's try if removing
the silly default constructor here improves anything.

Change-Id: I2ba239df9b532805e177378f9fa35023d087716a
2012-06-05 23:40:04 +02:00
Cédric Bosdonnat
fd32788092 CMIS UCP: changed URLs to have hierarchical path
Hierarchical path is assumed in loads of places, changed the URLs to the
following:
  * Binding URL is encoded in the authority part, the repository ID is
    set as a fragment of the binding URL.
  * The hierarchical path reflects one of the path to the document on
    the server
:x

Change-Id: I8214daeb1d9c9b0f6ab86bdf60875e7e4e5369f4
2012-06-04 13:28:14 +02:00
Cédric Bosdonnat
2c4588340e CMIS UCP: Fixed folder creation and nodes renaming
Change-Id: I2c49b95279d90ebb06f38ed83061a5f1a905a555
2012-06-04 13:28:13 +02:00
Cédric Bosdonnat
4880c6dcee CMIS UCP: fixed a few bugs to show repo in fpicker
Change-Id: I21a38adda013b8e75bf3a6ba91d70014461ea596
2012-06-04 13:28:13 +02:00
Cédric Bosdonnat
6ad3debb05 CMIS UCP: if the URL has no object id, assume we want the root folder
Change-Id: I6cc330f20222d4448d2267151d49f354068f54f3
2012-06-04 13:28:13 +02:00
Cédric Bosdonnat
705cab9a81 CMIS UCP: implemented delete command for folders
Change-Id: Iba1c5bf10c235ebd26108be944b88096f0ee84bd
2012-06-04 13:28:12 +02:00
Cédric Bosdonnat
c77437672a CMIS UCP: Implemented delete command for documents
Change-Id: I34c90f4675e461f461bad7e81c23da56463f0a24
2012-06-04 13:28:12 +02:00
Cédric Bosdonnat
6f34fd25cb CMIS UCP: implemented folder case for open command
Change-Id: Id0997cd99d7d80c975de3d46670a1fa8b3d602a3
2012-06-04 13:28:12 +02:00
Cédric Bosdonnat
966d20e35d CMIS ucp: write documents back to CMIS server
This change needs a git repo build of libcmis.

Change-Id: I I740d18dbf3c36d9387b867e750fcbe8e114e5362
2012-06-04 13:28:12 +02:00
Norbert Thiebaud
827865fee1 targeted string re-work
Change-Id: Ic08995a67a407576da475a6716b1218e45b60dfd
2012-05-31 21:15:00 -05:00
Takeshi Abe
d95d58af08 nuke unused namespace
Change-Id: Ic00cdfce4172af0a2f0aa1aa33ef5e386d407976
2012-06-01 01:04:50 +09:00
Michael Meeks
6e6d81e9cf targetted SAL_N_ELEMENTS reversion.
Change-Id: I30be93ccaeb1f9fd17cbe9e3ed3165e094810b2e
2012-05-29 18:03:34 +01:00
Takeshi Abe
3ac9b7af76 removed dead code
Change-Id: Ic70d66befc90450aeb276d53f6da7e81aef85478
2012-05-29 00:11:30 +09:00
Takeshi Abe
a6b68f4682 removed unused static rtl::OUString
Change-Id: I5a097beaaeb30214ed6071bba1297e551291922b
2012-05-14 23:43:54 +09:00
Thomas Arnhold
135c63c8f9 fdo#48253 Expand SAL_STATIC_CAST and SAL_CONST_CAST
Change-Id: I50f0887ceb4517d7ef234f970ca2ba679d533382
2012-05-04 15:52:57 +02:00
Stephan Bergmann
bd5da80bef Handle cases where ExtensionDescription is called on nonexisting path
...which happens when installing non-bundle extensions (like a plain .xcu
file), where the path computed for the description.xml contains the path to
the non-bundle extension file itself as a prefix, so access results in
E_NOTDIR.

Change-Id: Ic0f4a34b46d99d1817ceea599bb8b53dbd65bc49
2012-05-02 18:33:00 +02:00
Noel Power
45b57a9dfb prevent getFileURL() & getLinkTargetURL() asserting for broken links 2012-04-17 15:52:27 +01:00
David Tardon
bc9229aa0c WaE: deprecated conversion from string constant to 'LPSTR' 2012-04-16 20:22:55 +02:00
Michael Meeks
a0b5ba2e82 re-open output file on save to fsync to improve first-start performance 2012-04-15 03:34:14 +02:00
Szabolcs Dezsi
d6bc02f8c4 Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operator 2012-04-06 20:03:42 +02:00
Szabolcs Dezsi
27cea710fd Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operator
Pattern used:

find . -name "*.cxx" -exec sed -i 's/\( *\)\(else if\|if\) *( *\([^!()|&]*\)\.equalsAsciiL( *RTL_CONSTASCII_STRINGPARAM *( *\([^)]*\)) *) *) *{$/\1\2 ( \3 == \4 ) {/' \{\} \;
2012-04-06 20:03:42 +02:00
Szabolcs Dezsi
99268dbe1f Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operator
Pattern used:

find . -name "*.cxx" -exec sed -i 's/\( *\)\(else if\|if\) *( *\([^!()|&]*\)\.equalsAsciiL( *RTL_CONSTASCII_STRINGPARAM *( *\([^)]*\) ) *) *) *{$/\1\2 ( \3 == \4 ) {/' \{\} \;
2012-04-06 20:03:41 +02:00
Szabolcs Dezsi
743f22045c Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operator
Pattern used:

find . -name "*.cxx" -exec sed -i 's/\( *\)\(else if\|if\) *( *\([^!()|&]*\)\.equalsAsciiL( *RTL_CONSTASCII_STRINGPARAM *( *\([^)]*\)) *) *)$/\1\2 ( \3 == \4 )/' \{\} \;
2012-04-06 15:07:41 +02:00
Szabolcs Dezsi
8a01ee6243 Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operator
Pattern used:

find . -name "*.cxx" -exec sed -i 's/\( *\)\(else if\|if\) *( *\([^!()|&]*\)\.equalsAsciiL( *RTL_CONSTASCII_STRINGPARAM *( *\([^)]*\) ) *) *)$/\1\2 ( \3 == \4 )/' \{\} \;
2012-04-06 14:30:05 +02:00
Tor Lillqvist
6a14f51af6 Follow-up to revert of "Initial experiments with static linking of (some) ..."
Revert "this requires string literals now" and "fix after recent
XSERVICEINFO_IMPL_1 change".

This reverts commits f7d571d2ee and
186ab8e77b.
2012-03-29 09:49:47 +03:00
Tor Lillqvist
0487871af6 Revert "Initial experiments with static linking of (some) ..."
Thist idea caused too intrusive changes to the code of call sites, I
think. Will do it another way that leaves call sites as is.

This reverts commit 25d114eec4.
2012-03-29 09:49:43 +03:00
David Tardon
f7d571d2ee this requires string literals now 2012-03-21 07:45:35 +01:00
Luboš Luňák
186ab8e77b fix after recent XSERVICEINFO_IMPL_1 change 2012-03-21 06:30:24 +01:00
Tor Lillqvist
25d114eec4 Initial experiments with static linking of (some) components / services
Start with the first service needed when running sc's filters_test:
the UniversalContentBroker. It might not be typical as ucb uses the
deprecated XSingleServiceFactory.

This commit is not at all a complete solution, far from it, just an
initial hack. Naturally once I come up with some generic enough way to
do the static linking the necessary macros etc will be added to some
general header.

The macro XSERVICEINFO_IMPL_1 (local to ucbhelper and ucb) is amended
so that it in the disable-dynamic-linking case also emits a function
whose assembler name equal contains the service name. This function
returns the XSingleServiceFactory for the service. Where the service
is instantiated we link directly to that function.

But probably this will be reworked a couple of times... Maybe it would
be better to simply have the service name specific entry point be a
pointer to the component's component_getFactory() function? Those all
have the same prototype.
2012-03-21 00:00:11 +02:00
Stephan Bergmann
6e67c03dc0 Enable -Wnon-virtual-dtor for GCC 4.6
...which has the necessary features to support it.

Change a lot of classes to either contain a protected non-virtual dtor
(which is backwards compatible, so even works for cppumaker-generated
UNO headers) or a public virtual one.

cppuhelper/propertysetmixin.hxx still needs to disable the warning, as
the relevant class has a non-virtual dtor but friends, which would still
cause GCC to warn.

Includes a patch for libcmis, intended to be upstreamed.
2012-03-14 13:32:02 +01:00
Michael Meeks
d3192948fe fdo#40607 - osl_syncFile having written, and avoid doing that on start 2012-03-09 17:03:48 +00:00
David Tardon
54442c917d WaE: initialization order 2012-03-01 15:51:33 +01:00
Takeshi Abe
a138709519 Drop comparison with empty rtl::OUString 2012-02-29 01:23:09 +09:00
Caolán McNamara
c58882fda8 fix msvc2005 build 2012-02-27 11:03:02 +00:00
Thomas Arnhold
d8fc177009 remove all other deprecated header guards 2012-02-23 12:22:39 +01:00
Stephan Bergmann
f7afe3b7b0 Adapted TickerThread to safer-to-use salhelper::Thread 2012-02-23 10:47:35 +01:00
Thomas Arnhold
d66991e1f5 WaE: Same expression on both sides of '||' 2012-02-21 20:56:57 +01:00
Matúš Kukan
a62f426993 add configmgr, ucb1, ucpfile1, xcr to libmerged 2012-02-19 19:24:34 +01:00
Elton Chung
d30b4e9fb6 Get rid of size() == 0 2012-02-19 17:07:46 +04:00
Elton Chung
23af031b09 Fix typos in comments 2012-02-18 09:35:43 +00:00