Commit Graph

63 Commits

Author SHA1 Message Date
Brian Matherly
2f6c5a71fa Improve graphic alignment in OO reports. (Bug 1370498)
svn: r6297
2006-04-10 04:29:29 +00:00
Alex Roitman
d39038c8f9 * various: Revert back to using gettext except for the modules that need context -- those will use TransUtils.sgettext
svn: r6282
2006-04-06 22:02:46 +00:00
Brian Matherly
6769f01be2 Fix image handling problems for reports.
svn: r6269
2006-04-05 04:41:56 +00:00
Brian Matherly
a40779b03f fix const.progName to const.program_name
svn: r6222
2006-03-29 04:51:19 +00:00
Alex Roitman
c064cb8185 * various: Use TransUtils.sgettext instead of gettext.gettext to work out stripping the context.
svn: r6155
2006-03-16 20:24:27 +00:00
Alex Roitman
199a9b7616 * src/Plugins.py, src/PluginMgr.py: Move to ReportUtils.
svn: r6133
2006-03-11 01:12:06 +00:00
Alex Roitman
a3de395e16 Add Mime package
svn: r6047
2006-03-03 00:23:04 +00:00
Alex Roitman
8f6b51ccb2 * various: merge changes made in gramps20 up until R2_0_9 tag.
svn: r5544
2005-12-13 02:07:16 +00:00
Alex Roitman
97cdbe6af4 merge changes from gramps20
svn: r5482
2005-12-06 06:38:09 +00:00
Alex Roitman
fc2b33c116 Merge changes from gramps20 made since 2.0.5
svn: r5105
2005-08-18 05:58:28 +00:00
Alex Roitman
746e10295b * src/docgen/OpenOfficeDoc.py: Typo.
svn: r4047
2005-02-18 05:17:48 +00:00
Alex Roitman
4385ae0b7c * src/ReportUtils.py (born_died_str,married_str): Use NameDisplay
to properly display names; (get_birth_death_strings, child_str,
born_str, died_str, buried_str): Add functions; (draw_legend): Use
correct style for the legend text, using write_at().
* src/docgen/OpenOffice.org (write_at): Accept paragraph style name.
* src/docgen/LPRDoc.org (draw_bar): Properly draw and use color
for the bar; (write_at): Correctly transform coordinates.
* src/plugins/StatisticsChart.py: Replace tabs with spaces.


svn: r4005
2005-01-31 05:31:30 +00:00
Don Allingham
8e813388e5 * src/ReportUtils.py: added estimate_age and sanitize_person
* src/BaseDoc.py: Add checks attempting to add styles after initializing
the document
* src/docgen/OpenOfficeDoc.py: add init assertions
* src/docgen/PSDrawDoc.py: fix line style in boxes
* src/docgen/SvgDrawDoc.py: fix line style in boxes

* src/ReportUtils.py: added documentation


svn: r3942
2005-01-20 04:11:13 +00:00
Alex Roitman
ff42dac0d1 * src/Utils.py (roman, pt2cm, cm2pt): Remove functions.
* src/ReportUtils.py (roman): Add function.
* src/docgen/OpenOfficeDoc.py (pt2cm): Remove function.
* src/docgen/PSDrawDoc.py (pt2cm): Remove function.
* src/plugins/AncestorChart2.py: Use ReportUtils.
* src/plugins/AncestorChart.py: Use ReportUtils.
* src/plugins/DesGraph.py: Use ReportUtils.
* src/plugins/FanChart.py: Use ReportUtils.
* src/plugins/StatisticsChart.py: Use ReportUtils.
* src/plugins/TimeLine.py: Use ReportUtils.


svn: r3937
2005-01-19 04:47:36 +00:00
Don Allingham
414a154e78 update
svn: r3925
2005-01-18 03:15:40 +00:00
Don Allingham
e7569e2671 * src/Plugins.py: move non-gui functions to PluginMgr.py
* src/PluginMgr.py: Non-gui functions for plugins
* src/Makefile.am: Added PluginMgr.py
* various: switch from Plugins to PluginMgr


