Back to index

plt-scheme  4.2.1
Public Member Functions | Private Attributes
wxMediaPrintout Class Reference
Collaboration diagram for wxMediaPrintout:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 wxMediaPrintout (Bool fit, Scheme_Object *_begin_doc, Scheme_Object *_has_page, Scheme_Object *_print_page, Scheme_Object *_end_doc)
Bool HasPage (int page)
Bool OnPrintPage (int page)
Bool OnBeginDocument (int startPage, int endPage)
void OnEndDocument ()

Private Attributes

voiddata
Bool fitToPage
Scheme_Objectbegin_doc
Scheme_Objecthas_page
Scheme_Objectprint_page
Scheme_Objectend_doc

Detailed Description

Definition at line 2027 of file wxscheme.cxx.


Constructor & Destructor Documentation

wxMediaPrintout::wxMediaPrintout ( Bool  fit,
Scheme_Object _begin_doc,
Scheme_Object _has_page,
Scheme_Object _print_page,
Scheme_Object _end_doc 
)

Definition at line 2052 of file wxscheme.cxx.

: wxPrintout()
{
  fitToPage = fit;
  begin_doc = _begin_doc;
  has_page = _has_page;
  print_page = _print_page;
  end_doc = _end_doc;
}

Member Function Documentation

Definition at line 2066 of file wxscheme.cxx.

{
  Scheme_Object *v, *a[2];
  basePrinterDC *dc;

  dc = (basePrinterDC*)GetDC();
  a[0] = objscheme_bundle_basePrinterDC(dc);
  a[1] = scheme_make_integer(page);

  v = scheme_apply(has_page, 2, a);

  return SCHEME_TRUEP(v);
}

Here is the call graph for this function:

Bool wxMediaPrintout::OnBeginDocument ( int  startPage,
int  endPage 
)

Definition at line 2095 of file wxscheme.cxx.

{
  if (wxPrintout::OnBeginDocument(startPage, endPage)) {
    basePrinterDC *dc;
    Scheme_Object *a[1];
    dc = (basePrinterDC*)GetDC();
    a[0] = objscheme_bundle_basePrinterDC(dc);
    data = scheme_apply(begin_doc, 1, a);
    return TRUE;
  } else
    return FALSE;
}

Here is the call graph for this function:

Definition at line 2108 of file wxscheme.cxx.

Definition at line 2080 of file wxscheme.cxx.

{
  Scheme_Object *a[2];
  basePrinterDC *dc;

  dc = (basePrinterDC*)GetDC();

  a[0] = objscheme_bundle_basePrinterDC(dc);
  a[1] = scheme_make_integer(page);

  scheme_apply(print_page, 2, a);

  return TRUE;
}

Here is the call graph for this function:


Member Data Documentation

Definition at line 2034 of file wxscheme.cxx.

Definition at line 2030 of file wxscheme.cxx.

Definition at line 2037 of file wxscheme.cxx.

Definition at line 2032 of file wxscheme.cxx.

Definition at line 2035 of file wxscheme.cxx.

Definition at line 2036 of file wxscheme.cxx.


The documentation for this class was generated from the following file: