Lines Matching defs:SPItem

77 SPItem::SPItem() : SPObject() {
109 SPItem::~SPItem() {
112 bool SPItem::isVisibleAndUnlocked() const {
116 bool SPItem::isVisibleAndUnlocked(unsigned display_key) const {
120 bool SPItem::isLocked() const {
122 SPItem const *item = dynamic_cast<SPItem const *>(o);
130 void SPItem::setLocked(bool locked) {
136 bool SPItem::isHidden() const {
142 void SPItem::setHidden(bool hide) {
150 bool SPItem::isHidden(unsigned display_key) const {
169 bool SPItem::isHighlightSet() const {
173 guint32 SPItem::highlight_color() const {
179 SPItem const *item = dynamic_cast<SPItem const *>(parent);
192 void SPItem::setEvaluated(bool evaluated) {
197 void SPItem::resetEvaluated() {
212 bool SPItem::isEvaluated() const {
220 bool SPItem::isExplicitlyHidden() const
226 void SPItem::setExplicitlyHidden(bool val) {
233 void SPItem::setCenter(Geom::Point const &object_centre) {
260 SPItem::unsetCenter() {
265 bool SPItem::isCenterSet() const {
270 Geom::Point SPItem::getCenter() const {
295 SPItem::scaleCenter(Geom::Scale const &sc) {
303 return dynamic_cast<SPItem const *>(&object) != NULL;
308 void SPItem::raiseToTop() {
319 void SPItem::raiseOne() {
329 void SPItem::lowerOne() {
347 void SPItem::lowerToBottom() {
360 void SPItem::moveTo(SPItem *target, bool intoafter) {
369 while(!dynamic_cast<SPItem*>(bottom->next)){
394 void SPItem::build(SPDocument *document, Inkscape::XML::Node *repr) {
395 SPItem* object = this;
412 void SPItem::release() {
413 SPItem* item = this;
443 void SPItem::set(unsigned int key, gchar const* value) {
444 SPItem *item = this;
445 SPItem* object = item;
544 void SPItem::clip_ref_changed(SPObject *old_clip, SPObject *clip, SPItem *item)
561 v->arenaitem->setKey(SPItem::display_key_new(3));
574 void SPItem::mask_ref_changed(SPObject *old_mask, SPObject *mask, SPItem *item)
589 v->arenaitem->setKey(SPItem::display_key_new(3));
601 void SPItem::fill_ps_ref_changed(SPObject *old_ps, SPObject *ps, SPItem *item) {
614 v->arenaitem->setKey(SPItem::display_key_new(3));
626 void SPItem::stroke_ps_ref_changed(SPObject *old_ps, SPObject *ps, SPItem *item) {
639 v->arenaitem->setKey(SPItem::display_key_new(3));
651 void SPItem::update(SPCtx* ctx, guint flags) {
712 void SPItem::modified(unsigned int /*flags*/)
716 Inkscape::XML::Node* SPItem::write(Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, guint flags) {
717 SPItem *item = this;
718 SPItem* object = item;
791 Geom::OptRect SPItem::bbox(Geom::Affine const & /*transform*/, SPItem::BBoxType /*type*/) const {
796 Geom::OptRect SPItem::geometricBounds(Geom::Affine const &transform) const
802 //bbox = this->bbox(transform, SPItem::GEOMETRIC_BBOX);
803 bbox = const_cast<SPItem*>(this)->bbox(transform, SPItem::GEOMETRIC_BBOX);
808 Geom::OptRect SPItem::visualBounds(Geom::Affine const &transform) const
820 //bbox = this->bbox(Geom::identity(), SPItem::VISUAL_BBOX);
821 bbox = const_cast<SPItem*>(this)->bbox(Geom::identity(), SPItem::GEOMETRIC_BBOX); // see LP Bug 1229971
865 //bbox = this->bbox(transform, SPItem::VISUAL_BBOX);
866 bbox = const_cast<SPItem*>(this)->bbox(transform, SPItem::VISUAL_BBOX);
869 SPItem *ownerItem = dynamic_cast<SPItem *>(clip_ref->getOwner());
878 Geom::OptRect SPItem::bounds(BBoxType type, Geom::Affine const &transform) const
887 Geom::OptRect SPItem::documentGeometricBounds() const
892 Geom::OptRect SPItem::documentVisualBounds() const
900 Geom::OptRect SPItem::documentBounds(BBoxType type) const
909 Geom::OptRect SPItem::desktopGeometricBounds() const
914 Geom::OptRect SPItem::desktopVisualBounds() const
923 Geom::OptRect SPItem::desktopPreferredBounds() const
926 return desktopBounds(SPItem::VISUAL_BBOX);
928 return desktopBounds(SPItem::GEOMETRIC_BBOX);
932 Geom::OptRect SPItem::desktopBounds(BBoxType type) const
941 unsigned int SPItem::pos_in_parent() const {
952 if (dynamic_cast<SPItem *>(iter)) {
962 void SPItem::snappoints(std::vector<Inkscape::SnapCandidatePoint> & /*p*/, Inkscape::SnapPreferences const */*snapprefs*/) const {
971 void SPItem::getSnappoints(std::vector<Inkscape::SnapCandidatePoint> &p, Inkscape::SnapPreferences const *snapprefs) const
976 const_cast<SPItem*>(this)->snappoints(p, snapprefs);
994 SPItem *item = dynamic_cast<SPItem *>(child);
1013 void SPItem::print(SPPrintContext* /*ctx*/) {
1017 void SPItem::invoke_print(SPPrintContext *ctx)
1030 const char* SPItem::displayName() const {
1034 gchar* SPItem::description() const {
1038 gchar *SPItem::detailedDescription() const {
1071 bool SPItem::isFiltered() const {
1075 unsigned SPItem::display_key_new(unsigned numkeys)
1085 Inkscape::DrawingItem* SPItem::show(Inkscape::Drawing& /*drawing*/, unsigned int /*key*/, unsigned int /*flags*/) {
1090 Inkscape::DrawingItem *SPItem::invoke_show(Inkscape::Drawing &drawing, unsigned key, unsigned flags)
1174 void SPItem::hide(unsigned int /*key*/) {
1178 void SPItem::invoke_hide(unsigned key)
1219 void SPItem::adjust_pattern(Geom::Affine const &postmul, bool set, PatternTransform pt)
1242 void SPItem::adjust_gradient( Geom::Affine const &postmul, bool set )
1274 void SPItem::adjust_stroke( gdouble ex )
1300 static Geom::Affine sp_item_transform_repr (SPItem *item)
1315 void SPItem::adjust_stroke_width_recursive(double expansion)
1322 SPItem *item = dynamic_cast<SPItem *>(o);
1330 void SPItem::freeze_stroke_width_recursive(bool freeze)
1337 SPItem *item = dynamic_cast<SPItem *>(o);
1349 sp_item_adjust_rects_recursive(SPItem *item, Geom::Affine advertized_transform)
1357 SPItem *item = dynamic_cast<SPItem *>(o);
1364 void SPItem::adjust_paint_recursive (Geom::Affine advertized_transform, Geom::Affine t_ancestors, bool is_pattern)
1377 SPItem *item = dynamic_cast<SPItem *>(o);
1398 void SPItem::adjust_livepatheffect (Geom::Affine const &postmul, bool set)
1419 Geom::Affine SPItem::set_transform(Geom::Affine const &transform) {
1424 void SPItem::doWriteTransform(Inkscape::XML::Node *repr, Geom::Affine const &transform, Geom::Affine const *adv, bool compensate)
1526 gint SPItem::event(SPEvent* /*event*/) {
1530 gint SPItem::emitEvent(SPEvent &event)
1535 void SPItem::set_item_transform(Geom::Affine const &transform_matrix)
1546 //void SPItem::convert_to_guides() const {
1547 // // CPPIFY: If not overridden, call SPItem::convert_to_guides() const, see below!
1557 while ( object != ancestor && dynamic_cast<SPItem const *>(object) ) {
1562 SPItem const *item = dynamic_cast<SPItem const *>(object);
1578 Geom::Affine SPItem::getRelativeTransform(SPObject const *dest) const {
1582 Geom::Affine SPItem::i2doc_affine() const
1587 Geom::Affine SPItem::i2dt_affine() const
1602 void SPItem::set_i2d_affine(Geom::Affine const &i2dt)
1606 dt2p = static_cast<SPItem *>(parent)->i2dt_affine().inverse();
1617 Geom::Affine SPItem::dt2i_affine() const
1625 SPItemView *SPItem::sp_item_view_new_prepend(SPItemView *list, SPItem *item, unsigned flags, unsigned key, Inkscape::DrawingItem *drawing_item)
1628 g_assert(dynamic_cast<SPItem *>(item) != NULL);
1660 Inkscape::DrawingItem *SPItem::get_arenaitem(unsigned key)
1671 int sp_item_repr_compare_position(SPItem const *first, SPItem const *second)
1677 SPItem const *sp_item_first_item_child(SPObject const *obj)
1682 SPItem *sp_item_first_item_child(SPObject *obj)
1684 SPItem *child = 0;
1686 SPItem *tmp = dynamic_cast<SPItem *>(iter);
1695 void SPItem::convert_to_guides() const {