Commit graph

19983 commits

Author SHA1 Message Date
Noel Power
a9e338a1cd stop formulabar controls being repositioned vertically in multiline mode 2011-12-14 10:51:02 +00:00
Stephan Bergmann
3684fcdc0f configmgr.component is no longer an old one. 2011-12-14 10:42:51 +01:00
Kohei Yoshida
681e8b1e43 fdo#39118: Fixed chart listener registration during ODS import.
The breakage was due to the drawing layer re-work.  We do need to store
charts (or all OLE shapes with associated listening ranges) for later
registration regardless of anchor types.
2011-12-14 00:31:34 -05:00
Kohei Yoshida
7352c717a3 fdo#35981: Handle empty members correctly during field popup.
Or else filtering of field members will not work correctly when the
field contains an empty name.
2011-12-13 22:03:20 -05:00
Laurent Godard
15fd1375d3 add c++ based subsequenttest for XNamedRange
one test disabled because we first need to write a patch for our
internal cppunit
2011-12-14 03:27:22 +01:00
Markus Mohrhard
cd3bf24a54 add makefile for new XNamedRange subsequenttest 2011-12-14 03:27:21 +01:00
Markus Mohrhard
38a93a59af ManageNames: info text should be centered in the text field 2011-12-14 03:27:21 +01:00
Noel Power
96c1a0e354 adjust multiline button and scrollbar size/positions 2011-12-13 18:44:26 +00:00
Kohei Yoshida
9ffe57dc02 fdo#39917: Use correct address convention during search and replace. 2011-12-13 10:52:36 -05:00
Miklos Vajna
5916088332 fdo#30714 move SID_INSERT_CURRENT_DATE/TIME to GID_INSERT 2011-12-13 14:33:07 +01:00
Kohei Yoshida
4b6e0d42d7 Pass the correct ScTabViewShell instance to the input box.
This eliminates the need to store the assigned doc pointer to cross-check
against whenever the edit engine is initialized.  It's cleaner this way
& fdo#43614 still remains fixed.
2011-12-13 13:06:10 +00:00
Kohei Yoshida
43c7830b03 Don't crash when typing Japanese via SCIM.
There should only be one active edit view while the user is typing
into a cell, or else it crashes when an external input method is
being used to input values (such as Japanese).
2011-12-13 13:06:03 +00:00
Caolán McNamara
90ca7d9e24 callcatcher: remove newly unused code 2011-12-13 10:11:44 +00:00
Kohei Yoshida
66778dd58d fdo#32530: Correct default horizontal alignment for complex script. 2011-12-12 15:46:51 -05:00
Kohei Yoshida
96692c301d Revert "remove lazy init of edit view to fix strange core ( open insert|formula )"
This reverts commit 0262ea0352.
2011-12-12 14:53:58 -05:00
Kohei Yoshida
99977d7864 fdo#35539: Don't evaluate error cells as values during filtering.
E.g., if filtering for cells < 5, we should skip error cells.  Previously,
error cells are unintentionally treated as having a numeric value of 0.
2011-12-12 14:21:26 -05:00
Noel Power
0262ea0352 remove lazy init of edit view to fix strange core ( open insert|formula )
I didn't quite get it, valgrind didn't show a sensible trace but this fixes the core ( also according to valgrind )
2011-12-12 19:15:04 +00:00
Kohei Yoshida
f162980219 Fix filtering by inequality operators e.g. >5, <=3, etc. 2011-12-12 14:10:43 -05:00
Noel Power
bee8375b72 double check pEditView ( appears some re-entrency foo can zap it ) 2011-12-12 01:01:15 +00:00
Noel Power
c7551439a9 fix autocorrection sync problem with input/formulabar
also,
* make the GetEditView explicitly create EditEngine/EditView *always*
* remove the bogus GetLine method
* reset NotifyHdl when stopping the edit engine
2011-12-11 16:45:51 +00:00
Julien Nabet
eba2e6a9c3 Remove ByteString 2011-12-11 14:48:16 +01:00
Eike Rathke
53b3df94db fixed fdo#43700 ROWS(), COLUMNS() and SHEETS() don't work with external references 2011-12-10 20:29:06 +01:00
Kohei Yoshida
ef747a6570 fdo#43467: Infer number format from formula result if appropriate.
In case the data source has a formula cell, the number format may be
inferred from the formula result in case the cell format is General.

