Commit Graph

1601 Commits

Author SHA1 Message Date
2dfd639916 fixincludeguards.sh: sc
sorry, huge one...
2014-04-19 11:10:10 +02:00
b731d71c67 sfx2: Move InitInterface_Impl() method out of SFX_IMPL_INTERFACE.
SFX_IMPL_INTERFACE previously looked like a function; where in fact it is
several methods defined at once, and only the last one has a body.

This is extremely confusing and hard to read; let's kill that nonsense.

Change-Id: Ia4ae22eb58b1260c9c827c894f5345693bad49e7
2014-04-18 22:51:06 +02:00
7f91f73123 ScImportExport clean-up, German comments
Change-Id: Ife16a0e787a03c1225218356572c2fd929a0c63c
2014-04-18 21:07:01 +02:00
629cc605a4 Intermediate commit of hacking on --disable-database-connectivity
Add HAVE_FEATURE_DBCONNECTIVITY to <config_features.h> instead of
using (or not, more likely) -DDISABLE_DBCONNECTIVITY.

The plan is still that database connectivity would be disabled always
for the non-desktop platforms, and otherwise disabling it would be a
configure option.

But, still lots to do; the TiledLibreOffice iOS test app gets tons of
undefineds when linking if I actually try to disable the database
connectivity.

Change-Id: If1e4b55faa1514cd55dec5fc5487a30d689739ac
2014-04-18 00:04:15 +03:00
141a87dd3c Clean up function declarations and some unused functions
Change-Id: If2c233a8ced8815b065a72caff907f10ef6166ff
2014-04-14 15:41:27 +02:00
e98e738a82 replace some SvStream seeking with calls to remainingSize()
Change-Id: I2905e98425b9991d6138ab0adc15083d313ca445
2014-04-11 23:08:11 +02:00
355baf5734 fdo#75741: Re-implement CompileNameFormula for formula groups.
Change-Id: I57e1e464ac5f7abc10ce5ea5752e036ddb6cf6d7
2014-04-07 14:43:16 -04:00
c4c51709ea whitespace cleanup in sc
Change-Id: Id1dcadcac179c52977e48a6912ce4d5fd542f60c
2014-04-06 17:19:54 +02:00
e7c0f8711f "2" as arg for PrepareClose is never checked for
The 2 for PrepareClose came in with 38db42605a5b72efd55a43eff81fbc517fe0424b
"#89423#: added SID_CLOSEDOC, SID_BACKTOWEBTOP, SID_LOGOUT in PluginMenu" and
was checked with if( SfxApplication::IsPlugin() == sal_False || bUI == 2 ) in
sfx2/source/doc/objxtor.cxx  and then that was removed with
367568c891771d20bb8f8b3b579857f51c0e9016 "#132394#: remove superfluous code"

Change-Id: Ib273c88b4365ea6b261c7e52bbe1876aa796dc17
2014-04-04 16:43:32 +01:00
a4f09f8c2e fdo#73552 - Set name of CSV import sheet to something friendly
Change-Id: Ia68283947d954d648fa25356f2b95ba0ab7010aa
Reviewed-on: https://gerrit.libreoffice.org/8811
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2014-04-03 10:17:04 +00:00
e65141e93a re-enabled user-defined numeric fields for dBase export
Since commit f59e350d1733125055f1144f8b3b1b0a46f6d1ca it was impossible
to define a numeric field with a precision of less than 2 decimals, even
if all values were integers. It was also impossible to define a field
width larger than needed for any values in that column. Furthermore, the
integer part was shortened if the overall column's values resulted in
more precision than defined, but the overall length did not reach the
predefined length.

This does not change the behavior of the original intention of
f59e350d1733125055f1144f8b3b1b0a46f6d1ca to give the precision of number
formats precedence over precision defined in the column header, which is
debatable though because conflicts may silently change the field
definition.