svn: r3866
2005-01-05 05:02:19 +00:00
Don Allingham
82dcbc45c2 * src/docgen/OpenOfficeDoc.py: fix asian font, file extension
svn: r3679
2004-10-27 03:41:49 +00:00
Don Allingham
939d74f25d * src/docgen/HtmlDoc.py: fix typo
* src/docgen/OpenOfficeDoc.py: don't use temporary files
* src/plugins/PatchNames.py: pychecker fixes
* src/plugins/RelCalc.py: pychecker fixes
* src/plugins/ReorderIds.py: pychecker fixes
* src/plugins/Verify.py: pychecker fixes
* src/plugins/WebPage.py: pychecker fixes
* src/plugins/WriteFtree.py: pychecker fixes
* src/plugins/WriteGeneWeb.py: pychecker fixes


svn: r3674
2004-10-26 03:20:38 +00:00
Don Allingham
1e2d9e6e9f * src/docgen/OpenOfficeDoc.py: incorporated Julio Sanchez's
language patch


svn: r3631
2004-10-14 04:09:38 +00:00
Alex Roitman
f2d5d512d1 * src/docgen/AbiWord2Doc.py, src/docgen/AsciiDoc.py,
src/docgen/HtmlDoc.py, src/docgen/KwordDoc.py,
src/docgen/OpenOfficeDoc.py, src/docgen/PdfDoc.py,
src/docgen/RTFDoc.py: Translate type descriptions; correct print_label.


svn: r3491
2004-08-23 17:30:47 +00:00
Alex Roitman
1ed75ccabe * src/WriteGedcom.py (get_option_box): Make filters inclusive.
* src/plugins/merge.glade: Switch button order to comply with HIG.
* src/mergedata.glade: Switch button order to comply with HIG.
* src/plugins/RelGraph.py (get_default_basename): Add function.
* src/plugins/AncestorReport.py (write_report): Translate
string properly.
* src/EventEdit.py (update_event): Use transtable.
* src/EditPerson.py (on_event_add_clicked, on_edit_birth_clicked,
on_edit_death_clicked, on_event_update_clicked):
Pass TransTable to the event editor.
* src/Marriage.py (on_add_clicked, on_event_update_clicked):
Pass TransTable to the event editor.
* src/plugins/FtmStyleAncestors.py,
src/plugins/FtmStyleDescendants.py:
Remove extra space between vars in "%(.*_place)s %(.*_notes)s"
* src/plugins/verify.glade: Translate button label.
* src/plugins/IndivSummary.py: Proper handling of translation.
* src/docgen/OpenOfficeDoc.py (pt2cm): Add function;
(draw_text): Convert points to cm for the box width;
 Use self.string_width() method.
* src/BaseDoc.py (string_width): Add a method to compute width.
* src/docgen/LPRDoc.py (string_width): Override method.
* src/docgen/PdfDoc.py: Use self.string_width() method.
* src/docgen/SvgDrawDoc.py: Use self.string_width() method.
* src/plugins/AncestorChart2.py: Use self.doc.string_width() method.
* src/plugins/AncestorChart.py: Use self.doc.string_width() method.
* src/plugins/DesGraph.py: Use self.doc.string_width() method.
* src/plugins/FanChart.py: Use self.doc.string_width() method.
* src/plugins/TimeLine.py: Use self.doc.string_width() method.
* src/plugins/eval.glade: HIG compliance.


svn: r3453
2004-08-20 21:26:51 +00:00
Don Allingham
5b81ee5c12 pychecker fixes
svn: r3166
2004-05-13 22:45:51 +00:00
Don Allingham
efd152ac78 * GrampsMime.py: added mime types
* grampslib_wrap.c: removed
* various: more undo functionality


