<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>gtksourceviewmm: gtksourceview::SourcePrintCompositor Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">gtksourceviewmm  <span id="projectnumber">2.10.3</span> </div> </td> </tr> </tbody> </table> </div> <!-- Generated by Doxygen 1.7.5 --> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="inherits.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><b>gtksourceview</b> </li> <li class="navelem"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html">SourcePrintCompositor</a> </li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> | <a href="#pub-static-methods">Static Public Member Functions</a> | <a href="#related">Related Functions</a> </div> <div class="headertitle"> <div class="title">gtksourceview::SourcePrintCompositor Class Reference</div> </div> </div> <div class="contents"> <!-- doxytag: class="gtksourceview::SourcePrintCompositor" --><!-- doxytag: inherits="Glib::Object" --> <p>Compose a <a class="el" href="classgtksourceview_1_1SourceBuffer.html" title="Buffer object for SourceView.">SourceBuffer</a> for printing. <a href="classgtksourceview_1_1SourcePrintCompositor.html#details">More...</a></p> <p><code>#include <gtksourceviewmm/sourceprintcompositor.h></code></p> <div class="dynheader"> Inheritance diagram for gtksourceview::SourcePrintCompositor:</div> <div class="dyncontent"> <div class="center"><img src="classgtksourceview_1_1SourcePrintCompositor__inherit__graph.png" border="0" usemap="#gtksourceview_1_1SourcePrintCompositor_inherit__map" alt="Inheritance graph"/></div> <map name="gtksourceview_1_1SourcePrintCompositor_inherit__map" id="gtksourceview_1_1SourcePrintCompositor_inherit__map"> <area shape="rect" id="node2" href="../../../glibmm-2.4/reference/html/classGlib_1_1Object.html" title="Glib::Object" alt="" coords="91,155,185,181"/><area shape="rect" id="node4" href="../../../glibmm-2.4/reference/html/classGlib_1_1ObjectBase.html" title="Glib::ObjectBase" alt="" coords="75,80,201,107"/><area shape="rect" id="node6" href="../../../libsigc++-2.0/reference/html/structsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="81,5,196,32"/></map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <p><a href="classgtksourceview_1_1SourcePrintCompositor-members.html">List of all members.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a64435cdac3c60775b7d8dca22cf22617"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::gobj" ref="a64435cdac3c60775b7d8dca22cf22617" args="()" --> GtkSourcePrintCompositor* </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#a64435cdac3c60775b7d8dca22cf22617">gobj</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GObject. <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a338421c69c1f5618385128d933797f30"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::gobj" ref="a338421c69c1f5618385128d933797f30" args="() const " --> const GtkSourcePrintCompositor* </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#a338421c69c1f5618385128d933797f30">gobj</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GObject. <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abc824595f8fb25c587eb02acad72456d"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::gobj_copy" ref="abc824595f8fb25c587eb02acad72456d" args="()" --> GtkSourcePrintCompositor* </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#abc824595f8fb25c587eb02acad72456d">gobj_copy</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classgtksourceview_1_1SourceBuffer.html">SourceBuffer</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#aae4650126c17fa4ba8a9834b69af6a99">get_buffer</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the <a class="el" href="classgtksourceview_1_1SourceBuffer.html" title="Buffer object for SourceView.">SourceBuffer</a> associated with the compositor. <a href="#aae4650126c17fa4ba8a9834b69af6a99"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< const <a class="el" href="classgtksourceview_1_1SourceBuffer.html">SourceBuffer</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#a91aa0c9408c4d8a418dc78bf9bb3db9c">get_buffer</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the <a class="el" href="classgtksourceview_1_1SourceBuffer.html" title="Buffer object for SourceView.">SourceBuffer</a> associated with the compositor. <a href="#a91aa0c9408c4d8a418dc78bf9bb3db9c"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#a79106e0d8d8b77e34fd7e0e8901b879a">set_tab_width</a> (guint width)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the width of tabulation in characters for printed text. <a href="#a79106e0d8d8b77e34fd7e0e8901b879a"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">guint </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#a4ed7edaf7d91640bd7e58e68c41b1b27">get_tab_width</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the width of tabulation in characters for printed text. <a href="#a4ed7edaf7d91640bd7e58e68c41b1b27"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#af71953da457affde74e1b64d2653e26d">set_wrap_mode</a> (<a class="elRef" href="../../../gtkmm-2.4/reference/html/group__gtkmmEnums.html#gad4b21987a45f87bbdae74d63d92e543b">Gtk::WrapMode</a> wrap_mode)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the line wrapping mode for the printed text. <a href="#af71953da457affde74e1b64d2653e26d"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../gtkmm-2.4/reference/html/group__gtkmmEnums.html#gad4b21987a45f87bbdae74d63d92e543b">Gtk::WrapMode</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#a6eb6b0733f3f7960c5c5df7dc1882f62">get_wrap_mode</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the line wrapping mode for the printed text. <a href="#a6eb6b0733f3f7960c5c5df7dc1882f62"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#aac01776a388d5e305969b99f43937e51">set_highlight_syntax</a> (bool highlight=true)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Sets whether the printed text will be highlighted according to the buffer rules. <a href="#aac01776a388d5e305969b99f43937e51"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#ac0916dc4345fd99e74a2856419c63345">get_highlight_syntax</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Determines whether the printed text will be highlighted according to the buffer rules. <a href="#ac0916dc4345fd99e74a2856419c63345"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#a0cf6950e05b75019628b08929fa1f2c3">set_print_line_numbers</a> (guint interval=1)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the interval for printed line numbers. <a href="#a0cf6950e05b75019628b08929fa1f2c3"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">guint </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#ac7f0ed5c595554e642365f2124445c4f">get_print_line_numbers</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the interval used for line number printing. <a href="#ac7f0ed5c595554e642365f2124445c4f"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#a07e26db6d4f2cfe9ec33b3fe1c12ef93">set_body_font_name</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& font_name)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the default font for the printed text. <a href="#a07e26db6d4f2cfe9ec33b3fe1c12ef93"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#ade19724025ddddab7cb6c0aa6050a734">get_body_font_name</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the name of the font used to print the text body. <a href="#ade19724025ddddab7cb6c0aa6050a734"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#a954a0c4ed08b38ba562f3a882c42700a">set_line_numbers_font_name</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& font_name)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the font for printing line numbers on the left margin. <a href="#a954a0c4ed08b38ba562f3a882c42700a"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#ae5b61f99bc0903c7a3e531741ef83714">set_default_line_numbers_font_name</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the default font for printing line numbers on the left margin. <a href="#ae5b61f99bc0903c7a3e531741ef83714"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#a0d6022ceca35e959f1b735330add484f">get_line_numbers_font_name</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the name of the font used to print line numbers on the left margin. <a href="#a0d6022ceca35e959f1b735330add484f"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#a768cab4282e82b9bf5ba3a32eb5a8037">set_header_font_name</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& font_name)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the font for printing the page header. <a href="#a768cab4282e82b9bf5ba3a32eb5a8037"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#a65c8ccf25d8c944454bd7187b8e66178">set_default_header_font_name</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the default font for printing the page header. <a href="#a65c8ccf25d8c944454bd7187b8e66178"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#ae95e7299cde9b84be05d5d6428305b7f">get_header_font_name</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the name of the font used to print the page header. <a href="#ae95e7299cde9b84be05d5d6428305b7f"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#a035f86be25a271c8b1e2e4389c64ef47">set_footer_font_name</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& font_name)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the font for printing the page footer. <a href="#a035f86be25a271c8b1e2e4389c64ef47"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#a9c1f62fd959b75e18d98a440954e8876">set_default_footer_font_name</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the default font for printing the page footer. <a href="#a9c1f62fd959b75e18d98a440954e8876"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#a109d615e62ee0effd0a4cb199f408131">get_footer_font_name</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the name of the font used to print the page footer. <a href="#a109d615e62ee0effd0a4cb199f408131"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#a6da589ed84f46381a36f4543c7c96bd3">set_top_margin</a> (double margin, <a class="elRef" href="../../../gtkmm-2.4/reference/html/group__gtkmmEnums.html#ga9cdd3adb4017a5c706e205aa914ba6fb">Gtk::Unit</a> unit)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the top margin used by <em>compositor</em>. <a href="#a6da589ed84f46381a36f4543c7c96bd3"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#ad7eab7986a2a2e62a6971bf4379fb5cd">get_top_margin</a> (<a class="elRef" href="../../../gtkmm-2.4/reference/html/group__gtkmmEnums.html#ga9cdd3adb4017a5c706e205aa914ba6fb">Gtk::Unit</a> unit) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the top margin in units of <em>unit</em>. <a href="#ad7eab7986a2a2e62a6971bf4379fb5cd"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#a03c09bb7c0e3d3c23bab27344fbd072b">set_bottom_margin</a> (double margin, <a class="elRef" href="../../../gtkmm-2.4/reference/html/group__gtkmmEnums.html#ga9cdd3adb4017a5c706e205aa914ba6fb">Gtk::Unit</a> unit)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the bottom margin used by <em>compositor</em>. <a href="#a03c09bb7c0e3d3c23bab27344fbd072b"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#a38108b2a95a6a57a78c5f32b9e26acee">get_bottom_margin</a> (<a class="elRef" href="../../../gtkmm-2.4/reference/html/group__gtkmmEnums.html#ga9cdd3adb4017a5c706e205aa914ba6fb">Gtk::Unit</a> unit) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the bottom margin in units of <em>unit</em>. <a href="#a38108b2a95a6a57a78c5f32b9e26acee"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#a9129a077975fcb9b83b49b51c9bcd30f">set_left_margin</a> (double margin, <a class="elRef" href="../../../gtkmm-2.4/reference/html/group__gtkmmEnums.html#ga9cdd3adb4017a5c706e205aa914ba6fb">Gtk::Unit</a> unit)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the left margin used by <em>compositor</em>. <a href="#a9129a077975fcb9b83b49b51c9bcd30f"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#af9d3f072d619785d48818704547813bd">get_left_margin</a> (<a class="elRef" href="../../../gtkmm-2.4/reference/html/group__gtkmmEnums.html#ga9cdd3adb4017a5c706e205aa914ba6fb">Gtk::Unit</a> unit) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the left margin in units of <em>unit</em>. <a href="#af9d3f072d619785d48818704547813bd"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#a6a77ab6abf63523bb7b4988917ed6a25">set_right_margin</a> (double margin, <a class="elRef" href="../../../gtkmm-2.4/reference/html/group__gtkmmEnums.html#ga9cdd3adb4017a5c706e205aa914ba6fb">Gtk::Unit</a> unit)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the right margin used by <em>compositor</em>. <a href="#a6a77ab6abf63523bb7b4988917ed6a25"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#aed4f906eb4fd3bff4a04a775a7be6d46">get_right_margin</a> (<a class="elRef" href="../../../gtkmm-2.4/reference/html/group__gtkmmEnums.html#ga9cdd3adb4017a5c706e205aa914ba6fb">Gtk::Unit</a> unit) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the right margin in units of <em>unit</em>. <a href="#aed4f906eb4fd3bff4a04a775a7be6d46"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#a7883cab357d040446d0aa8c24de1347f">set_print_header</a> (bool print=true)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Sets whether you want to print a header in each page. <a href="#a7883cab357d040446d0aa8c24de1347f"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#ac81335620e5beb6fb2d05b1b6f51ce3f">get_print_header</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Determines if a header is set to be printed for each page. <a href="#ac81335620e5beb6fb2d05b1b6f51ce3f"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#a3c2a72397ca805264385bc109444a0d6">set_print_footer</a> (bool print=true)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Sets whether you want to print a footer in each page. <a href="#a3c2a72397ca805264385bc109444a0d6"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#ae55b39ff7a76268da78136b03daf9266">get_print_footer</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Determines if a footer is set to be printed for each page. <a href="#ae55b39ff7a76268da78136b03daf9266"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#ac6ea465fabf373f3a749d54bb73b5156">set_header_format</a> (bool separator, const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&<a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01566.html#a96d1c2cab30f14f4e34ccb460f1ad1c9">left</a>, const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& center, const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&<a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01566.html#a1a23b13efe06ee9b3cd9324af25ab538">right</a>)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Sets strftime like header format strings, to be printed on the left, center and right of the top of each page. <a href="#ac6ea465fabf373f3a749d54bb73b5156"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#abb64a075544dced85ae8294b01c5cb8a">set_footer_format</a> (bool separator, const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&<a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01566.html#a96d1c2cab30f14f4e34ccb460f1ad1c9">left</a>, const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& center, const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&<a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01566.html#a1a23b13efe06ee9b3cd9324af25ab538">right</a>)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Sets strftime like footer format strings, to be printed on the left, center and right of the top of each page. <a href="#abb64a075544dced85ae8294b01c5cb8a"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#a435ff528fdb384c0827848edf8029b56">get_n_pages</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the number of pages in the document or <code>-1</code> if the document has not been completely paginated. <a href="#a435ff528fdb384c0827848edf8029b56"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#acd043fdaa35237de4ab91409cf34c919">paginate</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="elRef" href="../../../gtkmm-2.4/reference/html/classGtk_1_1PrintContext.html">Gtk::PrintContext</a> >& context)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Paginate the document associated with the <em>compositor</em>. <a href="#acd043fdaa35237de4ab91409cf34c919"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#a681a150770f1dab212b30a05362f8738">get_pagination_process</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Return value: a fraction from 0.0 to 1.0 inclusive. <a href="#a681a150770f1dab212b30a05362f8738"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#af5edbb7720d0ecffdb54a5ddd57cb19e">draw_page</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="elRef" href="../../../gtkmm-2.4/reference/html/classGtk_1_1PrintContext.html">Gtk::PrintContext</a> >& context, int page_nr)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Draw page <em>page_nr</em> for printing on the the Cairo context encapsuled in <em>context</em>. <a href="#af5edbb7720d0ecffdb54a5ddd57cb19e"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><br class="typebreak"/> < <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#a53a07d43ee491cbd41458defe0d6b192">property_body_font_name</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Name of the font to use for the text body (e.g. <a href="#a53a07d43ee491cbd41458defe0d6b192"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><br class="typebreak"/> < <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#aa5a13e3ee7747193e993ef727cdd8250">property_body_font_name</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Name of the font to use for the text body (e.g. <a href="#aa5a13e3ee7747193e993ef727cdd8250"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><br class="typebreak"/> < <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classgtksourceview_1_1SourceBuffer.html">SourceBuffer</a> > > </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#ae8255607478fdb6c598f8f1bc9c22693">property_buffer</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">The GtkSourceBuffer object to print. <a href="#ae8255607478fdb6c598f8f1bc9c22693"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><br class="typebreak"/> < <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#a791c36e4089770dc74e088ce1ad46ffa">property_footer_font_name</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Name of the font to use for the page footer (e.g. <a href="#a791c36e4089770dc74e088ce1ad46ffa"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><br class="typebreak"/> < <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#a3519880ac5db53d63d055560fe908e17">property_footer_font_name</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Name of the font to use for the page footer (e.g. <a href="#a3519880ac5db53d63d055560fe908e17"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><br class="typebreak"/> < <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#af1395a7340c0c884dcdc74f3d8522c54">property_header_font_name</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Name of the font to use for the page header (e.g. <a href="#af1395a7340c0c884dcdc74f3d8522c54"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><br class="typebreak"/> < <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#acb0f0138a0c31c54075b5368923b484f">property_header_font_name</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Name of the font to use for the page header (e.g. <a href="#acb0f0138a0c31c54075b5368923b484f"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a>< bool > </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#a72f03f1623d2bfdeeb6f8fb473466dc5">property_highlight_syntax</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Whether to print the document with highlighted syntax. <a href="#a72f03f1623d2bfdeeb6f8fb473466dc5"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><br class="typebreak"/> < bool > </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#aa369ec495d8876546a7b6fe46d4ee6ef">property_highlight_syntax</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Whether to print the document with highlighted syntax. <a href="#aa369ec495d8876546a7b6fe46d4ee6ef"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><br class="typebreak"/> < <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#a5653855889d3779a80f59e242db10320">property_line_numbers_font_name</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Name of the font to use for the line numbers (e.g. <a href="#a5653855889d3779a80f59e242db10320"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><br class="typebreak"/> < <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#a56dda572adb66b390f9b401af4d72338">property_line_numbers_font_name</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Name of the font to use for the line numbers (e.g. <a href="#a56dda572adb66b390f9b401af4d72338"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a>< int > </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#aaf91849632c3fb0007fdad6211a14708">property_n_pages</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">The number of pages in the document (-1 means the document has not been completely paginated). <a href="#aaf91849632c3fb0007fdad6211a14708"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a>< bool > </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#a26cc625a74b6dde117d6a521c02e68fe">property_print_footer</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Whether to print a footer in each page. <a href="#a26cc625a74b6dde117d6a521c02e68fe"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><br class="typebreak"/> < bool > </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#ae25c8813eabe9351fdedf2b2a7414711">property_print_footer</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Whether to print a footer in each page. <a href="#ae25c8813eabe9351fdedf2b2a7414711"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a>< bool > </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#a7146939b13c838acf0c7536fbe60cdb1">property_print_header</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Whether to print a header in each page. <a href="#a7146939b13c838acf0c7536fbe60cdb1"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><br class="typebreak"/> < bool > </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#a6cec1df1f439d4af5e6b6d0475b08a7b">property_print_header</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Whether to print a header in each page. <a href="#a6cec1df1f439d4af5e6b6d0475b08a7b"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a>< guint > </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#ab73ffeea59ded86a79d4b791fdd6bd44">property_print_line_numbers</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Interval of printed line numbers (0 means no numbers). <a href="#ab73ffeea59ded86a79d4b791fdd6bd44"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><br class="typebreak"/> < guint > </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#a6f8e7d6ab05821d070a7f2d8754264f9">property_print_line_numbers</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Interval of printed line numbers (0 means no numbers). <a href="#a6f8e7d6ab05821d070a7f2d8754264f9"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a>< guint > </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#a76cc0034ef074b16c3183a03bf373c3b">property_tab_width</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Width of a tab character expressed in spaces. <a href="#a76cc0034ef074b16c3183a03bf373c3b"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><br class="typebreak"/> < guint > </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#a7caa6cbce612557fd309daa694c73b06">property_tab_width</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Width of a tab character expressed in spaces. <a href="#a7caa6cbce612557fd309daa694c73b06"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><br class="typebreak"/> < <a class="elRef" href="../../../gtkmm-2.4/reference/html/group__gtkmmEnums.html#gad4b21987a45f87bbdae74d63d92e543b">Gtk::WrapMode</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#aa708821a846f6b3996f14485a7288792">property_wrap_mode</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Whether to wrap lines never, at word boundaries, or at character boundaries. <a href="#aa708821a846f6b3996f14485a7288792"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><br class="typebreak"/> < <a class="elRef" href="../../../gtkmm-2.4/reference/html/group__gtkmmEnums.html#gad4b21987a45f87bbdae74d63d92e543b">Gtk::WrapMode</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#a8bcef6bc996ec236e4b5aed56f487941">property_wrap_mode</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Whether to wrap lines never, at word boundaries, or at character boundaries. <a href="#a8bcef6bc996ec236e4b5aed56f487941"></a><br/></td></tr> <tr><td colspan="2"><h2><a name="pub-static-methods"></a> Static Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><br class="typebreak"/> < <a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html">SourcePrintCompositor</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#a778a281d3f9ed36cb04d57a00ec47576">create</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classgtksourceview_1_1SourceBuffer.html">SourceBuffer</a> >& buffer)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a new print compositor that can be used to print <em>buffer</em>. <a href="#a778a281d3f9ed36cb04d57a00ec47576"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><br class="typebreak"/> < <a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html">SourcePrintCompositor</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#a93c9a6f8e90a68ea0984708cfbba1345">create</a> (const <a class="el" href="classgtksourceview_1_1SourceView.html">SourceView</a>& view)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a new print compositor that can be used to print the buffer associated with <em>view</em>. <a href="#a93c9a6f8e90a68ea0984708cfbba1345"></a><br/></td></tr> <tr><td colspan="2"><h2><a name="related"></a> Related Functions</h2></td></tr> <tr><td class="ititle" colspan="2"><p>(Note that these are not member functions.) </p> </td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><br class="typebreak"/> < <a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html">gtksourceview::SourcePrintCompositor</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#a8cbfdfdceca330ae0fcfc00d44974ae0">wrap</a> (GtkSourcePrintCompositor* object, bool take_copy=false)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">A <a class="elRef" href="../../../glibmm-2.4/reference/html/namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. <a href="#a8cbfdfdceca330ae0fcfc00d44974ae0"></a><br/></td></tr> </table> <hr/><a name="details" id="details"></a><h2>Detailed Description</h2> <div class="textblock"><p>Compose a <a class="el" href="classgtksourceview_1_1SourceBuffer.html" title="Buffer object for SourceView.">SourceBuffer</a> for printing. </p> <dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000100">Since gtksourceviewmm 2.10:</a></b></dt><dd></dd></dl> </div><hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a778a281d3f9ed36cb04d57a00ec47576"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::create" ref="a778a281d3f9ed36cb04d57a00ec47576" args="(const Glib::RefPtr< SourceBuffer > &buffer)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html">SourcePrintCompositor</a>> gtksourceview::SourcePrintCompositor::create </td> <td>(</td> <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classgtksourceview_1_1SourceBuffer.html">SourceBuffer</a> >& </td> <td class="paramname"><em>buffer</em></td><td>)</td> <td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Creates a new print compositor that can be used to print <em>buffer</em>. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">buffer</td><td>the <a class="el" href="classgtksourceview_1_1SourceBuffer.html" title="Buffer object for SourceView.">SourceBuffer</a> to print.</td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>a new print compositor object.</dd></dl> <dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000101">Since gtksourceviewmm 2.10:</a></b></dt><dd></dd></dl> </div> </div> <a class="anchor" id="a93c9a6f8e90a68ea0984708cfbba1345"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::create" ref="a93c9a6f8e90a68ea0984708cfbba1345" args="(const SourceView &view)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html">SourcePrintCompositor</a>> gtksourceview::SourcePrintCompositor::create </td> <td>(</td> <td class="paramtype">const <a class="el" href="classgtksourceview_1_1SourceView.html">SourceView</a>& </td> <td class="paramname"><em>view</em></td><td>)</td> <td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Creates a new print compositor that can be used to print the buffer associated with <em>view</em>. </p> <p>This constructor sets some configuration properties to make the printed output match <em>view</em> as much as possible. The properties set are <a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#a76cc0034ef074b16c3183a03bf373c3b" title="Width of a tab character expressed in spaces.">SourcePrintCompositor::property_tab_width()</a>, <a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#a72f03f1623d2bfdeeb6f8fb473466dc5" title="Whether to print the document with highlighted syntax.">SourcePrintCompositor::property_highlight_syntax()</a>, <a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#aa708821a846f6b3996f14485a7288792" title="Whether to wrap lines never, at word boundaries, or at character boundaries.">SourcePrintCompositor::property_wrap_mode()</a>, <a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#a53a07d43ee491cbd41458defe0d6b192" title="Name of the font to use for the text body (e.g.">SourcePrintCompositor::property_body_font_name()</a> and <a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#ab73ffeea59ded86a79d4b791fdd6bd44" title="Interval of printed line numbers (0 means no numbers).">SourcePrintCompositor::property_print_line_numbers()</a>.</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">view</td><td>A <a class="el" href="classgtksourceview_1_1SourceView.html" title="The view object.">SourceView</a> to get configuration from.</td></tr> </table> </dd> </dl> <p>Return value: a new print compositor object.</p> <dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000102">Since gtksourceviewmm 2.10:</a></b></dt><dd></dd></dl> </div> </div> <a class="anchor" id="af5edbb7720d0ecffdb54a5ddd57cb19e"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::draw_page" ref="af5edbb7720d0ecffdb54a5ddd57cb19e" args="(const Glib::RefPtr< Gtk::PrintContext > &context, int page_nr)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void gtksourceview::SourcePrintCompositor::draw_page </td> <td>(</td> <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="elRef" href="../../../gtkmm-2.4/reference/html/classGtk_1_1PrintContext.html">Gtk::PrintContext</a> > & </td> <td class="paramname"><em>context</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>page_nr</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Draw page <em>page_nr</em> for printing on the the Cairo context encapsuled in <em>context</em>. </p> <p>This method has been designed to be called in the handler of the Gtk::PrintOperation::draw_page signal as shown in the following example:</p> <div class="fragment"><pre class="fragment"> <span class="comment">// Signal handler for the Gtk::PrintOperation::draw_page signal.</span> <span class="comment">// Extended with sigc::bind().</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classgtksourceview_1_1SourcePrintCompositor.html#af5edbb7720d0ecffdb54a5ddd57cb19e" title="Draw page page_nr for printing on the the Cairo context encapsuled in context.">draw_page</a> (<a class="codeRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr< Gtk::PrintOperation ></a> operation, <a class="codeRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr< GtkPrintContext ></a> context, <span class="keywordtype">int</span> page_nr, <a class="codeRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr< gtksourceview::SourcePrintCompositor ></a> compositor) { compositor->draw_page(context, page_nr); } </pre></div><dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">context</td><td>The <a class="elRef" href="../../../gtkmm-2.4/reference/html/classGtk_1_1PrintContext.html">Gtk::PrintContext</a> encapsulating the context information that is required when drawing the page for printing. </td></tr> <tr><td class="paramname">page_nr</td><td>The number of the page to print.</td></tr> </table> </dd> </dl> <p>newin{2,10} </p> </div> </div> <a class="anchor" id="ade19724025ddddab7cb6c0aa6050a734"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::get_body_font_name" ref="ade19724025ddddab7cb6c0aa6050a734" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> gtksourceview::SourcePrintCompositor::get_body_font_name </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Returns the name of the font used to print the text body. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A string containing the name of the font used to print the text body.</dd></dl> <dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000114">Since gtksourceviewmm 2.10:</a></b></dt><dd></dd></dl> </div> </div> <a class="anchor" id="a38108b2a95a6a57a78c5f32b9e26acee"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::get_bottom_margin" ref="a38108b2a95a6a57a78c5f32b9e26acee" args="(Gtk::Unit unit) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">double gtksourceview::SourcePrintCompositor::get_bottom_margin </td> <td>(</td> <td class="paramtype"><a class="elRef" href="../../../gtkmm-2.4/reference/html/group__gtkmmEnums.html#ga9cdd3adb4017a5c706e205aa914ba6fb">Gtk::Unit</a> </td> <td class="paramname"><em>unit</em></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Gets the bottom margin in units of <em>unit</em>. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">unit</td><td>The unit for the return value. </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>The top margin.</dd></dl> <dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000127">Since gtksourceviewmm 2.10:</a></b></dt><dd></dd></dl> </div> </div> <a class="anchor" id="aae4650126c17fa4ba8a9834b69af6a99"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::get_buffer" ref="aae4650126c17fa4ba8a9834b69af6a99" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classgtksourceview_1_1SourceBuffer.html">SourceBuffer</a>> gtksourceview::SourcePrintCompositor::get_buffer </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Gets the <a class="el" href="classgtksourceview_1_1SourceBuffer.html" title="Buffer object for SourceView.">SourceBuffer</a> associated with the compositor. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>The <a class="el" href="classgtksourceview_1_1SourceBuffer.html" title="Buffer object for SourceView.">SourceBuffer</a> associated with the compositor.</dd></dl> <dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000103">Since gtksourceviewmm 2.10:</a></b></dt><dd></dd></dl> </div> </div> <a class="anchor" id="a91aa0c9408c4d8a418dc78bf9bb3db9c"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::get_buffer" ref="a91aa0c9408c4d8a418dc78bf9bb3db9c" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><const <a class="el" href="classgtksourceview_1_1SourceBuffer.html">SourceBuffer</a>> gtksourceview::SourcePrintCompositor::get_buffer </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Gets the <a class="el" href="classgtksourceview_1_1SourceBuffer.html" title="Buffer object for SourceView.">SourceBuffer</a> associated with the compositor. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>The <a class="el" href="classgtksourceview_1_1SourceBuffer.html" title="Buffer object for SourceView.">SourceBuffer</a> associated with the compositor.</dd></dl> <dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000104">Since gtksourceviewmm 2.10:</a></b></dt><dd></dd></dl> </div> </div> <a class="anchor" id="a109d615e62ee0effd0a4cb199f408131"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::get_footer_font_name" ref="a109d615e62ee0effd0a4cb199f408131" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> gtksourceview::SourcePrintCompositor::get_footer_font_name </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Returns the name of the font used to print the page footer. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A string containing the name of the font used to print the page footer.</dd></dl> <dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000123">Since gtksourceviewmm 2.10:</a></b></dt><dd></dd></dl> </div> </div> <a class="anchor" id="ae95e7299cde9b84be05d5d6428305b7f"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::get_header_font_name" ref="ae95e7299cde9b84be05d5d6428305b7f" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> gtksourceview::SourcePrintCompositor::get_header_font_name </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Returns the name of the font used to print the page header. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A string containing the name of the font used to print the page header.</dd></dl> <dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000120">Since gtksourceviewmm 2.10:</a></b></dt><dd></dd></dl> </div> </div> <a class="anchor" id="ac0916dc4345fd99e74a2856419c63345"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::get_highlight_syntax" ref="ac0916dc4345fd99e74a2856419c63345" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool gtksourceview::SourcePrintCompositor::get_highlight_syntax </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Determines whether the printed text will be highlighted according to the buffer rules. </p> <p>Note that highlighting will happen only if the buffer to print has highlighting activated.</p> <dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if the printed output will be highlighted.</dd></dl> <dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000110">Since gtksourceviewmm 2.10:</a></b></dt><dd></dd></dl> </div> </div> <a class="anchor" id="af9d3f072d619785d48818704547813bd"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::get_left_margin" ref="af9d3f072d619785d48818704547813bd" args="(Gtk::Unit unit) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">double gtksourceview::SourcePrintCompositor::get_left_margin </td> <td>(</td> <td class="paramtype"><a class="elRef" href="../../../gtkmm-2.4/reference/html/group__gtkmmEnums.html#ga9cdd3adb4017a5c706e205aa914ba6fb">Gtk::Unit</a> </td> <td class="paramname"><em>unit</em></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Gets the left margin in units of <em>unit</em>. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">unit</td><td>The unit for the return value. </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>The top margin.</dd></dl> <dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000129">Since gtksourceviewmm 2.10:</a></b></dt><dd></dd></dl> </div> </div> <a class="anchor" id="a0d6022ceca35e959f1b735330add484f"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::get_line_numbers_font_name" ref="a0d6022ceca35e959f1b735330add484f" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> gtksourceview::SourcePrintCompositor::get_line_numbers_font_name </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Returns the name of the font used to print line numbers on the left margin. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A string containing the name of the font used to print line numbers on the left margin.</dd></dl> <dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000117">Since gtksourceviewmm 2.10:</a></b></dt><dd></dd></dl> </div> </div> <a class="anchor" id="a435ff528fdb384c0827848edf8029b56"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::get_n_pages" ref="a435ff528fdb384c0827848edf8029b56" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int gtksourceview::SourcePrintCompositor::get_n_pages </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Returns the number of pages in the document or <code>-1</code> if the document has not been completely paginated. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>The number of pages in the document or <code>-1</code> if the document has not been completely paginated.</dd></dl> <dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000138">Since gtksourceviewmm 2.10:</a></b></dt><dd></dd></dl> </div> </div> <a class="anchor" id="a681a150770f1dab212b30a05362f8738"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::get_pagination_process" ref="a681a150770f1dab212b30a05362f8738" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">double gtksourceview::SourcePrintCompositor::get_pagination_process </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Return value: a fraction from 0.0 to 1.0 inclusive. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A fraction from 0.0 to 1.0 inclusive</dd></dl> <dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000140">Since gtksourceviewmm 2.10:</a></b></dt><dd></dd></dl> </div> </div> <a class="anchor" id="ae55b39ff7a76268da78136b03daf9266"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::get_print_footer" ref="ae55b39ff7a76268da78136b03daf9266" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool gtksourceview::SourcePrintCompositor::get_print_footer </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Determines if a footer is set to be printed for each page. </p> <p>A footer will be printed if this function returns <code>true</code> <em>and</em> some format strings have been specified with <a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#abb64a075544dced85ae8294b01c5cb8a" title="Sets strftime like footer format strings, to be printed on the left, center and right of the top of e...">set_footer_format()</a>.</p> <dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if the header is set to be printed.</dd></dl> <dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000135">Since gtksourceviewmm 2.10:</a></b></dt><dd></dd></dl> </div> </div> <a class="anchor" id="ac81335620e5beb6fb2d05b1b6f51ce3f"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::get_print_header" ref="ac81335620e5beb6fb2d05b1b6f51ce3f" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool gtksourceview::SourcePrintCompositor::get_print_header </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Determines if a header is set to be printed for each page. </p> <p>A header will be printed if this function returns <code>true</code> <em>and</em> some format strings have been specified with <a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#ac6ea465fabf373f3a749d54bb73b5156" title="Sets strftime like header format strings, to be printed on the left, center and right of the top of e...">set_header_format()</a>.</p> <dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if the header is set to be printed.</dd></dl> <dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000133">Since gtksourceviewmm 2.10:</a></b></dt><dd></dd></dl> </div> </div> <a class="anchor" id="ac7f0ed5c595554e642365f2124445c4f"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::get_print_line_numbers" ref="ac7f0ed5c595554e642365f2124445c4f" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">guint gtksourceview::SourcePrintCompositor::get_print_line_numbers </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Returns the interval used for line number printing. </p> <p>If the value is 0, no line numbers will be printed. The default value is 1 (i.e. numbers printed in all lines).</p> <dl class="return"><dt><b>Returns:</b></dt><dd>The interval of printed line numbers.</dd></dl> <dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000112">Since gtksourceviewmm 2.10:</a></b></dt><dd></dd></dl> </div> </div> <a class="anchor" id="aed4f906eb4fd3bff4a04a775a7be6d46"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::get_right_margin" ref="aed4f906eb4fd3bff4a04a775a7be6d46" args="(Gtk::Unit unit) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">double gtksourceview::SourcePrintCompositor::get_right_margin </td> <td>(</td> <td class="paramtype"><a class="elRef" href="../../../gtkmm-2.4/reference/html/group__gtkmmEnums.html#ga9cdd3adb4017a5c706e205aa914ba6fb">Gtk::Unit</a> </td> <td class="paramname"><em>unit</em></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Gets the right margin in units of <em>unit</em>. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">unit</td><td>The unit for the return value. </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>The top margin.</dd></dl> <dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000131">Since gtksourceviewmm 2.10:</a></b></dt><dd></dd></dl> </div> </div> <a class="anchor" id="a4ed7edaf7d91640bd7e58e68c41b1b27"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::get_tab_width" ref="a4ed7edaf7d91640bd7e58e68c41b1b27" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">guint gtksourceview::SourcePrintCompositor::get_tab_width </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Returns the width of tabulation in characters for printed text. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>Width of tab.</dd></dl> <dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000106">Since gtksourceviewmm 2.10:</a></b></dt><dd></dd></dl> </div> </div> <a class="anchor" id="ad7eab7986a2a2e62a6971bf4379fb5cd"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::get_top_margin" ref="ad7eab7986a2a2e62a6971bf4379fb5cd" args="(Gtk::Unit unit) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">double gtksourceview::SourcePrintCompositor::get_top_margin </td> <td>(</td> <td class="paramtype"><a class="elRef" href="../../../gtkmm-2.4/reference/html/group__gtkmmEnums.html#ga9cdd3adb4017a5c706e205aa914ba6fb">Gtk::Unit</a> </td> <td class="paramname"><em>unit</em></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Gets the top margin in units of <em>unit</em>. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">unit</td><td>The unit for the return value. </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>The top margin.</dd></dl> <dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000125">Since gtksourceviewmm 2.10:</a></b></dt><dd></dd></dl> </div> </div> <a class="anchor" id="a6eb6b0733f3f7960c5c5df7dc1882f62"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::get_wrap_mode" ref="a6eb6b0733f3f7960c5c5df7dc1882f62" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../gtkmm-2.4/reference/html/group__gtkmmEnums.html#gad4b21987a45f87bbdae74d63d92e543b">Gtk::WrapMode</a> gtksourceview::SourcePrintCompositor::get_wrap_mode </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Gets the line wrapping mode for the printed text. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>The line wrap mode.</dd></dl> <dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000108">Since gtksourceviewmm 2.10:</a></b></dt><dd></dd></dl> </div> </div> <a class="anchor" id="acd043fdaa35237de4ab91409cf34c919"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::paginate" ref="acd043fdaa35237de4ab91409cf34c919" args="(const Glib::RefPtr< Gtk::PrintContext > &context)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool gtksourceview::SourcePrintCompositor::paginate </td> <td>(</td> <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="elRef" href="../../../gtkmm-2.4/reference/html/classGtk_1_1PrintContext.html">Gtk::PrintContext</a> > & </td> <td class="paramname"><em>context</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Paginate the document associated with the <em>compositor</em>. </p> <p>In order to support non-blocking pagination, document is paginated in small chunks. Each time <a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#acd043fdaa35237de4ab91409cf34c919" title="Paginate the document associated with the compositor.">paginate()</a> is invoked, a chunk of the document is paginated. To paginate the entire document, <a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#acd043fdaa35237de4ab91409cf34c919" title="Paginate the document associated with the compositor.">paginate()</a> must be invoked multiple times. It returns <code>true</code> if the document has been completely paginated, otherwise it returns <code>false</code>.</p> <p>This method has been designed to be invoked in the handler of the Gtk::PrintOperation::paginate signal, as shown in the following example:</p> <div class="fragment"><pre class="fragment"> <span class="comment">// Signal handler for the GtkPrintOperation::paginate signal.</span> <span class="comment">// Extended with sigc::bind().</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classgtksourceview_1_1SourcePrintCompositor.html#acd043fdaa35237de4ab91409cf34c919" title="Paginate the document associated with the compositor.">paginate</a> (<a class="codeRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr<Gtk::PrintOperation></a> operation, <a class="codeRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr<Gtk::PrintContext></a> context, <a class="codeRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr<gtksourceview::SourcePrintCompositor></a> compositor) { <span class="keywordflow">if</span> (compositor->paginate(context)) { <span class="keywordtype">int</span> n_pages = compositor->get_n_pages(); operation->set_n_pages(n_pages); <span class="keywordflow">return</span> <span class="keyword">true</span>; } <span class="keywordflow">return</span> <span class="keyword">false</span>; } </pre></div><p>If you don't need to do pagination in chunks, you can simply do it all in the Gtk::PrintOperation::begin-print handler, and set the number of pages from there, like in the following example:</p> <div class="fragment"><pre class="fragment"> <span class="comment">// Signal handler for the Gtk::PrintOperation::begin-print signal</span> <span class="comment">// Extended with sigc::bind().</span> <span class="keyword">static</span> <span class="keywordtype">void</span> begin_print (<a class="codeRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr< Gtk::PrintOperation ></a> operation, <a class="codeRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr< Gtk::PrintContext ></a> context, <a class="codeRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr< gtksourceview::SourcePrintCompositor ></a> compositor) { <span class="keywordflow">while</span> (!compositor->paginate(context)); <span class="keywordtype">int</span> n_pages = compositor->get_n_pages(); operation->set_n_pages(n_pages); } </pre></div><dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">context</td><td>The <a class="elRef" href="../../../gtkmm-2.4/reference/html/classGtk_1_1PrintContext.html">Gtk::PrintContext</a> whose parameters (e.g. paper size, print margins, etc.) are used by the the compositor to paginate the document.</td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if the document has been completely paginated, <code>false</code> otherwise.</dd></dl> <dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000139">Since gtksourceviewmm 2.10:</a></b></dt><dd></dd></dl> </div> </div> <a class="anchor" id="a53a07d43ee491cbd41458defe0d6b192"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::property_body_font_name" ref="a53a07d43ee491cbd41458defe0d6b192" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><<a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>> gtksourceview::SourcePrintCompositor::property_body_font_name </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Name of the font to use for the text body (e.g. </p> <p>'Monospace 10').</p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="aa5a13e3ee7747193e993ef727cdd8250"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::property_body_font_name" ref="aa5a13e3ee7747193e993ef727cdd8250" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><<a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>> gtksourceview::SourcePrintCompositor::property_body_font_name </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Name of the font to use for the text body (e.g. </p> <p>'Monospace 10').</p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="ae8255607478fdb6c598f8f1bc9c22693"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::property_buffer" ref="ae8255607478fdb6c598f8f1bc9c22693" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a>< <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classgtksourceview_1_1SourceBuffer.html">SourceBuffer</a>> > gtksourceview::SourcePrintCompositor::property_buffer </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>The GtkSourceBuffer object to print. </p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="a791c36e4089770dc74e088ce1ad46ffa"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::property_footer_font_name" ref="a791c36e4089770dc74e088ce1ad46ffa" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><<a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>> gtksourceview::SourcePrintCompositor::property_footer_font_name </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Name of the font to use for the page footer (e.g. </p> <p>'Monospace 10').</p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="a3519880ac5db53d63d055560fe908e17"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::property_footer_font_name" ref="a3519880ac5db53d63d055560fe908e17" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><<a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>> gtksourceview::SourcePrintCompositor::property_footer_font_name </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Name of the font to use for the page footer (e.g. </p> <p>'Monospace 10').</p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="af1395a7340c0c884dcdc74f3d8522c54"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::property_header_font_name" ref="af1395a7340c0c884dcdc74f3d8522c54" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><<a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>> gtksourceview::SourcePrintCompositor::property_header_font_name </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Name of the font to use for the page header (e.g. </p> <p>'Monospace 10').</p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="acb0f0138a0c31c54075b5368923b484f"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::property_header_font_name" ref="acb0f0138a0c31c54075b5368923b484f" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><<a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>> gtksourceview::SourcePrintCompositor::property_header_font_name </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Name of the font to use for the page header (e.g. </p> <p>'Monospace 10').</p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="a72f03f1623d2bfdeeb6f8fb473466dc5"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::property_highlight_syntax" ref="a72f03f1623d2bfdeeb6f8fb473466dc5" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><bool> gtksourceview::SourcePrintCompositor::property_highlight_syntax </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Whether to print the document with highlighted syntax. </p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="aa369ec495d8876546a7b6fe46d4ee6ef"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::property_highlight_syntax" ref="aa369ec495d8876546a7b6fe46d4ee6ef" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><bool> gtksourceview::SourcePrintCompositor::property_highlight_syntax </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Whether to print the document with highlighted syntax. </p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="a5653855889d3779a80f59e242db10320"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::property_line_numbers_font_name" ref="a5653855889d3779a80f59e242db10320" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><<a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>> gtksourceview::SourcePrintCompositor::property_line_numbers_font_name </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Name of the font to use for the line numbers (e.g. </p> <p>'Monospace 10').</p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="a56dda572adb66b390f9b401af4d72338"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::property_line_numbers_font_name" ref="a56dda572adb66b390f9b401af4d72338" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><<a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>> gtksourceview::SourcePrintCompositor::property_line_numbers_font_name </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Name of the font to use for the line numbers (e.g. </p> <p>'Monospace 10').</p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="aaf91849632c3fb0007fdad6211a14708"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::property_n_pages" ref="aaf91849632c3fb0007fdad6211a14708" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><int> gtksourceview::SourcePrintCompositor::property_n_pages </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>The number of pages in the document (-1 means the document has not been completely paginated). </p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="a26cc625a74b6dde117d6a521c02e68fe"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::property_print_footer" ref="a26cc625a74b6dde117d6a521c02e68fe" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><bool> gtksourceview::SourcePrintCompositor::property_print_footer </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Whether to print a footer in each page. </p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="ae25c8813eabe9351fdedf2b2a7414711"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::property_print_footer" ref="ae25c8813eabe9351fdedf2b2a7414711" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><bool> gtksourceview::SourcePrintCompositor::property_print_footer </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Whether to print a footer in each page. </p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="a7146939b13c838acf0c7536fbe60cdb1"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::property_print_header" ref="a7146939b13c838acf0c7536fbe60cdb1" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><bool> gtksourceview::SourcePrintCompositor::property_print_header </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Whether to print a header in each page. </p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="a6cec1df1f439d4af5e6b6d0475b08a7b"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::property_print_header" ref="a6cec1df1f439d4af5e6b6d0475b08a7b" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><bool> gtksourceview::SourcePrintCompositor::property_print_header </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Whether to print a header in each page. </p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="ab73ffeea59ded86a79d4b791fdd6bd44"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::property_print_line_numbers" ref="ab73ffeea59ded86a79d4b791fdd6bd44" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><guint> gtksourceview::SourcePrintCompositor::property_print_line_numbers </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Interval of printed line numbers (0 means no numbers). </p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="a6f8e7d6ab05821d070a7f2d8754264f9"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::property_print_line_numbers" ref="a6f8e7d6ab05821d070a7f2d8754264f9" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><guint> gtksourceview::SourcePrintCompositor::property_print_line_numbers </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Interval of printed line numbers (0 means no numbers). </p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="a76cc0034ef074b16c3183a03bf373c3b"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::property_tab_width" ref="a76cc0034ef074b16c3183a03bf373c3b" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><guint> gtksourceview::SourcePrintCompositor::property_tab_width </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Width of a tab character expressed in spaces. </p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="a7caa6cbce612557fd309daa694c73b06"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::property_tab_width" ref="a7caa6cbce612557fd309daa694c73b06" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><guint> gtksourceview::SourcePrintCompositor::property_tab_width </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Width of a tab character expressed in spaces. </p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="aa708821a846f6b3996f14485a7288792"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::property_wrap_mode" ref="aa708821a846f6b3996f14485a7288792" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><<a class="elRef" href="../../../gtkmm-2.4/reference/html/group__gtkmmEnums.html#gad4b21987a45f87bbdae74d63d92e543b">Gtk::WrapMode</a>> gtksourceview::SourcePrintCompositor::property_wrap_mode </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Whether to wrap lines never, at word boundaries, or at character boundaries. </p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="a8bcef6bc996ec236e4b5aed56f487941"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::property_wrap_mode" ref="a8bcef6bc996ec236e4b5aed56f487941" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><<a class="elRef" href="../../../gtkmm-2.4/reference/html/group__gtkmmEnums.html#gad4b21987a45f87bbdae74d63d92e543b">Gtk::WrapMode</a>> gtksourceview::SourcePrintCompositor::property_wrap_mode </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Whether to wrap lines never, at word boundaries, or at character boundaries. </p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="a07e26db6d4f2cfe9ec33b3fe1c12ef93"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::set_body_font_name" ref="a07e26db6d4f2cfe9ec33b3fe1c12ef93" args="(const Glib::ustring &font_name)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void gtksourceview::SourcePrintCompositor::set_body_font_name </td> <td>(</td> <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td> <td class="paramname"><em>font_name</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Sets the default font for the printed text. </p> <p><em>font_name</em> should be a string representation of a font description <a class="elRef" href="../../../pangomm-1.4/reference/html/namespacePango.html">Pango</a> can understand. (e.g. "Monospace 10"). See Pango::FontDescription() for a description of the format of the string representation.</p> <p>This function cannot be called anymore after the first call to the <a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#acd043fdaa35237de4ab91409cf34c919" title="Paginate the document associated with the compositor.">paginate()</a> function.</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">font_name</td><td>The name of the default font for the body text.</td></tr> </table> </dd> </dl> <dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000113">Since gtksourceviewmm 2.10:</a></b></dt><dd></dd></dl> </div> </div> <a class="anchor" id="a03c09bb7c0e3d3c23bab27344fbd072b"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::set_bottom_margin" ref="a03c09bb7c0e3d3c23bab27344fbd072b" args="(double margin, Gtk::Unit unit)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void gtksourceview::SourcePrintCompositor::set_bottom_margin </td> <td>(</td> <td class="paramtype">double </td> <td class="paramname"><em>margin</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="elRef" href="../../../gtkmm-2.4/reference/html/group__gtkmmEnums.html#ga9cdd3adb4017a5c706e205aa914ba6fb">Gtk::Unit</a> </td> <td class="paramname"><em>unit</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Sets the bottom margin used by <em>compositor</em>. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">margin</td><td>The new bottom margin in units of <em>unit</em>. </td></tr> <tr><td class="paramname">unit</td><td>The units for <em>margin</em>.</td></tr> </table> </dd> </dl> <dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000126">Since gtksourceviewmm 2.10:</a></b></dt><dd></dd></dl> </div> </div> <a class="anchor" id="a9c1f62fd959b75e18d98a440954e8876"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::set_default_footer_font_name" ref="a9c1f62fd959b75e18d98a440954e8876" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void gtksourceview::SourcePrintCompositor::set_default_footer_font_name </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Sets the default font for printing the page footer. </p> <p>The font to be used will be the same used as used for the text.</p> <p>This function cannot be called anymore after the first call to the <a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#acd043fdaa35237de4ab91409cf34c919" title="Paginate the document associated with the compositor.">paginate()</a> function.</p> <dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000122">Since gtksourceviewmm 2.10:</a></b></dt><dd></dd></dl> </div> </div> <a class="anchor" id="a65c8ccf25d8c944454bd7187b8e66178"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::set_default_header_font_name" ref="a65c8ccf25d8c944454bd7187b8e66178" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void gtksourceview::SourcePrintCompositor::set_default_header_font_name </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Sets the default font for printing the page header. </p> <p>The font to be used will be the same used as used for the text.</p> <p>This function cannot be called anymore after the first call to the <a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#acd043fdaa35237de4ab91409cf34c919" title="Paginate the document associated with the compositor.">paginate()</a> function.</p> <dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000119">Since gtksourceviewmm 2.10:</a></b></dt><dd></dd></dl> </div> </div> <a class="anchor" id="ae5b61f99bc0903c7a3e531741ef83714"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::set_default_line_numbers_font_name" ref="ae5b61f99bc0903c7a3e531741ef83714" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void gtksourceview::SourcePrintCompositor::set_default_line_numbers_font_name </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Sets the default font for printing line numbers on the left margin. </p> <p>The font to be used will be the same used as used for the text.</p> <p>This function cannot be called anymore after the first call to the <a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#acd043fdaa35237de4ab91409cf34c919" title="Paginate the document associated with the compositor.">paginate()</a> function.</p> <dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000116">Since gtksourceviewmm 2.10:</a></b></dt><dd></dd></dl> </div> </div> <a class="anchor" id="a035f86be25a271c8b1e2e4389c64ef47"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::set_footer_font_name" ref="a035f86be25a271c8b1e2e4389c64ef47" args="(const Glib::ustring &font_name)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void gtksourceview::SourcePrintCompositor::set_footer_font_name </td> <td>(</td> <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td> <td class="paramname"><em>font_name</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Sets the font for printing the page footer. </p> <p><em>font_name</em> should be a string representation of a font description <a class="elRef" href="../../../pangomm-1.4/reference/html/namespacePango.html">Pango</a> can understand (e.g. "Monospace 10"). See Pango::FontDescription() for a description of the format of the string representation.</p> <p>This function cannot be called anymore after the first call to the <a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#acd043fdaa35237de4ab91409cf34c919" title="Paginate the document associated with the compositor.">paginate()</a> function.</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">font_name</td><td>The name of the font for the page footer.</td></tr> </table> </dd> </dl> <dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000121">Since gtksourceviewmm 2.10:</a></b></dt><dd></dd></dl> </div> </div> <a class="anchor" id="abb64a075544dced85ae8294b01c5cb8a"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::set_footer_format" ref="abb64a075544dced85ae8294b01c5cb8a" args="(bool separator, const Glib::ustring &left, const Glib::ustring &center, const Glib::ustring &right)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void gtksourceview::SourcePrintCompositor::set_footer_format </td> <td>(</td> <td class="paramtype">bool </td> <td class="paramname"><em>separator</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td> <td class="paramname"><em>left</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td> <td class="paramname"><em>center</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td> <td class="paramname"><em>right</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Sets strftime like footer format strings, to be printed on the left, center and right of the top of each page. </p> <p>The strings may include strftime(3) codes which will be expanded at print time. All strftime(3) codes are accepted, with the addition of N for the page number and Q for the page count.</p> <p><em>separator</em> specifies if a solid line should be drawn to separate the footer from the document text.</p> <p>If empty string is given for any of the three arguments, that particular string will not be printed.</p> <p>For the footer to be printed, in addition to specifying format strings, you need to enable footer printing with <a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#a3c2a72397ca805264385bc109444a0d6" title="Sets whether you want to print a footer in each page.">set_print_footer()</a>.</p> <p>This function cannot be called anymore after the first call to the <a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#acd043fdaa35237de4ab91409cf34c919" title="Paginate the document associated with the compositor.">paginate()</a> function.</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">separator</td><td><code>true</code> if you want a separator line to be printed. </td></tr> <tr><td class="paramname">left</td><td>A format string to print on the left of the footer. </td></tr> <tr><td class="paramname">center</td><td>A format string to print on the center of the footer. </td></tr> <tr><td class="paramname">right</td><td>A format string to print on the right of the footer.</td></tr> </table> </dd> </dl> <dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000137">Since gtksourceviewmm 2.10:</a></b></dt><dd></dd></dl> </div> </div> <a class="anchor" id="a768cab4282e82b9bf5ba3a32eb5a8037"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::set_header_font_name" ref="a768cab4282e82b9bf5ba3a32eb5a8037" args="(const Glib::ustring &font_name)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void gtksourceview::SourcePrintCompositor::set_header_font_name </td> <td>(</td> <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td> <td class="paramname"><em>font_name</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Sets the font for printing the page header. </p> <p><em>font_name</em> should be a string representation of a font description <a class="elRef" href="../../../pangomm-1.4/reference/html/namespacePango.html">Pango</a> can understand (e.g. "Monospace 10"). See Pango::FontDescription() for a description of the format of the string representation.</p> <p>This function cannot be called anymore after the first call to the <a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#acd043fdaa35237de4ab91409cf34c919" title="Paginate the document associated with the compositor.">paginate()</a> function.</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">font_name</td><td>The name of the font for the page header.</td></tr> </table> </dd> </dl> <dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000118">Since gtksourceviewmm 2.10:</a></b></dt><dd></dd></dl> </div> </div> <a class="anchor" id="ac6ea465fabf373f3a749d54bb73b5156"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::set_header_format" ref="ac6ea465fabf373f3a749d54bb73b5156" args="(bool separator, const Glib::ustring &left, const Glib::ustring &center, const Glib::ustring &right)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void gtksourceview::SourcePrintCompositor::set_header_format </td> <td>(</td> <td class="paramtype">bool </td> <td class="paramname"><em>separator</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td> <td class="paramname"><em>left</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td> <td class="paramname"><em>center</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td> <td class="paramname"><em>right</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Sets strftime like header format strings, to be printed on the left, center and right of the top of each page. </p> <p>The strings may include strftime(3) codes which will be expanded at print time. All strftime(3) codes are accepted, with the addition of N for the page number and Q for the page count.</p> <p><em>separator</em> specifies if a solid line should be drawn to separate the header from the document text.</p> <p>If empty string is given for any of the three arguments, that particular string will not be printed.</p> <p>For the header to be printed, in addition to specifying format strings, you need to enable header printing with <a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#a7883cab357d040446d0aa8c24de1347f" title="Sets whether you want to print a header in each page.">set_print_header()</a>.</p> <p>This function cannot be called anymore after the first call to the <a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#acd043fdaa35237de4ab91409cf34c919" title="Paginate the document associated with the compositor.">paginate()</a> function.</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">separator</td><td><code>true</code> if you want a separator line to be printed. </td></tr> <tr><td class="paramname">left</td><td>A format string to print on the left of the header. </td></tr> <tr><td class="paramname">center</td><td>A format string to print on the center of the header. </td></tr> <tr><td class="paramname">right</td><td>A format string to print on the right of the header.</td></tr> </table> </dd> </dl> <dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000136">Since gtksourceviewmm 2.10:</a></b></dt><dd></dd></dl> </div> </div> <a class="anchor" id="aac01776a388d5e305969b99f43937e51"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::set_highlight_syntax" ref="aac01776a388d5e305969b99f43937e51" args="(bool highlight=true)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void gtksourceview::SourcePrintCompositor::set_highlight_syntax </td> <td>(</td> <td class="paramtype">bool </td> <td class="paramname"><em>highlight</em> = <code>true</code></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Sets whether the printed text will be highlighted according to the buffer rules. </p> <p>Both color and font style are applied. This function cannot be called anymore after the first call to the <a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#acd043fdaa35237de4ab91409cf34c919" title="Paginate the document associated with the compositor.">paginate()</a> function.</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">highlight</td><td>Whether syntax should be highlighted.</td></tr> </table> </dd> </dl> <dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000109">Since gtksourceviewmm 2.10:</a></b></dt><dd></dd></dl> </div> </div> <a class="anchor" id="a9129a077975fcb9b83b49b51c9bcd30f"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::set_left_margin" ref="a9129a077975fcb9b83b49b51c9bcd30f" args="(double margin, Gtk::Unit unit)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void gtksourceview::SourcePrintCompositor::set_left_margin </td> <td>(</td> <td class="paramtype">double </td> <td class="paramname"><em>margin</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="elRef" href="../../../gtkmm-2.4/reference/html/group__gtkmmEnums.html#ga9cdd3adb4017a5c706e205aa914ba6fb">Gtk::Unit</a> </td> <td class="paramname"><em>unit</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Sets the left margin used by <em>compositor</em>. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">margin</td><td>The new bottom margin in units of <em>unit</em>. </td></tr> <tr><td class="paramname">unit</td><td>The units for <em>margin</em>.</td></tr> </table> </dd> </dl> <dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000128">Since gtksourceviewmm 2.10:</a></b></dt><dd></dd></dl> </div> </div> <a class="anchor" id="a954a0c4ed08b38ba562f3a882c42700a"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::set_line_numbers_font_name" ref="a954a0c4ed08b38ba562f3a882c42700a" args="(const Glib::ustring &font_name)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void gtksourceview::SourcePrintCompositor::set_line_numbers_font_name </td> <td>(</td> <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td> <td class="paramname"><em>font_name</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Sets the font for printing line numbers on the left margin. </p> <p><em>font_name</em> should be a string representation of a font description <a class="elRef" href="../../../pangomm-1.4/reference/html/namespacePango.html">Pango</a> can understand (e.g. "Monospace 10"). See Pango::FontDescription() for a description of the format of the string representation.</p> <p>This function cannot be called anymore after the first call to the <a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#acd043fdaa35237de4ab91409cf34c919" title="Paginate the document associated with the compositor.">paginate()</a> function.</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">font_name</td><td>The name of the font for line numbers.</td></tr> </table> </dd> </dl> <dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000115">Since gtksourceviewmm 2.10:</a></b></dt><dd></dd></dl> </div> </div> <a class="anchor" id="a3c2a72397ca805264385bc109444a0d6"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::set_print_footer" ref="a3c2a72397ca805264385bc109444a0d6" args="(bool print=true)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void gtksourceview::SourcePrintCompositor::set_print_footer </td> <td>(</td> <td class="paramtype">bool </td> <td class="paramname"><em>print</em> = <code>true</code></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Sets whether you want to print a footer in each page. </p> <p>The footer consists of three pieces of text and an optional line separator, configurable with <a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#ac6ea465fabf373f3a749d54bb73b5156" title="Sets strftime like header format strings, to be printed on the left, center and right of the top of e...">set_header_format()</a>.</p> <p>Note that by default the footer format is unspecified, and if it's empty it will not be printed, regardless of this setting.</p> <p>This function cannot be called anymore after the first call to the <a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#acd043fdaa35237de4ab91409cf34c919" title="Paginate the document associated with the compositor.">paginate()</a> function.</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">print</td><td><code>true</code> if you want the footer to be printed.</td></tr> </table> </dd> </dl> <dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000134">Since gtksourceviewmm 2.10:</a></b></dt><dd></dd></dl> </div> </div> <a class="anchor" id="a7883cab357d040446d0aa8c24de1347f"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::set_print_header" ref="a7883cab357d040446d0aa8c24de1347f" args="(bool print=true)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void gtksourceview::SourcePrintCompositor::set_print_header </td> <td>(</td> <td class="paramtype">bool </td> <td class="paramname"><em>print</em> = <code>true</code></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Sets whether you want to print a header in each page. </p> <p>The header consists of three pieces of text and an optional line separator, configurable with <a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#ac6ea465fabf373f3a749d54bb73b5156" title="Sets strftime like header format strings, to be printed on the left, center and right of the top of e...">set_header_format()</a>.</p> <p>Note that by default the header format is unspecified, and if it's empty it will not be printed, regardless of this setting.</p> <p>This function cannot be called anymore after the first call to the <a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#acd043fdaa35237de4ab91409cf34c919" title="Paginate the document associated with the compositor.">paginate()</a> function.</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">print</td><td><code>true</code> if you want the header to be printed.</td></tr> </table> </dd> </dl> <dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000132">Since gtksourceviewmm 2.10:</a></b></dt><dd></dd></dl> </div> </div> <a class="anchor" id="a0cf6950e05b75019628b08929fa1f2c3"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::set_print_line_numbers" ref="a0cf6950e05b75019628b08929fa1f2c3" args="(guint interval=1)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void gtksourceview::SourcePrintCompositor::set_print_line_numbers </td> <td>(</td> <td class="paramtype">guint </td> <td class="paramname"><em>interval</em> = <code>1</code></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Sets the interval for printed line numbers. </p> <p>If <em>interval</em> is 0 no numbers will be printed. If greater than 0, a number will be printed every <em>interval</em> lines (i.e. 1 will print all line numbers).</p> <p>Maximum accepted value for <em>interval</em> is 100.</p> <p>This function cannot be called anymore after the first call to the <a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#acd043fdaa35237de4ab91409cf34c919" title="Paginate the document associated with the compositor.">paginate()</a> function.</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">interval</td><td>Interval for printed line numbers.</td></tr> </table> </dd> </dl> <dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000111">Since gtksourceviewmm 2.10:</a></b></dt><dd></dd></dl> </div> </div> <a class="anchor" id="a6a77ab6abf63523bb7b4988917ed6a25"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::set_right_margin" ref="a6a77ab6abf63523bb7b4988917ed6a25" args="(double margin, Gtk::Unit unit)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void gtksourceview::SourcePrintCompositor::set_right_margin </td> <td>(</td> <td class="paramtype">double </td> <td class="paramname"><em>margin</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="elRef" href="../../../gtkmm-2.4/reference/html/group__gtkmmEnums.html#ga9cdd3adb4017a5c706e205aa914ba6fb">Gtk::Unit</a> </td> <td class="paramname"><em>unit</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Sets the right margin used by <em>compositor</em>. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">margin</td><td>The new bottom margin in units of <em>unit</em>. </td></tr> <tr><td class="paramname">unit</td><td>The units for <em>margin</em>.</td></tr> </table> </dd> </dl> <dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000130">Since gtksourceviewmm 2.10:</a></b></dt><dd></dd></dl> </div> </div> <a class="anchor" id="a79106e0d8d8b77e34fd7e0e8901b879a"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::set_tab_width" ref="a79106e0d8d8b77e34fd7e0e8901b879a" args="(guint width)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void gtksourceview::SourcePrintCompositor::set_tab_width </td> <td>(</td> <td class="paramtype">guint </td> <td class="paramname"><em>width</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Sets the width of tabulation in characters for printed text. </p> <p>This function cannot be called anymore after the first call to the <a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#acd043fdaa35237de4ab91409cf34c919" title="Paginate the document associated with the compositor.">paginate()</a> function.</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">width</td><td>Width of tab in characters.</td></tr> </table> </dd> </dl> <dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000105">Since gtksourceviewmm 2.10:</a></b></dt><dd></dd></dl> </div> </div> <a class="anchor" id="a6da589ed84f46381a36f4543c7c96bd3"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::set_top_margin" ref="a6da589ed84f46381a36f4543c7c96bd3" args="(double margin, Gtk::Unit unit)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void gtksourceview::SourcePrintCompositor::set_top_margin </td> <td>(</td> <td class="paramtype">double </td> <td class="paramname"><em>margin</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="elRef" href="../../../gtkmm-2.4/reference/html/group__gtkmmEnums.html#ga9cdd3adb4017a5c706e205aa914ba6fb">Gtk::Unit</a> </td> <td class="paramname"><em>unit</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Sets the top margin used by <em>compositor</em>. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">margin</td><td>The new top margin in units of <em>unit</em>. </td></tr> <tr><td class="paramname">unit</td><td>The units for <em>margin</em>.</td></tr> </table> </dd> </dl> <dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000124">Since gtksourceviewmm 2.10:</a></b></dt><dd></dd></dl> </div> </div> <a class="anchor" id="af71953da457affde74e1b64d2653e26d"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::set_wrap_mode" ref="af71953da457affde74e1b64d2653e26d" args="(Gtk::WrapMode wrap_mode)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void gtksourceview::SourcePrintCompositor::set_wrap_mode </td> <td>(</td> <td class="paramtype"><a class="elRef" href="../../../gtkmm-2.4/reference/html/group__gtkmmEnums.html#gad4b21987a45f87bbdae74d63d92e543b">Gtk::WrapMode</a> </td> <td class="paramname"><em>wrap_mode</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Sets the line wrapping mode for the printed text. </p> <p>This function cannot be called anymore after the first call to the <a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html#acd043fdaa35237de4ab91409cf34c919" title="Paginate the document associated with the compositor.">paginate()</a> function.</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">wrap_mode</td><td>A <a class="elRef" href="../../../gtkmm-2.4/reference/html/group__gtkmmEnums.html#gad4b21987a45f87bbdae74d63d92e543b">Gtk::WrapMode</a>.</td></tr> </table> </dd> </dl> <dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000107">Since gtksourceviewmm 2.10:</a></b></dt><dd></dd></dl> </div> </div> <hr/><h2>Friends And Related Function Documentation</h2> <a class="anchor" id="a8cbfdfdceca330ae0fcfc00d44974ae0"></a><!-- doxytag: member="gtksourceview::SourcePrintCompositor::wrap" ref="a8cbfdfdceca330ae0fcfc00d44974ae0" args="(GtkSourcePrintCompositor *object, bool take_copy=false)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classgtksourceview_1_1SourcePrintCompositor.html">gtksourceview::SourcePrintCompositor</a> > wrap </td> <td>(</td> <td class="paramtype">GtkSourcePrintCompositor * </td> <td class="paramname"><em>object</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"><em>take_copy</em> = <code>false</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [related]</code></td> </tr> </table> </div> <div class="memdoc"> <p>A <a class="elRef" href="../../../glibmm-2.4/reference/html/namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">object</td><td>The C instance. </td></tr> <tr><td class="paramname">take_copy</td><td>False if the result should take ownership of the C instance. True if it should take a new copy or ref. </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>A C++ instance that wraps this C instance. </dd></dl> </div> </div> </div> <hr class="footer"/><address class="footer"><small> Generated on Tue May 15 2012 21:27:04 for gtksourceviewmm by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.7.5 </small></address> </body> </html>