Commit Graph

112 Commits

Author SHA1 Message Date
juha
3abc824f69 LazReport: Fix a TfrDesignerPage memory leak. Issue #36918, patch from Michal Gawrycki.
git-svn-id: trunk@62991 -
2020-04-15 19:33:56 +00:00
jesus
0ff93d16af LazReport: snap resizing object(s) to guides.
git-svn-id: trunk@62447 -
2019-12-25 19:04:40 +00:00
jesus
7d87865122 LazReport: Snap to guide while drawing one inserted object.
git-svn-id: trunk@62443 -
2019-12-25 02:46:24 +00:00
jesus
f98cd17789 LazReport: When using helper guides, snap objects while moving them.
git-svn-id: trunk@62442 -
2019-12-24 23:57:48 +00:00
jesus
633d58980c LazReport: Implements Helper aligning guids, WIP.
git-svn-id: trunk@62436 -
2019-12-23 18:45:34 +00:00
jesus
123e8f9f45 LazReport: Update dseigner scrollbars on changing current page, patch by Michal Gawrycki, issue #35882
git-svn-id: trunk@61623 -
2019-07-26 01:12:35 +00:00
juha
d9ac09795b Respect compiler OPT='-v0' by using {$push} and {$pop} in code. Issue #34955.
git-svn-id: trunk@60706 -
2019-03-16 21:17:58 +00:00
jesus
8196338704 LazReport: Patch from Aleksey Lagunov (with changes) Issue #33556
1. In dialog controls fix drawing lrRadioGroup without caption
2. In lr_class fix wrap text on printing
3. In lr_designer fix refresh data nspector

git-svn-id: trunk@57630 -
2018-04-08 22:29:36 +00:00
juha
b2e65128ee Remove redundant "Assigned(X)" when checking "if X is Txxx". Issue #33030, patch from Vojtech Cihak.
git-svn-id: trunk@57099 -
2018-01-15 10:53:48 +00:00
juha
c3e1dc4ad5 Reduce compiler warnings, initialize some uninitialized variables.
git-svn-id: trunk@56869 -
2017-12-29 18:47:51 +00:00
maxim
c6d7c228dd LazReport: Cross-Tab component's i18n by Marcelo B Paula, bug #32883, with
some minor changes; regenerated translations and updated Russian 
translation

git-svn-id: trunk@56856 -
2017-12-27 15:24:36 +00:00
juha
a2ec98b383 Revert r56717 #1939dcdaa7, requires FPC trunk. "LazReport: Fix error on loading detail reports. Issue #32812"
git-svn-id: trunk@56720 -
2017-12-14 14:02:35 +00:00
juha
1939dcdaa7 LazReport: Fix error on loading detail reports. Issue #32812, patch from Lagunov Aleksey.
git-svn-id: trunk@56717 -
2017-12-14 06:58:54 +00:00
juha
a11668995f LazReport: Fix paint ButtonControl, fix reorder designer pages, fix export to PDF. Issue #31941, patch from Lagunov Aleksey.
git-svn-id: trunk@56674 -
2017-12-08 23:35:50 +00:00
jesus
9857b48718 LazReport: fix page margins values, issue #32407
git-svn-id: trunk@55849 -
2017-09-13 04:57:30 +00:00
michl
32b4763c04 Lazreport: change IndexOfTabAt to IndexOfPageAt, to be backward compatible after r53950 #f723ac55cd
git-svn-id: trunk@53951 -
2017-01-15 22:04:27 +00:00
jesus
27eb75ed6b LazReport: preserve selected property in object inspector on seletion change, issue #30392
git-svn-id: trunk@53884 -
2017-01-03 18:45:51 +00:00
jesus
7377deb632 LazReport: In the Designer Save the last used directories for Save/Load reports, issue #28770
git-svn-id: trunk@52723 -
2016-07-20 06:26:10 +00:00
jesus
c66e4799fa LazReport, Remember the last saved file directory if possible, issue #28770
git-svn-id: trunk@52708 -
2016-07-17 22:23:33 +00:00
jesus
5a351b66a9 LazReport: When pasting copied objects using the keyboard shortcut paste them at mouse cursor location if possible.
git-svn-id: trunk@52690 -
2016-07-15 02:47:54 +00:00
jesus
cf63e5c007 LazReport: Fix column width calc, fix issue #30367
git-svn-id: trunk@52677 -
2016-07-12 22:58:15 +00:00
jesus
40dfa665f1 LazReport: patch for pasting copied objects at cursor coordinates instead of at (0,0), by Luiz Americo, issue #29607
git-svn-id: trunk@52675 -
2016-07-12 17:04:44 +00:00
jesus
3852d2bd5e LazReport, enable some object inspector graphic property editors like color, so the object inspector show a color representation and color picker instead of just a number, fix issue #30346
git-svn-id: trunk@52632 -
2016-07-05 20:07:46 +00:00
jesus
df0d616b82 New patch from Aleksey Lagunov:
1. Send to email addons
 - fix work with post client if client locked exported file