Change-Id: I234c4bceaa1a6aadbd259cb8d9b6cb6f16bf91c2
2014-03-31 22:31:23 +02:00
94a10aa1d6 one more comment
Change-Id: I473efb4c8233eed1a3a00ce9ab8c1fa84583e2a4
2014-03-31 22:31:22 +02:00
7f074dbff7 translated German comments
Change-Id: Id893ba9e4a145856be1f091293eecbf757fb423d
2014-03-28 18:19:24 +01: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
34002c4e5c sfx2: sal_Bool->bool
Change-Id: I1fd02cc148fd9a54d2092dad1e548f51a0813a14
2014-03-27 13:45:09 +02:00
960da63a9e coverity#982303 Logically dead code
Change-Id: I45aca72d340295fcda04f9045f0c61b882722fd8
2014-03-25 17:03:49 +00:00
f516cff220 Avoid possible resource leaks by boost::scoped_array
Change-Id: I7b72c5680d5665b3f1f720f50a2d3ea6fc0c3e39
2014-03-24 03:10:18 +09:00
655dedb1a7 cppcheck: bRet reassigned before using its value
Change-Id: Iaa1dbf9c5638001018b71c946361bfc6db58be83
2014-03-22 15:27:22 +01:00
9278df2c21 sfx2: sal_Bool->bool
Change-Id: I73acb3a150b01114d32274a6842f6db9654b3e63
2014-03-19 09:21:24 +02:00
ac01de882d sfx2: sal_Bool->bool
Change-Id: I87c5a180566e9da185c2992844e6522e82c17747
2014-03-18 11:27:38 +02:00
96ef76c1b7 sfx2: sal_Bool->bool
Change-Id: I733cd63e321bdc775739228c269fa66ff7780780
2014-03-18 11:26:05 +02:00
a45fde7235 justify range to prevent negative tab span and memory alloc, rhbz#1057741
I could not reproduce the crash of that bug (probably having more memory
available), but the backtrace had nTabSpan = -2 implicitly casted to
size_t leading to allocation of a huge amount of memory with
vector::reserve(), which ScRange::Justify() exactly prevents.

Change-Id: Idb79e1be62649922ba793cab01e00011479fade9
2014-03-17 13:57:53 +01:00
684baef506 sal_Bool to bool
Change-Id: Ib19ecab287396dc6d6cf4a77dcf7072c5c4c84f8
2014-03-16 09:39:12 +01:00
88955714d3 fdo#71491: Adjust reference during undo of drag-n-drop of cell range.
Also with this commit, the signature of SvtListener::Notify() changes,
by dropping the first argument which nobody uses.  This change was necessary
in order to call it directly without needing to pass any broadcaster instance.

Change-Id: I6a1e97f0fb1e070d1d8f7db614690b04c9e8024e
2014-03-15 00:15:06 -04:00
83a55e63f1 some formula interpreter options are document specific
Ideally they'd even be stored as document options. Future work?

Change-Id: Ida126a441ca88c35406fb66ea3722d6335e6e8e2
2014-03-14 23:04:19 +01:00
18909ddb30 fdo#75977: Clear sheet deleted flags for affected references when undoing.
This will allow formula cells to restore deleted references when they get
recalculated.  With this change, SetDirty() that previosly took no argument
has been renamed to SetAllFormulasDirty(), and it now takes one argument that
stores context information.

Change-Id: If0de5dc1737a2722b6d61a87644b10a4f921edc5
2014-03-12 22:00:07 -04:00
2acdcb2374 coverity#1158232 Fix ownership of NamedDBs::insert argument
f70d03436b7b501e0ed1d745935a204b9b97b855 "coverity#1158232 have a stab at
silencing warning with function markup" claimed that NamedDBs::insert always
takes ownerhip of its argument, but boost::ptr_set::insert(std::auto_ptr<U> x)
simply calls insert(x.release()), so only takes ownership when it returns true.

ScDBDocFunc::AddDBRange (sc/source/ui/docshell/dbdocfun.cxx) relies on this
behavior, deleting the argument when insert failed.

ScDBDocFunc::RenameDBRange (sc/source/ui/docshell/dbdocfun.cxx) relied on this
behavior, deleting the argument when insert failed, until
f55cc330dec0dec60c755e2ce28a840c7fca1956 "Fixed the fallout of the changes in
ScDBCollection" removed the delete (presumably in error?).  I put it back in
now.

All other uses of NamedDBs::insert ignored the return value (witnessed with
SAL_WARN_UNUSED_RESULT).  Some are insert-if-not-found cases, where I added
asserts now (Sc10Import::LoadDataBaseCollection,
sc/source/filter/starcalc/scflt.cxx, is not entirely clear to me, so I added a
TODO), while others would have potentially leaked the argument, in which cases I
fixed the code.

Change-Id: Iad40fbeb625c8ce6b0a61cbf16298d71cdc7de80
2014-03-12 16:24:43 +01:00
c50b79fbc2 coverity#1130369 Dereference after null check
Change-Id: Id931c038f3715ea69a798de4b14b46dfa9d2afda
2014-03-08 14:25:04 +00:00
84862db95a Remove visual noise from sc
Conflicts:
	sc/source/ui/inc/docfunc.hxx

