Commit graph

308717 commits

Author SHA1 Message Date
Caolán McNamara
7e3923520c Resolves: fdo#49587 apparent loop in style hierarchy
Change-Id: I32317a1a6500377f7e7bb98d1dcc65ad86feb9a2
2012-07-05 21:39:45 +01:00
Caolán McNamara
5218c0d6a8 UniString(const rtl::OString ...) no longer implemented
Change-Id: Ie4fc4ed1a54889c1745a0d71d02211d6868340fa
2012-07-05 21:39:45 +01:00
Kohei Yoshida
6747dd3375 Use correct row indices to keep track of empty rows.
In pivot table cache, data rows are always zero-based, and are
different from the rows of cells from which the data are pulled.

This error resulted in incorrect pivot table result when the "skip
empty rows" option was set.

Change-Id: I4fccb37a8667f7e40d6130ac641d7b2a1daa7694
2012-07-05 16:14:55 -04:00
Kohei Yoshida
46776932d8 Unnecessary header include.
Change-Id: I3f25f2275d8351b16d955941bc2cee13eb34d504
2012-07-05 16:14:55 -04:00
Caolán McNamara
ea440349f0 useless aStr string
Change-Id: I8b7848ebaef65a0f462a63276ed4160f3e3a991d
2012-07-05 21:12:06 +01:00
Caolán McNamara
a7a891d591 sal_uInt16 matches UniString sal_Unicode ctor, not FontFamily enum
i.e. totally the wrong thing entire

Change-Id: I24c6f7ca625affe808f865b8962cb690ce1c8755
2012-07-05 21:10:25 +01:00
Caolán McNamara
63f00d37a2 Related: fdo#51247 bandaid to not crash
Change-Id: I1f98a6a1e5ede6fcd9a3570788969edcb251384b
2012-07-05 21:09:33 +01:00
Caolán McNamara
428056b968 add depend on makefile.mk
Change-Id: If065fe11b708d8c7135b5740169cc2ce17581000
2012-07-05 21:09:33 +01:00
Markus Mohrhard
1b57e80858 prevent invalid memory when loading change tracking from xls, fdo#45209
when loading broken xls files with change tracking we may crash because
of invalid memory access that results from loading to few bytes and then
using the originally created array

the patch changes it to check for the right amount of loaded bytes and
otherwise skips this change tracking record

Change-Id: I0795104284479368e26b8411336cee690abffd06
2012-07-05 22:05:42 +02:00
David Ostrovsky
e5ac3107e1 moz build fixed on Ubuntu
Change-Id: I48a4f43cc2e675d0f72bb7d87893f39f39450488
2012-07-05 21:55:26 +02:00
Michael Stahl
927f1e56d5 ConvertBorderWidthToWord: fix wrong INSET/OUSET conversion:
This should do the inverse of ConvertBorderWidthFromWord.

Change-Id: If0b2a8a83a7faa6600a07ecfcb13a124d7cdeab6
2012-07-05 21:37:31 +02:00
Eike Rathke
757a346159 resolved fdo#51664 some matrix cases broken in binary Excel import
Import (ab)used ScFormulaCell::SetHybridDouble() in the sense that
actually it is not a hybrid (no formula string, the token array is
present in binary import) and during interpretation a matrix was
expected but instead the hybrid encountered.

Introduced ScFormulaCell::SetResultDouble() for exactly this case as a
workaround.

Change-Id: I4da3812ef4974380224b5a2bf42d0b62c14d121b
2012-07-05 20:39:14 +02:00
Noel Power
0996c0d319 make unoCheckStruct uglier but detect unfixed type assignment + add new tests
Change-Id: I6160e7d1abeeda1ea89e2fe15a9155041f2e5adb
2012-07-05 19:31:16 +01:00
Miklos Vajna
3de25305a8 sw: SwLayHelper should not consider the page after first page a first page
Change-Id: Ic82dc11cca65692e221f49d43adb8b72a07aec7d
2012-07-05 18:30:38 +02:00
Fridrich Štrba
ce1c1e84b3 audit and re-license writerperfect.
Written entirely by non-Oracle contributors to LibreOffice.

Signed-off-by: Fridrich Štrba <fridrich.strba@bluewin.ch>
2012-07-05 18:27:02 +02:00
Thomas Arnhold
e1c6c2fb32 Revert "Remove unused throbber.src"
This reverts commit 0d53a8336b.

This file isn't referenced in any other file. For me those icon
files are not in any images*.zip file. But the update extension
seems to use the Throbber class, which refers to this icons.

