/*
* Authors:
*
* Copyright (C) 2012 Authors
*
* Released under GNU GPL. Read the file 'COPYING' for more information.
*/
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <gtkmm/messagedialog.h>
#include <gtkmm/checkbutton.h>
#include <gtkmm/scrolledwindow.h>
#include <gtkmm/textview.h>
#include <set>
#include "font-substitution.h"
#include "inkscape.h"
#include "desktop.h"
#include "document.h"
#include "selection.h"
#include "ui/dialog-events.h"
#include "selection-chemistry.h"
#include "preferences.h"
#include "sp-defs.h"
#include "sp-root.h"
#include "sp-text.h"
#include "sp-textpath.h"
#include "sp-flowtext.h"
#include "sp-flowdiv.h"
#include "sp-tspan.h"
#include "sp-tref.h"
#include "style.h"
#include "text-editing.h"
#include "libnrtype/FontFactory.h"
#include "libnrtype/font-instance.h"
namespace Inkscape {
namespace UI {
namespace Dialog {
{
}
{
}
void
{
if (show_dlg) {
}
}
}
void
{
warning.set_resizable(true);
textview->set_editable(false);
scrollwindow->show();
cbSelect->set_active(true);
#if GTK_CHECK_VERSION(3,0,0)
#else
#endif
if (cbWarning->get_active()) {
}
if (cbSelect->get_active()) {
}
}
/*
* Find all the fonts that are in the document but not available on the users system
* and have been substituted for other fonts
*
* Return a list of SPItems where fonts have been substituted.
*
* Walk thru all the objects ...
* a. Build up a list of the objects with fonts defined in the style attribute
* If there are fonts in a. that are not in b. then those fonts have been substituted.
*/
{
if (is_top_level_text_object (item)) {
// Should only need to check the first span, since the others should be covered by TSPAN's etc
}
else if (SP_IS_TEXTPATH(item)) {
}
}
// is_part_of_text_subtree (item)
// TSPAN layout comes from the parent->layout->_spans
}
if (parent_text != NULL) {
// Add all the spans fonts to the set
ii++;
}
}
}
if (style) {
if (style_font) {
if (has_visible_text(item)) {
}
}
}
}
// Check if any document styles are not in the actual layout
// CSS font fallbacks can have more that one font listed, split the font list
bool fontFound = false;
// trim whitespace
continue; // empty font name
}
fontFound = true;
break;
}
}
if (fontFound == false) {
}
}
}
return outList;
}
{
}
return out;
}
} // namespace Dialog
} // namespace UI
} // namespace Inkscape
/*
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:fileencoding=utf-8:textwidth=99 :