Commit Graph

206 Commits

Author SHA1 Message Date
Tor Lillqvist
b6dbe2be87 Bin pointless INET_PATH_TOKEN
There is nothing mnemonic in the name 'INET_PATH_TOKEN' that would tell the
code reader that it simply means '/'.

Change-Id: I89ce72e8be5cf0ef2c66b23ad6e721ad49105648
2014-04-01 12:14:45 +03:00
Stephan Bergmann
747631f26c Remove now unused obsolete tools/debug.hxx functionality
Change-Id: I1bc585af8f0189dfa219bd42a5f09871a006c6ea
2014-03-31 13:33:59 +02:00
Michael Stahl
15006df5bd tools: remove unused SvStream::IsA() and associated ID_*STREAM macros
Change-Id: I6ed0991fb5bd1d5085ee1b93323b57b1afc69860
2014-03-29 02:03:07 +01:00
Michael Stahl
1258b576ae tools: support 64-bit file positions in SvStream
Bump stream positions to 64 bits on:

SvLockBytes::SetSize()
SvStream::SeekPos()
SvStream::SetSize()
SvStream::SetStreamSize()
SvStream::Seek()
SvStream::SeekRel()
SvStream::Tell()
SvStream::remainingSize()
SvStream::nActPos
SvStream::nBufFilePos

Change-Id: I0521fd60d31d1a33e5634cbf51dd42edc46ad919
TODO: adapt callers of Seek()/SeekRel()/Tell()/remainingSize()
2014-03-29 02:03:07 +01:00
Michael Stahl
19bbfc0b39 tools: allow 64-bit positions on SvLockBytes
Bump stream positions to 64 bits on:

SvLockBytes::ReadAt()
SvLockBytes::WriteAt()
SvAsyncLockBytes::m_nSize
SvOpenLockBytes::Seek()
SvOpenLockBytes::Tell()
SvOutputStreamOpenLockBytes::m_nPosition
OInputStreamHelper::m_nActPos

Change-Id: Ica3b674e0ab23a756260a51475e97a5396ecdddb
2014-03-29 02:03:07 +01:00
Stephan Bergmann
f26b981aa2 Remove now unused DBG_CTOR etc. feature
Change-Id: Id5e3191ea1a505bd7d46af355edb99e184b5fcb1
2014-03-28 17:26:09 +01:00
Tor Lillqvist
ae00e71afd Bin rest of DBG_WARNING[123]
Change-Id: Iaaf36d012e353f73f083c9c0ebbbb6d0953b16c8
2014-03-28 16:52:36 +02: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
Stephan Bergmann
5fb78604c1 Split TYPEINFO into plain and TYPEINFO_OVERRIDE
...where the latter contains SAL_OVERRIDE annotations

Change-Id: Id64794b388d83dfe7026440e8b20a5b5efd412d1
2014-03-26 11:54:55 +01:00
Stephan Bergmann
cdb473b00a Remove now unused tools/debug.hxx profiling functionality
Change-Id: I13adca8c2f929c8a9226b26ef57b26363dfdf0b3
2014-03-25 18:49:18 +01:00
Stephan Bergmann
2ab3bae2cf Reduce some functions to local
Change-Id: Ia2d7eaaa1381fe46839b0d52a91bdc3a439fa418
2014-03-25 18:49:17 +01:00
Stephan Bergmann
86088dda6e osl_setDetailedDebugMessageFunc is effectively doing nothing
...since the osl/diagnose.h macros got rebased onto sal/log.hxx, so remove the
corresponding tools/debug.h functionality.

Change-Id: Ife4b5b1a2608230d0dbfc3fa8852243c89ed292f
2014-03-25 16:17:09 +01:00
Stephan Bergmann
ff1a592a1f Remove unused DBG_FUNC_* slots
Change-Id: Ief6661ed4bb57546014deef5b10d20fc3a4894fe
2014-03-25 16:17:09 +01:00
Stephan Bergmann
3afc276001 DBG_OUT_WARNING is unused
...and thus DgbData::nWarningOut is unused, too.

Change-Id: I388d2be7dafbfdc173a731dc7daf1c8b5efcd61d
2014-03-25 16:17:06 +01:00
Stephan Bergmann
bb27014e10 Remove unused inline functions
Change-Id: I719c0448ae3db291edfb32738404ff375deb3c3b
2014-03-25 16:17:06 +01:00
Caolán McNamara
a547f865e0 drop spadmin
Change-Id: Ie10ee80f1d35b40c0baf9d7ba5c1181b52405b5f
2014-03-21 08:56:45 +00:00
Alexandre Vicenzi
364ac5acf4 fdo#63154 Remove some solar.h references
Remove some solar.h from tools.
Replace sal_uLong by size_t, sal_uInt32 and sal_Int32.