To be absolutely sure I revert the change. Maybe someone else wants
to have a look at this.
2012-07-05 17:58:56 +02:00
Miklos Vajna
224746a40f sw: InsertNewPage() should fall back from first to left/right as well
Change-Id: I87715dcf843b025b8291a76bdfdd3a06d2ffac23
2012-07-05 17:44:51 +02:00
Kohei Yoshida
fa2b7eff2d fdo#51266: Sync dimension members in several places upon refresh.
Or else the pivot table would generate erroneous results or crash
after refresh.

Change-Id: Ia14a6e3d25112e6ecd62d21928639f75e6a8ba7c
2012-07-05 11:19:52 -04:00
Miklos Vajna
40faf88cf0 SwLayHelper: when the page style name changes, we have a first page
Previously we only considered the first page of the whole document as
first page, which was incorrect.

Change-Id: I2e37fe504a5baee986d63d0cdef166f836877174
2012-07-05 17:07:20 +02:00
Eike Rathke
3bdaf6168d changes to "Replaced deprecated tools/String with OUString in ScMatrix"
Errors during compile:

* sc/source/core/tool/interpr1.cxx: In member function ‘const String& {anonymous}::VectorMatrixAccessor::GetString(SCSIZE) const’:
  sc/source/core/tool/interpr1.cxx:4629:71: error: returning reference to temporary [-Werror]
  * with --enable-werror

* sc/source/core/tool/interpr1.cxx: In function ‘void {anonymous}::lcl_GetLastMatch(SCSIZE&, const {anonymous}::VectorMatrixAccessor&, SCSIZE, bool)’:
  sc/source/core/tool/interpr1.cxx:4724:52: error: ambiguous overload for ‘operator==’ in ‘aStr == (& rMat)->{anonymous}::VectorMatrixAccessor::GetString((rIndex + -1u))’
  sc/source/core/tool/interpr1.cxx:4728:52: error: ambiguous overload for ‘operator==’ in ‘aStr == (& rMat)->{anonymous}::VectorMatrixAccessor::GetString((rIndex + 1u))’

Change-Id: I28eb3d23f4d5c08a30534abdf940597923cbb68c
2012-07-05 16:18:52 +02:00
Sören Möller
b6cfbd08c2 Replaced deprecated tools/String with OUString in ScMatrix
Change-Id: If431e5ef8b5c97384a1bb1c7fa36c6894ece8343
2012-07-05 16:18:51 +02:00
Noel Power
8e9e166d35 fix missing makefile, also add a further test to test_nested_struct.cxx
Change-Id: I7da88595fd3024f72b260267e34200375358e401
2012-07-05 15:03:11 +01:00
Philipp Riemer
4a9c5b336a sorted all include statements alphabetically in sw/source/core/bastyp/
* fixing the missing include statements in shellres.hxx (bjoern-michaelsen)

Change-Id: I976586b346facf38905391bd336b7f08b218f4a4
2012-07-05 15:17:06 +02:00
Noel Power
cac7e7cdc2 split out some common basic test stuff, add intial nested struct test
Change-Id: I8da6b3166e40e92c31ee001ce19938f286e057b9
2012-07-05 13:56:42 +01:00
Miklos Vajna
2fab1a73b1 logerrit: for review, we need to grep for revision, not ref
Change-Id: I0fb8b1e4f14e153adae7a2ec1b3adbb0dab5c847
2012-07-05 13:22:47 +02:00
Bjoern Michaelsen
f3b1a15813 fix ./logerrit review
* ./logerrit review did not resolve the ChangeId to a SHA
 * ./logerrit did still echo the command instead of executing it.

Change-Id: Ie4f8630f7a83134d6eb7992f4a61b5d3faf7e138
2012-07-05 13:15:34 +02:00
Miklos Vajna
b103aeb9de sc: fix sc_subsequent_filters_test
Change-Id: I4dc88ff0d5e191b27b18f8ce3a9e9175fbd8c6ed
2012-07-05 12:58:48 +02:00
Takeshi Abe
eecb5ac9a4 removed useless forward declarations of class
Change-Id: I13cf52cc4e1cf8d5e2453d7ac4b68cc8c64cd011
2012-07-05 19:08:02 +09:00
Miklos Vajna
a99e3134aa xmloff: unused includes in txtimp
Change-Id: I0a4feed51067f6b222d60f569dd794f2439fc790
2012-07-05 11:49:29 +02:00
Miklos Vajna
7ac6070420 xmloff: implement first page header/footer import/export
Change-Id: I920c236125ae044fe66cf0eacafdfc94ef81a4fd
2012-07-05 11:39:51 +02:00
Michael Stahl
c3dc9a3ef3 clean up include guards in sbxvar.hxx
Change-Id: I802d142ae93b3e9c7d42ab98d5c757df94a82196
2012-07-05 10:48:19 +02:00
Michael Stahl
12d08ed288 fix Windows build, include vector
Change-Id: Ia07e12c9fa5430d7f8fa02a2a8ab6cde3aafa41a
2012-07-05 10:42:47 +02:00
David Tardon
711976fbd0 remove forgotten debug printf
Change-Id: Iff5a53735d78a2afcf90299a5f28a47f1376e393
2012-07-05 06:57:06 +02:00
Noel Grandin
488ae25fc8 Convert local var from SvPtrarr to std::vector
Change-Id: If19e08f88844d0aec7ad537a8f99e52b96c1a409
2012-07-04 23:23:22 +02:00
Noel Grandin
8ae16bb001 Remove unused forward declarations
Change-Id: I30514b3ff2d63b039496b1e336447ed129ca6a18
2012-07-04 23:23:22 +02:00
Noel Grandin
ebde6c7e3e Convert aItems field of SvLBoxEntry class from SvPtrarr to std::vector
Change-Id: I96d676ded52ebdf0f68b051b06cecf717d56e813
2012-07-04 23:23:22 +02:00
Noel Grandin
a87c24fcfe Convert aTabs field in SvTreeListBox from SvPtrarr to std::vector
Change-Id: I901c6df67fc95cfb2ac3ea15e69a47c5fc3161b6
2012-07-04 23:23:22 +02:00
Michael Stahl
09a61733bf fix previous STL conversion commit:
- the reverse_iterator actually points to the element preceding the
  original "it", so on the first iteration it shouldn't be incremented,
  as that has happened implicitly already