svn: r3074
2004-04-04 04:39:52 +00:00
Don Allingham
2d81ccd542 First DB pass
svn: r2884
2004-02-21 06:11:59 +00:00
Don Allingham
730e6fc24a * src/docgen/AbiWord2Doc.py: pychecker fixes
* src/docgen/HtmlDoc.py: pychecker fixes
* src/docgen/KwordDoc.py: pychecker fixes
* src/docgen/LaTeXDoc.py: pychecker fixes
* src/docgen/OpenOfficeDoc.py: pychecker fixes
* src/docgen/OpenSpreadSheet.py: pychecker fixes
* src/docgen/PSDrawDoc.py: pychecker fixes
* src/docgen/PdfDoc.py: pychecker fixes
* src/docgen/SvgDrawDoc.py: pychecker fixes
* src/plugins/Ancestors.py: pychecker fixes
* src/plugins/BookReport.py: pychecker fixes
* src/plugins/CustomBookText.py: pychecker fixes
* src/plugins/DescendReport.py: pychecker fixes
* src/plugins/DetAncestralReport.py: pychecker fixes
* src/plugins/DetDescendantReport.py: pychecker fixes
* src/plugins/FtmStyleAncestors.py: pychecker fixes
* src/plugins/IndivComplete.py: pychecker fixes
* src/plugins/ReadPkg.py: pychecker fixes
* src/plugins/RelCalc.py: pychecker fixes
* src/plugins/SimpleBookTitle.py: pychecker fixes
* src/plugins/TimeLine.py: pychecker fixes
* src/plugins/WriteCD.py: pychecker fixes
* src/plugins/WriteFtree.py: pychecker fixes
* src/plugins/rel_de.py: pychecker fixes
* src/GenericFilter.py: pychecker fixes
* src/RelLib.py: pychecker fixes
* src/Report.py: pychecker fixes
* src/SelectPerson.py: pychecker fixes
* src/gramps_main.py: pychecker fixes


svn: r2634
2004-01-13 05:05:39 +00:00
Don Allingham
31716c32f0 * src/docgen/OpenOfficeDoc.py: proper handling of center_text
* src/docgen/PdfDoc.py: proper handling of center_text
* src/plugins/TimeLine.py: switch to using center_text instead of draw_text
* src/plugins/AncestorChart2.py: switch to using center_text instead of draw_text


svn: r2623
2004-01-10 18:04:32 +00:00
Don Allingham
91e870629e * src/docgen/OpenOfficeDoc.py: allow disabling of the box shadow
svn: r2621
2004-01-10 02:37:07 +00:00
Don Allingham
02be6b99f1 * src/docgen/PSDrawDoc.py: Scaleable shadow
* src/docgen/OpenOfficeDoc.py: Scaleable shadow
* src/docgen/KwordDoc.py (KwordDoc.close): handle KWord mime type
* src/grampslib_wrap.c: handle NULL pointers


svn: r2614
2004-01-09 03:16:48 +00:00
Don Allingham
e047ea7aba * src/docgen/PdfDoc.py: add the ability to open the document in the
default viewer
* src/docgen/AbiWord2Doc.py: add the ability to open the document in AbiWord
* src/docgen/OpenOfficeDoc.py: fixed the search for default viewer
* src/docgen/RTFDoc.py: add the ability to open the document in the default viewer
* src/docgen/HtmlDoc.py: add the ability to open the document in the default viewer
* src/docgen/KwordDoc.py: add comment


svn: r2575
2004-01-01 18:17:47 +00:00
Don Allingham
29bdaac8cb update
svn: r2522
2003-12-14 23:26:33 +00:00
Don Allingham
91d5a4c7b7 * src/docgen/AbiWordDoc.py: removed the 1.0 version of AbiWord, since
GRAMPS is a GNOME 2 application, support the GNOME 2 version of AbiWord
* src/docgen/OpenOfficeDoc.py: Fixed width fonts for preformatted text
* src/docgen/AbiWord2Doc.py: Fixed width fonts for preformatted text


