* src/gnome-utils/print-session.[ch]: added gnucash wrappers

around gnome-print's rotate, translate, gsave, and grestore
	  APIs.  All to allow sideways printing (by rotating the image).
	* src/gnome-utils/gw-gnome-utils-spec.scm: wrap the new print-session
	  apis.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/1.8@8344 57a11ea4-9604-0410-9ed3-97b8803252fd
zzzoldreleases/1.8
Derek Atkins 23 years ago
parent 5951aea060
commit ae0b094499

@ -9,6 +9,12 @@
events are suspended. Without such an API, events can be lost
if the event system is suspended when the event comes in.
* src/gnome-utils/print-session.[ch]: added gnucash wrappers
around gnome-print's rotate, translate, gsave, and grestore
APIs. All to allow sideways printing (by rotating the image).
* src/gnome-utils/gw-gnome-utils-spec.scm: wrap the new print-session
apis.
2003-05-18 Derek Atkins <derek@ihtfp.com>
* src/engine/gnc-lot.[ch]: add LOT_IS_CLOSED and LOT_BALANCE

@ -194,6 +194,38 @@
'((<gnc:PrintSession*> p) ((<gw:mchars> caller-owned const) text))
"Show some text in Courier 16")
(gw:wrap-function
ws
'gnc:print-session-rotate
'<gw:void>
"gnc_print_session_rotate"
'((<gnc:PrintSession*> p) (<gw:double> theta_in_degrees))
"Rotate the image by X degrees")
(gw:wrap-function
ws
'gnc:print-session-translate
'<gw:void>
"gnc_print_session_translate"
'((<gnc:PrintSession*> p) (<gw:double> x) (<gw:double> y))
"Translate the image to point x,y")
(gw:wrap-function
ws
'gnc:print-session-gsave
'<gw:void>
"gnc_print_session_gsave"
'((<gnc:PrintSession*> p))
"Save the current print-session state")
(gw:wrap-function
ws
'gnc:print-session-grestore
'<gw:void>
"gnc_print_session_grestore"
'((<gnc:PrintSession*> p))
"Restore the current print-session state")
(gw:wrap-function
ws
'gnc:print-session-done

@ -82,6 +82,29 @@ gnc_print_session_done(PrintSession * ps, gboolean hand_built_pages) {
}
void
gnc_print_session_rotate(PrintSession *ps, double theta_in_degrees)
{
gnome_print_rotate(GNOME_PRINT_CONTEXT(ps->meta), theta_in_degrees);
}
void
gnc_print_session_translate(PrintSession *ps, double x, double y)
{
gnome_print_translate(GNOME_PRINT_CONTEXT(ps->meta), x, y);
}
void
gnc_print_session_gsave(PrintSession *ps)
{
gnome_print_gsave(GNOME_PRINT_CONTEXT(ps->meta));
}
void
gnc_print_session_grestore(PrintSession *ps)
{
gnome_print_grestore(GNOME_PRINT_CONTEXT(ps->meta));
}
void
gnc_print_session_print(PrintSession * ps) {

@ -87,6 +87,12 @@ void gnc_print_session_moveto(PrintSession * ps, double x, double y);
void gnc_print_session_text(PrintSession * ps, const char * text);
void gnc_print_session_done(PrintSession * ps, gboolean);
void gnc_print_session_rotate(PrintSession *ps, double theta_in_degrees);
void gnc_print_session_translate(PrintSession *ps, double x, double y);
void gnc_print_session_gsave(PrintSession *ps);
void gnc_print_session_grestore(PrintSession *ps);
void gnc_print_session_preview(PrintSession * ps);
void gnc_print_session_print(PrintSession * ps);
void gnc_print_session_render(PrintSession * ps);

Loading…
Cancel
Save