summaryrefslogtreecommitdiff
path: root/sc/source/ui/view
AgeCommit message (Collapse)Author
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-04Temporarily disabling the new autofilter popup due to a set-back.Kohei Yoshida
Ugh! I need to refactor the query validation code first before working on the new popup. I will 1) temporarily disable the new autofilter popup, 2) merge my changes so far to master, and 3) work on refactoring the query validation code without changing the current functionality, then come back to working on the new popup. Darn...
2011-11-04More on avoiding direct access to pStr, also fixed several memory leaks.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-04Test-run the filter query after pressing OK. It's far from perfect.Kohei Yoshida
2011-11-04Calculate window size and geometries of controls based on menu items.Kohei Yoshida
This makes the popup window more flexible and adjust to a varying number of menu items. This is necessary now that we use this popup in two different places (autofilter and pivot table field popup) with different menu item configurations.
2011-11-04Populate the popup with unique values and the default action items.Kohei Yoshida
2011-11-04Separate the code path and add new method for autofilter popup launch.Kohei Yoshida
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-04update unused listCaolán McNamara
2011-11-02More on sal_Bool to bool (in method signatures).Kohei Yoshida
2011-11-02Prefer boost::scoped_ptr to std::auto_ptr and shared_ptr (if appropriate).Kohei Yoshida
2011-11-02sal_Bool->bool in ScGridWindow. One of them wasn't even used.Kohei Yoshida
2011-10-31update first ScMarkData before setting cursor (fdo#42432)Markus Mohrhard
our ScMarkData instance might be used to set the cursor which will result in a crash if the selected sheet has been deleted already
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-28bnc#726152: Avoid adjusting cell-anchored objects on other sheets.Kohei Yoshida
The old code would incorrectly move anchors from one sheet to another when updating the anchors of an object that was not on current sheet. That can happen e.g. when modifying a cell value which triggers a (cell-anchored) chart object on another sheet to get updated. Interestingly, this issue ended up causing a write error during file save in some situations, and in others silenting removing the affected chart objects on save.
2011-10-18WaE: unsafe mix of type 'bool' and type 'sal_Bool' in operationTor Lillqvist
2011-10-18WaE: unsafe mix of type 'bool' and type 'sal_Bool' in operationTor Lillqvist
2011-10-18WaE: '!=' : unsafe mix of type 'bool' and type 'sal_Bool' in operationTor Lillqvist
2011-10-11#i108468#: clean up xmluconv code duplication, part 1:Michael Stahl
move convertNumber64 from SvXMLUnitConverter to sax::converter. remove duplicate methods from SvXMLUnitConverter: convertBool, convertPercent, convertColor, convertNumber, convertDouble, indexOfComma, encodeBase64, decodeBase64, decodeBase64SomeChars, clearUndefinedChars
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-29add modelinesCaolán McNamara
2011-09-22just silence the auto_ptr deprecations in isolationCaolán McNamara
2011-09-19sal_True to true.Kohei Yoshida
2011-09-19Store previously selected tables in std::set.Kohei Yoshida
2011-09-19A little cleanup.Kohei Yoshida
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-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-12Move ScCheckListMenuWindow and ScMenuFloatingWindow into own files.Kohei Yoshida
2011-09-12Rename: ScDPFieldPopupWindow -> ScCheckListMenuWindow.Kohei Yoshida
2011-09-12Modified GetClipState in ScCellShell to allow multiple dest ranges.Kohei Yoshida
2011-09-12Moved the code that checks destination ranges to ScClipUtil.Kohei Yoshida
2011-09-12Moved PasteFromClipboard() from ScCellShell to ScClipUtil (new class).Kohei Yoshida
2011-09-12Added code to handle paste functions and skip empties.Kohei Yoshida
2011-09-12Allow paste when the dest range is a multiple of the source range.Kohei Yoshida
2011-09-12Now I can pass range list to PostPaint() when appropriate.Kohei Yoshida
2011-09-12Some attempts to remove the 8-param variant of PostPaint().Kohei Yoshida
But there are way too many codes calling that one. Maybe someday...
2011-09-12Pass multi-ranges to the undo object.Kohei Yoshida
2011-09-12ScPateUndo cleaned up.Kohei Yoshida
2011-09-12PostPasteFromClip to work with ScRangeList.Kohei Yoshida
2011-09-12Undo to work.Kohei Yoshida
2011-09-12Got the normal paste to work. Still no undo etc.Kohei Yoshida
2011-09-08sal_Bool to bool.Kohei Yoshida
2011-09-08make ScViewFunc::SetStyleSheetToMarked() work againEike Rathke
2011-09-06merge area does not need to be increased if a shadow is attachedMarkus Mohrhard
2011-08-29More on String to rtl::OUString.Kohei Yoshida
2011-08-29String to rtl::OUString, and I forgot to commit the new headers.Kohei Yoshida
2011-08-29Hide ScDragData and ScClipData from scmod.hxx, clean up ScModule a bit.Kohei Yoshida
2011-08-29tweak for changeCaolán McNamara