Change-Id: I38961db046337a3ea4ef75d64afa424d81391f34
Reviewed-on: https://gerrit.libreoffice.org/8582
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2014-03-15 22:55:02 +00:00
Caolán McNamara
1eeb20f395 CurrencyFields cannot be loaded from .src anymore
Change-Id: I3ccdb71e39a13dc8c697d3a52dc693cff10c614d
2014-03-13 11:18:37 +00:00
Caolán McNamara
feff54d8ce MetricBoxes cannot be loaded from .src anymore
Change-Id: Id7b44402975ed75171f4475aa64ebd2a3d6bd687
2014-03-13 11:18:37 +00:00
Caolán McNamara
1de7c36a94 CurrencyBoxes cannot be loaded from .src anymore
Change-Id: I662aab01ecf5f78c4406838118ccea3988060521
2014-03-13 11:18:37 +00:00
Caolán McNamara
4737ed363a DateBoxes cannot be loaded from .src anymore
Change-Id: Ic9d3c73cf67e855dc5931e96bc03014998cce9e0
2014-03-13 11:18:37 +00:00
Caolán McNamara
24cfa40779 TimeBoxes cannot be loaded from .src anymore
Change-Id: I1fa101656538c40c402fc8608f33961f293bd58d
2014-03-13 11:18:36 +00:00
Caolán McNamara
d40971a478 MoreButtons cannot be loaded from .src anymore
Change-Id: Ib831895b33323dd478cc125b3bf93c43826ef59d
2014-03-13 11:18:36 +00:00
Caolán McNamara
1e7891c103 drop the SimpleErrorHandler
Change-Id: I968300664c386e6cf33461c5858833832e452e28
2014-03-10 11:36:23 +00:00
Alexandre Vicenzi
17c8678595 fdo#63154 Remove old solar.h references
Remove some unused references in tools.
Change sal_uLong to sal_uInt32 in filter and vcl.

Change-Id: I92b928b980b2e7371edddfd74face10d5bec07df
Reviewed-on: https://gerrit.libreoffice.org/8480
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2014-03-09 11:50:58 -05:00
Alexandre Vicenzi
409727fa65 fdo#63154 Remove unused solar.h reference in tools
Change-Id: Icd21bbc91ae3587140fe8b0982fc8223fed0903b
Reviewed-on: https://gerrit.libreoffice.org/8505
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-03-09 11:25:45 -05:00
Jacobo Aragunde Pérez
b238583071 ooxml: export date controls properly
Export date controls as ooxml Standard Document Tags (SDT) instead
of replacing them with plain text.

SDT date controls contain the date in ISO format as an attribute of
<date> tag, a custom date format that can be specified by the user
in the <dateFormat> tag and the date formatted in that custom format
in the <w:sdtContent> tag.

The unit test testFormControl from ooxmlexport suite was removed,
it only checked if the date control was exported as text and it
obviously fails now. A new test that checks the values of the
exported control was written instead.

A pair of date format functions were added to datetimeutils.hxx.

TODO: to avoid supporting all the posible custom formats that can be
specified in the <dateFormat> tag, it is forced to dd/mm/yyyy on
export.

Change-Id: I9d1b6f840ee9e133831fdb04ad399fe31bcb2063
2014-03-08 17:50:59 +01:00
Stephan Bergmann
f51f03a461 Do not needlessly truncate MinMax argument before comparison with bounds
Change-Id: I218e70d6a19901107fd037af255ad29692c850d4
Reviewed-on: https://gerrit.libreoffice.org/8461
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
2014-03-05 10:46:46 -06:00
Eike Rathke
68ec95b3f8 made ListBox handle more than 64k elements, fdo#61520 related
ListBox and related now handle up to sal_Int32 elements correctly.
sal_Int32 instead of sal_Size or size_t because of UNO and a11y API.
Also disentangled some of the mess of SvTreeList and other containers
regarding sal_uInt16, sal_uLong, long, size_t, ... type mixtures.

Change-Id: Idb6e0ae689dc5bc2cf980721972b57b0261e688a
Reviewed-on: https://gerrit.libreoffice.org/8460
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2014-03-05 07:31:19 -06:00
Caolán McNamara
875129a8d4 callcatcher: update unused code
Change-Id: I429eeb3fc0dd0d0c55612eb482d99ab4ceda2f56
2014-03-01 11:00:41 +00:00
Noel Grandin
2dcc6a491a remove unused code BigInt::GetString()
Change-Id: I0e1b1e07103b7aafd0b6691e0fcf0d2c8f612ac8
2014-02-28 08:33:14 +02:00
Noel Grandin
2191ff899b debug only code Resource::TestRes()
Change-Id: I00743ded162ea2772b2fe74df8aecf1fd3a390fa
2014-02-28 08:32:00 +02:00
Alexandre Vicenzi
8240641ce7 fdo#63154 remove unused solar.h reference in tools
Change-Id: I1ad2f6323a787b9ea38031a1427d99dd47f5e030
Reviewed-on: https://gerrit.libreoffice.org/8373
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Marcos Souza <marcos.souza.org@gmail.com>
2014-02-27 07:35:41 -06:00
Noel Grandin
d8f90e02a4 remove unused code SvStream::WriteUCharPtr(unsigned char const*)
Change-Id: I7f341a10d2fffb8eda45478756bc221127ab72cf
2014-02-25 15:16:58 +02:00
Stephan Bergmann
33740b7d5a Replace exisiting TriState, AutoState with more generic TriState
Change-Id: Ida05478aae5a379775c671e0c2f2851d820d78be
2014-02-24 12:27:32 +01:00
Alexandre Vicenzi
c340131d16 fdo#63154 Remove unused solar.h reference in tools
Change-Id: Ic450a82a201cb4da3b0c2992908b597220038871
Reviewed-on: https://gerrit.libreoffice.org/8135
Tested-by: Michael Stahl <mstahl@redhat.com>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2014-02-20 20:38:41 +00:00
Stephan Bergmann
9c9e4b1942 Add SvStream::ReadCharAsBool
Change-Id: I9dc0525e04de5ae79205872b779dcd0115a9cc14
2014-02-20 19:51:43 +01:00
Alexandre Vicenzi
7fa9530f8c fdo#63154 Remove unused solar.h ref. in tools
Change-Id: Iedcf030178c4bf875db01ba6b1f5202dae18bca2
Reviewed-on: https://gerrit.libreoffice.org/8134
Tested-by: Michael Stahl <mstahl@redhat.com>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2014-02-20 11:44:08 +00:00
Jan Hubicka
3db6d2cb99 GCC 4.9, LTO: libvcl uses GZCodec but it is not linked with the implementation
This is not valid C++ and GCC now resolves the virtual calls and inlines
destructor that leads to undefined symbols.