Also,

1) no need to use UNO API in the API implementation.  Let use the
   internal API here.

2) this method didn't take into account the hidden cells.

TODO: We need to handle number formats for external ref data properly.
2011-12-10 00:47:28 -05:00
Kohei Yoshida
4345b5cb72 fdo#38545: Show/hide anchor when the anchoring status changes.
Setting a page-anchored object to cell-anchored didn't show the anchor
immediately until you unselect the object and re-select it.  Same for
the cell-anchored to page-anchored direction.

This commit fixes it.
2011-12-09 16:34:26 -05:00
Fridrich Štrba
5318ddf2e6 fixed Calc unit-test crashes
Wrong offset and count constants caused properties' string array out-of-bounds
access.
2011-12-09 12:30:25 +01:00
Kohei Yoshida
49b6cbe96b bnc#656073: Allow filtering by error value.
The old way was that an error cell was evaulated as having a value of 0.
The error cell also showed up as blank in the popup.  Using the error
string is much more intuitive (and some users apparently want this
behavior).
2011-12-08 23:02:26 -05:00
Kohei Yoshida
d598c76cb9 bnc#727504: Correctly convert chart data ranges.
We were supported to convert XML chart data range representations
with a hard-coded ';' as the range union operators, but incorrectly
using UI configurable range separators.  This caused charts with
series that consisted of multiple ranges to be imported correctly in
locales where the range separator (which re-uses the function argument
separator) was something other than ';'.

BTW I plan to remove this "always use Calc A1 syntax" restriction in
future versions.
2011-12-08 21:46:33 -05:00
Eike Rathke
ce2fe82b08 fixed fdo#43614 Crash when closing document and several Spreadsheet documents open
During Paint() in ScMultiTextWnd::InitEditEngine(),
ScTabViewShell::GetActiveViewShell() may return a view shell that does not
correspond with the document to be repainted if another document was opened or
when switching between documents. Prevent creating an EditEngine with wrong
SfxItemPool.
2011-12-09 00:27:17 +01:00
Michael T. Whiteley
dcfd4beb21 childs -> children 2011-12-08 11:32:41 +02:00
Olivier Hallot
ff60c8c01c Fix for bug fdo43586, need more room for localized string
This patch fixzex bug fdo43586, more room needed for localized strings in named range dialog.
2011-12-08 07:39:08 +02:00
Kohei Yoshida
8d86abbc36 We need to set the current cell range object regardless of style name.
Otherwise we would fail to import the cell contents of those documents
that don't include table styles at all.  Some hand-crafted ods documents
don't provide table styles, which 3.4 imported just fine.
2011-12-07 23:53:56 -05:00
Kohei Yoshida
2419d3c2de fdo#43534: Fully support external references in CELL function.
Some parameters don't work with external references, however, such
as PROTECT, PREFIX and WIDTH.
2011-12-07 22:35:03 -05:00
Markus Mohrhard
ec3aa099c4 add test for ScDataPilotFieldObj::XDataPilotFieldGrouping
test XDataPilotFieldGrouping::createDateGrouping is broken
2011-12-08 04:24:55 +01:00
Kohei Yoshida
fde3c85272 fdo#43534: Reset tab index for SingleRefToVars() call.
Otherwise that method will set #REF! to the cell when it sees the tab
index being -1.  We don't use that index in that code, so it's safe to
do this.
2011-12-07 17:59:52 -05:00
Eike Rathke
3deb83d7a7 i#106210 store proper ODFF names, accept aliases
Older releases stored a few function names not defined by ODFF, namely
EASTERSUNDAY instead of ORG.OPENOFFICE.EASTERSUNDAY, TDIST instead of
LEGACY.TDIST and B instead of BINOM.DIST.RANGE.