svn: r2521
2003-12-14 21:45:11 +00:00
Alex Roitman
1fda68c3af * src/docgen/OpenOfficeDoc.py (write_note): Implement function.
svn: r2514
2003-12-13 05:59:35 +00:00
Don Allingham
589bfdb0f8 * src/docgen/OpenOfficeDoc.py (OpenOfficeDoc.close): replace hardcoded
"oowriter" with the command found by querying the mime database with
the open office document type. Different distributions seem to install
OOo with different names (oofice, oowriter, soffice).

* src/EventEdit.py (EventEditor.__init__): add translated name to the
popdown menu list if isn't already there. Prevents a parital match on
other strings
* src/PedView.py: add a '*' to the popup menu if the child has children


svn: r2405
2003-11-30 05:51:24 +00:00
Don Allingham
84b555b087 * src/docgen/AbiWordDoc2.py: make sure that an object is
an image before attempting to include in in a report
* src/docgen/AbiWordDoc.py: make sure that an object is
an image before attempting to include in in a report
* src/docgen/KwordDoc.py: make sure that an object is
an image before attempting to include in in a report
* src/docgen/LaTeXDoc.py: make sure that an object is
an image before attempting to include in in a report
* src/docgen/OpenOfficeDoc.py: make sure that an object is
an image before attempting to include in in a report
* src/docgen/PdfDoc.py: make sure that an object is
an image before attempting to include in in a report
* src/docgen/RTFDoc.py: make sure that an object is
an image before attempting to include in in a report
* src/plugins/Ancestors.py: make sure that an object is
an image before attempting to include in in a report
* src/plugins/DetAncestralReport.py: make sure that an object is
an image before attempting to include in in a report
* src/plugins/DetDescendantReport.py: make sure that an object is
an image before attempting to include in in a report


svn: r2287
2003-10-27 03:48:13 +00:00
Don Allingham
a46cde5e05 * src/docgen/OpenOfficeDoc.py: set z-index properly for paths
so they appear over text, fix font for draw_text


svn: r2136
2003-09-16 03:33:05 +00:00
Don Allingham
efbbbf3823 * src/docgen/SvgDrawDoc.py: use proper init parameters for BaseDoc
* src/docgen/PSDrawDoc.py: use proper init parameters for BaseDoc
* src/docgen/OpenOfficeDoc.py: handle rotation of text better
* src/Report.py: Proper init sequence for BaseDoc derived reports


svn: r2125
2003-09-14 04:50:44 +00:00
Don Allingham
9719ea83ee * src/BaseDoc.py: add init function to BaseDoc to be called after
all graphics formats are defined
* src/docgen/OpenOfficeDoc.py: fix rotate_print and center_print
* src/plugins/AncestorChart.py: support BaseDoc.init
* src/plugins/AncestorReport.py: support BaseDoc.init
* src/plugins/BookReport.py: support BaseDoc.init
* src/plugins/CustomBookText.py: support BaseDoc.init
* src/plugins/DesGraph.py: support BaseDoc.init
* src/plugins/DescendReport.py: support BaseDoc.init
* src/plugins/DetAncestralReport.py: support BaseDoc.init
* src/plugins/DetDescendantReport.py: support BaseDoc.init
* src/plugins/FamilyGroup.py: support BaseDoc.init
* src/plugins/FanChart.py: support BaseDoc.init
* src/plugins/FtmStyleAncestors.py: support BaseDoc.init
* src/plugins/FtmStyleDescendants.py: support BaseDoc.init
* src/plugins/SimpleBookTitle.py: support BaseDoc.init