Change-Id: I9314437ed3dd60e84d28c08ac0a2d1ed7bd1daf8
Reviewed-on: https://gerrit.libreoffice.org/8301
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-03-03 11:04:44 -06:00
36788e95fd upgrade liborcus
Conflicts:

	external/boost/StaticLibrary_boost_system.mk

Change-Id: Ie4af26c87a100b67baeedbaa7fb1ac428845f92b
2014-03-03 17:53:57 +01:00
477a294e1d coverity#1187830 Uncaught exception
Change-Id: I137af778b9b494c764071e3ae0b8010f080ef936
2014-03-02 20:08:25 +00:00
e2a235f17d coverity#1187654 Logically dead code
Change-Id: I48f35e89112c869131106cd30d0e2456b3ede021
2014-03-02 20:08:14 +00:00
24e7d0390f coverity#1187655 Logically dead code
Change-Id: I3f490ca9d93849b021bf5804079fd215f077ad49
2014-03-02 20:08:13 +00:00
cf70996311 Remove all uses of GetMarkRowRanges() and use GetMarkedRowSpans().
And ditto with its column variant.  The former created a heap array of
1 million elements (=MAXROWCOUNT). There is no need for this memory
wastage.

Change-Id: I07845966c51cdcbdc676cd0d249f6420a19b9c5e
2014-02-27 21:35:02 -05:00
5e21a413c7 cppuhelper: retrofit std::exception into overriding exception specs
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2014-02-26 18:22:20 +01:00
7e6981c3ea remove unused method sc::DataStream::ToMoveType(rtl::OUString const&)
Change-Id: I76a677df30649b42c22f6c72525717b8224d2f79
2014-02-25 15:17:00 +02:00
662283db76 coverity#735810 Dereference after null check
Change-Id: I005ae6bf505fd2131c06e889f9fc3c12dae23c64
2014-02-24 12:53:09 +00:00
a53577e6ff Replace deprecated std::auto_ptr with boost::scoped_ptr
Change-Id: I55292f5f0049e7c77d5bb0e5ef5fa187b815d159
2014-02-24 10:20:51 +09:00
0ce0c369aa Remove unneccessary comments
Change-Id: I939160ae72fecbe3d4a60ce755730bd4c38497fb
Reviewed-on: https://gerrit.libreoffice.org/8182
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-23 03:38:49 +00:00
b7180bd14f editeng: sal_Bool->bool
Change-Id: Ia9b76985ea0b9c511208b8283c8487c89aa67b88
2014-02-21 12:19:24 +02:00
2bcd18892f fdo#72041: Intern strings in the external ref cache with the host document.
To ensure that string comparison with those from the external ref cache
works correctly in functions such as VLOOKUP.

Change-Id: Ib5a466cb6c4b26439abe61b0c17406fc8139f6c0
2014-02-20 16:09:01 -05:00
12f1faf7bf svl: sal_Bool -> bool
Change-Id: Ic31455a1f5ffffa35d4fdde901dd70734207b6f4
2014-02-20 08:17:00 +01:00
aecb68988b coverity#738803 Uninitialized scalar field
Change-Id: Id24edb82d99d576435a8f310bfaf8521a77f97b3
2014-02-19 20:36:39 +00:00
47f3b22854 sal_Bool->bool
Change-Id: I6c926b0b4dabd8c1dc0927f46ff76ff53d55920f
2014-02-19 13:05:10 +02:00
1118979789 sal_Bool->bool
Change-Id: I7e37926fc1e69da2b192a60df3b54807243c646f
2014-02-19 13:05:10 +02:00
53516e9c76 sal_Bool->bool
Change-Id: I857b81ea1eea27554980ca7c7a9f771d6aa7db61
2014-02-19 13:05:05 +02:00
a5d262df1a sal_Bool->bool
Change-Id: I2d5ee332adea2e7727717473e74288b9e59f4aa0
2014-02-19 13:05:05 +02:00
7e55f69c01 sal_Bool->bool
Change-Id: I243d12c71ffc532585e55eef9c8e3e7eef032be6
2014-02-19 13:05:02 +02:00
c8c118bee0 sal_Bool->bool
Change-Id: Ie96737c3e6d354bcdd82b2539f6b62eab65565fa
2014-02-19 13:05:01 +02:00
651d68fd47 sal_Bool->bool
Change-Id: Ieaaf39833367de54973163cae581e69292bd26e7
2014-02-19 13:05:01 +02:00