- it's best to use iterators to iterate over maps
- also fix some pre-existing operator delete[] mismatch

Change-Id: I969d1b79eb970792ee8b0578347ffb59d5a64379
2012-07-04 23:23:22 +02:00
Noel Grandin
2c09f1c0a7 Convert SvPtrarr to std::vector<SvxIconChoiceCtrlEntry*>
Change-Id: I70a3907f659f26817bca5c7049a0f301ae5f10ed
2012-07-04 23:23:21 +02:00
Michael Stahl
a6edbee5f8 fix previous STL conversion commit:
Change-Id: I08c346dff3d62240a24091f569f04be2f517b7b0
SwAutoCompleteWord::InsertWord: pNew has to be inserted in both branches
2012-07-04 23:23:21 +02:00
Noel Grandin
8cf33f0d2b Convert Svptrarr to std::deque<SwAutoCompleteString*>
And convert some salBool to bool.

Change-Id: I57248b2a316009d0b4e6f5d24963a361312bafd9
2012-07-04 23:23:21 +02:00
Michael Stahl
df5cdeb4b3 fix previous STL conversion commit:
SvxIconChoiceCtrl_Impl::GetColumn: pColumns is now a map, so don't test
the index against the size, but check the index only via find.

Change-Id: I9451000f8c2fe7a7b0c745f3b8c8d61e35879b43
2012-07-04 23:23:21 +02:00
Noel Grandin
8d89d1a4a7 Convert Svptrarr to boost::ptr_map<sal_uInt16, SvxIconChoiceCtrlColumnInfo>
Much better than trying to make an array behave like a map

Change-Id: Ifbebc9a98b475788f0db349954bc6aba18fddf18
2012-07-04 23:23:21 +02:00
Noel Grandin
7ce275e463 Convert Svptrarr to std::vector<Rectangle*>
And also convert some sal_Bool to bool

Change-Id: I9af69118cf1020d806a16b8f0ffdeb01120d404a
2012-07-04 23:23:21 +02:00
Noel Grandin
b1a59ddfc8 Convert Svptrarr to std::vector<SwPosition*>
Change-Id: I0e6db9fb0e628cc0d4e6556c71542bd0efc48a86
2012-07-04 23:23:20 +02:00
Noel Grandin
7a2206ce0d Convert Svptrarr to std::vector<const SwUserFieldType*>
Also convert method return type from sal_Bool to bool

Change-Id: I259e99709297d4c3b9b74643920e2afefa469a93
2012-07-04 23:23:20 +02:00
Noel Grandin
485e097ba8 Convert Svptrarr to std::set<const SwTxtFld*>
Change-Id: I71bfd2075c7dd7a97fd5553c8e55e614d6be4cf3
2012-07-04 23:23:20 +02:00
Noel Grandin
6485258bc0 Convert Svptrarr to std::deque<const SwTxtAttr*>
Change-Id: I527814582214401a1f7dd9c192e6aa96e45f7819
2012-07-04 23:23:20 +02:00
Noel Grandin
457a537bdb Convert Svptrarr to std::vector<SvGlobalName*>
Change-Id: Iafd2dc1d4bf4bf3dd875a33a37ea9038f3e083fe
2012-07-04 23:23:20 +02:00
Noel Grandin
df43637234 Convert Svptrarr to std::vector<SwRedline*>
Change-Id: I0185a08d2ebb6751b802972f14bf46edfc63c9e7
2012-07-04 23:23:19 +02:00