2. Internal scrip
 - add mouse cursors const to script engine
 - localize error messages (add russian messages)
 - fix error on parse string values in scrip (now work ' char in string)
3. Report designer
 - in report designer add check code before save script
 - for memo object on master/detail band add popup menu for
   quick select fields from master/detail datasets
   (see option in designer options dialog)

 - fix show scrip editor for dialog page on mouse duble click

4. Crross report
 - add scrip suppert
 - add internal const "CrosViewIsEmpty" 

5. Cleanup code 

git-svn-id: trunk@52504 -
2016-06-14 20:44:19 +00:00
jesus
513a34caf9 LazReport, fix designer gdi leak on deleting objects
git-svn-id: trunk@52448 -
2016-06-06 16:32:35 +00:00
jesus
ea8917f49a LazReport: fix Access Violation on deleting object which has been previously renamed, issue #30206
git-svn-id: trunk@52434 -
2016-06-04 06:44:23 +00:00
jesus
400b4c4719 LazReport: fixes and improvements on spreadsheet exporters, patch from Aleksey Lagunov
1. Improved speed on export 
2. Fix export vertical merged cells
3. Add filter in save reports dialog for export to MS Excel 2007/2010
4. Fix scale factor on export - use hard coded const 
5. Replace array to TfpList for register export filters
6. Add code for disable export filters in run-time
7. In report designer fix FileName property on preview report

git-svn-id: trunk@49728 -
2015-08-30 17:38:01 +00:00
jesus
25c059c099 LazReport Patch from Aleksey Lagunov
1. For dialog controls in designer work UNDO
2. In lrForm StorageEditor list box with props now sorted
3. Fix error in lrSpreadsheetImport - not loaded last col and row
4. increase file format version to 2.9
5. add support for paragraph gap
6. add support for line spacing
7. In report designer add action for UNDO and REDO menu items
8. In designer fix AV on clipborad actions

git-svn-id: trunk@49658 -
2015-08-12 19:28:00 +00:00
juha
06ac76f560 LazUtils, unit FileUtil: Disable conditionally LazUtf8 and LazFileUtils wrapper functions. For testing define NoLazUTF8Wrappers and build Lazarus.
git-svn-id: trunk@49494 -
2015-07-04 23:08:00 +00:00
jesus
f54444c6ae LazReport: Patch from Aleksey Lagunov:
1. fix work with Zeos DB components (lr.zeos.diff)
2. fix export to pdf with cairo export - correctly export justify text (lr.cairo.diff)
3. Increase max bands on page to 255 
4. for MemoView implemebtated First Line indent - ParagraphGap property
5. Rework code for subreports - need for drag page in report designer
6. Rework code for crosstab reports - fix sorting in report
7. In report designer implement page reordering

git-svn-id: trunk@48876 -
2015-04-27 17:50:38 +00:00
juha
708afdf966 Fix uninitialized variables and other problems found by the compiler.
git-svn-id: trunk@48451 -
2015-03-22 10:17:35 +00:00
jesus
e24d5e256c LazReport: Patch from Alexey Lagunov, issue #26855
1. Fix AV on TlrButtonPanel
 2. Implement highlight find text in preview report window
 3. Fix loading TlrCrossView from stream
 4. Fixed speed save changes to the data in the report (after double click on preview report window)

git-svn-id: trunk@46761 -
2014-11-05 17:48:14 +00:00
jesus
e169235dee LazReport, make sure template dir is created if it doesn't exists
git-svn-id: trunk@46692 -
2014-10-28 06:22:37 +00:00
jesus
c70388e6a8 LazReport, invalidate the page instead of just invalidating the 'end' state after undo/redo, fix issue #26698
git-svn-id: trunk@46249 -
2014-09-19 03:33:22 +00:00
jesus
51415f926a LazReport, fix mem leaks
git-svn-id: trunk@46164 -
2014-09-08 21:52:50 +00:00
jesus
8a7aef4759 LazReport, fix List index (-1) out of bounds on undoing pen object inserts, issue #26506
git-svn-id: trunk@46137 -
2014-09-06 05:41:36 +00:00
jesus
e6b5d35159 LazReport, crosstab component and demo + refactoring and fixes, from Alexey Lagunov
git-svn-id: trunk@46125 -
2014-09-04 19:28:33 +00:00
jesus
118cc819c4 LazReport: New big patch from Alexey Lagunov (with small changes)
-------------------------------------------------------
Addfunction / frFuncStr
  - Fixed string functions - accounted for UTF8 strings

DialogControls
  - Fixed reports generation with built-in query mode, MDI (multiple reports open for viewing at the same time)
  - Fixed UNDO in editor
  - Added property HINT for dialog controls
  - A new component - TlrRadioGroup

lrOfficeImport
  - New tool reports designer to import data from a spreadsheet as a report template

source
  - The object TfrMemoView added new handlers
    - OnClick - Event when you click on TfrMemoView in playback mode built reports
    - OnMouseEnter - Event at the Enter of the mouse over TfrMemoView in playback mode built reports
    - OnMouseLeave - Event at the Leave of the mouse TfrMemoView in playback mode built reports

  - The object TfrMemoView added new properties
    - Cursor - the mouse cursor when moving over TfrMemoView in playback mode built reports
    - DetailReport - a reference to the detail-report - called when the user clicks the mouse on TfrMemoView in playback mode built reports

  - A mechanism to detail-report - call a detailed report of the current report
  - In ineterpretatore added new features (for compatibility with FastReport 2.5):
      - FINALPASS
      - CURY
      - PAGEHEIGH
      - PAGEWIDTH
  - In the reports, the editor started saving paramerov editor (the location of the Object Inspector, fonts)
  - In the reports, the editor corrected the addition of new tools (implemented a new tool - Import report template from excel/OpenOffice)
  - Editor of reports finalized Inspector data - now you can also insert variables
  - For export to txt implemented request form export options

images
  - Made in the resources icon tool insert fields in a report from the editor

Demo included (detail_reports)

And new extensions:
- import report template from calc/excel
- send email from report preview (for sending used local mail app, installed on user PC - in windows its TheBat! and Mozilla Thunderbird).
  In future I'm plan make direct send.

git-svn-id: trunk@46079 -
2014-08-28 04:10:20 +00:00
maxim
ed087f691f LazReport: improved localization, regenerated translations, updated Russian translation (bugs #26502, #26503)
git-svn-id: trunk@45969 -
2014-07-24 21:42:09 +00:00
jesus
80015d973f LazReport, new tool: 'Data inspector', to get list of Db Fields and drag & drop into report designer, from Alexey Lagunov
git-svn-id: trunk@44778 -
2014-04-21 18:55:46 +00:00
jesus
95e89c5bda LazReport, make ObjectInspector remember the last edited property on selecting objects, issue #25845
git-svn-id: trunk@44417 -
2014-03-13 08:01:27 +00:00
jesus
5f2c42d8c1 LazReport: Patch from Alexey Lagunov:
1. In frVarible removed unnecessary manipulation of memory with PString
2. To export filters can now be controlled via the function Setup. In the future we plan to implement the export options window for some of
the filters.
3. In a script bug fixed constants for color. Uses all standard colors Lazarus ( previously only 16 colors ).
4. In the script added constants and mrOk mrCancel. You can use the built-in function for MessageBox.
5. The script Fixed bug with setting object properties in the case of several pages in the report.
6. Fixed a bug report from the designer view - did not work identified in the program of event report.

git-svn-id: trunk@44281 -
2014-02-27 17:59:34 +00:00
jesus
d877b82218 LazReport: Patch from Alexey Lagunov
1. Copies collation is done internally
2. Property has been implemented lrMemo.Text
3. Finalized editor of the prepared report
4. Fixed bug when printing TfrPrintGrid after a call to another report designer

git-svn-id: trunk@43775 -
2014-01-20 03:35:56 +00:00
jesus
b1d5a81dfb LazReport: complement of previous patch, from Alexey Lagunov
git-svn-id: trunk@43326 -
2013-10-26 22:23:48 +00:00
jesus
73bde22855 LazReport, some times objects that are hidden by others in upper layer show up because clipping region of moving object enable them, make sure they are visible or not
git-svn-id: trunk@43272 -
2013-10-18 04:56:22 +00:00
jesus
7ac8ef0af4 LazReport, fix selecting the right font after switching of printers, fix icons in font list to show what fonts came from printer
git-svn-id: trunk@43186 -
2013-10-09 05:34:44 +00:00
jesus
6099679fa6 LazReport, implements listing of printer fonts in report designer (windows), issue #11932
git-svn-id: trunk@43185 -
2013-10-09 05:29:04 +00:00
jesus
34c4d51b11 Fixes from Alexey Lagunov:
1. Fix AV on set frPrinGrid.Font property
2. Fix set Visible in script for dialog controls
3. Fix show frDataSet in object inspector after delete it from DialogPage
4. In Object Inspector sort compnent names in combobox
5. Fix string with '''' char

git-svn-id: trunk@43162 -
2013-10-07 17:05:13 +00:00
paul
2ac2c43b45 lazreport: restore resource images from LRS and make a RES file instead
git-svn-id: trunk@43134 -
2013-10-06 14:07:25 +00:00
jesus
53774998ef Patch form Aleksey Lagunov implementing:
1. In frReport added property BeforePrintScript - script executable before generating the report. 
 2. Added to designer "File" menu an editor for the BeforePrintScript property. 
 3. In the example report_url added an example for BeforePrintScript. 
 4. Process LazReport variables in Tags of all TMemoView objects before creating a report.
 

git-svn-id: trunk@40812 -
2013-04-15 04:46:07 +00:00