svn: r2119
2003-09-13 04:56:04 +00:00
Don Allingham
caa78c7f0f * src/docgen/OpenOfficeDoc.py: Fix styles
svn: r2079
2003-09-02 03:28:27 +00:00
Alex Roitman
808eacaa47 Update
svn: r2046
2003-08-26 01:19:41 +00:00
Alex Roitman
7c9ffc6935 * src/docgen/OpenOfficeDoc.py (open): Typos.
svn: r2045
2003-08-25 23:58:01 +00:00
Don Allingham
af665d5a65 * src/BaseDoc.py: support start_page and end_page for backwards
compatibility to older versions
* src/docgen/OpenOfficeDoc.py: support all graphics functionality


svn: r2038
2003-08-25 03:13:52 +00:00
Don Allingham
49fbb18740 * src/BaseDoc.py: New base clase for TextDoc/DrawDoc combination
* src/docgen/OpenOffice.py: Derive from BaseDoc instead of TextDoc


svn: r2033
2003-08-23 21:10:21 +00:00
Don Allingham
b5f75c0a77 switch from intl to gettext
svn: r2017
2003-08-17 02:14:33 +00:00
Tim Waugh
022508637d 2003-08-05 Tim Waugh <twaugh@redhat.com>
* src/Report.py, src/TextDoc.py, src/DrawDoc.py: Adjusted the way
        that 'Print Report' is handled.
        * src/docgen/OpenOfficeDoc.py, src/docgen/PSDrawDoc.py: Likewise.
        * src/plugins/AncestorChart.py: Undo previous change to do with
        printing reports.


svn: r1962
2003-08-05 17:01:47 +00:00
Don Allingham
9307d1e83e * src/docgen/OpenOfficeDoc.py: Header paragraphs have the keep-with-next
property set


svn: r1911
2003-07-21 03:28:14 +00:00
Alex Roitman
2a33c54618 * src/docgen/OpenOfficeDoc.py (_write_styles_file): Switch paragraph
alignment to "start" and "end" (was "left and "right").
* src/plugins/AncestorReport.py: Change prefixed style name ("AHN-").
Needed because HTML gets confised by ":" in the class name.
* src/plugins/Ancestors.py: Likewise ("AR-").
* src/plugins/DescendReport.py: Likewise ("DR-").
* src/plugins/DetAncestralReport.py: Likewise ("DAR-").
* src/plugins/DetDescendantReport.py: Likewise ("DDR-").
* src/plugins/FtmStyleAncestors.py: Likewise ("FTA-").
* src/plugins/FtmStyleDescendants.py: Likewise ("FTD-").
* src/plugins/FamilyGroup.py: Likewise ("FGR-").
* src/plugins/CustomBookText.py: Likewise ("CBT-").
* src/plugins/SimpleBookTitle.py: Likewise ("SBT-").
* src/plugins/IndivSummary.py: Likewise ("IVS-").
* src/plugins/IndivComplete.py: Likewise ("IDS-").


svn: r1903
2003-07-18 13:43:13 +00:00
Don Allingham
deada04e03 * src/DisplayTrace.py: identify more linux versions
* src/gramps_main.py: fix callbacks for reports
* src/plugins/ReorderIds.py: handle integers larger that 32bit
* src/Plugins.py: keep a separate lists for formats that support
the book format
* src/docgen/PdfDoc.py: register as a format supporting books
* src/docgen/OpenOfficeDoc.py: register as a format supporting books
* src/plugins/BookReport.py: Support different lists for books


svn: r1804
2003-06-30 03:12:22 +00:00
Don Allingham
829115ed72 * src/docgen/OpenDrawDoc.py: add support for superscripts
* src/docgen/OpenOfficeDoc.py: add support for superscripts
* src/plugins/Ancestors.py: New Ancestors report added


svn: r1727
2003-06-14 02:18:55 +00:00
Alex Roitman
59567076ce * src/docgen/OpenOfficeDoc.py: Escape special XML characters.
svn: r1720
2003-06-13 15:13:47 +00:00
Alex Roitman
c5c5b9b217 * src/docgen/OpenOfficeDoc.py: Surround images by paragraph tags
when inside the table cell.


svn: r1718
2003-06-13 04:07:13 +00:00