Change-Id: I841d25bc6f994f0e73665b174994f9471597131e
2014-02-18 19:57:31 +01:00
Stephan Bergmann
95401d5898 tools: sal_Bool -> bool
Change-Id: I3aad235d92b3972b44199294c0f3de65ad57f450
2014-02-18 08:18:29 +01:00
Noel Grandin
0c7f352775 remove SvStream::operator>> methods
in favour of ReadXXX methods.

Change-Id: Ic2c0a7b6b92ff4c236ae99b39d77f3d935b301e3
Reviewed-on: https://gerrit.libreoffice.org/7915
Tested-by: Michael Stahl <mstahl@redhat.com>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2014-02-12 19:45:10 +00:00
Noel Grandin
b2878af322 more SvStream:operator>> conversion
Convert the template based read_lenPrefixed methods to regular
methods.

Change-Id: Ifd0e93aca055e55a0575e4377ec2b8e266dfb019
Reviewed-on: https://gerrit.libreoffice.org/7895
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2014-02-12 15:32:11 +00:00
Noel Grandin
15535e32dd convert SvStream::operator>> methods to ReadXXX methods
First, I updated the clang rewriter to do the conversion.
Then I lightly hand-tweaked the output for the few places where
the rewriter messed up, mostly when dealing with calls on "this".

Change-Id: I40a6a977959cd97415c678eafc8507de8aa3b1a9
Reviewed-on: https://gerrit.libreoffice.org/7879
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2014-02-12 15:31:40 +00:00
Noel Grandin
186b4ebc99 convert specialised SvStream::operator>> methods to ReadXXX methods
as preparation for converting the SvStream::operator>> methods on
primitive types

Change-Id: I62f134bced15c687d6e0d46924f56e8d1c3d95b9
Reviewed-on: https://gerrit.libreoffice.org/7798
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2014-02-04 22:50:39 +00:00
Chris Sherlock
570e5d70f3 fdo#74425 Remove deprecated static function ResMgr::GetLang()
ResMgr::GetLang() has been deprecated for a long time now. It is used
by only one function,
SubstitutePathVariables::SetPredefinedPathVariables() in the framework
module. I have therefore removed it from ResMgr and placed it as a
function in framework/source/services/substitutepathvars.cxx where it
is actually used.

Change-Id: I5f0d8f701aa45f8653020affeff6339f8fc9bc0e
Reviewed-on: https://gerrit.libreoffice.org/7791
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-04 14:43:57 +00:00
Michael Stahl
e4be770ec8 add std::ostream operators for Region and PolyPolygon
Change-Id: I8f4129b840a27f3029643ad2a4852f9e10604905
2014-02-03 12:34:06 +01:00
Norbert Thiebaud
3cbfcee36d xub_StrLen and tools/string.hxx final straw
Thre is still some 0xffff limit left and possibly some
less than gracefully handled overflow/error cases

Change-Id: I00957ee3a30b02f73918ea49d7353056263dc638
Reviewed-on: https://gerrit.libreoffice.org/7787
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2014-02-03 07:44:28 +00:00
Norbert Thiebaud
d1f88c2cbb coverity#984164 : Uninitialized scalar field
Change-Id: I5fa6608861b7049ad3964b695b0622ab583397d1
2014-01-31 21:27:24 -06:00
Marcos Paulo de Souza
73d713a1b3 fdo#63154: Remove SVBT8 from solar.h
Conflicts:
	sw/source/filter/ww8/ww8par2.cxx

Change-Id: I4e500cf0ca89468494fd3f0892839f5ca6cce725
Reviewed-on: https://gerrit.libreoffice.org/7645
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-01-30 16:54:16 +00:00