erack
ac0a752acd
impress212: export images with relative links
...
# User Daniel Rentz [dr] <daniel.rentz@oracle.com>
* found as LGPLv3-only fix at svn rev 1167625 (http://svn.apache.org/viewvc?view=revision&revision=1167625 )
2011-11-23 23:34:57 +01:00
Kohei Yoshida
f8625e8fba
Simplify it a bit.
2011-11-23 15:44:01 -05:00
Kohei Yoshida
ba897375db
Let's throw out-of-bound exception on out-of-bound destination position.
2011-11-23 15:28:36 -05:00
Laurent Godard
2ee55872eb
importSheet from an external provided document
...
define a new interface XSpreadsheets2
clean some String in docuno.cxx while i'm at it.
2011-11-23 15:28:36 -05:00
Stephan Bergmann
5d7964a5c4
-Werror=unused-but-set-variable fix
2011-11-23 18:24:59 +01:00
Noel Power
6151ec073e
add mouse resize (and other bits ) to gsoc formulabar
2011-11-23 16:28:35 +00:00
Jan Holesovsky
039cbb0935
'const_iterator' instead of 'iterator' to fix Windows build.
2011-11-23 14:45:47 +01:00
Caolán McNamara
b7ea361014
add stripStart, can replace EraseTrailingChars
2011-11-23 10:10:09 +00:00
Caolán McNamara
20153742d2
add a stripStart, can replace EraseLeadingChars
2011-11-23 10:10:08 +00:00
Markus Mohrhard
a22ce3e448
ManageNames: only update the range names if we really changed data
2011-11-23 09:01:40 +01:00
Markus Mohrhard
68c591429f
ManageNames: set correct text for multiselection
2011-11-23 09:01:40 +01:00
Markus Mohrhard
6a56210854
ManageNames: disable some elements if table is empty
2011-11-23 09:01:40 +01:00
Markus Mohrhard
717438333e
ManageNames: disable paste buttons if table is empty
2011-11-23 09:01:39 +01:00
Markus Mohrhard
c35bd5f3c4
ManageNames: handle formula errors in Define Names dialog correctly
2011-11-23 08:05:07 +01:00
Markus Mohrhard
ab63c12395
ManageNames: make pasting of multiple names working and fix crash
2011-11-23 06:25:36 +01:00
Markus Mohrhard
e58dfb6210
ManageNames: move some strings to globstr.[sh]rc
2011-11-23 06:25:36 +01:00
Markus Mohrhard
9e8ae1d560
remove ScRangeName::findByName
...
this method was mmisused and is the source for some "bugs"
we don't allow case sensitive storage of range names and therefore it
does not amke sense to search by case sensitive names, use
ScRangeName::findByUpperName instead
Especially the uno implementation did behave wrongly and allowed to
create two names that were identicall for the model
2011-11-23 06:25:36 +01:00
Markus Mohrhard
f3c7c1e4ce
ManageNames: add missing licence headers
2011-11-23 06:25:35 +01:00
Markus Mohrhard
1ca05c9497
ManageNames: remove Add Button and debug output
2011-11-23 06:25:35 +01:00
Markus Mohrhard
6f92d874d4
Manage Names: fix an initialization problem
2011-11-23 06:25:35 +01:00
Markus Mohrhard
648a9a48b6
ManageNames: update range data also if checkboxes are toggled
2011-11-23 06:25:35 +01:00
Markus Mohrhard
7b761d244e
ManageNames: implement ScNameDlg::IsFormulaValid
2011-11-23 06:25:35 +01:00
Markus Mohrhard
100052237a
ManageNames: need to store the strings in variables
2011-11-23 06:25:34 +01:00
Markus Mohrhard
23da9369ae
ManageNames: add RangeOptions button to Define Name dialog
2011-11-23 06:25:34 +01:00
Markus Mohrhard
684b53cfcf
ManageNames: use a more modern looking button for RangeOptions
2011-11-23 06:25:34 +01:00
Markus Mohrhard
c0d8d83b9d
fix out of bounds access in printfunc.cxx
2011-11-23 06:25:34 +01:00
Markus Mohrhard
1d2142fb96
ManageNames: add table to "Paste Names" dialog
2011-11-23 06:25:34 +01:00
Markus Mohrhard
7acefae208
ManageNames: need a virtual destructor here
2011-11-23 06:25:33 +01:00
Markus Mohrhard
332ea906f3
ManageNames: don't change selection after user input
2011-11-23 06:25:33 +01:00
Markus Mohrhard
b1097c4769
ManageNames: add undo to Define Names dialog
2011-11-23 06:25:33 +01:00
Markus Mohrhard
106f128f35
ManageNames: make global undo work again with dialog
2011-11-23 06:25:33 +01:00
Markus Mohrhard
26c86c78c5
ManageNames: make modify button obsolete
2011-11-23 06:25:33 +01:00
Markus Mohrhard
42bb6baae4
ManageNames: make Multiselection work in the table
2011-11-23 06:25:32 +01:00
Markus Mohrhard
b5a509e217
ManageNames: improve layout of ManageNames dialog
2011-11-23 06:25:32 +01:00
Markus Mohrhard
ce26c58c7f
ManageNames: Paste names, initial layout without table
2011-11-23 06:25:32 +01:00
Markus Mohrhard
7f7c90861d
ManageNames: make formula input box work correctly
2011-11-23 06:25:32 +01:00
Markus Mohrhard
b3d22ae4ca
ManageNames: make Define Name dialog work again
2011-11-23 06:25:32 +01:00
Markus Mohrhard
1e6ad2af4b
ManageNames: restructure the code
...
move namepast.cxx to namedlg
namedefdlg is "modeless"(only in technical sense) and needs to be in sc
while namepast is modal and needs to be in scui
move the table implementation to an own file, we can reuse it for
namepast.cxx
2011-11-23 06:25:31 +01:00
Markus Mohrhard
3224ddaf1a
Rename Database Ranges to Database ranges as wished by UX
2011-11-23 06:25:31 +01:00
Markus Mohrhard
411d95598f
Manage Names: add most logic to Define Name dialog
...
missing are:
-undo
-range options
-help
-test for correct expression is not working
2011-11-23 06:25:31 +01:00
Markus Mohrhard
7f8deb4f90
ManageNames: improve AddNames UI, no logic yet
2011-11-23 06:25:31 +01:00
Markus Mohrhard
8fd3c3ac9e
ManageNames: add menu and dialog for Add Name
2011-11-23 06:25:31 +01:00
Markus Mohrhard
668a71065f
ManageNames: clean ScNameDlg even more
2011-11-23 06:25:31 +01:00
Markus Mohrhard
24f63256f4
ManageNames: remove no longer needed undo stack
...
the new concept does not have an dialog local undo stack, instead we use
the global undo stack
2011-11-23 06:25:30 +01:00
Markus Mohrhard
39d15735fb
ManageNames: clean up ui for new concept
2011-11-23 06:25:30 +01:00
Kohei Yoshida
a725d287a2
Unit test for cell function T with external references.
2011-11-22 22:32:05 -05:00
Kohei Yoshida
f7831ed5ca
We should clear the cache of external doc when breaking its linkage.
2011-11-22 21:23:42 -05:00
Kohei Yoshida
e9d5629a52
fdo#40726: Handle external references with cell function T.
2011-11-22 15:52:41 -05:00
Kohei Yoshida
264e503468
fdo#43154: Fixed incorrectly query validation.
...
It was due to a simple mis-placement of an operator. No idea how
the compiler may have parsed that statement...
2011-11-22 14:58:53 -05:00
Kohei Yoshida
799c944cc1
fdo#40304: Check if BOUNDSHEET points to valid BOF record.
...
Some (presumably Russian) 3rd party programs generate invalid xls docs
that have BOUNDSHEET record pointing to invalid BOF record position.
The real BOF position may be before or after the record pointed to by
the BOUNDSHEET.
So, let's check if the BOUNDSHEET points to a valid BOF, and if not,
manually search for one from the BOUNDSHEET record position.
2011-11-22 12:15:24 -05:00
Noel Power
319d8be9da
tweak experimental gsoc multiline input bar, better resizing, enable scroll
2011-11-22 16:24:12 +00:00
Kohei Yoshida
f297224267
i#115255: Skip invalid record(s) where BOF is expected.
...
Some 3rd party (Russian?) programs generate broken xls docs which
cause Calc to hang when it tries to open it. This particular doc
placed invalid record at position indicated by BOUNDSHEET, where BOF
was expected. Let's skip those invalid records.
2011-11-22 01:06:44 -05:00
Kohei Yoshida
0146b05aad
This is wrong. We should allow both boolean and numeric types.
2011-11-22 00:13:07 -05:00
Kohei Yoshida
9bf4bb7880
fdo#40990: Compare the wrapped pointer values.
...
Or else the pTokenMatrixMap would never yield any match. This was
the only reason behind the poor performance of resolving jump matrix
as exhibited in the aforementioned bug...
2011-11-22 00:08:04 -05:00
Jan Holesovsky
7c3a322f19
Include xmlsec component only when we are building with xmlsec.
2011-11-22 00:43:33 +01:00
Kohei Yoshida
d714c17c21
i#117239: Prevent crash on load with pivot table.
...
The crash was due to recursive reference of GETPIVOTDATA within the
source range of the pivot table object referring to itself. The
solution is to disable self reference with GETPIVOTDATA function.
BTW, it goes without saying that, using GETPIVOTDATA inside the source
range of the very pivot table that it references is asking for trouble.
2011-11-21 12:12:37 -05:00
David Tardon
737f61ba4c
Convert Sal to rtl::O(U)String
2011-11-21 09:03:43 +01:00
Jan Holesovsky
840e2f3ef5
Inline ScQueryEntry::Item::Item() to fix Windows build.
2011-11-20 15:15:26 +01:00
Caolán McNamara
ca02d72808
remove [Byte]String::EraseAllChars
2011-11-19 21:11:02 +00:00
Eike Rathke
4b030331f7
add narrow (one letter) month names
...
While introducing Calendar2 and the XCalendar3 interface anyway, as well the
"one letter" narrow month names sometimes needed in calendaring can be added.
These are not always the first capitalized letters of the months in all
locales, and might even not necessarily be just one character.
Introduces a new struct css::i18n::Calendar2 that is not derived from
css::i18n::Calendar because it uses a new struct css::i18n::CalendarItem2 to
hold the NarrowName elements.
In locale data the elements DaysOfMonth, MonthsOfYear and GenitiveMonths now
have an optional element DefaultNarrowName. If not specified, the first
character of DefaultFullName is taken.
LocaleDataWrapper and CalendarWrapper use and return the new Calendar2 and
sequences of CalendarItem2 structs. Application code adapted.
The number formatter now displays narrow month names (genitive if applicable)
for the MMMMM code, previously it displayed the first 16 bit code point of the
full name (not even utf-16 aware).
Narrow day names currently are not used, except in svtools' Calendar control.
2011-11-19 16:15:22 +01:00
Eike Rathke
29e4c61d9d
use new possessive genitive case month names locale data API
2011-11-19 16:15:21 +01:00
Kohei Yoshida
ac4b051e32
Check the empty set state after launching.
...
Sometimes we get empty set especially when all rows are filtered out.
2011-11-18 21:39:49 -05:00
Markus Mohrhard
833567fa69
don't pass uno interface implementation directly
...
Passing the implementation instead of an uno reference may result in
lifetime problems if the passed interface is distroyed while the second
one is still valid
see rhbz#579817 with memcheck
2011-11-19 02:52:38 +01:00
Markus Mohrhard
0cb0952a50
little cleanup in ucalc
2011-11-19 02:52:38 +01:00
Markus Mohrhard
ed398366d5
remove libsqlite from macosx library path again and disable testPassword there
2011-11-19 02:52:38 +01:00
Kohei Yoshida
898c527481
Disable the OK button when no items are selected.
...
When filtering by equality, we need to have at least one value to
compare to, or else bad things may happen.
The pivot table OTOH can handle empty set. So over there, it's okay
to allow no items to be selected.
2011-11-18 16:59:43 -05:00
Markus Mohrhard
b352f5357c
macros_test does not need to inherit from Filters-Test
2011-11-18 22:48:20 +01:00
Markus Mohrhard
67f8ddd3a0
basic component is no longer needed in filters-test
2011-11-18 22:48:13 +01:00
Markus Mohrhard
a66be63469
refactor the new bugFile tests
2011-11-18 22:34:12 +01:00
Markus Mohrhard
fe5f715cad
and another missing component for xls
2011-11-18 22:34:12 +01:00
Markus Mohrhard
21c437d17b
allow testing of bugfiles in sc's filters-test
2011-11-18 22:34:12 +01:00
Markus Mohrhard
5455ffb97e
add component files so that we can import all ods, xls, xlsx in tests
2011-11-18 22:34:12 +01:00
Markus Mohrhard
84de459738
fix crash in dociter.cxx during import
2011-11-18 22:34:12 +01:00
Kohei Yoshida
43cab25e27
Get top10, empty and non-empty special queries to work.
2011-11-18 16:20:24 -05:00
Kohei Yoshida
aaad72db33
Execute launching of standard filter dialog.
2011-11-18 15:51:19 -05:00
Kohei Yoshida
27434041af
We probably don't need to do this for the new popup.
2011-11-18 15:44:18 -05:00
Kohei Yoshida
e2aca79c01
Register modes for non-standard autofiltering options.
2011-11-18 15:40:12 -05:00
Kohei Yoshida
ab5c5c9d80
Fix painting of autofilter buttons.
2011-11-18 15:26:58 -05:00
Kohei Yoshida
de171082fc
Use scoped_ptr instead of auto_ptr; auto_ptr is deprecated.
2011-11-18 14:37:47 -05:00
Kohei Yoshida
e046efdbb5
Removing the switch. Now we use the new autofilter popup for good.
2011-11-18 14:13:25 -05:00
Kohei Yoshida
bf034403ac
String to rtl::OUString.
2011-11-18 14:13:25 -05:00
Kohei Yoshida
e48ea72a2f
A little cleanup.
2011-11-18 14:13:25 -05:00
Kohei Yoshida
c4e782743b
Now we can import OR'ed conditions as single multi-item query.
...
But some restrictions do apply.
2011-11-18 14:13:25 -05:00
Kohei Yoshida
6437ca4293
sal_Bool to bool and other cleanup.
2011-11-18 14:13:24 -05:00
Kohei Yoshida
73ed12a506
We can now append query entry; no need to have this first empty member.
2011-11-18 14:13:24 -05:00
Kohei Yoshida
88c456a0dc
Parse the query data first, then committing the query entries later.
...
This gives us the change to examine the query data and do some
special-casing depending.
2011-11-18 14:13:24 -05:00
Kohei Yoshida
f3083a10f3
Reduce indentation level by early bail out.
2011-11-18 14:13:24 -05:00
Kohei Yoshida
1e428385d2
sal_Bool to bool.
2011-11-18 14:13:24 -05:00
Kohei Yoshida
4f8976be9a
Used constants if possible.
2011-11-18 14:13:23 -05:00
Kohei Yoshida
3c8348017b
Finally load the multi-match conditions properly.
2011-11-18 14:13:23 -05:00
Kohei Yoshida
e85842d3d0
Set the db range to the query param first to calculate absolute column IDs.
...
It's less hacky this way.
2011-11-18 14:13:23 -05:00
Kohei Yoshida
e7e2f7c22a
I need to parse the range up-front.
2011-11-18 14:13:23 -05:00
Kohei Yoshida
dff8c99b01
Populate the query entries directly.
2011-11-18 14:13:22 -05:00
Kohei Yoshida
25ef3f6b47
Pick up more boolean data directly.
2011-11-18 14:13:22 -05:00
Kohei Yoshida
0960ec3e1b
Simplified & clarified the connection logic.
2011-11-18 14:13:22 -05:00
Kohei Yoshida
d540bdccf5
Let's use std::vector instead.
2011-11-18 14:13:22 -05:00
Kohei Yoshida
bbf435963e
Removed pointless inlining of methods.
2011-11-18 14:13:22 -05:00
Kohei Yoshida
1249182e1c
Store case sensitivity flag directly.
2011-11-18 14:13:21 -05:00
Kohei Yoshida
ba92fb9347
Store filter orientation in the query param.
2011-11-18 14:13:21 -05:00
Kohei Yoshida
ff6da5057d
Started working on de-UNO-izing the filter import.
...
The idea is to keep a local ScQueryParam, have the XML parser fill it
as it parses, then commit that to the DB data. Currently, the parser
stores it as UNO filter data, then we convert it to ScQueryParam at the
end. Not very efficient.
2011-11-18 14:13:21 -05:00
Kohei Yoshida
1e39e93af9
Added handler to handle the new <table:filter-set-item> elements.
...
The export is working, while the import part is still in progress.
2011-11-18 14:13:21 -05:00
Kohei Yoshida
825d516672
Replace DeleteQuery with RemoveEntryByField.
...
The latter takes care of iterating through the elements.
2011-11-18 14:13:20 -05:00
Kohei Yoshida
5ca8b63c03
A little cleanup.
2011-11-18 14:13:20 -05:00
Kohei Yoshida
965d933ed9
Remove the query entry when all items are selected.
2011-11-18 14:13:20 -05:00
Kohei Yoshida
e2177c733e
Now the new popup works somewhat as expected.
2011-11-18 14:13:20 -05:00
Kohei Yoshida
6c0242cddd
Unused local var.
2011-11-18 14:13:19 -05:00
Kohei Yoshida
234a3be3cd
This was what was screwing with the multi-item query!
...
Now multi-item matching works properly.
2011-11-18 14:13:19 -05:00
Kohei Yoshida
24568e6292
Handle query after the popup gets dismissed by clicking OK.
...
But it's not working right. :-(
2011-11-18 14:13:19 -05:00
Kohei Yoshida
b42937e81c
Enable the new autofilter popup once again.
2011-11-18 14:13:19 -05:00
Lior Kaplan
538c8cfc3f
Remove double space in strings (looks bad in pootle)
2011-11-17 19:01:11 +01:00
Winfried Donkers
fefa76cf3f
german comments translated to english On branch master Changes to be committed: modified: sc/source/ui/view/cellsh.cxx modified: sc/source/ui/view/cellsh1.cxx modified: sc/source/ui/view/cellsh2.cxx modified: sc/source/ui/view/cellsh4.cxx
2011-11-17 10:03:02 +00:00
Jan Holesovsky
ce8f0a7e72
Removing the last remnants of layout - sorry to see it go :-(
2011-11-17 00:49:48 +01:00
Felix Zhang
38b42cee86
remove obsolete layout code
2011-11-17 00:49:48 +01:00
Kohei Yoshida
9484286af6
Oops I forgot to remove the header include line.
2011-11-16 16:11:32 -05:00
Kohei Yoshida
4db12f8a93
More on reducing header dependency.
2011-11-16 16:07:08 -05:00
Kohei Yoshida
892a9ff618
More on reducing header dependency.
2011-11-16 15:57:53 -05:00
Kohei Yoshida
d37950cb16
This header doesn't need to include queryparam.hxx.
2011-11-16 15:44:09 -05:00
Kohei Yoshida
efab685286
Reduced header dependency on dbdata.hxx by better encapsulation.
2011-11-16 15:37:11 -05:00
Noel Power
6beeefab76
make experimental (calc) input bar update better
...
probably there is a better way to do this ( to eg avoid the 'layout' call ) but right now I don't know what it is and at least this is an improvement
2011-11-16 16:40:13 +00:00
Kohei Yoshida
77fe96d434
Fixed the overlapped UI controls.
2011-11-16 11:01:33 -05:00
Caolán McNamara
abf7cdac13
UniqueIdContainer is only needed by binfilter
2011-11-16 13:24:05 +00:00
Norbert Thiebaud
0ea8c014ef
tweak gbuild standart Makefile to allow partial build in unsourced env
...
This allow to run make in a module wihtout the need to source
Env.Host.sh.
2011-11-16 06:18:54 -06:00
Kohei Yoshida
7d1cfb451b
Unused method.
2011-11-15 21:43:57 -05:00
Kohei Yoshida
d8bb96e543
Let's not use macro for this sort of stuff.
2011-11-15 21:27:29 -05:00
Kohei Yoshida
7ba7cbae11
Cleaned up ScDocShell a bit.
2011-11-15 21:09:53 -05:00
Kohei Yoshida
daf480d623
sal_Bool to bool.
2011-11-15 20:47:32 -05:00
Kohei Yoshida
8f87c3d7d5
Fixed soft re-calc.
2011-11-15 20:39:54 -05:00
Kohei Yoshida
ed950587b4
Fixed hard re-calc. Manual re-calc still not working yet.
2011-11-15 17:28:14 -05:00
Kohei Yoshida
3b1e88a8eb
Reset formula cell's changed flag only for those within visible range.
...
Especially avoid marking all cells in all sheets which would cause a
performance problem.
2011-11-15 16:55:49 -05:00
Kohei Yoshida
5fc37762b6
Reduce scoping.
2011-11-15 16:01:09 -05:00
Kohei Yoshida
87be97a31d
Make these two methods non-inline.
2011-11-15 15:21:03 -05:00
Kohei Yoshida
7ef63de995
Parse it as a single address.
...
We ensure in SetReference() that the reference is always a single
address.
2011-11-15 14:20:11 -05:00
Kohei Yoshida
e3e77167ad
Fixed the ref button for "copy results to" not starting the ref mode.
2011-11-15 13:57:24 -05:00
Kohei Yoshida
20baf7f8c5
Use size_t and remove static_cast'ing.
2011-11-15 12:39:55 -05:00
Kohei Yoshida
6a4fc2cb91
More cleanups.
2011-11-15 12:39:55 -05:00
Kohei Yoshida
92b3d2a903
Use the range parser instead of local string parsing.
2011-11-15 12:39:54 -05:00
Kohei Yoshida
129ff6855e
More cleanups.
2011-11-15 12:39:54 -05:00
Kohei Yoshida
be8d1d48ed
Reduce scoping level by early bailout.
2011-11-15 12:39:54 -05:00
Kohei Yoshida
90f9521ba4
Store header position this way.
2011-11-15 12:39:53 -05:00
Kohei Yoshida
ec3e71d078
Use map and avoid MAXCOLCOUNT-sized array.
2011-11-15 12:39:53 -05:00
Kohei Yoshida
feed4386a6
C-style array to std::vector.
2011-11-15 09:49:25 -05:00
Jan Holesovsky
7776ebfa63
Cleanup few macros and unused headers.
2011-11-15 15:13:00 +01:00
Felix Zhang
d52f57837e
remove obsolete layout macros
2011-11-15 14:39:55 +01:00
Felix Zhang
eacfa0f77c
removing obsolete layout code
2011-11-15 14:39:55 +01:00
Stephan Bergmann
6ed72842cd
Tweaked previous comment translations.
2011-11-15 09:15:47 +01:00
Lionel Elie Mamane
a5b21ebc93
correct comment
2011-11-15 09:09:01 +01:00
Markus Mohrhard
450c49d93f
add sqlite path to library path and enable testPassword
...
plus gb_Helper_extend_ld_path normalization by sbergman@redhat.com
2011-11-15 09:04:37 +01:00
Lionel Elie Mamane
964671497e
tweak comment
2011-11-15 09:03:10 +01:00
w.donkers
3b442f6909
translations of comments from german to english Committer: Winfried Donkers <osc@dci-electronics.nl> On branch master Changes to be committed: modified: sc/source/ui/view/auditsh.cxx modified: sc/source/ui/view/colrowba.cxx modified: sc/source/ui/view/dbfunc.cxx modified: sc/source/ui/view/viewfunc.cxx
2011-11-15 09:01:53 +01:00
Kohei Yoshida
cdef29ce87
String to rtl::OUString.
2011-11-15 02:10:33 -05:00