~scribus/scribus/trunk

« back to all changes in this revision

Viewing changes to scribus/pageitem.h

  • Committer: jghali
  • Date: 2023-11-26 16:57:10 UTC
  • Revision ID: svn-v4:11d20701-8431-0410-a711-e3c959e3b870:trunk/Scribus:25837
Fix a few const correctness issues in pageitem.h

Show diffs side-by-side

added added

removed removed

Lines of Context:
469
469
        void setUseEmbeddedImageProfile(bool val) { UseEmbedded = val; }
470
470
        QString embeddedImageProfile() const { return EmbeddedProfile; }
471
471
        void setEmbeddedImageProfile(const QString& val) { EmbeddedProfile = val; }
472
 
        bool drawFrame() { return ((m_itemType == TextFrame && !m_sampleItem) || (m_itemType == ImageFrame) || (m_itemType == PathText)); }
 
472
        bool drawFrame() const { return ((m_itemType == TextFrame && !m_sampleItem) || (m_itemType == ImageFrame) || (m_itemType == PathText)); }
473
473
        QString externalFile() const { return Pfile; }
474
474
        void setExternalFile(const QString& filename, const QString& baseDir = QString());
475
475
        void setImagePagenumber(int num) { pixm.imgInfo.actualPageNumber = num; }
763
763
        bool softShadowErasedByObject() const { return m_softShadowErasedByObject; }
764
764
 
765
765
        void setSoftShadowHasObjectTransparency(bool val);
766
 
        bool softShadowHasObjectTransparency() { return m_softShadowHasObjectTransparency; }
 
766
        bool softShadowHasObjectTransparency() const { return m_softShadowHasObjectTransparency; }
767
767
 
768
768
        int frameType() const { return FrameType; } ///< rect / oval / round / other
769
769
        void setFrameType(int val) { FrameType = val; }
1274
1274
        void setImageVisible(bool);
1275
1275
 
1276
1276
        void updateConstants();
1277
 
        bool isWelded()  {return !weldList.isEmpty(); }  //true if to this item some other items are welded (weldList is list of these items)
 
1277
        bool isWelded() const { return !weldList.isEmpty(); }  //true if to this item some other items are welded (weldList is list of these items)
1278
1278
        void weldTo(PageItem* item);
1279
1279
        QList<PageItem*> itemsWeldedTo(PageItem* except = nullptr);
1280
1280
        void unWeld();
1284
1284
        void rotateWelded(double dR, double oldRot);
1285
1285
        void setWeldPoint(double dX, double dY, const PageItem *pItem);         ///< added for autowelding feature of notes frames, setting welding point with given pItem to given coords
1286
1286
        QString getItemTextSaxed(int selStart, int selLength); ///< used by notes frames to get content of notes from itemText
1287
 
        bool groupClipping() { return m_groupClips; }
 
1287
        
 
1288
        bool groupClipping() const { return m_groupClips; }
1288
1289
        void setGroupClipping(bool val) { m_groupClips = val; }
1289
 
        bool hasFill() { return ((fillColor() != CommonStrings::None) || (GrType != 0)); }
1290
 
        bool hasStroke() { return ((lineColor() != CommonStrings::None) || (GrTypeStroke != 0) || (!NamedLStyle.isEmpty()) || (!patternStrokeVal.isEmpty())); }
 
1290
        bool hasFill() const { return ((fillColor() != CommonStrings::None) || (GrType != 0)); }
 
1291
        bool hasStroke() const { return ((lineColor() != CommonStrings::None) || (GrTypeStroke != 0) || (!NamedLStyle.isEmpty()) || (!patternStrokeVal.isEmpty())); }
1291
1292
 
1292
1293
                // End public functions
1293
1294