0526aa64c2
coverity#708207 Uninitialized scalar field
...
Change-Id: I8d74ddcf551e4a853dcf04a4ba1f33a46579ed06
2014-04-22 11:39:20 +01:00
be48b0eb62
coverity#708205 Uninitialized scalar field
...
Change-Id: I9facdfaefcfa79c56b1db9e62b861cf425d5726f
2014-04-22 11:39:20 +01:00
53d230c9e4
coverity#708204 Uninitialized scalar field
...
Change-Id: I0f54051e41b98275608e0056a587c9e7fbeee0dd
2014-04-22 11:39:20 +01:00
d1f47efbc1
coverity#708203 Uninitialized scalar field
...
Change-Id: Id72f198b69a319b93a67f2e98a706f4e45fc576f
2014-04-22 11:39:20 +01:00
fa632a57b7
fdo#77088 WMF - replace 32-bit min/max assumption with const
...
Added RECT_MIN and RECT_MAX which represent the minimum and
maximum value a Rectangle object can hold. In WMF we used a 32-bit
assumption what the min and max value could be (0x7fffffff,
0x80000000) which causes problems on 64-bit systems.
Change-Id: Ic62daebbc2708cdeb7b0cf7b694bd9940eb98313
2014-04-18 21:07:02 +02:00
2024224a4e
Move bezier functions
...
Move ImplSubdivideBezier(Polygon) to Polygon as a static function.
Move ImplSubdivideBezier(PolyPolygon) to PolyPolygon as a static function.
Change-Id: I0d006a8a2d3a8d9ba1aec913ceecb38507e4dd2f
2014-04-17 02:41:13 +10:00
84272d115d
Introduce twip/mm100 conversion functions instead of duplicated macros
...
Change-Id: Ib689e35b417e0e9016cd6a239c986e0603a99d62
Reviewed-on: https://gerrit.libreoffice.org/8837
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org >
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk >
2014-04-11 10:19:05 +00:00
8f6c55a839
Replace SV_DECL/IMPL_REF macros with SvRef template
...
Change-Id: I0ef2e67f6d61e0ce118c0f5e926b8194ef9d8058
2014-04-07 12:38:27 +02:00
ae91e58350
Unroll sole use of SV_IMPL/DECL_LOCK
...
Change-Id: I0d4691f700a415d0376e2bc346bc51fbf6a000b2
2014-04-07 09:26:06 +02:00
4bdd530984
Bin unused MAP_REALAPPFONT MapUnit enum value
...
Change-Id: I759a981c68a899ba314f5b77efa450aa57528433
2014-04-06 18:23:32 +03:00
ba17f5a344
coverity#708209 Uninitialized scalar field
...
Change-Id: Ic24e147dd631bbed4e5759b1bd4bebbd0b8add4a
2014-04-02 15:51:45 +01:00
362d4f0cd4
Explicitly mark overriding destructors as "virtual"
...
It appears that the C++ standard allows overriding destructors to be marked
"override," but at least some MSVC versions complain about it, so at least make
sure such destructors are explicitly marked "virtual."
Change-Id: I0e1cafa7584fd16ebdce61f569eae2373a71b0a1
2014-04-01 19:22:54 +02:00
4f4de694bd
coverity#708557 Uninitialized pointer field
...
Change-Id: I171cabedc5294085833179d46a261d79a93b8d04
2014-04-01 10:38:22 +01:00
856c749963
Kill FSYS_MAC which is for ancient non-OS X Mac
...
Change-Id: I51e91b97217507bcdca8c82f8a8683758d871185
2014-04-01 12:14:45 +03:00
fe41e4ba11
Bin pointless INET_HEX_ESCAPE
...
Change-Id: I72238e511c2fca4a4aba0be60b0f2d3b1f46e5c2
2014-04-01 12:14:45 +03:00
a401d9356e
Bin pointless INET_MARK_TOKEN
...
Change-Id: Id95a2bd8ba08e06284709a4c7fa2582382f8aeae
2014-04-01 12:14:45 +03:00
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
747631f26c
Remove now unused obsolete tools/debug.hxx functionality
...
Change-Id: I1bc585af8f0189dfa219bd42a5f09871a006c6ea
2014-03-31 13:33:59 +02:00
15006df5bd
tools: remove unused SvStream::IsA() and associated ID_*STREAM macros
...
Change-Id: I6ed0991fb5bd1d5085ee1b93323b57b1afc69860
2014-03-29 02:03:07 +01:00
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
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
f26b981aa2
Remove now unused DBG_CTOR etc. feature
...
Change-Id: Id5e3191ea1a505bd7d46af355edb99e184b5fcb1
2014-03-28 17:26:09 +01:00
ae00e71afd
Bin rest of DBG_WARNING[123]
...
Change-Id: Iaaf36d012e353f73f083c9c0ebbbb6d0953b16c8
2014-03-28 16:52:36 +02:00
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
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
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
cdb473b00a
Remove now unused tools/debug.hxx profiling functionality
...
Change-Id: I13adca8c2f929c8a9226b26ef57b26363dfdf0b3
2014-03-25 18:49:18 +01:00
2ab3bae2cf
Reduce some functions to local
...
Change-Id: Ia2d7eaaa1381fe46839b0d52a91bdc3a439fa418
2014-03-25 18:49:17 +01:00
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
ff1a592a1f
Remove unused DBG_FUNC_* slots
...
Change-Id: Ief6661ed4bb57546014deef5b10d20fc3a4894fe
2014-03-25 16:17:09 +01:00
3afc276001
DBG_OUT_WARNING is unused
...
...and thus DgbData::nWarningOut is unused, too.
Change-Id: I388d2be7dafbfdc173a731dc7daf1c8b5efcd61d
2014-03-25 16:17:06 +01:00
bb27014e10
Remove unused inline functions
...
Change-Id: I719c0448ae3db291edfb32738404ff375deb3c3b
2014-03-25 16:17:06 +01:00
a547f865e0
drop spadmin
...
Change-Id: Ie10ee80f1d35b40c0baf9d7ba5c1181b52405b5f
2014-03-21 08:56:45 +00:00
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
1eeb20f395
CurrencyFields cannot be loaded from .src anymore
...
Change-Id: I3ccdb71e39a13dc8c697d3a52dc693cff10c614d
2014-03-13 11:18:37 +00:00
feff54d8ce
MetricBoxes cannot be loaded from .src anymore
...
Change-Id: Id7b44402975ed75171f4475aa64ebd2a3d6bd687
2014-03-13 11:18:37 +00:00
1de7c36a94
CurrencyBoxes cannot be loaded from .src anymore
...
Change-Id: I662aab01ecf5f78c4406838118ccea3988060521
2014-03-13 11:18:37 +00:00
4737ed363a
DateBoxes cannot be loaded from .src anymore
...
Change-Id: Ic9d3c73cf67e855dc5931e96bc03014998cce9e0
2014-03-13 11:18:37 +00:00
24cfa40779
TimeBoxes cannot be loaded from .src anymore
...
Change-Id: I1fa101656538c40c402fc8608f33961f293bd58d
2014-03-13 11:18:36 +00:00
d40971a478
MoreButtons cannot be loaded from .src anymore
...
Change-Id: Ib831895b33323dd478cc125b3bf93c43826ef59d
2014-03-13 11:18:36 +00:00
1e7891c103
drop the SimpleErrorHandler
...
Change-Id: I968300664c386e6cf33461c5858833832e452e28
2014-03-10 11:36:23 +00:00
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
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
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
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
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
875129a8d4
callcatcher: update unused code
...
Change-Id: I429eeb3fc0dd0d0c55612eb482d99ab4ceda2f56
2014-03-01 11:00:41 +00:00
2dcc6a491a
remove unused code BigInt::GetString()
...
Change-Id: I0e1b1e07103b7aafd0b6691e0fcf0d2c8f612ac8
2014-02-28 08:33:14 +02:00
2191ff899b
debug only code Resource::TestRes()
...
Change-Id: I00743ded162ea2772b2fe74df8aecf1fd3a390fa
2014-02-28 08:32:00 +02:00
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