Commit Graph

125 Commits

Author SHA1 Message Date
Julien Nabet
b255304be9 Remove include stdio (part4)
Change-Id: Ic17885b22167eedd0e56b3e5027c09a1c3aac1d8
Reviewed-on: https://gerrit.libreoffice.org/15819
Tested-by: Jenkins <ci@libreoffice.org>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2015-05-20 05:26:33 +00:00
Adolfo Jayme Barrientos
ea7f16bf0b tdf#89361 Remove remnants of Gopher support
Change-Id: Ib2038a43b0d49a525199329a2c79d5779f5322fa
Reviewed-on: https://gerrit.libreoffice.org/14471
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2015-03-16 14:24:07 +00:00
Noel Grandin
c32a5a3b8e simplify Date/Time/DateTime conversion code
add constructors to Date/DateTime/Time,
that take the css::util counterparts,
to simplify code converting between these type

Change-Id: I4b03da02c63f65b6ec18cb4d6ecc3859bdef1ff7
Reviewed-on: https://gerrit.libreoffice.org/13855
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Eike Rathke <erack@redhat.com>
2015-01-13 15:24:04 +00:00
Stephan Bergmann
7c6aa647e8 svtools: Use appropriate OUString functions on string constants
Change-Id: Ifa7ea9bf840cacb701dd4b5fb0904870bc3cf407
2014-12-18 14:12:34 +01:00
Stephan Bergmann
e965798caf svtools: Use appropriate OUString functions on string constants
Change-Id: I8799033322d345b2f146c3577d3d264448252816
2014-12-12 12:23:11 +01:00
Caolán McNamara
69a16331d0 don't access contents of empty string, e.g. with kde96709-1.html
Change-Id: Ifa6db0dc7b5c67b65c5bc17c16fb3a61793c833a
2014-11-27 14:52:16 +00:00
Andrea Gelmini
da40cac540 Fix common typos. No automatic tools. Handmade…
Change-Id: I1ab4e23b0539f8d39974787f226e57a21f96e959
Reviewed-on: https://gerrit.libreoffice.org/12164
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-11-12 11:04:11 +00:00
Caolán McNamara
3f89f88651 callcatcher: lots more unused post ww1 filter removal
Change-Id: I7bf6dc1d366093e797a19a8e555103c15b311ac8
2014-10-23 11:13:25 +01:00
Noel Grandin
c625525ddc rename SvRef::AddRef to AddFirstRef
to make it's intended purpose clearly distinguishable from AddNextRef

Change-Id: I5da780b48b19fd873667b648031bc394113f953b
Reviewed-on: https://gerrit.libreoffice.org/11763
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-10-03 05:25:41 +00:00
Noel Grandin
fc04f76336 fdo#82577: Handle Time
Put the TOOLS Time class in the tools namespace. Avoids clash with the X11
Time typedef.

Change-Id: Iac57d5aef35e81ace1ee0d5e6d76cb278f8ad866
Reviewed-on: https://gerrit.libreoffice.org/11684
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-10-01 07:34:23 +00:00
Stephan Bergmann
741629f48a Some glue for using std::unique_ptr with the Boost Pointer Container Library
Change-Id: Ie975e963ed64fb96542a9771f85eef72d8266496
2014-09-30 17:51:30 +02:00
Stephan Bergmann
9755653991 MSVC 2012 apparently isn't ready yet for std::vector<std::unique_ptr<T>>
...producing error messages about trying to access private undefined unique_ptr
copy ctor etc.

Partial revert of 014e7933af "svtools:
std::auto_ptr -> std::unique_ptr: ...changing HTMLOptions to
std::vector<std::unique_ptr<...>> because boost::ptr_vector<...>::push_back only
supports auto_ptr, not unique_ptr," going the awkward

  std::unique_ptr x(...);
  push_back(x.get());
  x.release();

route instead (which could be simplified if boost::ptr_vector::push_back ever
started to support unique_ptr).

