13#ifndef INKSCAPE_UI_DIALOG_FIND_H
14#define INKSCAPE_UI_DIALOG_FIND_H
16#include <gtkmm/button.h>
17#include <gtkmm/checkbutton.h>
18#include <gtkmm/expander.h>
157 std::vector<SPItem*>
filter_fields (std::vector<SPItem*> &l,
bool exact,
bool casematch);
159 std::vector<SPItem*>
filter_types (std::vector<SPItem*> &l);
160 std::vector<SPItem*> &
filter_list (std::vector<SPItem*> &l,
bool exact,
bool casematch);
165 bool find_strcmp(
const gchar *str,
const gchar *find,
bool exact,
bool casematch);
170 gsize
find_strcmp_pos(
const gchar *str,
const gchar *find,
bool exact,
bool casematch, gsize
start=0);
175 Glib::ustring
find_replace(
const gchar *str,
const gchar *find,
const gchar *replace,
bool exact,
bool casematch,
bool replaceall);
181 std::vector<SPItem*> &
all_items (
SPObject *r, std::vector<SPItem*> &l,
bool hidden,
bool locked);
The set of selected SPObjects for a given document and layer model.
DialogBase is the base class for the dialog system.
The Find class defines the Find and replace dialog.
Gtk::CheckButton check_include_locked
void onFind()
Callbacks for pressing the dialog buttons.
Gtk::CheckButton check_texts
Gtk::CheckButton check_groups
Gtk::CheckButton check_ellipses
Gtk::Box vbox_properties2
Gtk::CheckButton check_scope_selection
Gtk::CheckButton check_ids
Property type widgets.
Gtk::Button button_replace
gsize find_strcmp_pos(const gchar *str, const gchar *find, bool exact, bool casematch, gsize start=0)
Find a string within a string and return the position with options for exact, casematching and search...
Glib::RefPtr< Gtk::SizeGroup > _left_size_group
std::vector< Gtk::CheckButton * > checkTypes
A vector of all the check option widgets for easy processing.
bool item_id_match(SPItem *item, const gchar *id, bool exact, bool casematch, bool replace=false)
Returns true if the SPItem 'item' has the same id.
void desktopReplaced() override
Called when the desktop has certainly changed.
Gtk::CheckButton check_stars
Gtk::CheckButton check_images
Glib::RefPtr< Gtk::SizeGroup > _right_size_group
Gtk::CheckButton check_case_sensitive
General option widgets.
Gtk::CheckButton check_include_hidden
void searchinToggle(bool on)
Toggle all the properties checkboxes.
Gtk::CheckButton check_paths
Gtk::Box vbox_properties1
bool item_attr_match(SPItem *item, const gchar *name, bool exact, bool casematch, bool replace=false)
Returns true if found the SPItem 'item' has the same attribute name.
UI::Widget::Frame frame_searchin
std::vector< SPItem * > & all_items(SPObject *r, std::vector< SPItem * > &l, bool hidden, bool locked)
recursive function to return a list of all the items in the SPObject tree
bool find_strcmp(const gchar *str, const gchar *find, bool exact, bool casematch)
Find a string within a string and returns true if found with options for exact and casematching.
Gtk::Expander expander_options
bool item_attrvalue_match(SPItem *item, const gchar *name, bool exact, bool casematch, bool replace=false)
Returns true if the SPItem 'item' has the same attribute value.
bool item_type_match(SPItem *item)
Gtk::CheckButton check_style
Gtk::CheckButton check_desc
std::vector< SPItem * > filter_fields(std::vector< SPItem * > &l, bool exact, bool casematch)
Function to filter a list of items based on the item type by calling each item_XXX_match function.
Gtk::CheckButton check_clones
UI::Widget::Entry entry_find
Gtk::CheckButton check_searchin_property
Gtk::CheckButton check_scope_layer
void onSearchinProperty()
Gtk::CheckButton check_alltypes
Object type widgets.
Gtk::CheckButton check_font
bool item_style_match(SPItem *item, const gchar *text, bool exact, bool casematch, bool replace=false)
Returns true if the SPItem 'item' has the same text in the style attribute.
std::vector< SPItem * > filter_types(std::vector< SPItem * > &l)
UI::Widget::Entry entry_replace
bool item_font_match(SPItem *item, const gchar *name, bool exact, bool casematch, bool replace=false)
Returns true if the SPItem 'item' has the same font values.
Gtk::CheckButton check_offsets
UI::Widget::Frame frame_types
Gtk::CheckButton check_attributename
Glib::RefPtr< Gtk::SizeGroup > label_group
Gtk::CheckButton check_exact_match
Gtk::CheckButton check_searchin_text
std::vector< SPItem * > & filter_list(std::vector< SPItem * > &l, bool exact, bool casematch)
std::vector< Gtk::CheckButton * > checkProperties
A vector of all the properties widgets for easy processing.
Gtk::CheckButton check_scope_all
Scope and search in widgets.
UI::Widget::Frame frame_scope
Gtk::CheckButton check_spirals
bool item_desc_match(SPItem *item, const gchar *text, bool exact, bool casematch, bool replace=false)
Returns true if the SPItem 'item' has a <title> or <desc> child that matches.
bool item_text_match(SPItem *item, const gchar *text, bool exact, bool casematch, bool replace=false)
Returns true if the SPItem 'item' has the same text content.
Gtk::Label status
Action Buttons and status.
UI::Widget::Frame frame_options
void selectionChanged(Selection *selection) override
UI::Widget::Frame frame_properties
std::vector< SPItem * > & all_selection_items(Inkscape::Selection *s, std::vector< SPItem * > &l, SPObject *ancestor, bool hidden, bool locked)
to return a list of all the selected items
Gtk::CheckButton check_attributevalue
bool item_title_match(SPItem *item, const gchar *text, bool exact, bool casematch, bool replace=false)
void squeeze_window()
Shrink the dialog size when the expander widget is closed Currently not working, no known way to do t...
Gtk::CheckButton check_title
bool _action_replace
Finding or replacing.
Glib::ustring find_replace(const gchar *str, const gchar *find, const gchar *replace, bool exact, bool casematch, bool replaceall)
Replace a string with another string with options for exact and casematching and replace once/all.
Gtk::CheckButton check_rects
Helperclass for Gtk::Entry widgets.
Base class for visual SVG elements.
SPObject is an abstract base class of all of the document nodes at the SVG document level.
A base class for all dialogs.
Helper class to stream background task notifications as a series of messages.