-\f
-/****************************************************************************/
-/* Get string representing desired units. */
-/****************************************************************************/
-const gchar *
-gl_prefs_get_page_size (void)
-{
- return (gl_prefs->default_page_size);
-}
-
-/****************************************************************************/
-/* Get desired units. */
-/****************************************************************************/
-lglUnitsType
-gl_prefs_get_units (void)
-{
- return gl_prefs->units;
-}
-
-/****************************************************************************/
-/* Get desired units per point. */
-/****************************************************************************/
-gdouble
-gl_prefs_get_units_per_point (void)
-{
-
- switch (gl_prefs->units) {
- case LGL_UNITS_POINT:
- return 1.0; /* points */
- case LGL_UNITS_INCH:
- return 1.0 / 72.0; /* inches */
- case LGL_UNITS_MM:
- return 0.35277778; /* mm */
- default:
- g_message ("Illegal units"); /* Should not happen */
- return 1.0;
- }
-}
-
-/****************************************************************************/
-/* Get precision for desired units. */
-/****************************************************************************/
-gint
-gl_prefs_get_units_precision (void)
-{
-
- switch (gl_prefs->units) {
- case LGL_UNITS_POINT:
- return 1; /* points */
- case LGL_UNITS_INCH:
- return 3; /* inches */
- case LGL_UNITS_MM:
- return 1; /* mm */
- default:
- g_message ("Illegal units"); /* Should not happen */
- return 1.0;
- }
-}
-
-/****************************************************************************/
-/* Get step size for desired units. */
-/****************************************************************************/
-gdouble
-gl_prefs_get_units_step_size (void)
-{
-
- switch (gl_prefs->units) {
- case LGL_UNITS_POINT:
- return 0.1; /* points */
- case LGL_UNITS_INCH:
- return 0.001; /* inches */
- case LGL_UNITS_MM:
- return 0.1; /* mm */
- default:
- g_message ("Illegal units"); /* Should not happen */
- return 1.0;
- }
-}