Change-Id: I15693030a0bbfdedbfdfbe76ede5d0c74f4e5b41
2014-09-29 15:27:46 +02:00
Stephan Bergmann
014e7933af svtools: std::auto_ptr -> std::unique_ptr
...changing HTMLOptions to std::vector<std::unique_ptr<...>> because
boost::ptr_vector<...>::push_back only supports auto_ptr, not unique_ptr.

Change-Id: Ie5f92bc40ce5425dc1c634b17addc2b0dd9bbda3
2014-09-29 13:57:17 +02:00
Caolán McNamara
a2d2c6d6bd coverity#1103688 Missing break in switch, assuming its intentional
Change-Id: I9b619e4896d811c2fbb20e229f65bfa01bd05731
2014-06-05 13:35:53 +01:00
Noel Grandin
cc25f70ef1 compareTo -> equals
convert OUString::compareTo usage to equals to startsWith where it
is more appropriate

Change-Id: I6f5b5b7942429c0099ad082ba4984fd18e422121
2014-06-04 11:52:34 +02:00
Caolán McNamara
9a0e6204bb coverity#735505 Logically dead code
Change-Id: I7e7abf9192ee34c9f1c2080268751503aae90e55
2014-04-01 13:46:47 +01:00
Matteo Casalin
dcc977b339 switch: ungroup two case which perform different operations
Change-Id: I099501a596ebeb2820192d08de80eae342191bb7
2014-03-08 10:13:25 +01:00
Alexander Wilms
bee1cc83ec Remove visual noise from svtools
Change-Id: I7c2b74a449fb20aae5bc643e24a22cf6f732136d
Reviewed-on: https://gerrit.libreoffice.org/8320
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-25 21:14:09 +00:00
Jan Holesovsky
8a467da032 html: Make GetColor() working in lower case.
To be consistent with the rest that works in lower case now.

Change-Id: I6fe40e71393230bbde8e283b1f98479bf644c610
2014-02-21 12:04:27 +01:00
Caolán McNamara
456b92609c fdo#74584: complete revert various previous changes to upcase HTML tags
f1f8b3bfdc says it reverts

        commit 3c84fa6157.
        commit 96a1f60aeb.
        commit 1f74a3ce20.
        commit 3d481254a0.

but only reverted 3d481254a0

Change-Id: I0530bd0b176b1f1e9bbf8eee78376991c664a850
2014-02-21 10:12:22 +00:00
Michael Stahl
3c84fa6157 fdo#74584: Revert "fix html tests"
This reverts commit 277922e7a0.

...since 73e3aafa99 was reverted and
sw_htmlexport test fails.

Change-Id: I32a390a3058e43bc3314b678e27c74036b90f200
2014-02-20 00:52:22 +01:00
Michael Stahl
96a1f60aeb fdo#74584: Revert "html: Options need to be lowercase, too"
This reverts commit 700883b34e.

...since 73e3aafa99 was reverted and
sw_htmlexport test fails.

Change-Id: Ia83705279e792a0c2375619b6a209e46a319fea7
2014-02-20 00:52:22 +01:00
Caolán McNamara
85f48b1b47 coverity#738865 Uninitialized scalar field
Change-Id: Ie6473e4a8c4b311b6862019046fb4ae9cf05e1fb
2014-02-19 13:06:15 +00:00
Noel Grandin
de476d0146 cid#1103689 missing break in switch
Change-Id: I28338145fdd71ec25b9c6d291e445d35636e43a9
2014-02-12 15:10:47 +02:00
Noel Grandin
b16f90f331 remove code in dead HTML_BEHAVIOUR #define
git grep found nowhere in the codebase that this define is being
set.

Change-Id: I63e18e8f47b5e58ff96b075ddb4bc9a36e1dc80e
Reviewed-on: https://gerrit.libreoffice.org/8002
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-12 11:13:25 +00:00
Caolán McNamara
e576b083c8 longparas: drop STRING_MAXLEN use now
Change-Id: Iaaca13e732c234e9051be0ab66a7625f9c106eea
2014-01-14 10:53:29 +00:00
Stephan Bergmann
e7a86f2d68 Use bool
Change-Id: I2f1c543b106e24ff49f876dbb3d8e94f4ebf03ba
2014-01-10 17:11:53 +01:00
Luc Castermans
ee536e482b Translated German comments
Reviewed on:
	https://gerrit.libreoffice.org/7303

