![]() |
Webdar 1.0.2
Web user interface to libdar
|
class html_mask_form_filename let user define mask applied to strings (filename, extended attributes, ...) More...
#include <html_mask_form_filename.hpp>


Public Member Functions | |
| html_mask_form_filename (const std::string &subject) | |
| constructor | |
| html_mask_form_filename (const html_mask_form_filename &ref) | |
| html_mask_form_filename (html_mask_form_filename &&ref) noexcept=delete | |
| html_mask_form_filename & | operator= (const html_mask_form_filename &ref)=delete |
| html_mask_form_filename & | operator= (html_mask_form_filename &&ref) noexcept=delete |
| void | set_child (const std::shared_ptr< bibliotheque > &ptr, bibliotheque::category cat) |
| should be invoked ASAP after object construction | |
| virtual std::unique_ptr< libdar::mask > | get_mask () const override |
| inherited from html_mask | |
| virtual bool | is_relative () const override |
| inherited from html_mask | |
| virtual std::unique_ptr< body_builder > | provide_object_of_type (unsigned int num, const std::string &context, std::string &changed_event) const override |
| inherited from html_form_dynamic_table | |
| virtual void | load_json (const json &source) override |
| inherited from jsoner | |
| virtual json | save_json () const override |
| inherited from jsoner | |
| virtual void | clear_json () override |
| inherited from jsoner | |
| virtual bibliotheque::using_set | get_using_set () const override |
| inherited from bibliotheque_subconfig | |
| virtual void | on_event (const std::string &event_name) override |
| inherited from actor | |
| void | manually_set_bool_mode (const std::string &mode) |
| manually set the bool mode of the root bool object | |
| std::shared_ptr< body_builder > | manually_add_object (const std::string &type_name) |
| manually add an object and return its address | |
| std::deque< std::string > | get_labels () const |
| obtain the available labels defining the different available types of this mask | |
| virtual void | bind_to_anchor (const std::string &val) override |
| inherited from body_builder | |
Public Member Functions inherited from body_builder | |
| body_builder () | |
| constructor | |
| body_builder (const body_builder &ref) | |
| copy constructor | |
| body_builder (body_builder &&ref) noexcept=delete | |
| move constructor | |
| body_builder & | operator= (const body_builder &ref) |
| assignment operator drops all existing children | |
| body_builder & | operator= (body_builder &&ref) noexcept=delete |
| move operator | |
| virtual | ~body_builder () |
| the (virtual) destructor | |
| void | set_prefix (const chemin &prefix) |
| void | adopt (body_builder *obj) |
| bool | is_adopted () const |
| whether the object has currently a parent (= is adopted) | |
| void | foresake (body_builder *obj) |
| void | set_visible (bool mode) |
| ask for the object to become visible in HTML page or temporarily hidden | |
| bool | get_visible () const |
| returns the current visible status of the object | |
| bool | get_visible_recursively () const |
| return the effective visible status of an object taking into account all of ancestors that adopted it | |
| void | add_css_class (const std::string &name) |
| set this object with a additional css_class (assuming it is defined in a css_library available for this object) | |
| void | add_css_class (const css_class_group &cg) |
| set this object with an additional set of css_classes (assuming they are all defined in a css_library available for this object) | |
| bool | has_css_class (const std::string &name) const |
| check the presence of the given class name | |
| void | remove_css_class (const std::string &name) |
| remove the provided css_class name from the list of css_class names this object has been assigned to | |
| void | remove_css_class (const css_class_group &cg) |
| remove the provided css_class_group from the list | |
| void | clear_css_classes () |
| clear the whole list of css_class names | |
| const std::set< std::string > & | get_css_classes_as_a_set () const |
| provide the list of css_class names that this object has been set with | |
| css_class_group | get_css_class_group () const |
| provide the list of css_class names as a css_class_group | |
| std::string | get_css_classes (const std::string &extra="") const |
| return the class_name as inlined css, suitable to be added in a html marker | |
| void | define_css_class_in_library (const css_class &csscl) |
| void | define_css_class_in_library (const std::string &name, const css &cssdef) |
| bool | is_css_class_defined_in_library (const std::string &name) const |
| check whether a css_class of given name already exists in a reachable css_library | |
| std::string | get_body_part (const chemin &path, const request &req) |
| void | ignore_body_changed_from_my_children (bool mode) |
| ignore my_body_part_has_changed() invoked from adopted children and myself | |
| bool | get_ignore_body_changed_from_my_children () const |
| get the current status of ignore_body_changed_from_my_children() | |
| void | set_no_CR (bool no_cr=true) |
| ask for the implementation not to add a new line after this control | |
| void | assign_anchor (bool mode) |
| assign an anchor to this object (the object's inherited_get_body_part() will be wrapped into an HTML anchor: ) | |
| std::string | get_assigned_anchor () const |
| return the anchor value that has been assiged to this object (without the leading #) | |
Public Member Functions inherited from actor | |
| actor (const actor &ref)=default | |
| actor (actor &&ref) noexcept(false)=default | |
| actor & | operator= (const actor &ref)=default |
| actor & | operator= (actor &&ref) noexcept(false) |
Public Member Functions inherited from reference | |
| reference () | |
| usual constructor | |
| reference (const reference &ref) | |
| copy constructor | |
| reference (reference &&ref) noexcept(false) | |
| move constructor (only operational for objects without peering) | |
| reference & | operator= (const reference &ref) |
| assignment operator (only operational for objects without peering) | |
| reference & | operator= (reference &&ref) noexcept(false) |
| move assigment operator | |
| virtual | ~reference () |
| destructor | |
| void | peer_with (reference *obj) |
| method used to create a relation between two objects | |
| void | break_peer_with (reference *obj) |
| break the peering with the object given as argument | |
| bool | is_peer (reference *obj) const |
| whether a peering exists with that object | |
| bool | is_empty () const |
| whether the current object has peering | |
| unsigned int | size () const |
| the number of peers | |
Public Member Functions inherited from events | |
| events (const events &ref) | |
| copy constructor | |
| events (events &&ref) noexcept(false)=default | |
| events & | operator= (const events &ref)=default |
| events & | operator= (events &&ref) noexcept(false) |
| void | record_actor_on_event (actor *ptr, const std::string &name) |
| record an actor for an given event | |
Public Member Functions inherited from jsoner | |
| jsoner (const jsoner &ref)=default | |
| jsoner (jsoner &&ref) noexcept(false)=default | |
| jsoner & | operator= (const jsoner &ref)=default |
| jsoner & | operator= (jsoner &&ref) noexcept(false)=default |
Public Member Functions inherited from html_mask | |
| html_mask (const html_mask &ref)=default | |
| html_mask (html_mask &&ref) noexcept=default | |
| html_mask & | operator= (const html_mask &ref)=default |
| html_mask & | operator= (html_mask &&ref) noexcept=default |
Static Public Attributes | |
| static const std::string | changed = "hmff_changed" |
Protected Member Functions | |
| virtual std::string | inherited_get_body_part (const chemin &path, const request &req) override |
| inherited from body_builder | |
| virtual void | css_classes_have_changed () override |
| inherited from body_builder | |
Protected Member Functions inherited from body_builder | |
| void | my_body_part_has_changed () |
| let a class record a change in what inherited_get_body_part() would return if it was called again with the same request | |
| virtual void | my_visibility_has_changed () |
| available for inherited class to be informed when their visibility changes | |
| bool | has_my_body_part_changed () const |
| obtain the body_part changed status | |
| chemin | get_path () const |
| return the path of 'this' according to its descent in the body_builder tree of adopted children | |
| std::string | get_recorded_name () const |
| void | store_css_library () |
| this creates a css_library accessible from adopted objects to hold html class definitions | |
| bool | has_local_css_library () const |
| return true if this object has a css_library locally stored (not from a adopter object) | |
| std::unique_ptr< css_library > & | lookup_css_library () const |
| lookup toward registered parent body_builder object for the closest stored css_library | |
| std::string | get_body_part_from_target_child (const chemin &path, const request &req) |
| std::string | get_body_part_from_all_children (const chemin &path, const request &req) |
| virtual void | path_has_changed () |
| For inherited classes, called when the path has changed,. | |
| virtual void | has_adopted (body_builder *obj) |
| Be informed that a new child has been adopted. | |
| virtual void | will_foresake (body_builder *obj) |
| Be informed that a child is about to be foresaken. | |
| virtual void | has_been_adopted_by (body_builder *obj) |
| Be informed that we have been adopted by obj, our new parent. | |
| virtual void | will_be_foresaken_by (body_builder *obj) |
| Be informed that we are about to be foresaken by obj, our soon former parent. | |
| virtual void | new_css_library_available () |
| unsigned int | size () const |
| access to adopted childs | |
| body_builder * | operator[] (unsigned int i) |
| access to adopted childs | |
| body_builder * | get_parent () const |
| return the parent object or nullptr if no object has adopted this object | |
| template<class T > | |
| void | closest_ancestor_of_type (T *&ancestor) |
| access to the closest ancestor (parent) matching (dynamic_cast) the provided type | |
| void | orphan_all_children () |
| orphan all adopted children | |
| bool | get_no_CR () const |
| true if it has been requested no to add Carriage Return after the HTML object | |
Protected Member Functions inherited from reference | |
| void | reset_read_peers () const |
| reset the peers reading | |
| bool | read_next_peer (reference *&peer) const |
Protected Member Functions inherited from events | |
| virtual void | broken_peering_from (reference *obj) override |
| inherited from class reference | |
| void | register_name (const std::string &name) |
| add a new event for actors to register against | |
| void | unregister_name (const std::string &name) |
| remove an event and remove all actors that registed on it | |
| void | rename_name (const std::string &old_name, const std::string &new_name) |
| rename an event and keep all existing peering to this new event | |
| void | act (const std::string &name) |
| trigger a given event | |
Additional Inherited Members | |
Static Protected Member Functions inherited from jsoner | |
| static json | wrap_config_with_json_header (unsigned int version, const std::string &class_id, const json &config) |
| given a version, class_id and configuration generates the global and common json structure | |
| static json | unwrap_config_from_json_header (const json &source, unsigned int &version, std::string &class_id) |
| from a given json global and common json structure split header parts and return the config part | |
Static Protected Member Functions inherited from bibliotheque_subconfig | |
| static void | subconfig_add_to (bibliotheque::using_set &added_to, const bibliotheque::using_set &to_add) |
| helper routing for objects of inheriting of that class | |
Static Protected Attributes inherited from jsoner | |
| static constexpr const char * | jsoner_version_label = "version" |
| static constexpr const char * | jsoner_id_label = "class_id" |
| static constexpr const char * | jsoner_config_label = "config" |
class html_mask_form_filename let user define mask applied to strings (filename, extended attributes, ...)
at the difference of the html_form_* classes which are component to be included into html_form this class is a full html_form dedicated to the specific case of mask for filename filtering
| html_mask_form_filename::html_mask_form_filename | ( | const std::string & | subject | ) |
constructor
| [in] | subject | is the name of the type of object we filter like "file name" or "extended attributes" this string is used to build the summary phrase describing the action the filter will perform |
|
inlineoverridevirtual |
inherited from body_builder
Reimplemented from body_builder.
|
overridevirtual |
inherited from jsoner
Implements jsoner.
|
overrideprotectedvirtual |
inherited from body_builder
Reimplemented from body_builder.
|
inlineoverridevirtual |
|
overridevirtual |
inherited from bibliotheque_subconfig
Implements bibliotheque_subconfig.
|
overrideprotectedvirtual |
inherited from body_builder
Implements body_builder.
|
inlineoverridevirtual |
|
overridevirtual |
inherited from jsoner
Implements jsoner.
| shared_ptr< body_builder > html_mask_form_filename::manually_add_object | ( | const std::string & | type_name | ) |
manually add an object and return its address
| [in] | type_name | is to one of the available labels (see get_labels()). |
|
inline |
manually set the bool mode of the root bool object
| [in] | mode | should be either in html_form_mask_bool::and_op or html_form_mask_bool::and_or or other bool mode of that class if more exist in the future. |
|
overridevirtual |
inherited from actor
Implements actor.
|
overridevirtual |
inherited from html_form_dynamic_table
Implements html_form_dynamic_table_object_provider.
|
overridevirtual |
inherited from jsoner
Implements jsoner.