prefs-utils.cpp revision 6b15695578f07a3f72c4c9475c1a261a3021472a
/*
* Utility functions for reading and setting preferences
*
* Authors:
* bulia byak <bulia@dr.com>
*
* Copyright (C) 2003 authors
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "inkscape.h"
void
{
if (repr) {
}
}
{
if (repr) {
} else {
return def;
}
}
/**
\brief Retrieves an int attribute guarding against screwed-up data; if the value is beyond limits, default is returned
*/
{
if (repr) {
return v;
} else {
return def;
}
} else {
return def;
}
}
void
{
if (repr) {
}
}
double
{
if (repr) {
} else {
return def;
}
}
/**
\brief Retrieves an int attribute guarding against screwed-up data; if the value is beyond limits, default is returned
*/
double
prefs_get_double_attribute_limited(gchar const *path, gchar const *attr, double def, double min, double max)
{
if (repr) {
return v;
} else {
return def;
}
} else {
return def;
}
}
gchar const *
{
if (repr) {
}
return NULL;
}
void
{
if (repr) {
}
}
void
{
if (recent) {
if (child) {
} else {
// count to the last
for (unsigned i = 0; i + 2 < max_documents; ++i) {
}
// remove all after the last
}
}
}
}
}
}
gchar const **
{
if (recent) {
gint i;
{
}
return datalst;
}
return NULL;
}
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :