summaryrefslogtreecommitdiff
path: root/sc/inc
AgeCommit message (Collapse)Author
2011-11-07Encapsulated empty and non-empty filter criteria.Kohei Yoshida
Because those two conditions were not very obvious.
2011-11-07Changed data storage structure in ScQueryEntry.Kohei Yoshida
This required a whole bunch of chnages all over the place.
2011-11-07change String to OUString for aUpperName in ScRangeDataLaurent Godard
improves MatchByUpperName tests avoiding type conversions
2011-11-07callcatcher: update list, drop some newly unused methodsCaolán McNamara
2011-11-07forgot to amend these changes to my last commitMarkus Mohrhard
2011-11-07String->OUString in ScDocument and follow upMarkus Mohrhard
2011-11-07sal_Bool->bool in ScDocumentMarkus Mohrhard
2011-11-06callcatcher: update and remove some more unused methodsCaolán McNamara
2011-11-05make some methods constEike Rathke
2011-11-05Class description.Kohei Yoshida
2011-11-05Removed queryentry.hxx include from lookupcache.hxx header.Kohei Yoshida
For better encapsulation of ScQueryEntry.
2011-11-05Moved ScQueryEntry into its own file set.Kohei Yoshida
Because I'll be modifying this struct in the next few days...
2011-11-04Hide the query strings member, and add relevant methods for it.Kohei Yoshida
2011-11-04Do the simple string equality matching in ScQueryEntry instead.Kohei Yoshida
2011-11-04Extracted complex if conditions into own methods. Much more readable.Kohei Yoshida
2011-11-04Set pStr private and discovered several more direct access to this member.Kohei Yoshida
2011-11-04More on avoiding direct access to pStr, also fixed several memory leaks.Kohei Yoshida
2011-11-04Remove direct access to the query string (pStr).Kohei Yoshida
I'm about half-way through.
2011-11-04Moved ScQueryEntry out of global.?xx to queryparam.?xx.Kohei Yoshida
This is more appropriate.
2011-11-04const correct ness etc & mutable only for lazy-initializing accessor.Kohei Yoshida
2011-11-04Let's not use a hard-coded MAXQUERY all over the place.Kohei Yoshida
For now, the maximum query size is determined by the size of the vector that holds the entries. For now, the size of the vector is fixed, and won't change. We may later work on making it dynamically sized, however...
2011-11-04sal_Bool to bool.Kohei Yoshida
2011-11-04 remove unused methods from ScDocument and ScTableMarkus Mohrhard
2011-11-04Fixed fdo#37083 mis-positioning caused by internal TeX points.Eike Rathke
* Changed Calc's internal definition of points per inch from TeX points (72.27 points per inch) to PostScript points (72 points per inch) as used by the rest of the world (except TeX). * Aligns between internal representation and API that at various places assumed PS points already. * Fixes mis-positioning and bad sizing of drawing layer objects relative to column widths and row heights. * More precise printout of column widths and row heights. * UI dialogs such as Column Width always assumed PS points, so earlier versions actually displayed wrong metric (and imperial) units. * Printouts now are slightly larger due to 0.27 points less in an inch, but more accurate in reflecting the actual UI values, and drawing layer objects' position and size match the row heights and column widths. - Problems with drawing layer objects and zoomed view versus Page Preview versus printout that don't align still persist. - Problems with resized rows and misplaced drawing layer objects are also not magically healed.
2011-11-02calc big file : refactor loading to avoid unecessary testsLaurent Godard
create ScDocument::AppendTabOnLoad do not test if named ranges exist on file load
2011-10-31Revert "Move ScPostIt storage from ScBaseCell->ScDocument"Michael Meeks
This reverts commit 249faa5cb64a7270e852862a26b4a5e3a69a9895.
2011-10-31Move ScPostIt storage from ScBaseCell->ScDocumentKevin Hunter
ScPostIt is the behind-the-scenes name for Notes. This move removes a usually empty pointer for each ScBaseCell to list of pointers within ScDocument. The advantage is basically a reduction in size of 8 bytes per cell. The current sizeof(ScBaseCell) is 16. Here are the highlights: * Remove mpNote from ScBaseCell, and add a std::map (data structure) to ScDocument to store notes and associate with addresses. * Remove ScPostIt accessors and mutators from ScTable, ScColumn, and ScBaseCell * Replace ScPostIt accessors and mutators in ScDocument with ones to handle move of data structure from ScBaseCell to ScDocument * Rename ScPostIt.CloneWithoutNote to ScPostIt.Clone, while completely removing ScPostIt.CloneWithNote. Any cloning of cell notes must now be handled outside external to the ScPostIt class, through ScDocument.*Note() functions. * Rename ScNoteCell to a more ScEmptyCell. I expect this can be completely removed at some point the future, if we can handle broadcasters external to the cell logic. * Add ScDocument and ScTable to ScUsedAreaIterator data structure to accomodate for new placement of ScPostIt objects in ScDocument. * Convert CELLTYPE_NOTE to CELLTYPE_EMPTY (and all ensuing uses). * Wherever possible, respect 80-columns. * New ScDocument based API (individually block-comment documented before their definitions): SC_DLLPUBLIC ScPostIt* GetNote( ScAddress const & ); SC_DLLPUBLIC ScPostIt* GetOrCreateNote( const ScAddress& rPos ); bool SetNote( ScAddress const &, ScPostIt* ); bool MoveNote( ScAddress const & from, ScAddress const & to ); bool SwapNotes( ScAddress const &, ScAddress const & ); ScPostIt* ReleaseNote( ScAddress const & ); void DeleteNote( ScAddress const & ); Of note, TakeNote has been replaced with SetNote, which returns true on success, and false on failure. TakeNote indicated failure by removing the passed note. The SetNote approach leaves room for the caller to attempt to fix the issue, but also means the caller is now on the hook to cleanup the memory. For now, the Calc-internal API is lazy and does not take advantage of this, but merely says "You failed? Oh well, delete the note." ... which is exactly what TakeNote did. This means, the lazy-programmer's idiom for SetNote use is: if ( ! pDoc->SetNote( aAddress, pNotePointer ) ) DELETEZ( pNotePointer );
2011-10-28These can be const pointers.Kohei Yoshida
2011-10-27use uno for local range name api, it crashs otherwise sometimesMarkus Mohrhard
2011-10-26Updated README about orcus.Kohei Yoshida
2011-10-26add uno part for local range namesMarkus Mohrhard
you can now use e.g. thisComponent.sheets(0).namedRanges
2011-10-23remove unused UI stringsAndras Timar
2011-10-21Updated csv parser from the orcus repository.Kohei Yoshida
This change should allow handling double-quation inside quoted cells correctly.
2011-10-19add output for language settings to log fileMarkus Mohrhard
some windows builds crash in this test, maybe they get a false language setting from somewhere
2011-10-18WaE: type name first seen using 'class' now seen using 'struct'Tor Lillqvist
2011-10-06fix for fdo#41381: local range names don't work with INDIRECTMarkus Mohrhard
2011-10-05bnc#722045: Display page background color/image properly.Kohei Yoshida
A regression from 3.3. Calc wouldn't display page background color or image in print preview. This was a side effect of the removal of the high-contract mode. In 3.3, Calc purpusefully wouldn't show background color/image when the app is in high contrast mode. Now that the mode has been removed, the code acted as though the high contract mode is always on, which caused the background color/image to always be hidden in print preview.
2011-09-29fix trunk gcc compile errorsMatúš Kukan
2011-09-29add modelinesCaolán McNamara
2011-09-26add "Manage Names..." entry to Name Box/ScPosWndMarkus Mohrhard
2011-09-24re-factor XPropertyList derivatives to use a rtl::ReferenceMichael Meeks
This cleans up a lot of lifecycle nasties and cleans up some serious cut/paste code duplication issues at the same time. Cleanup the naming of ColorTable -> ColorList to match the impl. too
2011-09-23inital work for new "Manage Names" dialogMarkus Mohrhard
still missing: * change the more button to something more modern * change the position of the range options to the place below the more button * insert/paste button is missing * last inserted item should be selected by default additional future improvements: * filters * search bar
2011-09-22just silence the auto_ptr deprecations in isolationCaolán McNamara
2011-09-20Get DB range import from xlsx to work once again.Kohei Yoshida
We need to map Excel's database ranges (or in Excel's terminology "tables") to named db ranges because they may be referenced in formula expressions. Also, Excel tables are always of the form Table*[] when used in formulas. Skip the "[]" part then the preceding token is a valid database range.
2011-09-20Ensure that only ScDPCollection can remove caches.Kohei Yoshida
Call ScDPCollection::ClearCache() to remove cache during refreshing.
2011-09-19Let's avoid modifying the selection data during search and replace.Kohei Yoshida
The previous code was modifying the selection data (ScMarkData) in a not-so-obvious fashion during the search and/or replace. Let's only modify selection in the view code to avoid surprises. The document model shouldn't be modifying the view model. Those methods that were taking a reference to ScMarkData now take a const reference instead.
2011-09-19Pass as const reference where possible & indent fix.Kohei Yoshida
2011-09-14Check the source range when refreshing, and abort refresh if invalid.Kohei Yoshida
This avoids refreshing on an invalid source range which causes an empty pivot table output.
2011-09-14ScCompiler::IsDBRange compares upper case stringsMarkus Mohrhard
2011-09-13Updated csv_parser from orcus.Kohei Yoshida