Commit Graph

70 Commits

Author SHA1 Message Date
wp_xxyyzz
b6e1a4c495 fpspreadsheet: Fix WorksheetGrid not being able to delete a cell block.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6323 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-04-19 20:30:43 +00:00
wp_xxyyzz
7c9bda8104 fpspreadsheet: Add events OnGetColHeaderText and OnGetRowHeaderText to override the default column and row header captions of the WorksheetGrid.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6302 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-04-12 20:07:34 +00:00
wp_xxyyzz
43d34422ad fpspreadsheet: Fix TsCellIndicator to display only the base of a merged block
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6284 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-04-01 10:55:28 +00:00
wp_xxyyzz
a70231ab75 fpspreadsheet: Make sure that the local variable commentcell_rct in TxCustomWorksheetGrid.InternalDrawRow is initialized (issue #33413, patch by Lagunov Aleksey).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6234 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-03-11 21:06:49 +00:00
wp_xxyyzz
332d8efdd4 fpspreadsheet: Remove forced "Doublebuffered" of WorksheetGrid again, now that grid flickering is fixed in lcl r57338.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6210 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-02-20 23:51:28 +00:00
wp_xxyyzz
b1dfb45d3a fpspreadsheet: Remove code which repaints the entire worksheet grid if the mouse is moved into anohter cell.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6191 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-02-09 10:50:38 +00:00
wp_xxyyzz
4f5e416606 fpspreadsheet: Quick-and-dirty fix for severe flicker of TsWorksheetGrid after Laz trunk r57267
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6186 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-02-08 00:11:58 +00:00
wp_xxyyzz
e9f3b75cf1 fpspreadsheet: New HiDPI palette icons (by Roland Hahn) for TFPSExport and TsWork(book|sheet)ChartSource
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6111 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-01-01 17:37:15 +00:00
wp_xxyyzz
b2ed81ee6e fpspreadsheet: Avoid quoted text when copying a single cell with linebreaks to clipboard.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6070 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-11-14 11:40:04 +00:00
wp_xxyyzz
ea22d330d4 fpspreadsheet: Fix merged ranges sometimes being read incorrectly from ods files.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6032 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-10-04 17:19:53 +00:00
wp_xxyyzz
96ffaaa4d2 fpspreadsheet: Fix crash of db_import_export demo in virtual mode.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5993 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-08-09 22:52:49 +00:00
wp_xxyyzz
fbb376d778 fpspreadsheet: Fix changing of WorksheetGrid column width/row height by dragging with the mouse.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5950 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-06-21 08:29:25 +00:00
wp_xxyyzz
7d59e20f9f fpspreadsheet: Fix crash of visual controls when workbook.RemoveAllWorksheets is called. Visual controls can handle the case of active worksheet = nil.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5937 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-06-14 16:40:36 +00:00
wp_xxyyzz
9be1008351 fpspreadsheet: Fix compilation after odPainted (lcltype.TOwnerDrawStateType) has been renamed in lcl to odBackgroundPainted (laz r55303)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5929 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-06-11 21:51:10 +00:00
wp_xxyyzz
2a1ae05840 fpspreadsheet: Fix memory leak in worksheetgrid (due to FrozenBorderPen)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5919 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-06-07 07:02:10 +00:00
wp_xxyyzz
c823c510e5 fpspreadsheet: Add palette icons with 150% and 200% magnification. Replace the old Excel overlay image with a more neutral spreadsheet overlay (taken from FatCow icon set)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5915 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-06-02 10:01:06 +00:00
wp_xxyyzz
10a0476010 fpspreadsheet: Add cursor for drag-and-drop copy mode. Add script to generate the lrs file for the visual components.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5908 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-05-28 15:25:50 +00:00
wp_xxyyzz
c574ed921a fpspreadsheet: Initial implementation of drag and drop within WorksheetGrid
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5907 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-05-28 10:17:41 +00:00
wp_xxyyzz
505b833416 fpspreadsheet: Fix formatting error of large numbers if grid column width is very narrow (TrimToCell).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5906 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-05-27 17:44:51 +00:00
wp_xxyyzz
685581a8da fpspreadsheet: Fix WorksheetGrid event OnSelectCell not firing any more. Less hints.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5905 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-05-27 16:43:27 +00:00
wp_xxyyzz
89134ba0c5 fpspreadsheetgrid: Fix "Window has no parent" error if worksheetgrid is inside a TFrame (again...). Fix overflow when loading worksheetgrid from lfm if IDE is compiled with range checking on.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5868 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-05-18 23:28:17 +00:00
wp_xxyyzz
61a08b692e fpspreadsheet: Set default value of TsCellEdit.WantReturns to false.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5858 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-05-15 10:48:05 +00:00
wp_xxyyzz
9e06abcd17 fpspreadsheet: Fix incorrect grid column count if aeDefault is not in AutoExpand flags (http://forum.lazarus.freepascal.org/index.php/topic,36770.msg246192.html#msg246192).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5857 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-05-14 21:41:40 +00:00
wp_xxyyzz
bea0ea9d36 fpspreadsheet: Finetune position of selection rectangle in grid.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5856 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-05-13 20:26:44 +00:00
wp_xxyyzz
560dedba1d fpspreadsheet: Replace property FrozenPaneBorderColor by FrozenBorderPen. Adjust location of frozen border line such that full pen width is not clipped.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5855 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-05-13 17:59:17 +00:00
wp_xxyyzz
29481d9382 fpspreadsheet: Improved painting of WorksheetGrid's FocusRect (priority to stay inside the cell).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5854 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-05-13 12:41:03 +00:00
wp_xxyyzz
dbe8c84cd7 fpspreadsheet: Introduce new property FrozenPaneBorderColor of the TsWorksheetGrid
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5853 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-05-13 12:34:30 +00:00
wp_xxyyzz
9a2bef119c fpspreadsheet: Fix interchanged col/row indexes in relation to multiline cell editor.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5852 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-05-13 11:23:08 +00:00
wp_xxyyzz
82e3edbc4b fpspreadsheet: TsWorksheetGrid ignores setting DefaultColWidth and DefaultRowHeight to values < 0.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5850 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-05-13 09:46:34 +00:00
wp_xxyyzz
281b728a74 fpspreadsheet: Add multiline string cell editor, it is activated by property EditorLineMode = elmMultiline
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5849 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-05-12 16:30:22 +00:00
wp_xxyyzz
dc4314db8b fpspreadsheet: Fix grid painting into header cells if fixed columns are used.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5827 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-03-30 12:39:54 +00:00
wp_xxyyzz
fe861e4d49 fpspreadsheet: Fix WorksheetGrid painting issue with merged cells (http://forum.lazarus.freepascal.org/index.php/topic,36276.msg241563/topicseen.html)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5817 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-03-22 22:08:25 +00:00
wp_xxyyzz
b736103903 fpspreadsheet: Make WorksheetGrid respect the spSelectLockedCells and spSelectUnlockedCells flags in the worksheet's Protection set. Like in Excel, TsCellEdit displays an error message box if the user tries to focus it in case of a locked cell.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5815 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-03-20 11:10:02 +00:00
wp_xxyyzz
18965c7740 fpspreadsheet: Further integration of cell and worksheet protection in visual controls.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5813 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-03-19 23:09:01 +00:00
wp_xxyyzz
a9f7b4fc20 fpspreadsheet: Add new cell action TsCellProtectionAction.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5812 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-03-19 12:38:17 +00:00
wp_xxyyzz
203d1907c8 fpspreadsheet: WorksheetGrid and CellEditor respect worksheet and cell protection
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5811 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-03-18 22:43:13 +00:00
wp_xxyyzz
59a38caa22 fpspreadsheet: Fix painting glitches of frozen pane border lines in WorksheetGrid
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5810 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-03-18 22:28:06 +00:00
wp_xxyyzz
932290dee9 fpspreadsheet: Fix WorksheetGrid cell painting in RTL mode being offset by 1 pixel and erasing grid lines
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5809 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-03-18 21:50:51 +00:00
wp_xxyyzz
06d6acfe2b fpspreadsheet: Fix painting bug in grid next to fixed header column.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5808 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-03-18 16:27:44 +00:00
wp_xxyyzz
4dcc147e5b fpspreadsheet: Many improvements in TsWorksheetGrid (painting of borders and images in frozen areas, fixing of clipping bugs, fixing of RTL bugs). Still some issues.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5807 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-03-18 15:19:12 +00:00
wp_xxyyzz
48d87a0caf fpspreadsheet: More efficient clipping in drawing of images on WorksheetGrid
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5802 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-03-08 21:36:13 +00:00
wp_xxyyzz
ea421f483d fpspreadsheet: Fix mis-positioning of images read from ods files in WorksheetGrid
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5801 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-03-08 15:24:00 +00:00
wp_xxyyzz
a5d8446783 fpspreadsheet: Initial version to display embedded images in the WorksheetGrid
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5800 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-03-08 11:50:58 +00:00
wp_xxyyzz
06688f42e1 fpspreadsheet: Fix Excel password hash calculation (patch by shobits1).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5792 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-03-05 23:16:43 +00:00
wp_xxyyzz
16118290c5 fpspreadsheet: Add ods reader for cell, sheet and workbook protection. Simplification in xlsx reader for sheet protection. Remove field HashValue from TsCryptoInfo (it is PasswordHash now)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5791 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-03-05 23:05:03 +00:00
wp_xxyyzz
b04fd3f0b5 fpspreadsheet: Add reading of cell, sheet and workbook protection to biff2 and biff5.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5790 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-03-05 17:29:20 +00:00
wp_xxyyzz
6126788bec fpspreadsheet: Refactor TsCryptoInfo record.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5788 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-03-05 12:25:29 +00:00
wp_xxyyzz
a22f013b21 fpspreadsheet: Display protection items in TsSpreadsheetInspector
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5784 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-03-04 22:40:24 +00:00
wp_xxyyzz
a729c0ee1c fpspreadsheet: Fix grid painting issue in RTL mode (incorrect left border of cliprect in InternalDrawRow)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5777 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-03-02 09:48:31 +00:00
wp_xxyyzz
2a83ad41eb fpspreadsheet: Show info on hidden worksheet in TsSpreadsheetInspector
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5772 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-03-01 17:45:52 +00:00