Change-Id: I6c5f4571ad691d19ca93c39550000114f263da8b
2014-01-09 19:11:03 +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
Stephan Bergmann
a39d07e134 Unwind occurrences of deprecated sal_sChar, sal_uChar
Change-Id: I76be464200d486efef9c8a7e957c310c9adae3b8
2013-11-27 12:52:32 +01:00
Noel Grandin
73342dbb82 remove unnecessary RTL_CONSTASCII_STRINGPARAM
A final pass through the code, converting code to use the new
OUString and OString methods that can detect string literals.

Change-Id: Ifa6382335e5650a1c67e52006b26354e0692c710
2013-11-22 08:07:19 +02:00
Caolán McNamara
2d2e1267be xub_StrLen->sal_Int32
Change-Id: Ia17762919b57bc6febed5cc49e8931165870c117
2013-11-13 13:50:37 +00:00
Noel Grandin
296329a926 convert xub_StrLen to sal_Int32
convert for loops using xub_StrLen to use sal_Int32

Change-Id: I5f635ca078966fefe938dbc7e8dea7c8d0d0b554
2013-11-06 08:51:22 +02:00
Noel Grandin
7a06928bcf convert code to use OUString::endsWith
Convert places that call
   aStr[aStr.getLength()-1] == 'x'
to use the shorter form
   aStr.endsWith("x")

Change-Id: I1b3a19c0e89b8989cdbeed440f95fc76f9a4b6b6
2013-10-23 08:29:15 +02:00
Thomas Arnhold
700883b34e html: Options need to be lowercase, too
Because the lookup table (include/svtools/htmlkywd.hxx) is now lowercase.

Change-Id: Ica0606eb1546f74d2b651a70adee8117c956d4e2
Reviewed-on: https://gerrit.libreoffice.org/6193
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-10-10 17:58:56 +00:00
Thomas Arnhold
277922e7a0 fix html tests
after 73e3aafa99 we need to lowercase all
html tags.