Since OOo/LibO 3.3 the proper function names can be read, additionally to the
"wrong" names. Now it's time to write the proper names and still accept the
incorrect ones.

Test cases are attached to AOOo issues:
ORG.OPENOFFICE.EASTERSUNDAY
https://issues.apache.org/ooo/show_bug.cgi?id=112882
LEGACY.TDIST and BINOM.DIST.RANGE
https://issues.apache.org/ooo/show_bug.cgi?id=110229
Note that the FALSE in A2 and A3 is a result of the string comparison of the
actual formula, that differs in separators (, vs ;) only.
(cherry picked from commit a9b03bd199)
2011-12-07 23:39:22 +01:00
Kohei Yoshida
4d6b88417f fdo#42259: Fixed RTF import crash etc.
This is also another unfortunate bug due to the logic change caused
by the DECLARE_LIST removal.  There was one crasher due to out-of-bound
array access, plus one incorrect behavior concerning cell content
placement.  Both are now fixed.
2011-12-07 17:07:41 -05:00
Markus Mohrhard
502b517916 extend DataPilotField tests to the whole property set
still missing are all properties that are tested automatically by the
PropertyTester
2011-12-07 20:23:15 +01:00
Markus Mohrhard
ef8313a16c add test for failing DataPilotField test, related fdo#43308
it seems that the java based test fails by "design" and not due to an
error
2011-12-07 20:23:15 +01:00
Wolfgang Pechlaner
b82c4fc48f add some more functions test to sc's filters-test 2011-12-07 20:23:15 +01:00
Kohei Yoshida
c8552bc97b fdo#43534: Partially support external refs in CELL function.
For now, only COL and ROW are supported.  More on the way.  Note that
we can't support all the information types that we do for internal
references.
2011-12-07 13:34:53 -05:00
Eike Rathke
cabf25372c old class Stack pop'ed 0 from empty stack, which std::stack doesn't
Some places in the code assumed that if the stack is empty a null pointer is
returned by top() (or old Pop()), this doesn't work anymore with ::std::stack
that instead has undefined behavior in that case, so check !stack.empty()
first before accessing top.
(cherry picked from commit ac40f7d650)
2011-12-07 17:27:31 +01:00
Noel Power
fe1e91678f remove unused variable 2011-12-07 15:53:20 +00:00
Noel Power
fa83f16b4e better sizing of inputbar ( removed weird calculations I didn't understand )
gsoc input bar now (should) snuggly wrap the text when collapsed, if multilines exist then scrolling with the keys should be clean and no spill from upper or lower lines visible. Removed some strange ( pseudo padding ) apparently for taking into account the window border and reorganized the resize logic so the padding is added ( and commented why ) in just one place.
2011-12-07 15:46:14 +00:00
Kohei Yoshida
17c7711948 fdo#43308: Set the logic straight for "center across selection" setting.
Another unfortunate logic change introduced via DECLARE_LIST removal.
Reverting the logic to the original one.
2011-12-07 10:41:24 -05:00
Bjoern Michaelsen
2acd8fbac9 in modules, when we have a env we are in stage gbuild 2011-12-07 15:53:06 +01:00
Kohei Yoshida
e262178556 bnc#733864: Make sure to adjust the sheet index of drawing objects.
For cell-anchored drawing objects.  Failing to do so would result in
either one of

1) write error during file save,
2) drawing object disappearing upon reload, or
3) drawing object relocated to a wrong sheet, with wrong position
   and size upon reload.
2011-12-06 23:38:09 -05:00
Caolán McNamara
7c5a11df60 normalize Red Hat, Inc. 2011-12-06 21:40:20 +00:00
Caolán McNamara
c8ef924060 normalize Red Hat, Inc. spellings, and bump to latest template 2011-12-06 21:24:37 +00:00
Stephan Bergmann
f141ea7d74 Use configmgr directly in SvxAsianConfig. 2011-12-06 20:28:57 +01:00
Stephan Bergmann
f547b2c478 Moved modifications.xcu to test, used from multiple modules. 2011-12-06 20:28:56 +01:00