Change-Id: Ied686e153666f79c2a866473eeb393ec4e5bb961
2013-10-06 20:09:52 +02:00
Caolán McNamara
ed0f0fa730 XubString->OUString
Change-Id: I5424a148c7173409e6e56f9483fcc769696707bc
2013-09-02 12:22:34 +01:00
Noel Grandin
7776178974 convert svtools/source/svhtml/* from String to OUString
Change-Id: Ie9f0cdd14ce7987c3bf3037c2ed89a3b20df1c37
2013-08-22 10:49:31 +02:00
Caolán McNamara
5166f28e79 original code inserted sSaveToken at the start of aToken
prior to 33eeb70011

Change-Id: I61070c0d04152e544ff329fc3428cb4f5a06e791
2013-08-15 09:50:40 +01:00
Caolán McNamara
76c615c177 single arg Erase erased to eol
prior to 33eeb70011

Change-Id: I4c30e6746a62e4035cf019b3186003498f7bdde3
2013-08-15 09:50:39 +01:00
Noel Grandin
55f2f0864e convert include/svtools/parhtml.hxx from String to OUString
Change-Id: I20adfc9148b8afa7a59245349f233604bd9a1d2e
2013-08-15 09:11:35 +02:00
Noel Grandin
33eeb70011 convert include/svtools/svparser.hxx from String to OUString
Change-Id: I4d6196a9a96ad1dd236f8622a523b4702e92d76f
2013-08-15 09:11:33 +02:00
Michael Stahl
652ccbdf31 i#108348 API CHANGE: add IsUTC to css.util.DateTime etc.
Add IsUTC member to:

com.sun.star.util.DateTime
com.sun.star.util.DateTimeRange
com.sun.star.util.Time

Add new stucts with explicit time zones:

com.sun.star.util.DateTimeWithTimezone
com.sun.star.util.DateWithTimezone
com.sun.star.util.TimeWithTimezone

Adapt the sax::Converter to read/write timezones, and fix the unit test.

Everything else just uses default (no time zone), this commit is just
to fix the API.

STRUCT: /UCR/com/sun/star/util/DateTime
    nFields1 = 7  !=  nFields2 = 8
    Registry2 contains 1 more fields
STRUCT: /UCR/com/sun/star/util/DateTimeRange
    nFields1 = 14  !=  nFields2 = 15
    Registry2 contains 1 more fields
STRUCT: /UCR/com/sun/star/util/Time
    nFields1 = 4  !=  nFields2 = 5
    Registry2 contains 1 more fields

Conflicts:
	sc/source/filter/oox/unitconverter.cxx

Change-Id: I01f7a6d082a6b090c8efe71d2de137474c495c18
Reviewed-on: https://gerrit.libreoffice.org/4833
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2013-07-15 11:46:41 +00:00
Stephan Bergmann
abba78f644 -Werror,-Wdeprecated-register (Clang trunk towards 3.4)
Change-Id: I64e4933f7a0a8026ccc7ce98804bfc497d3f0eed
2013-07-08 17:32:25 +02:00
Jelle van der Waa
84f1f1d149 fdo#43460 include,registry,svtools,svx,unodevtools: use isEmpty()
Change-Id: I6e35b91092239275694eec3666b076f7ff7e54f6
Reviewed-on: https://gerrit.libreoffice.org/4335
Reviewed-by: Noel Power <noel.power@suse.com>
Tested-by: Noel Power <noel.power@suse.com>
2013-06-18 17:33:46 +00:00
Eike Rathke
bb7360ca99 resolved fdo#56772 keep track of HTML ON/OFF tokens
Regression introduced with 11cbcb8b08
followed by 56d6589368

Deep from svtools/source/svhtml/parhtml.cxx HTMLParser::_GetNextToken()
only a HTML_TABLEDATA_OFF was generated for <td .../> without a matching
HTML_TABLEDATA_ON (actually same for all <XXX/> ON/OFF tokens). This
confuses a state machine that doesn't keep track of such unexpected
closures and also expects all attributes of an element at an ON token.
Only the parser knows this is actually one token but needs to generate
separate ON/OFF tokens.

These bugs mentioned in the original code and commits are still fixed
with this change:
https://bugs.freedesktop.org/show_bug.cgi?id=34666
https://bugs.freedesktop.org/show_bug.cgi?id=36080
https://bugs.freedesktop.org/show_bug.cgi?id=36390

Change-Id: I2b3190d297a35ee3dfda95f9a4841f7c53ed4a92
2013-05-16 23:56:31 +02:00
Marcos Paulo de Souza
86b73eeef4 fdo#63154: Remove _CL and _LF from solar.h
And use RTL_CHAR_{CR,LF} from rtl/string.h

Conflicts:

	vcl/source/app/dbggui.cxx

Change-Id: I05b0325006845e48eb5483485a9042aa7b0cd22a
Reviewed-on: https://gerrit.libreoffice.org/3740
Reviewed-by: Andras Timar <atimar@suse.com>
Tested-by: Andras Timar <atimar@suse.com>
2013-05-09 09:49:15 +00:00
Lionel Elie Mamane
9830fd36db date/time IDL datatypes incompatible change
- nanosecond precision
 - signed (allowed negative) year

Also: assorted improvements / bugfixes in date/time handling code.
Some factorisation of copy/pasted code.

Change-Id: I761a1b0b8731c82f19a0c37acbcf43d3c06d6cd6
2013-04-18 21:34:46 +02:00
Luboš Luňák
1946794ae0 mass removal of rtl:: prefixes for O(U)String*
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk
have kept them, in order not to break external API (the automatic using declaration
is LO-internal).

Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
2013-04-07 14:23:11 +02:00
Kenneth Beck
21e1e859a7 fdo#60724 change spelling error REMOVEABLE -> REMOVABLE
Only applies to PropertyAttribute::REMOVEABLE, and all instances in comments.
All other instances of the misspelling have remained the same.
Example: AF_REMOVEABLE

Change-Id: I391f4101bbc3e06689318235a37d616065bc1686
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2013-03-06 10:39:30 +01:00