[Libreoffice-commits] core.git: 4 commits - comphelper/source desktop/source forms/source fpicker/source framework/inc framework/source hwpfilter/source include/comphelper lotuswordpro/inc lotuswordpro/source reportdesign/inc reportdesign/source

Noel Grandin (via logerrit) logerrit at kemper.freedesktop.org
Thu Sep 26 01:05:53 UTC 2019


 comphelper/source/misc/asyncquithandler.cxx                     |    2 
 desktop/source/deployment/gui/dp_gui_extlistbox.hxx             |    4 
 desktop/source/deployment/manager/dp_properties.cxx             |    4 
 desktop/source/deployment/manager/dp_properties.hxx             |    4 
 desktop/source/deployment/registry/executable/dp_executable.cxx |    4 
 desktop/source/deployment/registry/package/dp_package.cxx       |    4 
 desktop/source/deployment/registry/sfwk/dp_parceldesc.hxx       |    4 
 forms/source/component/FormComponent.cxx                        |    4 
 forms/source/component/GroupManager.cxx                         |    4 
 forms/source/component/GroupManager.hxx                         |    4 
 forms/source/inc/FormComponent.hxx                              |    4 
 forms/source/xforms/binding.cxx                                 |    8 -
 forms/source/xforms/binding.hxx                                 |    8 -
 forms/source/xforms/convert.cxx                                 |    2 
 forms/source/xforms/convert.hxx                                 |    2 
 forms/source/xforms/xpathlib/extension.hxx                      |    4 
 fpicker/source/office/OfficeControlAccess.cxx                   |    2 
 fpicker/source/office/OfficeControlAccess.hxx                   |    2 
 fpicker/source/office/OfficeFilePicker.cxx                      |    2 
 fpicker/source/office/OfficeFilePicker.hxx                      |    2 
 fpicker/source/office/PlacesListBox.hxx                         |    4 
 fpicker/source/office/iodlg.cxx                                 |    2 
 fpicker/source/office/iodlg.hxx                                 |    2 
 framework/inc/uiconfiguration/globalsettings.hxx                |    2 
 framework/inc/uielement/toolbarmerger.hxx                       |    2 
 framework/source/accelerators/presethandler.cxx                 |    2 
 framework/source/inc/accelerators/presethandler.hxx             |    2 
 framework/source/layoutmanager/toolbarlayoutmanager.hxx         |    2 
 framework/source/uiconfiguration/globalsettings.cxx             |    2 
 framework/source/uiconfiguration/imagemanagerimpl.cxx           |    4 
 framework/source/uiconfiguration/imagemanagerimpl.hxx           |    4 
 framework/source/uielement/toolbarmerger.cxx                    |    2 
 hwpfilter/source/hwpfile.h                                      |   20 +--
 include/comphelper/asyncquithandler.hxx                         |    2 
 lotuswordpro/inc/lwpatomholder.hxx                              |    4 
 lotuswordpro/inc/lwpcolor.hxx                                   |   20 +--
 lotuswordpro/inc/lwpfilehdr.hxx                                 |    4 
 lotuswordpro/inc/lwpfont.hxx                                    |   32 ++--
 lotuswordpro/inc/lwpfoundry.hxx                                 |    2 
 lotuswordpro/inc/lwpfrib.hxx                                    |   10 -
 lotuswordpro/inc/lwpobj.hxx                                     |    2 
 lotuswordpro/inc/lwpobjhdr.hxx                                  |   12 -
 lotuswordpro/inc/lwpobjstrm.hxx                                 |    2 
 lotuswordpro/inc/lwpoverride.hxx                                |   34 ++---
 lotuswordpro/inc/xfilter/xfbookmark.hxx                         |    4 
 lotuswordpro/inc/xfilter/xfcell.hxx                             |    4 
 lotuswordpro/inc/xfilter/xfcolstyle.hxx                         |    4 
 lotuswordpro/inc/xfilter/xfcontent.hxx                          |    2 
 lotuswordpro/inc/xfilter/xfdrawlinestyle.hxx                    |   12 -
 lotuswordpro/inc/xfilter/xffont.hxx                             |   12 -
 lotuswordpro/inc/xfilter/xffontdecl.hxx                         |    4 
 lotuswordpro/inc/xfilter/xfframe.hxx                            |    2 
 lotuswordpro/inc/xfilter/xfmargins.hxx                          |    8 -
 lotuswordpro/inc/xfilter/xfnumberstyle.hxx                      |    2 
 lotuswordpro/inc/xfilter/xfparagraph.hxx                        |    2 
 lotuswordpro/inc/xfilter/xfparastyle.hxx                        |    8 -
 lotuswordpro/inc/xfilter/xfrow.hxx                              |    4 
 lotuswordpro/inc/xfilter/xfrowstyle.hxx                         |    4 
 lotuswordpro/inc/xfilter/xfshadow.hxx                           |   12 -
 lotuswordpro/inc/xfilter/xftable.hxx                            |    4 
 lotuswordpro/inc/xfilter/xftextstyle.hxx                        |    2 
 lotuswordpro/source/filter/bento.hxx                            |   12 -
 lotuswordpro/source/filter/lwpbackgroundoverride.hxx            |    2 
 lotuswordpro/source/filter/lwpbackgroundstuff.hxx               |    4 
 lotuswordpro/source/filter/lwpborderstuff.hxx                   |    2 
 lotuswordpro/source/filter/lwpbreaksoverride.hxx                |   66 +++++-----
 lotuswordpro/source/filter/lwpbulletstylemgr.cxx                |    2 
 lotuswordpro/source/filter/lwpbulletstylemgr.hxx                |    2 
 lotuswordpro/source/filter/lwpcelllayout.hxx                    |   10 -
 lotuswordpro/source/filter/lwpcontent.hxx                       |    8 -
 lotuswordpro/source/filter/lwpdivinfo.cxx                       |    2 
 lotuswordpro/source/filter/lwpdivinfo.hxx                       |   22 +--
 lotuswordpro/source/filter/lwpdoc.hxx                           |    8 -
 lotuswordpro/source/filter/lwpfont.cxx                          |   28 ++--
 lotuswordpro/source/filter/lwpfootnote.cxx                      |    6 
 lotuswordpro/source/filter/lwpfootnote.hxx                      |   32 ++--
 lotuswordpro/source/filter/lwpframelayout.hxx                   |    2 
 lotuswordpro/source/filter/lwpfrib.cxx                          |    2 
 lotuswordpro/source/filter/lwpfribbreaks.hxx                    |    2 
 lotuswordpro/source/filter/lwpfribframe.cxx                     |    2 
 lotuswordpro/source/filter/lwpfribframe.hxx                     |    2 
 lotuswordpro/source/filter/lwpfribmark.cxx                      |    8 -
 lotuswordpro/source/filter/lwpfribmark.hxx                      |   14 +-
 lotuswordpro/source/filter/lwpfribptr.cxx                       |    2 
 lotuswordpro/source/filter/lwpfribptr.hxx                       |    2 
 lotuswordpro/source/filter/lwpfribtext.hxx                      |    4 
 lotuswordpro/source/filter/lwpgrfobj.cxx                        |    2 
 lotuswordpro/source/filter/lwpgrfobj.hxx                        |    6 
 lotuswordpro/source/filter/lwphyperlinkmgr.hxx                  |    4 
 lotuswordpro/source/filter/lwplayout.cxx                        |    8 -
 lotuswordpro/source/filter/lwplayout.hxx                        |   14 +-
 lotuswordpro/source/filter/lwplaypiece.hxx                      |   24 +--
 lotuswordpro/source/filter/lwpmarker.cxx                        |    8 -
 lotuswordpro/source/filter/lwpmarker.hxx                        |   26 +--
 lotuswordpro/source/filter/lwpnotes.hxx                         |    2 
 lotuswordpro/source/filter/lwpnumberingoverride.hxx             |    4 
 lotuswordpro/source/filter/lwpnumericfmt.cxx                    |    2 
 lotuswordpro/source/filter/lwpnumericfmt.hxx                    |   18 +-
 lotuswordpro/source/filter/lwpoverride.cxx                      |    6 
 lotuswordpro/source/filter/lwppagehint.hxx                      |    4 
 lotuswordpro/source/filter/lwppara.hxx                          |    4 
 lotuswordpro/source/filter/lwpparaborderoverride.hxx            |   52 +++----
 lotuswordpro/source/filter/lwpparaproperty.hxx                  |    4 
 lotuswordpro/source/filter/lwpparastyle.cxx                     |    6 
 lotuswordpro/source/filter/lwpparastyle.hxx                     |    6 
 lotuswordpro/source/filter/lwpproplist.hxx                      |    4 
 lotuswordpro/source/filter/lwprowlayout.cxx                     |    2 
 lotuswordpro/source/filter/lwprowlayout.hxx                     |    4 
 lotuswordpro/source/filter/lwpsection.cxx                       |    4 
 lotuswordpro/source/filter/lwpsection.hxx                       |    6 
 lotuswordpro/source/filter/lwpshadow.hxx                        |    4 
 lotuswordpro/source/filter/lwpsilverbullet.cxx                  |    4 
 lotuswordpro/source/filter/lwpsilverbullet.hxx                  |    4 
 lotuswordpro/source/filter/lwpstory.hxx                         |    6 
 lotuswordpro/source/filter/lwptable.cxx                         |    4 
 lotuswordpro/source/filter/lwptable.hxx                         |    8 -
 lotuswordpro/source/filter/lwptablelayout.hxx                   |    8 -
 lotuswordpro/source/filter/lwptabrack.hxx                       |   16 +-
 lotuswordpro/source/filter/lwptblcell.hxx                       |   24 +--
 lotuswordpro/source/filter/lwptblformula.hxx                    |    4 
 lotuswordpro/source/filter/lwptoc.hxx                           |    8 -
 lotuswordpro/source/filter/lwpusewhen.hxx                       |   44 +++---
 lotuswordpro/source/filter/xfilter/xfdrawareastyle.hxx          |    8 -
 lotuswordpro/source/filter/xfilter/xfframe.cxx                  |    2 
 lotuswordpro/source/filter/xfilter/xfparagraph.cxx              |    2 
 lotuswordpro/source/filter/xfilter/xfstylemanager.cxx           |    2 
 reportdesign/inc/RptPage.hxx                                    |    2 
 reportdesign/inc/UndoActions.hxx                                |    2 
 reportdesign/source/core/inc/Group.hxx                          |    2 
 reportdesign/source/ui/dlg/GroupsSorting.cxx                    |    4 
 reportdesign/source/ui/inc/dlgedfunc.hxx                        |    2 
 reportdesign/source/ui/report/dlgedfunc.cxx                     |    2 
 132 files changed, 483 insertions(+), 483 deletions(-)

New commits:
commit 5440274a2a295fb2662ea415f25b89fc298930c8
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Wed Sep 25 13:31:32 2019 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Thu Sep 26 03:04:57 2019 +0200

    loplugin:constmethod in reportdesign
    
    Change-Id: I0076890abb4b5bb179171353b19097f6ebf8aa31
    Reviewed-on: https://gerrit.libreoffice.org/79542
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/reportdesign/inc/RptPage.hxx b/reportdesign/inc/RptPage.hxx
index 80d65c6777f6..abfa883f93eb 100644
--- a/reportdesign/inc/RptPage.hxx
+++ b/reportdesign/inc/RptPage.hxx
@@ -71,7 +71,7 @@ public:
     void removeSdrObject(const css::uno::Reference< css::report::XReportComponent >& _xObject);
 
     void setSpecialMode() {m_bSpecialInsertMode = true;}
-    bool getSpecialMode() {return m_bSpecialInsertMode;}
+    bool getSpecialMode() const {return m_bSpecialInsertMode;}
     // all temporary objects will remove and destroy
     void resetSpecialMode();
 
diff --git a/reportdesign/inc/UndoActions.hxx b/reportdesign/inc/UndoActions.hxx
index 883d409f9e93..4b52aeef31fb 100644
--- a/reportdesign/inc/UndoActions.hxx
+++ b/reportdesign/inc/UndoActions.hxx
@@ -64,7 +64,7 @@ namespace rptui
         }
         css::uno::Reference< css::report::XSection >   getHeader() { return m_xGroup->getHeader(); }
         css::uno::Reference< css::report::XSection >   getFooter() { return m_xGroup->getFooter(); }
-        const css::uno::Reference< css::report::XGroup >&     getGroup() { return m_xGroup; }
+        const css::uno::Reference< css::report::XGroup >&     getGroup() const { return m_xGroup; }
 
         bool getHeaderOn() { return m_xGroup->getHeaderOn(); }
         bool getFooterOn() { return m_xGroup->getFooterOn(); }
diff --git a/reportdesign/source/core/inc/Group.hxx b/reportdesign/source/core/inc/Group.hxx
index e4039c120178..ef2587bd36bd 100644
--- a/reportdesign/source/core/inc/Group.hxx
+++ b/reportdesign/source/core/inc/Group.hxx
@@ -160,7 +160,7 @@ namespace reportdesign
             cppu::WeakComponentImplHelperBase::removeEventListener(aListener);
         }
 
-        const css::uno::Reference< css::uno::XComponentContext >& getContext(){ return m_xContext; }
+        const css::uno::Reference< css::uno::XComponentContext >& getContext() const { return m_xContext; }
     };
 
 } // namespace reportdesign
diff --git a/reportdesign/source/ui/dlg/GroupsSorting.cxx b/reportdesign/source/ui/dlg/GroupsSorting.cxx
index 5bdc020c929c..abd9102c46fa 100644
--- a/reportdesign/source/ui/dlg/GroupsSorting.cxx
+++ b/reportdesign/source/ui/dlg/GroupsSorting.cxx
@@ -119,7 +119,7 @@ public:
 
     void        fillColumns(const uno::Reference< container::XNameAccess>& _xColumns);
     void        lateInit();
-    bool    IsDeleteAllowed( );
+    bool    IsDeleteAllowed( ) const;
     void        DeleteRows();
 
     sal_Int32   getGroupPosition(sal_Int32 _nRow) const { return _nRow != BROWSER_ENDOFSELECTION ? m_aGroupPositions[_nRow] : sal_Int32(NO_GROUP); }
@@ -654,7 +654,7 @@ void OFieldExpressionControl::elementRemoved(const container::ContainerEvent& ev
     }
 }
 
-bool OFieldExpressionControl::IsDeleteAllowed( )
+bool OFieldExpressionControl::IsDeleteAllowed( ) const
 {
     return !m_pParent->isReadOnly() && GetSelectRowCount() > 0;
 }
diff --git a/reportdesign/source/ui/inc/dlgedfunc.hxx b/reportdesign/source/ui/inc/dlgedfunc.hxx
index e4a546d9f76d..a7bfac55421d 100644
--- a/reportdesign/source/ui/inc/dlgedfunc.hxx
+++ b/reportdesign/source/ui/inc/dlgedfunc.hxx
@@ -73,7 +73,7 @@ protected:
         returns true, as long as only customshapes in the marked list,
         custom shapes can drop every where
     */
-    bool    isOnlyCustomShapeMarked();
+    bool    isOnlyCustomShapeMarked() const;
 
     /** activate object if it is of type OBJ_OLE2
     */
diff --git a/reportdesign/source/ui/report/dlgedfunc.cxx b/reportdesign/source/ui/report/dlgedfunc.cxx
index 19aa64308845..10eb3b4a1d11 100644
--- a/reportdesign/source/ui/report/dlgedfunc.cxx
+++ b/reportdesign/source/ui/report/dlgedfunc.cxx
@@ -533,7 +533,7 @@ void DlgEdFunc::checkMovementAllowed(const MouseEvent& rMEvt)
         m_pParent->getSectionWindow()->getViewsWindow()->EndAction();
 }
 
-bool DlgEdFunc::isOnlyCustomShapeMarked()
+bool DlgEdFunc::isOnlyCustomShapeMarked() const
 {
     bool bReturn = true;
     const SdrMarkList& rMarkList = m_rView.GetMarkedObjectList();
commit 4e67474a6e4dbfeff5316dcf08b44cfead148609
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Wed Sep 25 13:31:06 2019 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Thu Sep 26 03:04:45 2019 +0200

    loplugin:constmethod in framework..lotuswordpro
    
    Change-Id: I14a3855a75cf081d86c2a404966db38c617c0256
    Reviewed-on: https://gerrit.libreoffice.org/79541
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/framework/inc/uiconfiguration/globalsettings.hxx b/framework/inc/uiconfiguration/globalsettings.hxx
index c8d87969139d..574beacfdcb9 100644
--- a/framework/inc/uiconfiguration/globalsettings.hxx
+++ b/framework/inc/uiconfiguration/globalsettings.hxx
@@ -49,7 +49,7 @@ class GlobalSettings
         };
 
         // settings access
-        bool HasToolbarStatesInfo();
+        bool HasToolbarStatesInfo() const;
         bool GetToolbarStateInfo( StateInfo eStateInfo, css::uno::Any& aValue );
 
     private:
diff --git a/framework/inc/uielement/toolbarmerger.hxx b/framework/inc/uielement/toolbarmerger.hxx
index 24017793bede..cc0448a8f76f 100644
--- a/framework/inc/uielement/toolbarmerger.hxx
+++ b/framework/inc/uielement/toolbarmerger.hxx
@@ -82,7 +82,7 @@ class ToolBarMerger
                                                    OUString& rControlType,
                                                    sal_uInt16& rWidth );
 
-        static ReferenceToolbarPathInfo FindReferencePoint( ToolBox* pToolbar,
+        static ReferenceToolbarPathInfo FindReferencePoint( const ToolBox* pToolbar,
                                                             const OUString& rReferencePoint );
 
         static bool       ProcessMergeOperation( ToolBox*                  pToolbar,
diff --git a/framework/source/accelerators/presethandler.cxx b/framework/source/accelerators/presethandler.cxx
index b8b637c5455e..b81abece09c1 100644
--- a/framework/source/accelerators/presethandler.cxx
+++ b/framework/source/accelerators/presethandler.cxx
@@ -278,7 +278,7 @@ css::uno::Reference< css::embed::XStorage > PresetHandler::getOrCreateRootStorag
     return xStorage;
 }
 
-css::uno::Reference< css::embed::XStorage > PresetHandler::getWorkingStorageUser()
+css::uno::Reference< css::embed::XStorage > PresetHandler::getWorkingStorageUser() const
 {
     SolarMutexGuard g;
     return m_xWorkingStorageUser;
diff --git a/framework/source/inc/accelerators/presethandler.hxx b/framework/source/inc/accelerators/presethandler.hxx
index 072011b1de06..027f4656cab7 100644
--- a/framework/source/inc/accelerators/presethandler.hxx
+++ b/framework/source/inc/accelerators/presethandler.hxx
@@ -158,7 +158,7 @@ class PresetHandler
             @return css::embed::XStorage
                     which the current working storage.
          */
-        css::uno::Reference< css::embed::XStorage > getWorkingStorageUser();
+        css::uno::Reference< css::embed::XStorage > getWorkingStorageUser() const;
 
         /** @short  check if there is a parent storage well known for
                     the specified child storage and return it.
diff --git a/framework/source/layoutmanager/toolbarlayoutmanager.hxx b/framework/source/layoutmanager/toolbarlayoutmanager.hxx
index c24cee6ee53f..377929309fdc 100644
--- a/framework/source/layoutmanager/toolbarlayoutmanager.hxx
+++ b/framework/source/layoutmanager/toolbarlayoutmanager.hxx
@@ -87,7 +87,7 @@ class ToolbarLayoutManager : public ::cppu::WeakImplHelper< css::awt::XDockableW
         bool isPreviewFrame();
 
         // layouting
-        bool isLayoutDirty() { return m_bLayoutDirty;}
+        bool isLayoutDirty() const { return m_bLayoutDirty;}
         void doLayout(const ::Size& aContainerSize);
 
         // creation/destruction
diff --git a/framework/source/uiconfiguration/globalsettings.cxx b/framework/source/uiconfiguration/globalsettings.cxx
index 73bc3effb7e7..02d6032093f7 100644
--- a/framework/source/uiconfiguration/globalsettings.cxx
+++ b/framework/source/uiconfiguration/globalsettings.cxx
@@ -243,7 +243,7 @@ GlobalSettings::~GlobalSettings()
 }
 
 // settings access
-bool GlobalSettings::HasToolbarStatesInfo()
+bool GlobalSettings::HasToolbarStatesInfo() const
 {
     GlobalSettings_Access* pSettings( GetGlobalSettings( m_xContext ));
 
diff --git a/framework/source/uiconfiguration/imagemanagerimpl.cxx b/framework/source/uiconfiguration/imagemanagerimpl.cxx
index a49f248d3a4d..ed21dd818d5e 100644
--- a/framework/source/uiconfiguration/imagemanagerimpl.cxx
+++ b/framework/source/uiconfiguration/imagemanagerimpl.cxx
@@ -1149,13 +1149,13 @@ void ImageManagerImpl::storeToStorage( const uno::Reference< XStorage >& Storage
     }
 }
 
-bool ImageManagerImpl::isModified()
+bool ImageManagerImpl::isModified() const
 {
     SolarMutexGuard g;
     return m_bModified;
 }
 
-bool ImageManagerImpl::isReadOnly()
+bool ImageManagerImpl::isReadOnly() const
 {
     SolarMutexGuard g;
     return m_bReadOnly;
diff --git a/framework/source/uiconfiguration/imagemanagerimpl.hxx b/framework/source/uiconfiguration/imagemanagerimpl.hxx
index 27835e87fca1..13cbfd4c7ec2 100644
--- a/framework/source/uiconfiguration/imagemanagerimpl.hxx
+++ b/framework/source/uiconfiguration/imagemanagerimpl.hxx
@@ -140,9 +140,9 @@ namespace framework
             /// @throws css::uno::RuntimeException
             void storeToStorage( const css::uno::Reference< css::embed::XStorage >& Storage );
             /// @throws css::uno::RuntimeException
-            bool isModified();
+            bool isModified() const;
             /// @throws css::uno::RuntimeException
-            bool isReadOnly();
+            bool isReadOnly() const;
 
             void clear();
 
diff --git a/framework/source/uielement/toolbarmerger.cxx b/framework/source/uielement/toolbarmerger.cxx
index e66a31e77d85..4e257d02954b 100644
--- a/framework/source/uielement/toolbarmerger.cxx
+++ b/framework/source/uielement/toolbarmerger.cxx
@@ -224,7 +224,7 @@ void ToolBarMerger::ConvertSequenceToValues(
      position of the reference point and the toolbar used.
 */
 ReferenceToolbarPathInfo ToolBarMerger::FindReferencePoint(
-    ToolBox*               pToolbar,
+    const ToolBox*   pToolbar,
     const OUString& rReferencePoint )
 {
     ReferenceToolbarPathInfo aResult;
diff --git a/hwpfilter/source/hwpfile.h b/hwpfilter/source/hwpfile.h
index bf14fb58089c..768086193523 100644
--- a/hwpfilter/source/hwpfile.h
+++ b/hwpfilter/source/hwpfile.h
@@ -221,7 +221,7 @@ class DLLEXPORT HWPFile
         ColumnDef* GetColumnDef(int);
           int GetPageMasterNum(int page);
 
-          int getCurrentPage(){ return m_nCurrentPage;}
+        int getCurrentPage() const{ return m_nCurrentPage;}
         HWPInfo& GetHWPInfo(void) { return _hwpInfo; }
         HWPFont& GetHWPFont(void) { return _hwpFont; }
         HWPStyle& GetHWPStyle(void) { return _hwpStyle; }
@@ -238,16 +238,16 @@ class DLLEXPORT HWPFile
         ShowPageNum *getPageNumber(int);
           Table *getTable(int);
 
-        int getParaShapeCount(){ return pslist.size(); }
-        int getCharShapeCount(){ return cslist.size(); }
-        int getFBoxStyleCount(){ return fbslist.size(); }
-        int getDateFormatCount(){ return datecodes.size(); }
-        int getHeaderFooterCount(){ return headerfooters.size(); }
-        int getPageNumberCount(){ return pagenumbers.size(); }
-        int getTableCount(){ return tables.size(); }
-        int getColumnCount(){ return columnlist.size(); }
+        int getParaShapeCount() const{ return pslist.size(); }
+        int getCharShapeCount() const{ return cslist.size(); }
+        int getFBoxStyleCount() const{ return fbslist.size(); }
+        int getDateFormatCount() const{ return datecodes.size(); }
+        int getHeaderFooterCount() const{ return headerfooters.size(); }
+        int getPageNumberCount() const{ return pagenumbers.size(); }
+        int getTableCount() const{ return tables.size(); }
+        int getColumnCount() const{ return columnlist.size(); }
 
-          int getMaxSettedPage(){ return m_nMaxSettedPage; }
+          int getMaxSettedPage() const{ return m_nMaxSettedPage; }
           void setMaxSettedPage(){ m_nMaxSettedPage = m_nCurrentPage; }
 
         void push_hpara_type(unsigned char scflag) { element_import_stack.push_back(scflag); }
diff --git a/lotuswordpro/inc/lwpatomholder.hxx b/lotuswordpro/inc/lwpatomholder.hxx
index b038289a2d6b..e6f4ae57377c 100644
--- a/lotuswordpro/inc/lwpatomholder.hxx
+++ b/lotuswordpro/inc/lwpatomholder.hxx
@@ -76,9 +76,9 @@ public:
     void ReadPathAtom(LwpObjectStream *pStrm);
     void Skip(LwpObjectStream *pStrm);
     const OUString& str() const {return m_String;}
-    inline bool HasValue();
+    inline bool HasValue() const;
 };
-inline bool LwpAtomHolder::HasValue()
+inline bool LwpAtomHolder::HasValue() const
 {
     return (m_nAtom != BAD_ATOM);
 }
diff --git a/lotuswordpro/inc/lwpcolor.hxx b/lotuswordpro/inc/lwpcolor.hxx
index d6d3b02a63b7..3ca8698800ad 100644
--- a/lotuswordpro/inc/lwpcolor.hxx
+++ b/lotuswordpro/inc/lwpcolor.hxx
@@ -73,12 +73,12 @@ public:
     LwpColor():m_nRed(0), m_nGreen(0), m_nBlue(0), m_nExtra(0){}
 public:
     void Read(LwpObjectStream *pStrm);
-    sal_uInt16 GetRed();
-    sal_uInt16 GetGreen();
-    sal_uInt16 GetBlue();
-    bool IsValidColor();
+    sal_uInt16 GetRed() const;
+    sal_uInt16 GetGreen() const;
+    sal_uInt16 GetBlue() const;
+    bool IsValidColor() const;
     sal_uInt32 To24Color();
-    bool IsTransparent();
+    bool IsTransparent() const;
 private:
     sal_uInt16 m_nRed;          // When extra is AGLRGB_INDEX, m_nRed holds the
     sal_uInt16 m_nGreen;        // hi 16 bits and m_nGreen holds the lo 16 bits of
@@ -99,23 +99,23 @@ private:
           AGLRGB_TRANSPARENT = 100
     };
 };
-inline sal_uInt16 LwpColor::GetRed()
+inline sal_uInt16 LwpColor::GetRed() const
 {
     return m_nRed;
 }
-inline sal_uInt16 LwpColor::GetGreen()
+inline sal_uInt16 LwpColor::GetGreen() const
 {
     return m_nGreen;
 }
-inline sal_uInt16 LwpColor::GetBlue()
+inline sal_uInt16 LwpColor::GetBlue() const
 {
     return m_nBlue;
 }
-inline bool LwpColor::IsValidColor()
+inline bool LwpColor::IsValidColor() const
 {
     return ((m_nExtra!=AGLRGB_INVALID) && (m_nExtra!=AGLRGB_TRANSPARENT));
 }
-inline bool LwpColor::IsTransparent()
+inline bool LwpColor::IsTransparent() const
 {
     return (m_nExtra==AGLRGB_TRANSPARENT);
 }
diff --git a/lotuswordpro/inc/lwpfilehdr.hxx b/lotuswordpro/inc/lwpfilehdr.hxx
index ef444b12eb2b..2bb49127ab8f 100644
--- a/lotuswordpro/inc/lwpfilehdr.hxx
+++ b/lotuswordpro/inc/lwpfilehdr.hxx
@@ -74,10 +74,10 @@ private: //data member
 public:
     static sal_uInt16 m_nFileRevision;
     void Read(LwpSvStream *pStrm);
-    sal_uInt32 GetRootIndexOffset();
+    sal_uInt32 GetRootIndexOffset() const;
     LwpObjectID& GetDocID();
 };
-inline sal_uInt32 LwpFileHeader::GetRootIndexOffset()
+inline sal_uInt32 LwpFileHeader::GetRootIndexOffset() const
 {
     return m_nRootIndexOffset;
 }
diff --git a/lotuswordpro/inc/lwpfont.hxx b/lotuswordpro/inc/lwpfont.hxx
index 866775485234..cc1dc713347e 100644
--- a/lotuswordpro/inc/lwpfont.hxx
+++ b/lotuswordpro/inc/lwpfont.hxx
@@ -80,7 +80,7 @@ public:
     LwpFontTableEntry(){}
 public:
     void Read(LwpObjectStream *pStrm);
-    OUString const & GetFaceName();
+    OUString const & GetFaceName() const;
 private:
     LwpAtomHolder m_WindowsFaceName;    //font face name under windows
     LwpAtomHolder m_FaceName;           //font face name
@@ -117,11 +117,11 @@ public:
         {}
 public:
     void Read(LwpObjectStream *pStrm);
-    sal_uInt16 GetFaceID(){return m_nFaceName;}
-    sal_uInt16 GetAltFaceID(){return m_nAltFaceName;}
+    sal_uInt16 GetFaceID() const {return m_nFaceName;}
+    sal_uInt16 GetAltFaceID() const {return m_nAltFaceName;}
     void Override(rtl::Reference<XFFont> const & pFont);
-    inline bool IsFaceNameOverridden();
-    inline bool IsAltFaceNameOverridden();
+    inline bool IsFaceNameOverridden() const;
+    inline bool IsAltFaceNameOverridden() const;
 private:
     //Data of CFontDescriptionOverrideBase
     sal_uInt8 m_nOverrideBits;
@@ -148,9 +148,9 @@ private:
                             | TIGHTNESS | FACENAME | BKCOLOR)
     };
 
-    inline bool IsPointSizeOverridden();
-    inline bool IsColorOverridden();
-    inline bool IsBackgroundColorOverridden();
+    inline bool IsPointSizeOverridden() const;
+    inline bool IsColorOverridden() const;
+    inline bool IsBackgroundColorOverridden() const;
 //TODO
 //    inline sal_Bool IsTightnessOverridden();
 //    inline sal_Bool IsAnythingOverridden();
@@ -230,14 +230,14 @@ private:
         ALL_ATTRS2          = CASE | UNDER
     };
     bool Is(sal_uInt16 Attr);
-    bool IsBoldOverridden();
-    bool IsItalicOverridden();
-    bool IsStrikeThruOverridden();
-    bool IsSmallCapsOverridden();
-    bool IsSuperOverridden();
-    bool IsSubOverridden();
-    bool IsUnderlineOverridden();
-    bool IsCaseOverridden();
+    bool IsBoldOverridden() const;
+    bool IsItalicOverridden() const;
+    bool IsStrikeThruOverridden() const;
+    bool IsSmallCapsOverridden() const;
+    bool IsSuperOverridden() const;
+    bool IsSubOverridden() const;
+    bool IsUnderlineOverridden() const;
+    bool IsCaseOverridden() const;
 
 };
 
diff --git a/lotuswordpro/inc/lwpfoundry.hxx b/lotuswordpro/inc/lwpfoundry.hxx
index 96c487c35c98..ae91294885b2 100644
--- a/lotuswordpro/inc/lwpfoundry.hxx
+++ b/lotuswordpro/inc/lwpfoundry.hxx
@@ -103,7 +103,7 @@ private:
     LwpObjectID m_TableRange;
 public:
     void Read(LwpObjectStream *pStrm);
-    const LwpObjectID& GetTableRangeID(){ return m_TableRange;}
+    const LwpObjectID& GetTableRangeID() const { return m_TableRange;}
 };
 
 class LwpBulletManager
diff --git a/lotuswordpro/inc/lwpfrib.hxx b/lotuswordpro/inc/lwpfrib.hxx
index 6ff3cad39a98..753bdc5999cf 100644
--- a/lotuswordpro/inc/lwpfrib.hxx
+++ b/lotuswordpro/inc/lwpfrib.hxx
@@ -93,7 +93,7 @@ public:
     virtual void Read(LwpObjectStream* pObjStrm, sal_uInt16 len);
     LwpFrib* GetNext(){return m_pNext;}
     void SetNext(LwpFrib* next){m_pNext = next;}
-    sal_uInt8 GetType() { return m_nFribType;}
+    sal_uInt8 GetType() const { return m_nFribType;}
     OUString GetEditor();
     XFColor GetHighlightColor();
 protected:
@@ -105,17 +105,17 @@ protected:
     OUString m_StyleName;
 public:
     bool m_ModFlag;
-    const OUString& GetStyleName(){return m_StyleName;}
+    const OUString& GetStyleName() const {return m_StyleName;}
     void SetModifiers(ModifierInfo* pModifiers);
     ModifierInfo* GetModifiers(){return m_pModifiers.get();}
     virtual void RegisterStyle(LwpFoundry* pFoundry);
     bool HasNextFrib();
     void ConvertChars(XFContentContainer* pXFPara,const OUString& text);
-    void ConvertHyperLink(XFContentContainer* pXFPara,LwpHyperlinkMgr* pHyperlink,const OUString& text);
+    void ConvertHyperLink(XFContentContainer* pXFPara, const LwpHyperlinkMgr* pHyperlink,const OUString& text);
     rtl::Reference<XFFont> GetFont();
 
-    sal_uInt8 GetRevisionType(){return m_nRevisionType;}
-    bool GetRevisionFlag(){return m_bRevisionFlag;}
+    sal_uInt8 GetRevisionType() const {return m_nRevisionType;}
+    bool GetRevisionFlag() const {return m_bRevisionFlag;}
     enum{
         REV_INSERT =0,
         REV_DELETE = 1,
diff --git a/lotuswordpro/inc/lwpobj.hxx b/lotuswordpro/inc/lwpobj.hxx
index df38746f49f7..0cb7b428e28f 100644
--- a/lotuswordpro/inc/lwpobj.hxx
+++ b/lotuswordpro/inc/lwpobj.hxx
@@ -133,7 +133,7 @@ public:
     LwpFoundry* GetFoundry(){return m_pFoundry;}
     void SetFoundry(LwpFoundry* pFoundry){m_pFoundry = pFoundry;}
     LwpObjectID& GetObjectID(){ return m_ObjHdr.GetID();}
-    sal_uInt32 GetTag() { return m_ObjHdr.GetTag();}
+    sal_uInt32 GetTag() const { return m_ObjHdr.GetTag();}
 };
 #endif
 
diff --git a/lotuswordpro/inc/lwpobjhdr.hxx b/lotuswordpro/inc/lwpobjhdr.hxx
index 12c4169bf8e8..a1dc885dfcbd 100644
--- a/lotuswordpro/inc/lwpobjhdr.hxx
+++ b/lotuswordpro/inc/lwpobjhdr.hxx
@@ -108,17 +108,17 @@ private:
 
 public:
     bool Read(LwpSvStream &pStrm);
-    inline sal_uInt32 GetTag();
-    inline sal_uInt32 GetSize();
+    inline sal_uInt32 GetTag() const;
+    inline sal_uInt32 GetSize() const;
     inline LwpObjectID& GetID();
-    inline bool IsCompressed();
+    inline bool IsCompressed() const;
 };
 
-inline sal_uInt32 LwpObjectHeader::GetTag()
+inline sal_uInt32 LwpObjectHeader::GetTag() const
 {
     return m_nTag;
 }
-inline sal_uInt32 LwpObjectHeader::GetSize()
+inline sal_uInt32 LwpObjectHeader::GetSize() const
 {
     return m_nSize;
 }
@@ -126,7 +126,7 @@ inline LwpObjectID& LwpObjectHeader::GetID()
 {
     return m_ID;
 }
-inline bool LwpObjectHeader::IsCompressed()
+inline bool LwpObjectHeader::IsCompressed() const
 {
     return m_bCompressed;
 }
diff --git a/lotuswordpro/inc/lwpobjstrm.hxx b/lotuswordpro/inc/lwpobjstrm.hxx
index bbcfd3af2a91..0e702bb96a34 100644
--- a/lotuswordpro/inc/lwpobjstrm.hxx
+++ b/lotuswordpro/inc/lwpobjstrm.hxx
@@ -88,7 +88,7 @@ private:
 public:
     sal_uInt16 remainingSize() const;
     sal_uInt16 QuickRead(void* buf, sal_uInt16 len);
-    sal_uInt16 GetPos() { return m_nReadPos; }
+    sal_uInt16 GetPos() const { return m_nReadPos; }
     void SeekRel(sal_uInt16 pos);
     void Seek( sal_uInt16 pos);
     void SkipExtra();
diff --git a/lotuswordpro/inc/lwpoverride.hxx b/lotuswordpro/inc/lwpoverride.hxx
index 19d059616b87..036492e518d1 100644
--- a/lotuswordpro/inc/lwpoverride.hxx
+++ b/lotuswordpro/inc/lwpoverride.hxx
@@ -131,7 +131,7 @@ public:
 
     inline sal_uInt16 GetHideLevels() const;
 
-    bool IsHighlight();
+    bool IsHighlight() const;
 
 private:
     LwpTextAttributeOverride(LwpTextAttributeOverride const& rOther);
@@ -178,12 +178,12 @@ public:
 
     void Override(LwpBulletOverride* pOther);
 
-    inline bool IsSilverBulletOverridden();
-    inline bool IsSkipOverridden();
-    inline bool IsRightAlignedOverridden();
-    inline bool IsSkip();
-    inline bool IsRightAligned();
-    inline bool IsEditable();
+    inline bool IsSilverBulletOverridden() const;
+    inline bool IsSkipOverridden() const;
+    inline bool IsRightAlignedOverridden() const;
+    inline bool IsSkip() const;
+    inline bool IsRightAligned() const;
+    inline bool IsEditable() const;
 
     void OverrideSilverBullet(LwpObjectID aID);
     void OverrideSkip(bool bOver);
@@ -193,7 +193,7 @@ public:
     inline void RevertSkip();
     inline void RevertRightAligned();
 
-    bool IsInValid(){return m_bIsNull;}
+    bool IsInValid() const {return m_bIsNull;}
 
 private:
     LwpBulletOverride(LwpBulletOverride const& rOther);
@@ -217,32 +217,32 @@ inline const LwpObjectID& LwpBulletOverride::GetSilverBullet() const
     return m_SilverBullet;
 }
 
-inline bool LwpBulletOverride::IsSilverBulletOverridden()
+inline bool LwpBulletOverride::IsSilverBulletOverridden() const
 {
     return ((m_nOverride & BO_SILVERBULLET) != 0);
 }
 
-inline bool LwpBulletOverride::IsSkipOverridden()
+inline bool LwpBulletOverride::IsSkipOverridden() const
 {
     return ((m_nOverride & BO_SKIP) != 0);
 }
 
-inline bool LwpBulletOverride::IsRightAlignedOverridden()
+inline bool LwpBulletOverride::IsRightAlignedOverridden() const
 {
     return ((m_nOverride & BO_RIGHTALIGN) != 0);
 }
 
-inline bool LwpBulletOverride::IsSkip()
+inline bool LwpBulletOverride::IsSkip() const
 {
     return ((m_nValues & BO_SKIP) != 0);
 }
 
-inline bool LwpBulletOverride::IsEditable()
+inline bool LwpBulletOverride::IsEditable() const
 {
     return ((m_nValues & BO_EDITABLE) != 0);
 }
 
-inline bool LwpBulletOverride::IsRightAligned()
+inline bool LwpBulletOverride::IsRightAligned() const
 {
     return ((m_nValues & BO_RIGHTALIGN) != 0);
 }
@@ -283,7 +283,7 @@ public:
         ALIGN_SQUEEZE       = 7
     };
 
-    AlignType GetAlignType(){ return m_nAlignType; }
+    AlignType GetAlignType() const { return m_nAlignType; }
     void Override(LwpAlignmentOverride* other);
     void OverrideAlignment(AlignType val);
 
@@ -389,8 +389,8 @@ public:
     inline double GetLeft() const;
     inline double GetRight() const;
 
-    sal_uInt16 GetRelative();
-    bool IsUseRelative();
+    sal_uInt16 GetRelative() const;
+    bool IsUseRelative() const;
     void Override(LwpIndentOverride* other);
     void OverrideIndentAll(sal_Int32 val);
     void OverrideIndentFirst(sal_Int32 val);
diff --git a/lotuswordpro/inc/xfilter/xfbookmark.hxx b/lotuswordpro/inc/xfilter/xfbookmark.hxx
index 2c2a684f2bd9..1dd473f94c44 100644
--- a/lotuswordpro/inc/xfilter/xfbookmark.hxx
+++ b/lotuswordpro/inc/xfilter/xfbookmark.hxx
@@ -78,9 +78,9 @@ public:
         m_bStart = isStart;
     }
 
-    const OUString& GetDivision(){return m_strDivision;}
+    const OUString& GetDivision() const {return m_strDivision;}
     void SetDivision(const OUString& sDivName){m_strDivision = sDivName;}
-    const OUString& GetName(){return m_strName;}
+    const OUString& GetName() const {return m_strName;}
 
 public:
     /**
diff --git a/lotuswordpro/inc/xfilter/xfcell.hxx b/lotuswordpro/inc/xfilter/xfcell.hxx
index 9199b5a1aba1..2bdc97824323 100644
--- a/lotuswordpro/inc/xfilter/xfcell.hxx
+++ b/lotuswordpro/inc/xfilter/xfcell.hxx
@@ -134,7 +134,7 @@ public:
     /**
      * @descr   return cell column span property.
      */
-    sal_Int32   GetColSpaned();
+    sal_Int32   GetColSpaned() const;
 
     /**
      * @descr   Output cell as xml element.
@@ -186,7 +186,7 @@ inline void XFCell::SetOwnerRow(XFRow *pRow)
     m_pOwnerRow = pRow;
 }
 
-inline sal_Int32 XFCell::GetColSpaned()
+inline sal_Int32 XFCell::GetColSpaned() const
 {
     return m_nColSpaned;
 }
diff --git a/lotuswordpro/inc/xfilter/xfcolstyle.hxx b/lotuswordpro/inc/xfilter/xfcolstyle.hxx
index 563fd0134031..774a2e636941 100644
--- a/lotuswordpro/inc/xfilter/xfcolstyle.hxx
+++ b/lotuswordpro/inc/xfilter/xfcolstyle.hxx
@@ -82,7 +82,7 @@ public:
     /**
      * @descr   return column width.
      */
-    double  GetWidth();
+    double  GetWidth() const;
 
     virtual enumXFStyle GetStyleFamily() override;
 
@@ -100,7 +100,7 @@ inline void XFColStyle::SetWidth(double width)
     m_fWidth = width;
 }
 
-inline double XFColStyle::GetWidth()
+inline double XFColStyle::GetWidth() const
 {
     return m_fWidth;
 }
diff --git a/lotuswordpro/inc/xfilter/xfcontent.hxx b/lotuswordpro/inc/xfilter/xfcontent.hxx
index 38021b4fcd7a..8cb5be5da2c6 100644
--- a/lotuswordpro/inc/xfilter/xfcontent.hxx
+++ b/lotuswordpro/inc/xfilter/xfcontent.hxx
@@ -91,7 +91,7 @@ public:
     /**
      * @short:  return the style name.
      */
-    const OUString& GetStyleName() {return m_strStyleName;}
+    const OUString& GetStyleName() const {return m_strStyleName;}
 
     void DoToXml(IXFStream* stream)
     {
diff --git a/lotuswordpro/inc/xfilter/xfdrawlinestyle.hxx b/lotuswordpro/inc/xfilter/xfdrawlinestyle.hxx
index 20df6dc436bd..5dae0ccd482b 100644
--- a/lotuswordpro/inc/xfilter/xfdrawlinestyle.hxx
+++ b/lotuswordpro/inc/xfilter/xfdrawlinestyle.hxx
@@ -121,13 +121,13 @@ public:
     /**
      * @descr   decide whether it's a solid line.
      */
-    bool    IsSolid();
+    bool    IsSolid() const;
 
-    double  GetWidth();
+    double  GetWidth() const;
 
     const XFColor& GetColor() const;
 
-    sal_Int32   GetTransparency();
+    sal_Int32   GetTransparency() const;
 
     virtual enumXFStyle GetStyleFamily() override;
 
@@ -190,12 +190,12 @@ inline void XFDrawLineStyle::SetSpace(double space)
     m_fSpace = space;
 }
 
-inline bool XFDrawLineStyle::IsSolid()
+inline bool XFDrawLineStyle::IsSolid() const
 {
     return (m_eLineStyle==enumXFLineSolid);
 }
 
-inline double XFDrawLineStyle::GetWidth()
+inline double XFDrawLineStyle::GetWidth() const
 {
     return m_fWidth;
 }
@@ -205,7 +205,7 @@ inline const XFColor& XFDrawLineStyle::GetColor() const
     return m_aColor;
 }
 
-inline sal_Int32 XFDrawLineStyle::GetTransparency()
+inline sal_Int32 XFDrawLineStyle::GetTransparency() const
 {
     return m_nTransparency;
 }
diff --git a/lotuswordpro/inc/xfilter/xffont.hxx b/lotuswordpro/inc/xfilter/xffont.hxx
index f9e83eba1eb1..47067b3a59d2 100644
--- a/lotuswordpro/inc/xfilter/xffont.hxx
+++ b/lotuswordpro/inc/xfilter/xffont.hxx
@@ -213,10 +213,10 @@ public:
     void    SetBackColorTransparent();
 
     //getter:
-    enumXFTransform GetTransform();
+    enumXFTransform GetTransform() const;
 
-    sal_Int16 GetFontSize();
-    const XFColor& GetColor();
+    sal_Int16 GetFontSize() const;
+    const XFColor& GetColor() const;
 
     void    ToXml(IXFStream *pStrm);
 
@@ -397,17 +397,17 @@ inline void XFFont::SetBackColorTransparent()
     m_nFlag |= XFFONT_FLAG_BGCOLOR;
 }
 
-inline enumXFTransform XFFont::GetTransform()
+inline enumXFTransform XFFont::GetTransform() const
 {
     return m_eTransform;
 }
 
-inline sal_Int16 XFFont::GetFontSize()
+inline sal_Int16 XFFont::GetFontSize() const
 {
     return m_nFontSize;
 }
 
-inline const XFColor& XFFont::GetColor()
+inline const XFColor& XFFont::GetColor() const
 {
     return m_aColor;
 }
diff --git a/lotuswordpro/inc/xfilter/xffontdecl.hxx b/lotuswordpro/inc/xfilter/xffontdecl.hxx
index e1a1e615a7cf..2c3eeaad7164 100644
--- a/lotuswordpro/inc/xfilter/xffontdecl.hxx
+++ b/lotuswordpro/inc/xfilter/xffontdecl.hxx
@@ -77,12 +77,12 @@ public:
     /**
      * @descr   Get font name.
      */
-    const OUString& GetFontName() { return m_strFontName;}
+    const OUString& GetFontName() const { return m_strFontName;}
 
     /**
      * @descr   Get font family.
      */
-    const OUString& GetFontFamily() { return m_strFontFamily;}
+    const OUString& GetFontFamily() const { return m_strFontFamily;}
 
 private:
     OUString   m_strFontName;
diff --git a/lotuswordpro/inc/xfilter/xfframe.hxx b/lotuswordpro/inc/xfilter/xfframe.hxx
index 1394cde73ae0..35f73d32587a 100644
--- a/lotuswordpro/inc/xfilter/xfframe.hxx
+++ b/lotuswordpro/inc/xfilter/xfframe.hxx
@@ -154,7 +154,7 @@ public:
     /**
      * @descr   Get the frame type. image, drawing or text-box.
      */
-    enumXFFrameType GetFrameType();
+    enumXFFrameType GetFrameType() const;
 
     /**
      * @descr   Get content type, enumXFContentFrame.
diff --git a/lotuswordpro/inc/xfilter/xfmargins.hxx b/lotuswordpro/inc/xfilter/xfmargins.hxx
index 2705304d3004..0ee890c7f9d8 100644
--- a/lotuswordpro/inc/xfilter/xfmargins.hxx
+++ b/lotuswordpro/inc/xfilter/xfmargins.hxx
@@ -78,8 +78,8 @@ public:
     void    SetTop(double top);
     void    SetBottom(double bottom);
 
-    double  GetLeft();
-    double  GetTop();
+    double  GetLeft() const;
+    double  GetTop() const;
 
     void    ToXml(IXFStream *pStrm);
 
@@ -117,12 +117,12 @@ inline void XFMargins::SetBottom(double bottom)
     m_nFlag |= XFMARGINS_FLAG_BOTTOM;
 }
 
-inline double   XFMargins::GetLeft()
+inline double   XFMargins::GetLeft() const
 {
     return m_fLeft;
 }
 
-inline double   XFMargins::GetTop()
+inline double   XFMargins::GetTop() const
 {
     return m_fTop;
 }
diff --git a/lotuswordpro/inc/xfilter/xfnumberstyle.hxx b/lotuswordpro/inc/xfilter/xfnumberstyle.hxx
index 79f442b5566d..cea69c1f9010 100644
--- a/lotuswordpro/inc/xfilter/xfnumberstyle.hxx
+++ b/lotuswordpro/inc/xfilter/xfnumberstyle.hxx
@@ -75,7 +75,7 @@ public:
     void    SetGroup();
 
     void    SetColor(const XFColor& color);
-    const XFColor& GetColor() {return m_aColor;}
+    const XFColor& GetColor() const {return m_aColor;}
 
     void    SetPrefix(const OUString& prefix);
 
diff --git a/lotuswordpro/inc/xfilter/xfparagraph.hxx b/lotuswordpro/inc/xfilter/xfparagraph.hxx
index 20ad256cc769..f096b9b1837b 100644
--- a/lotuswordpro/inc/xfilter/xfparagraph.hxx
+++ b/lotuswordpro/inc/xfilter/xfparagraph.hxx
@@ -79,7 +79,7 @@ public:
     virtual ~XFParagraph() override;
 
 public:
-    bool    HasContents();
+    bool    HasContents() const;
 
     virtual enumXFContent   GetContentType() override;
 
diff --git a/lotuswordpro/inc/xfilter/xfparastyle.hxx b/lotuswordpro/inc/xfilter/xfparastyle.hxx
index f50f28f62f1e..f43c4fd4dba7 100644
--- a/lotuswordpro/inc/xfilter/xfparastyle.hxx
+++ b/lotuswordpro/inc/xfilter/xfparastyle.hxx
@@ -108,7 +108,7 @@ public:
      */
     void    SetMasterPage(const OUString& master);
 
-    const OUString& GetMasterPage();
+    const OUString& GetMasterPage() const;
 
     /**
      * @descr   set the paragraph default font.
@@ -120,7 +120,7 @@ public:
     /**
      * @descr   get the font object.
      */
-    const rtl::Reference<XFFont>& GetFont(){ return m_pFont; }
+    const rtl::Reference<XFFont>& GetFont() const { return m_pFont; }
 
     /**
      * @descr   Set the indent of the paragraph. This is the indent for
@@ -216,7 +216,7 @@ public:
     virtual void    ToXml(IXFStream *strm) override;
 
     void SetNumberRight(bool bFlag){m_bNumberRight = bFlag;}
-    bool GetNumberRight(){return m_bNumberRight;}
+    bool GetNumberRight() const {return m_bNumberRight;}
 
 protected:
     OUString   m_strMasterPage;
@@ -276,7 +276,7 @@ inline void XFParaStyle::ClearTabStyles()
     m_aTabs.Reset();
 }
 
-inline const OUString& XFParaStyle::GetMasterPage()
+inline const OUString& XFParaStyle::GetMasterPage() const
 {
     return m_strMasterPage;
 }
diff --git a/lotuswordpro/inc/xfilter/xfrow.hxx b/lotuswordpro/inc/xfilter/xfrow.hxx
index 1f2a1e430e03..d8269057bb82 100644
--- a/lotuswordpro/inc/xfilter/xfrow.hxx
+++ b/lotuswordpro/inc/xfilter/xfrow.hxx
@@ -82,7 +82,7 @@ public:
 
     void    SetOwnerTable(XFTable *pTable);
 
-    sal_Int32   GetRow();
+    sal_Int32   GetRow() const;
 
     sal_Int32   GetCellCount() const;
 
@@ -116,7 +116,7 @@ inline void XFRow::SetOwnerTable(XFTable *pTable)
     m_pOwnerTable = pTable;
 }
 
-inline sal_Int32 XFRow::GetRow()
+inline sal_Int32 XFRow::GetRow() const
 {
     return m_nRow;
 }
diff --git a/lotuswordpro/inc/xfilter/xfrowstyle.hxx b/lotuswordpro/inc/xfilter/xfrowstyle.hxx
index 41fc1c2adc76..8ca8d1223e03 100644
--- a/lotuswordpro/inc/xfilter/xfrowstyle.hxx
+++ b/lotuswordpro/inc/xfilter/xfrowstyle.hxx
@@ -73,7 +73,7 @@ public:
 public:
     void    SetRowHeight(double height);
 
-    double  GetRowHeight();
+    double  GetRowHeight() const;
 
     void    SetMinRowHeight(double height);
 
@@ -97,7 +97,7 @@ inline void XFRowStyle::SetMinRowHeight(double height)
     m_fMinHeight = height;
 }
 
-inline double XFRowStyle::GetRowHeight()
+inline double XFRowStyle::GetRowHeight() const
 {
     if (m_fMinHeight > FLOAT_MIN)
     {
diff --git a/lotuswordpro/inc/xfilter/xfshadow.hxx b/lotuswordpro/inc/xfilter/xfshadow.hxx
index 114a5debae93..b1f770c38b12 100644
--- a/lotuswordpro/inc/xfilter/xfshadow.hxx
+++ b/lotuswordpro/inc/xfilter/xfshadow.hxx
@@ -81,7 +81,7 @@ public:
     /**
      * @descr   return shadow position.
      */
-    enumXFShadowPos GetPosition();
+    enumXFShadowPos GetPosition() const;
 
     /**
      * @descr   Set shadow offset from owner object.
@@ -91,7 +91,7 @@ public:
     /**
      * @descr   return shadow offset.
      */
-    double  GetOffset();
+    double  GetOffset() const;
 
     /**
      * @descr   Set shadow color.
@@ -101,7 +101,7 @@ public:
     /**
      * @descr   return shadow color.
      */
-    const XFColor& GetColor();
+    const XFColor& GetColor() const;
 
     OUString   ToString();
 
@@ -120,7 +120,7 @@ inline void XFShadow::SetPosition(enumXFShadowPos pos)
     m_ePosition = pos;
 }
 
-inline enumXFShadowPos XFShadow::GetPosition()
+inline enumXFShadowPos XFShadow::GetPosition() const
 {
     return m_ePosition;
 }
@@ -130,7 +130,7 @@ inline void XFShadow::SetOffset(double offset)
     m_fOffset = offset;
 }
 
-inline double   XFShadow::GetOffset()
+inline double   XFShadow::GetOffset() const
 {
     return m_fOffset;
 }
@@ -140,7 +140,7 @@ inline void XFShadow::SetColor(const XFColor& color)
     m_aColor = color;
 }
 
-inline const XFColor& XFShadow::GetColor()
+inline const XFColor& XFShadow::GetColor() const
 {
     return m_aColor;
 }
diff --git a/lotuswordpro/inc/xfilter/xftable.hxx b/lotuswordpro/inc/xfilter/xftable.hxx
index 2ba1199f47ec..f36a1f295be6 100644
--- a/lotuswordpro/inc/xfilter/xftable.hxx
+++ b/lotuswordpro/inc/xfilter/xftable.hxx
@@ -94,7 +94,7 @@ public:
 
     sal_Int32   GetColumnCount();
 
-    bool    IsSubTable();
+    bool    IsSubTable() const;
 
     enumXFContent   GetContentType() override;
 
@@ -128,7 +128,7 @@ inline void XFTable::SetOwnerCell(XFCell *pCell)
     m_bSubTable = (pCell!=nullptr);
 }
 
-inline bool XFTable::IsSubTable()
+inline bool XFTable::IsSubTable() const
 {
     return m_bSubTable;
 }
diff --git a/lotuswordpro/inc/xfilter/xftextstyle.hxx b/lotuswordpro/inc/xfilter/xftextstyle.hxx
index 6b7711e5066e..50d73fe7ad3f 100644
--- a/lotuswordpro/inc/xfilter/xftextstyle.hxx
+++ b/lotuswordpro/inc/xfilter/xftextstyle.hxx
@@ -89,7 +89,7 @@ public:
      */
     void    SetFont(rtl::Reference<XFFont> const & font);
 
-    const rtl::Reference<XFFont>& GetFont(){ return m_pFont; }
+    const rtl::Reference<XFFont>& GetFont() const { return m_pFont; }
 
     virtual enumXFStyle GetStyleFamily() override;
 
diff --git a/lotuswordpro/source/filter/bento.hxx b/lotuswordpro/source/filter/bento.hxx
index 65b98674e1cd..9f9447f4d7c1 100644
--- a/lotuswordpro/source/filter/bento.hxx
+++ b/lotuswordpro/source/filter/bento.hxx
@@ -145,7 +145,7 @@ public: // Internal methods
     CBenIDListElmt(BenObjectID ID, CUtListElmt * pPrev) : CUtListElmt(pPrev)
       { cID = ID; }
     explicit CBenIDListElmt(BenObjectID ID) { cID = ID; }
-    BenObjectID GetID() { return cID; }
+    BenObjectID GetID() const { return cID; }
 
 private: // Data
     BenObjectID cID;
@@ -177,7 +177,7 @@ public:
 public: // Overridden methods
 
     /* added by  */
-    sal_uLong GetSize() { return m_ulValueLength; };
+    sal_uLong GetSize() const { return m_ulValueLength; };
 protected: // Overridden methods
 
     virtual std::size_t GetData(void* pData, std::size_t nSize) override;
@@ -316,9 +316,9 @@ public: // Internal methods
       unsigned short Size) : CUtListElmt(&pValue->GetValueSegments())
       { cImmediate = true;
         std::memcpy(cImmData, pImmData, Size); cSize = Size; }
-    bool IsImmediate() { return cImmediate; }
-    BenContainerPos GetPosition() { return cPos; }
-    size_t GetSize() { return cSize; }
+    bool IsImmediate() const { return cImmediate; }
+    BenContainerPos GetPosition() const { return cPos; }
+    size_t GetSize() const { return cSize; }
     BenByte * GetImmediateData() { return cImmData; }
 
 private: // Data
@@ -346,7 +346,7 @@ public: // Internal methods
     CUtListElmt * pPrevObject, const OString& rName,
     CUtListElmt * pPrevNamedObjectListElmt);
 
-    const OString& GetName() { return csName; }
+    const OString& GetName() const { return csName; }
 
 private: // Data
     OString csName;
diff --git a/lotuswordpro/source/filter/lwpbackgroundoverride.hxx b/lotuswordpro/source/filter/lwpbackgroundoverride.hxx
index 757209880476..050496e87c60 100644
--- a/lotuswordpro/source/filter/lwpbackgroundoverride.hxx
+++ b/lotuswordpro/source/filter/lwpbackgroundoverride.hxx
@@ -81,7 +81,7 @@ public:
         pStrm->SkipExtra();
     }
 
-    const LwpColor& GetBackColor(){ return m_aStuff.m_aFillColor; }
+    const LwpColor& GetBackColor() const { return m_aStuff.m_aFillColor; }
     LwpBackgroundStuff& GetBGStuff() { return m_aStuff; }
 
 protected:
diff --git a/lotuswordpro/source/filter/lwpbackgroundstuff.hxx b/lotuswordpro/source/filter/lwpbackgroundstuff.hxx
index e5bd1ad94b7b..6ace02784a52 100644
--- a/lotuswordpro/source/filter/lwpbackgroundstuff.hxx
+++ b/lotuswordpro/source/filter/lwpbackgroundstuff.hxx
@@ -152,8 +152,8 @@ public:
     LwpColor* GetFillColor();
     std::unique_ptr<XFBGImage> GetFillPattern();
 
-    bool IsTransparent() { return (m_nID == BACK_TRANSPARENT); }
-    bool IsPatternFill() { return (m_nID > 2 && m_nID < 72); }
+    bool IsTransparent() const { return (m_nID == BACK_TRANSPARENT); }
+    bool IsPatternFill() const { return (m_nID > 2 && m_nID < 72); }
 
     friend class LwpBackgroundOverride;
 private:
diff --git a/lotuswordpro/source/filter/lwpborderstuff.hxx b/lotuswordpro/source/filter/lwpborderstuff.hxx
index f9c77a292239..4a7da6ce208b 100644
--- a/lotuswordpro/source/filter/lwpborderstuff.hxx
+++ b/lotuswordpro/source/filter/lwpborderstuff.hxx
@@ -81,7 +81,7 @@ public:
 public:
     void    Read(LwpObjectStream *pStrm);
 
-    sal_uInt16  GetSide(){ return m_nSides; }
+    sal_uInt16  GetSide() const { return m_nSides; }
     bool    HasSide(sal_uInt16 side);
     sal_uInt16  GetSideType(sal_uInt16 side);
     LwpColor    GetSideColor(sal_uInt16 side);
diff --git a/lotuswordpro/source/filter/lwpbreaksoverride.hxx b/lotuswordpro/source/filter/lwpbreaksoverride.hxx
index ba1f57e2a47c..70bc624d304a 100644
--- a/lotuswordpro/source/filter/lwpbreaksoverride.hxx
+++ b/lotuswordpro/source/filter/lwpbreaksoverride.hxx
@@ -91,23 +91,23 @@ public:
 
     void Override(LwpBreaksOverride* pOther);
 
-    inline bool IsPageBreakBefore();
-    inline bool IsPageBreakAfter();
-    inline bool IsPageBreakWithin();
-    inline bool IsColumnBreakBefore();
-    inline bool IsColumnBreakAfter();
-    inline bool IsKeepWithNext();
-    inline bool IsKeepWithPrevious();
-    inline bool IsUseNextStyle();
-
-    inline bool IsPageBreakBeforeOverridden();
-    inline bool IsPageBreakAfterOverridden();
-    inline bool IsPageBreakWithinOverridden();
-    inline bool IsColumnBreakBeforeOverridden();
-    inline bool IsColumnBreakAfterOverridden();
-    inline bool IsKeepWithNextOverridden();
-    inline bool IsKeepWithPreviousOverridden();
-    inline bool IsUseNextStyleOverridden();
+    inline bool IsPageBreakBefore() const;
+    inline bool IsPageBreakAfter() const;
+    inline bool IsPageBreakWithin() const;
+    inline bool IsColumnBreakBefore() const;
+    inline bool IsColumnBreakAfter() const;
+    inline bool IsKeepWithNext() const;
+    inline bool IsKeepWithPrevious() const;
+    inline bool IsUseNextStyle() const;
+
+    inline bool IsPageBreakBeforeOverridden() const;
+    inline bool IsPageBreakAfterOverridden() const;
+    inline bool IsPageBreakWithinOverridden() const;
+    inline bool IsColumnBreakBeforeOverridden() const;
+    inline bool IsColumnBreakAfterOverridden() const;
+    inline bool IsKeepWithNextOverridden() const;
+    inline bool IsKeepWithPreviousOverridden() const;
+    inline bool IsUseNextStyleOverridden() const;
 
     inline void RevertPageBreakBefore();
     inline void RevertPageBreakAfter();
@@ -134,69 +134,69 @@ private:
     std::unique_ptr<LwpAtomHolder>  m_pNextStyle;
 };
 
-inline bool LwpBreaksOverride::IsPageBreakBefore()
+inline bool LwpBreaksOverride::IsPageBreakBefore() const
 {
     return ((m_nValues & BO_PAGEBEFORE) != 0);
 }
 
-inline bool LwpBreaksOverride::IsPageBreakAfter()
+inline bool LwpBreaksOverride::IsPageBreakAfter() const
 {
     return ((m_nValues & BO_PAGEAFTER) != 0);
 }
-inline bool LwpBreaksOverride::IsPageBreakWithin()
+inline bool LwpBreaksOverride::IsPageBreakWithin() const
 {
     return ((m_nValues & BO_KEEPTOGETHER) != 0);
 }
-inline bool LwpBreaksOverride::IsColumnBreakBefore()
+inline bool LwpBreaksOverride::IsColumnBreakBefore() const
 {
     return ((m_nValues & BO_COLBEFORE) != 0);
 }
-inline bool LwpBreaksOverride::IsColumnBreakAfter()
+inline bool LwpBreaksOverride::IsColumnBreakAfter() const
 {
     return ((m_nValues & BO_COLAFTER) != 0);
 }
-inline bool LwpBreaksOverride::IsKeepWithNext()
+inline bool LwpBreaksOverride::IsKeepWithNext() const
 {
     return ((m_nValues & BO_KEEPNEXT) != 0);
 }
-inline bool LwpBreaksOverride::IsKeepWithPrevious()
+inline bool LwpBreaksOverride::IsKeepWithPrevious() const
 {
     return ((m_nValues & BO_KEEPPREV) != 0);
 }
-inline bool LwpBreaksOverride::IsUseNextStyle()
+inline bool LwpBreaksOverride::IsUseNextStyle() const
 {
     return ((m_nValues & BO_USENEXTSTYLE) != 0);
 }
 
-inline bool LwpBreaksOverride::IsPageBreakBeforeOverridden()
+inline bool LwpBreaksOverride::IsPageBreakBeforeOverridden() const
 {
     return ((m_nOverride& BO_PAGEBEFORE) != 0);
 }
-inline bool LwpBreaksOverride::IsPageBreakAfterOverridden()
+inline bool LwpBreaksOverride::IsPageBreakAfterOverridden() const
 {
     return ((m_nOverride& BO_PAGEAFTER) != 0);
 }
-inline bool LwpBreaksOverride::IsPageBreakWithinOverridden()
+inline bool LwpBreaksOverride::IsPageBreakWithinOverridden() const
 {
     return ((m_nOverride& BO_KEEPTOGETHER) != 0);
 }
-inline bool LwpBreaksOverride::IsColumnBreakBeforeOverridden()
+inline bool LwpBreaksOverride::IsColumnBreakBeforeOverridden() const
 {
     return ((m_nOverride& BO_COLBEFORE) != 0);
 }
-inline bool LwpBreaksOverride::IsColumnBreakAfterOverridden()
+inline bool LwpBreaksOverride::IsColumnBreakAfterOverridden() const
 {
     return ((m_nOverride& BO_COLAFTER) != 0);
 }
-inline bool LwpBreaksOverride::IsKeepWithNextOverridden()
+inline bool LwpBreaksOverride::IsKeepWithNextOverridden() const
 {
     return ((m_nOverride& BO_KEEPNEXT) != 0);
 }
-inline bool LwpBreaksOverride::IsKeepWithPreviousOverridden()
+inline bool LwpBreaksOverride::IsKeepWithPreviousOverridden() const
 {
     return ((m_nOverride& BO_KEEPPREV) != 0);
 }
-inline bool LwpBreaksOverride::IsUseNextStyleOverridden()
+inline bool LwpBreaksOverride::IsUseNextStyleOverridden() const
 {
     return ((m_nOverride& BO_USENEXTSTYLE) != 0);
 }
diff --git a/lotuswordpro/source/filter/lwpbulletstylemgr.cxx b/lotuswordpro/source/filter/lwpbulletstylemgr.cxx
index 35a8e3475030..c2cb1af53d8e 100644
--- a/lotuswordpro/source/filter/lwpbulletstylemgr.cxx
+++ b/lotuswordpro/source/filter/lwpbulletstylemgr.cxx
@@ -93,7 +93,7 @@ LwpBulletStyleMgr::~LwpBulletStyleMgr()
  * @param   pBullOver pointer to the bulletoverride of current paragraph.
  * @param   pIndent pointer to the indentoverride of current paragraph.
  */
-OUString LwpBulletStyleMgr::RegisterBulletStyle(LwpPara* pPara, LwpBulletOverride* pBullOver,
+OUString LwpBulletStyleMgr::RegisterBulletStyle(LwpPara* pPara, const LwpBulletOverride* pBullOver,
     LwpIndentOverride const * pIndent)
 {
     if(!pPara || !pIndent || !pBullOver)
diff --git a/lotuswordpro/source/filter/lwpbulletstylemgr.hxx b/lotuswordpro/source/filter/lwpbulletstylemgr.hxx
index 78754a75b355..c566e60caacb 100644
--- a/lotuswordpro/source/filter/lwpbulletstylemgr.hxx
+++ b/lotuswordpro/source/filter/lwpbulletstylemgr.hxx
@@ -80,7 +80,7 @@ class LwpBulletStyleMgr final
 public:
     LwpBulletStyleMgr();
     ~LwpBulletStyleMgr();
-    OUString RegisterBulletStyle(LwpPara* pPara, LwpBulletOverride* pBullOver,
+    OUString RegisterBulletStyle(LwpPara* pPara, const LwpBulletOverride* pBullOver,
         LwpIndentOverride const * pIndent);
     inline void SetFoundry(LwpFoundry* pFoundry);
     inline void SetContinueFlag(bool bFlag);
diff --git a/lotuswordpro/source/filter/lwpcelllayout.hxx b/lotuswordpro/source/filter/lwpcelllayout.hxx
index 5c54b92a1ffc..c558548fec91 100644
--- a/lotuswordpro/source/filter/lwpcelllayout.hxx
+++ b/lotuswordpro/source/filter/lwpcelllayout.hxx
@@ -98,8 +98,8 @@ public:
         m_bConvertCell = false;
         return aRet;
     }
-    sal_uInt16 GetRowID(){return crowid;}
-    sal_uInt8 GetColID(){return ccolid;}
+    sal_uInt16 GetRowID() const {return crowid;}
+    sal_uInt8 GetColID() const {return ccolid;}
     void RegisterStyle() override;
     LwpObjectID& GetNumericsObject() {return cLayNumerics;}
     LwpObjectID * GetPreviousCellStory();
@@ -107,7 +107,7 @@ public:
     LwpTableLayout * GetTableLayout();
     virtual void SetCellMap();
     double GetActualWidth();
-    const OUString& GetNumfmtName(){return m_NumfmtName;}
+    const OUString& GetNumfmtName() const {return m_NumfmtName;}
 protected:
     void Read() override;
     LwpTable * GetTable();
@@ -176,8 +176,8 @@ public:
     virtual ~LwpConnectedCellLayout() override;
     virtual LWP_LAYOUT_TYPE GetLayoutType () override { return LWP_CONNECTED_CELL_LAYOUT;}
     virtual void Parse(IXFStream* pOutputStream) override;
-    sal_uInt16 GetNumrows(){return m_nRealrowspan;}
-    sal_uInt8 GetNumcols(){return m_nRealcolspan;}
+    sal_uInt16 GetNumrows() const {return m_nRealrowspan;}
+    sal_uInt8 GetNumcols() const {return m_nRealcolspan;}
     virtual void SetCellMap() override;
     void SetNumrows(sal_uInt16 nVal){m_nRealrowspan = nVal;}
 protected:
diff --git a/lotuswordpro/source/filter/lwpcontent.hxx b/lotuswordpro/source/filter/lwpcontent.hxx
index c29bb6e99029..6bee0d1af19d 100644
--- a/lotuswordpro/source/filter/lwpcontent.hxx
+++ b/lotuswordpro/source/filter/lwpcontent.hxx
@@ -106,9 +106,9 @@ protected:
 public:
     inline LwpAssociatedLayouts& GetLayoutsWithMe();
     rtl::Reference<LwpVirtualLayout> GetLayout(LwpVirtualLayout const * pStartLayout);
-    inline bool IsActive();
+    inline bool IsActive() const;
     virtual bool IsTable();
-    inline OUString const & GetClassName();
+    inline OUString const & GetClassName() const;
     inline LwpContent* GetNextEnumerated();
     bool HasNonEmbeddedLayouts();
     bool IsStyleContent();
@@ -119,7 +119,7 @@ LwpAssociatedLayouts& LwpContent::GetLayoutsWithMe()
     return m_LayoutsWithMe;
 }
 
-inline bool LwpContent::IsActive()
+inline bool LwpContent::IsActive() const
 {
     return !(m_nFlags & CF_DEACTIVATED);
 }
@@ -129,7 +129,7 @@ inline bool LwpContent::IsTable()
     return false;
 }
 
-inline OUString const & LwpContent::GetClassName()
+inline OUString const & LwpContent::GetClassName() const
 {
     return m_ClassName.str();
 }
diff --git a/lotuswordpro/source/filter/lwpdivinfo.cxx b/lotuswordpro/source/filter/lwpdivinfo.cxx
index bd4da5b6070c..ea58b2d9c516 100644
--- a/lotuswordpro/source/filter/lwpdivinfo.cxx
+++ b/lotuswordpro/source/filter/lwpdivinfo.cxx
@@ -154,7 +154,7 @@ void LwpDivInfo::GetNumberOfPages(sal_uInt16 & nPageno)
     }
 }
 
-sal_uInt16 LwpDivInfo::GetMaxNumberOfPages()
+sal_uInt16 LwpDivInfo::GetMaxNumberOfPages() const
 {
     LwpDocument* pDiv = dynamic_cast<LwpDocument*>(m_ParentID.obj().get());
     if(!pDiv)
diff --git a/lotuswordpro/source/filter/lwpdivinfo.hxx b/lotuswordpro/source/filter/lwpdivinfo.hxx
index 86096f33afd3..c04271799d64 100644
--- a/lotuswordpro/source/filter/lwpdivinfo.hxx
+++ b/lotuswordpro/source/filter/lwpdivinfo.hxx
@@ -76,15 +76,15 @@ public:
     LwpDivInfo(LwpObjectHeader const & objHdr, LwpSvStream* pStrm);
     LwpObjectID& GetInitialLayoutID() { return m_InitialLayoutID; }
     LwpObjectID& GetFillerPageTextID() { return m_FillerPageTextID; }
-    OUString const & GetDivName() { return m_Name.str(); }
+    OUString const & GetDivName() const { return m_Name.str(); }
 
-    OUString const & GetClassName() { return m_ClassName.str(); }
-    inline bool HasContents();
-    inline bool IsOleDivision();
-    inline bool IsScrollable();
-    inline bool IsGotoable();
+    OUString const & GetClassName() const { return m_ClassName.str(); }
+    inline bool HasContents() const;
+    inline bool IsOleDivision() const;
+    inline bool IsScrollable() const;
+    inline bool IsGotoable() const;
     void GetNumberOfPages(sal_uInt16& nPageno);
-    sal_uInt16 GetMaxNumberOfPages();
+    sal_uInt16 GetMaxNumberOfPages() const;
 protected:
     void Read() override;
 private:
@@ -129,12 +129,12 @@ private:
 
 };
 
-inline bool LwpDivInfo::HasContents()
+inline bool LwpDivInfo::HasContents() const
 {
     return (m_nFlags & DI_HASCONTENTS) != 0;
 }
 
-inline bool LwpDivInfo::IsOleDivision()
+inline bool LwpDivInfo::IsOleDivision() const
 {
     OUString strClassName = GetClassName();
     if (strClassName == STR_OleDivisionClassName)
@@ -142,12 +142,12 @@ inline bool LwpDivInfo::IsOleDivision()
     return false;
 }
 
-inline bool LwpDivInfo::IsScrollable()
+inline bool LwpDivInfo::IsScrollable() const
 {
     return (m_nFlags & DI_SCROLLABLE) != 0;
 }
 
-inline bool LwpDivInfo::IsGotoable()
+inline bool LwpDivInfo::IsGotoable() const
 {
     return HasContents() && (IsScrollable() || IsOleDivision());
 }
diff --git a/lotuswordpro/source/filter/lwpdoc.hxx b/lotuswordpro/source/filter/lwpdoc.hxx
index 198dfdc28290..b6385518dee4 100644
--- a/lotuswordpro/source/filter/lwpdoc.hxx
+++ b/lotuswordpro/source/filter/lwpdoc.hxx
@@ -128,8 +128,8 @@ public:
     void Parse(IXFStream* pOutputStream) override;
     void RegisterStyle() override;
 
-    inline bool IsChildDoc();
-    inline bool GetHonorProtection();
+    inline bool IsChildDoc() const;
+    inline bool GetHonorProtection() const;
     inline LwpObjectID& GetDocData();
     inline LwpObjectID& GetSocket();
 
@@ -177,11 +177,11 @@ private:
     bool IsSkippedDivision();
 };
 
-inline bool LwpDocument::IsChildDoc()
+inline bool LwpDocument::IsChildDoc() const
 {
     return (m_nPersistentFlags & DOC_CHILDDOC) != 0;
 }
-inline bool LwpDocument::GetHonorProtection()
+inline bool LwpDocument::GetHonorProtection() const
 {
     return (m_nPersistentFlags & DOC_PROTECTED) != 0;
 }
diff --git a/lotuswordpro/source/filter/lwpfont.cxx b/lotuswordpro/source/filter/lwpfont.cxx
index 92c8a853c28c..7015bfb7a573 100644
--- a/lotuswordpro/source/filter/lwpfont.cxx
+++ b/lotuswordpro/source/filter/lwpfont.cxx
@@ -176,39 +176,39 @@ bool LwpFontAttrEntry::Is(sal_uInt16 Attr)
     return (0 != (m_nAttrBits & Attr));
 }
 
-bool LwpFontAttrEntry::IsBoldOverridden()
+bool LwpFontAttrEntry::IsBoldOverridden() const
 {
     return (0 != (m_nAttrOverrideBits & BOLD));
 }
 
-bool LwpFontAttrEntry::IsItalicOverridden()
+bool LwpFontAttrEntry::IsItalicOverridden() const
 {
     return (0 != (m_nAttrOverrideBits & ITALIC));
 }
-bool LwpFontAttrEntry::IsStrikeThruOverridden()
+bool LwpFontAttrEntry::IsStrikeThruOverridden() const
 {
     return (0 != (m_nAttrOverrideBits & STRIKETHRU));
 }
-bool LwpFontAttrEntry::IsSmallCapsOverridden()
+bool LwpFontAttrEntry::IsSmallCapsOverridden() const
 {
     return (0 != (m_nAttrOverrideBits & SMALLCAPS));
 }
-bool LwpFontAttrEntry::IsSuperOverridden()
+bool LwpFontAttrEntry::IsSuperOverridden() const
 {
     return (0 != (m_nAttrOverrideBits & SUPERSCRIPT));
 
 }
-bool LwpFontAttrEntry::IsSubOverridden()
+bool LwpFontAttrEntry::IsSubOverridden() const
 {
     return (0 != (m_nAttrOverrideBits & SUBSCRIPT));
 
 }
 
-bool LwpFontAttrEntry::IsUnderlineOverridden()
+bool LwpFontAttrEntry::IsUnderlineOverridden() const
 {
     return (0 != (m_nAttrOverrideBits2 & UNDER));
 }
-bool LwpFontAttrEntry::IsCaseOverridden()
+bool LwpFontAttrEntry::IsCaseOverridden() const
 {
     return (0 != (m_nAttrOverrideBits2 & CASE));
 }
@@ -230,7 +230,7 @@ void LwpFontTableEntry::Read(LwpObjectStream *pStrm)
     RegisterFontDecl();
 }
 
-OUString const & LwpFontTableEntry::GetFaceName()
+OUString const & LwpFontTableEntry::GetFaceName() const
 {
     return m_WindowsFaceName.str();
 }
@@ -319,27 +319,27 @@ void LwpFontNameEntry::Override(rtl::Reference<XFFont> const & pFont)
     //  pFont->SetTightness(cTightness);
 }
 
-bool LwpFontNameEntry::IsFaceNameOverridden()
+bool LwpFontNameEntry::IsFaceNameOverridden() const
 {
     return (0 != (m_nOverrideBits & FACENAME));
 }
 
-bool LwpFontNameEntry::IsAltFaceNameOverridden()
+bool LwpFontNameEntry::IsAltFaceNameOverridden() const
 {
     return (0 != (m_nOverrideBits & ALTFACENAME));
 }
 
-bool LwpFontNameEntry::IsPointSizeOverridden()
+bool LwpFontNameEntry::IsPointSizeOverridden() const
 {
     return (0 != (m_nOverrideBits & POINTSIZE));
 }
 
-bool LwpFontNameEntry::IsColorOverridden()
+bool LwpFontNameEntry::IsColorOverridden() const
 {
     return (0 != (m_nOverrideBits & COLOR));
 }
 
-bool LwpFontNameEntry::IsBackgroundColorOverridden()
+bool LwpFontNameEntry::IsBackgroundColorOverridden() const
 {
     return (0 != (m_nOverrideBits & BKCOLOR));
 }
diff --git a/lotuswordpro/source/filter/lwpfootnote.cxx b/lotuswordpro/source/filter/lwpfootnote.cxx
index 725d6e6809af..7ae711e30b1e 100644
--- a/lotuswordpro/source/filter/lwpfootnote.cxx
+++ b/lotuswordpro/source/filter/lwpfootnote.cxx
@@ -317,7 +317,7 @@ LwpDocument* LwpFootnote::GetEndnoteDivision(LwpDocument* pPossible)
 /**
  * @descr  Get footnote table class name
  */
-OUString LwpFootnote::GetTableClass()
+OUString LwpFootnote::GetTableClass() const
 {
     OUString strClassName;
     switch (GetType() & FN_MASK_BASE)
@@ -528,7 +528,7 @@ void LwpFootnoteOptions::RegisterEndnoteStyle()
 /**
  * @descr  Get continue on message
  */
-OUString LwpFootnoteOptions::GetContinuedOnMessage()
+OUString LwpFootnoteOptions::GetContinuedOnMessage() const
 {
     if(m_ContinuedOnMessage.HasValue())
     {
@@ -541,7 +541,7 @@ OUString LwpFootnoteOptions::GetContinuedOnMessage()
 /**
  * @descr  Get continue from message
  */
-OUString LwpFootnoteOptions::GetContinuedFromMessage()
+OUString LwpFootnoteOptions::GetContinuedFromMessage() const
 {
     if(m_ContinuedFromMessage.HasValue())
     {
diff --git a/lotuswordpro/source/filter/lwpfootnote.hxx b/lotuswordpro/source/filter/lwpfootnote.hxx
index b2073e0c0b11..5163204e39ea 100644
--- a/lotuswordpro/source/filter/lwpfootnote.hxx
+++ b/lotuswordpro/source/filter/lwpfootnote.hxx
@@ -134,14 +134,14 @@ private:
     sal_uInt16 m_nRow;
     LwpObjectID m_Content;
 public:
-    sal_uInt16 GetType(){ return m_nType;}
+    sal_uInt16 GetType() const { return m_nType;}
 private:
     LwpCellLayout* GetCellLayout();
     LwpDocument* GetFootnoteTableDivision();
     LwpDocument* GetEndnoteDivision(LwpDocument* pPossible);
     LwpEnSuperTableLayout* FindFootnoteTableLayout();
     LwpContent* FindFootnoteContent();
-    OUString GetTableClass();
+    OUString GetTableClass() const;
 };
 
 /**
@@ -184,10 +184,10 @@ public:
         SUPERSCRIPT_REFERENCE   = 0x10
     };
 public:
-    sal_uInt16 GetStartingNumber(){ return m_nStartingNumber;}
-    OUString const & GetLeadingText(){ return m_LeadingText.str();}
-    OUString const & GetTrailingText(){ return m_TrailingText.str();}
-    sal_uInt16 GetReset(){ return static_cast<sal_uInt16>(m_nFlag & RESET_MASK);}
+    sal_uInt16 GetStartingNumber() const { return m_nStartingNumber;}
+    OUString const & GetLeadingText() const { return m_LeadingText.str();}
+    OUString const & GetTrailingText() const { return m_TrailingText.str();}
+    sal_uInt16 GetReset() const { return static_cast<sal_uInt16>(m_nFlag & RESET_MASK);}
 };
 
 /**
@@ -218,12 +218,12 @@ public:
         HAS_SEPARATOR   = 0x01,
         CUSTOM_LENGTH   = 0x02
     };
-    sal_uInt32 GetLength(){ return m_nLength;}
-    sal_uInt32 GetIndent(){ return m_nIndent;}
-    sal_uInt32 GetAbove(){ return m_nAbove;}
-    sal_uInt32 GetBelow(){ return m_nBelow;}
-    bool HasCustomLength(){ return (m_nFlag & CUSTOM_LENGTH) != 0;}
-    bool HasSeparator(){ return (m_nFlag & HAS_SEPARATOR) != 0;}
+    sal_uInt32 GetLength() const { return m_nLength;}
+    sal_uInt32 GetIndent() const { return m_nIndent;}
+    sal_uInt32 GetAbove() const { return m_nAbove;}
+    sal_uInt32 GetBelow() const { return m_nBelow;}
+    bool HasCustomLength() const { return (m_nFlag & CUSTOM_LENGTH) != 0;}
+    bool HasSeparator() const { return (m_nFlag & HAS_SEPARATOR) != 0;}
     float GetTopBorderWidth(){ return m_BorderStuff.GetSideWidth(LwpBorderStuff::TOP);}
     LwpColor GetTopBorderColor(){ return m_BorderStuff.GetSideColor(LwpBorderStuff::TOP);}
 };
@@ -267,10 +267,10 @@ private:
 
 public:
     LwpFootnoteSeparatorOptions& GetFootnoteSeparator(){ return m_FootnoteSeparator;}
-    bool GetContinuedFrom(){ return ((m_nFlag & FO_CONTINUEFROM) != 0);}
-    bool GetContinuedOn(){ return ((m_nFlag & FO_CONTINUEON) != 0);}
-    OUString GetContinuedOnMessage();
-    OUString GetContinuedFromMessage();
+    bool GetContinuedFrom() const { return ((m_nFlag & FO_CONTINUEFROM) != 0);}
+    bool GetContinuedOn() const { return ((m_nFlag & FO_CONTINUEON) != 0);}
+    OUString GetContinuedOnMessage() const;
+    OUString GetContinuedFromMessage() const;
     void SetMasterPage(const OUString& strMasterPage){ m_strMasterPage = strMasterPage;}
 };
 
diff --git a/lotuswordpro/source/filter/lwpframelayout.hxx b/lotuswordpro/source/filter/lwpframelayout.hxx
index 342770a2ea5e..a243de61643c 100644
--- a/lotuswordpro/source/filter/lwpframelayout.hxx
+++ b/lotuswordpro/source/filter/lwpframelayout.hxx
@@ -189,7 +189,7 @@ public:
     virtual LWP_LAYOUT_TYPE GetLayoutType () override { return LWP_DROPCAP_LAYOUT;}
     virtual void Parse(IXFStream* pOutputStream) override;
     virtual void XFConvert(XFContentContainer* pCont) override;
-    sal_uInt16 GetLines(){return m_nLines;}
+    sal_uInt16 GetLines() const {return m_nLines;}
     void SetChars(sal_uInt32 nChars){ m_nChars += nChars;}
     sal_uInt32 GetChars() const {return m_nChars;}
     void RegisterStyle(LwpFoundry* pFoundry);
diff --git a/lotuswordpro/source/filter/lwpfrib.cxx b/lotuswordpro/source/filter/lwpfrib.cxx
index 04cd857a3de1..c5bd91ab0adf 100644
--- a/lotuswordpro/source/filter/lwpfrib.cxx
+++ b/lotuswordpro/source/filter/lwpfrib.cxx
@@ -406,7 +406,7 @@ void LwpFrib::ConvertChars(XFContentContainer* pXFPara,const OUString& text)
     }
 }
 
-void LwpFrib::ConvertHyperLink(XFContentContainer* pXFPara,LwpHyperlinkMgr* pHyperlink,const OUString& text)
+void LwpFrib::ConvertHyperLink(XFContentContainer* pXFPara, const LwpHyperlinkMgr* pHyperlink,const OUString& text)
 {
     XFHyperlink* pHyper = new XFHyperlink;
     pHyper->SetHRef(pHyperlink->GetHyperlink());
diff --git a/lotuswordpro/source/filter/lwpfribbreaks.hxx b/lotuswordpro/source/filter/lwpfribbreaks.hxx
index 2c061041dcd8..24a93b6c6fc1 100644
--- a/lotuswordpro/source/filter/lwpfribbreaks.hxx
+++ b/lotuswordpro/source/filter/lwpfribbreaks.hxx
@@ -75,7 +75,7 @@ public:
     void RegisterBreakStyle(LwpPara* pPara);
     void ParseLayout();
     LwpObjectID& GetLayout() { return m_Layout;}
-    bool IsLastFrib(){return m_bLastFrib;}
+    bool IsLastFrib() const {return m_bLastFrib;}
 
 private:
     LwpObjectID m_Layout;
diff --git a/lotuswordpro/source/filter/lwpfribframe.cxx b/lotuswordpro/source/filter/lwpfribframe.cxx
index 1eb167766a1d..8a94efb8cbda 100644
--- a/lotuswordpro/source/filter/lwpfribframe.cxx
+++ b/lotuswordpro/source/filter/lwpfribframe.cxx
@@ -74,7 +74,7 @@ void LwpFribFrame::Read(LwpObjectStream* pObjStrm, sal_uInt16 /*len*/)
 *  @descr:  Get the layout object which the frib points to
 *
 */
-rtl::Reference<LwpObject> LwpFribFrame::GetLayout()
+rtl::Reference<LwpObject> LwpFribFrame::GetLayout() const
 {
     return m_objLayout.obj();
 }
diff --git a/lotuswordpro/source/filter/lwpfribframe.hxx b/lotuswordpro/source/filter/lwpfribframe.hxx
index 6334af37a212..74dce5cf2f5e 100644
--- a/lotuswordpro/source/filter/lwpfribframe.hxx
+++ b/lotuswordpro/source/filter/lwpfribframe.hxx
@@ -71,7 +71,7 @@ class LwpFribFrame : public LwpFrib
 public:
     explicit LwpFribFrame( LwpPara* pPara) : LwpFrib(pPara){}
     void Read(LwpObjectStream* pObjStrm, sal_uInt16 len) override;
-    rtl::Reference<LwpObject> GetLayout();
+    rtl::Reference<LwpObject> GetLayout() const;
     void RegisterStyle(LwpFoundry* pFoundry) override;
     void SetParaDropcap(LwpPara* pPara);
     void XFConvert(XFContentContainer* pCont);
diff --git a/lotuswordpro/source/filter/lwpfribmark.cxx b/lotuswordpro/source/filter/lwpfribmark.cxx
index 878b37d3d28e..74f95a956e3c 100644
--- a/lotuswordpro/source/filter/lwpfribmark.cxx
+++ b/lotuswordpro/source/filter/lwpfribmark.cxx
@@ -361,7 +361,7 @@ void LwpFribField::RegisterStyle(LwpFoundry* pFoundry)
     }
 }
 
-void LwpFribField::RegisterTimeField(LwpFieldMark* pFieldMark)
+void LwpFribField::RegisterTimeField(const LwpFieldMark* pFieldMark)
 {
     OUString sFormula = pFieldMark->GetFormula();//now bookmark maybe not all register to bookmarkmgr,
     if (sFormula == "TotalEditingTime")//so check field type now is not correct.
@@ -1228,7 +1228,7 @@ void LwpFribField::ConvertDocFieldStart(XFContentContainer* pXFPara,LwpFieldMark
     }
 }
 
-void LwpFribField::ConvertDocFieldEnd(XFContentContainer* pXFPara,LwpFieldMark* pFieldMark)
+void LwpFribField::ConvertDocFieldEnd(XFContentContainer* pXFPara, const LwpFieldMark* pFieldMark)
 {
     XFContent* pContent = nullptr;
     switch(m_nDocPowerType)
@@ -1315,7 +1315,7 @@ void LwpFribField::ConvertDateTimeStart(XFContentContainer* pXFPara,LwpFieldMark
 
 }
 
-void LwpFribField::ConvertDateTimeEnd(XFContentContainer* pXFPara,LwpFieldMark* pFieldMark)
+void LwpFribField::ConvertDateTimeEnd(XFContentContainer* pXFPara, const LwpFieldMark* pFieldMark)
 {
     XFContent* pContent = nullptr;
     switch(m_nDateTimeType)
@@ -1372,7 +1372,7 @@ void LwpFribField::ConvertCrossRefStart(XFContentContainer* pXFPara,LwpFieldMark
         pXFPara->Add(pRef);
 }
 
-void LwpFribField::ConvertCrossRefEnd(XFContentContainer* pXFPara,LwpFieldMark* pFieldMark)
+void LwpFribField::ConvertCrossRefEnd(XFContentContainer* pXFPara, const LwpFieldMark* pFieldMark)
 {
     XFCrossRefEnd* pRef = new XFCrossRefEnd;
     if (pFieldMark->GetStyleFlag())
diff --git a/lotuswordpro/source/filter/lwpfribmark.hxx b/lotuswordpro/source/filter/lwpfribmark.hxx
index de18460a6137..50b0bb501a91 100644
--- a/lotuswordpro/source/filter/lwpfribmark.hxx
+++ b/lotuswordpro/source/filter/lwpfribmark.hxx
@@ -87,8 +87,8 @@ class LwpFribBookMark : public LwpFrib
 public:
     explicit LwpFribBookMark( LwpPara* pPara );
     void Read(LwpObjectStream* pObjStrm, sal_uInt16 len) override;
-    const LwpObjectID& GetMarkerID(){return m_objMarker;}
-    sal_uInt8 GetType(){return m_nType;}
+    const LwpObjectID& GetMarkerID() const {return m_objMarker;}
+    sal_uInt8 GetType() const {return m_nType;}
     enum{MARKER_START=1,MARKER_END,MARKER_NONE};
     void XFConvert(XFContentContainer* pXFPara);
     void RegisterStyle(LwpFoundry* pFoundry) override;
@@ -105,7 +105,7 @@ public:
     explicit LwpFribField( LwpPara* pPara );
     void Read(LwpObjectStream* pObjStrm, sal_uInt16 len) override;
     LwpFieldMark* GetMarker();
-    sal_uInt8 GetType(){return m_nType;}
+    sal_uInt8 GetType() const {return m_nType;}
     enum{MARKER_START=1,MARKER_END,MARKER_NONE};
     void XFConvert(XFContentContainer* pXFPara);
     void RegisterStyle(LwpFoundry* pFoundry) override;
@@ -127,15 +127,15 @@ private:
     sal_uInt8 m_nDateTimeType;
     sal_uInt8 m_nDocPowerType;
 
-    void RegisterTimeField(LwpFieldMark* pFieldMark);
+    void RegisterTimeField(const LwpFieldMark* pFieldMark);
     void RegisterDateTimeStyle(const OUString& sFormula);
     void RegisterTotalTimeStyle();
     void CheckFieldType(LwpFieldMark* pFieldMark);
     void ConvertDocFieldStart(XFContentContainer* pXFPara,LwpFieldMark* pFieldMark);
-    void ConvertDocFieldEnd(XFContentContainer* pXFPara,LwpFieldMark* pFieldMark);
+    void ConvertDocFieldEnd(XFContentContainer* pXFPara, const LwpFieldMark* pFieldMark);
     void ConvertDateTimeStart(XFContentContainer* pXFPara,LwpFieldMark* pFieldMark);
-    void ConvertDateTimeEnd(XFContentContainer* pXFPara,LwpFieldMark* pFieldMark);
-    static void ConvertCrossRefEnd(XFContentContainer* pXFPara,LwpFieldMark* pFieldMark);
+    void ConvertDateTimeEnd(XFContentContainer* pXFPara, const LwpFieldMark* pFieldMark);
+    static void ConvertCrossRefEnd(XFContentContainer* pXFPara, const LwpFieldMark* pFieldMark);
     void ConvertCrossRefStart(XFContentContainer* pXFPara,LwpFieldMark* pFieldMark);
 };
 
diff --git a/lotuswordpro/source/filter/lwpfribptr.cxx b/lotuswordpro/source/filter/lwpfribptr.cxx
index 2a7566267ba6..f1d9917de8bf 100644
--- a/lotuswordpro/source/filter/lwpfribptr.cxx
+++ b/lotuswordpro/source/filter/lwpfribptr.cxx
@@ -534,7 +534,7 @@ void LwpFribPtr::RegisterStyle()
     }
 }
 
-void LwpFribPtr::ProcessDropcap(LwpStory* pStory,LwpFrib* pFrib,sal_uInt32 nLen)
+void LwpFribPtr::ProcessDropcap(LwpStory* pStory, const LwpFrib* pFrib,sal_uInt32 nLen)
 {
     if (pStory && pStory->GetDropcapFlag())
     {
diff --git a/lotuswordpro/source/filter/lwpfribptr.hxx b/lotuswordpro/source/filter/lwpfribptr.hxx
index 58cb3fae2079..d59cb81ca0d4 100644
--- a/lotuswordpro/source/filter/lwpfribptr.hxx
+++ b/lotuswordpro/source/filter/lwpfribptr.hxx
@@ -77,7 +77,7 @@ private:
     LwpFrib* m_pFribs;
     XFParagraph* m_pXFPara;//Current XFPara used for frib parsing
     LwpPara* m_pPara;//for get foundry
-    static void ProcessDropcap(LwpStory* pStory,LwpFrib* pFrib,sal_uInt32 nLen);
+    static void ProcessDropcap(LwpStory* pStory, const LwpFrib* pFrib,sal_uInt32 nLen);
 public:
     void XFConvert();
     void SetXFPara(XFParagraph* Para){m_pXFPara = Para;}
diff --git a/lotuswordpro/source/filter/lwpfribtext.hxx b/lotuswordpro/source/filter/lwpfribtext.hxx
index 1a7147c348b1..cc1c5b83c545 100644
--- a/lotuswordpro/source/filter/lwpfribtext.hxx
+++ b/lotuswordpro/source/filter/lwpfribtext.hxx
@@ -73,7 +73,7 @@ private:
     OUString m_Content;
     bool m_bNoUnicode;
 public:
-    const OUString& GetText(){return m_Content;}
+    const OUString& GetText() const {return m_Content;}
 };
 
 class LwpFribHardSpace : public LwpFrib
@@ -187,7 +187,7 @@ public:
 private:
     OUString m_Content;
 public:
-    const OUString& GetText(){return m_Content;}
+    const OUString& GetText() const {return m_Content;}
 };
 
 class LwpFribPageNumber : public LwpFrib
diff --git a/lotuswordpro/source/filter/lwpgrfobj.cxx b/lotuswordpro/source/filter/lwpgrfobj.cxx
index 1d21c9a3d4c8..29339e04857e 100644
--- a/lotuswordpro/source/filter/lwpgrfobj.cxx
+++ b/lotuswordpro/source/filter/lwpgrfobj.cxx
@@ -237,7 +237,7 @@ void LwpGraphicObject::XFConvert (XFContentContainer* pCont)
  *  these formats by Word Pro.
  * @return  sal_True if yes sal_False if not.
  */
-bool LwpGraphicObject::IsGrafFormatValid()
+bool LwpGraphicObject::IsGrafFormatValid() const
 {
     return (m_sServerContextFormat[1]=='b'&& m_sServerContextFormat[2]=='m' && m_sServerContextFormat[3]=='p')
     || (m_sServerContextFormat[1]=='j' && m_sServerContextFormat[2]=='p' && m_sServerContextFormat[3]=='g')
diff --git a/lotuswordpro/source/filter/lwpgrfobj.hxx b/lotuswordpro/source/filter/lwpgrfobj.hxx
index 969e0c0f05d3..3332124f4ad5 100644
--- a/lotuswordpro/source/filter/lwpgrfobj.hxx
+++ b/lotuswordpro/source/filter/lwpgrfobj.hxx
@@ -107,7 +107,7 @@ private:
 
     void XFConvertEquation(XFContentContainer* pCont);
 
-    bool IsGrafFormatValid();
+    bool IsGrafFormatValid() const;
     std::vector< rtl::Reference<XFFrame> > m_vXFDrawObjects;
 
 public:
@@ -123,8 +123,8 @@ public:
     void GetGrafOrgSize(long& rWidth, long& rHeight) { rWidth = m_Cache.Width; rHeight = m_Cache.Height; }
     void GetGrafOrgSize(double& rWidth, double& rHeight) override;
 
-    sal_Int16 IsLinked(){ return m_bIsLinked;}
-    const OUString& GetLinkedFilePath(){ return m_LinkedFilePath;}
+    sal_Int16 IsLinked() const { return m_bIsLinked;}
+    const OUString& GetLinkedFilePath() const { return m_LinkedFilePath;}
 };
 
 #endif
diff --git a/lotuswordpro/source/filter/lwphyperlinkmgr.hxx b/lotuswordpro/source/filter/lwphyperlinkmgr.hxx
index a0afad55240a..0ec5b16b3210 100644
--- a/lotuswordpro/source/filter/lwphyperlinkmgr.hxx
+++ b/lotuswordpro/source/filter/lwphyperlinkmgr.hxx
@@ -69,9 +69,9 @@ public:
     LwpHyperlinkMgr();
     ~LwpHyperlinkMgr();
     void SetHyperlinkFlag(bool bFlag){m_bIsHyperlink = bFlag;}
-    bool GetHyperlinkFlag(){return m_bIsHyperlink;}
+    bool GetHyperlinkFlag() const {return m_bIsHyperlink;}
     void SetHyperlink(const OUString& hyperlink);
-    const OUString& GetHyperlink() { return m_Hyperlink;}
+    const OUString& GetHyperlink() const { return m_Hyperlink;}
 private:
     OUString m_Hyperlink;
     bool m_bIsHyperlink;
diff --git a/lotuswordpro/source/filter/lwplayout.cxx b/lotuswordpro/source/filter/lwplayout.cxx
index 82607a17cd05..d9b442268b04 100644
--- a/lotuswordpro/source/filter/lwplayout.cxx
+++ b/lotuswordpro/source/filter/lwplayout.cxx
@@ -211,7 +211,7 @@ bool LwpVirtualLayout::HasProtection()
 * @descr:   Whether it is a mirror layout
 *
 */
-bool LwpVirtualLayout::IsComplex()
+bool LwpVirtualLayout::IsComplex() const
 {
     return (m_nAttributes & STYLE_COMPLEX) != 0;
 }
@@ -321,7 +321,7 @@ bool LwpVirtualLayout::IsRelativeAnchored()
 /**
  * @descr:  whether it is MinimumHeight layout
 */
-bool LwpVirtualLayout::IsMinimumHeight()
+bool LwpVirtualLayout::IsMinimumHeight() const
 {
     return ((m_nAttributes3& STYLE3_MINHEIGHTVALID) != 0);
 }
@@ -430,7 +430,7 @@ bool LwpVirtualLayout::IsAutoGrowWidth()
 * @descr:   Determine whether the layout width is to margin
 *
 */
-bool LwpVirtualLayout::IsInlineToMargin()
+bool LwpVirtualLayout::IsInlineToMargin() const
 {
     return (m_nAttributes3 & STYLE3_INLINETOMARGIN) != 0;
 }
@@ -631,7 +631,7 @@ void LwpMiddleLayout::Read()
     }
 }
 
-rtl::Reference<LwpObject> LwpMiddleLayout::GetBasedOnStyle()
+rtl::Reference<LwpObject> LwpMiddleLayout::GetBasedOnStyle() const
 {
     rtl::Reference<LwpObject> xRet(m_BasedOnStyle.obj());
     if (xRet.get() == this)
diff --git a/lotuswordpro/source/filter/lwplayout.hxx b/lotuswordpro/source/filter/lwplayout.hxx
index 5cb97064cbf3..c68a82d1edd3 100644
--- a/lotuswordpro/source/filter/lwplayout.hxx
+++ b/lotuswordpro/source/filter/lwplayout.hxx
@@ -106,7 +106,7 @@ public:
     virtual bool IsAutoGrowRight(){ return false;}
     bool IsFitGraphic();
     bool IsAutoGrowWidth();
-    bool IsInlineToMargin();
+    bool IsInlineToMargin() const;
     virtual sal_uInt8 GetContentOrientation(){ return TEXT_ORIENT_LRTB;}
     bool GetHonorProtection()
     {
@@ -171,8 +171,8 @@ public:
         m_bGettingExtMarginsValue = false;
         return fRet;
     }
-    const OUString& GetStyleName(){ return m_StyleName;}
-    bool IsComplex();
+    const OUString& GetStyleName() const { return m_StyleName;}
+    bool IsComplex() const;
     virtual bool IsAnchorPage(){ return false;}
     virtual bool IsAnchorFrame(){ return false;}
     virtual bool IsAnchorCell(){ return false;}
@@ -192,7 +192,7 @@ public:
     virtual bool IsUseOnAllOddPages(){ return false;}
     virtual bool IsUseOnPage(){ return false;}
     virtual sal_Int32 GetPageNumber(sal_uInt16 /*nLayoutNumber*/) { return -1;}
-    bool IsMinimumHeight();
+    bool IsMinimumHeight() const;
     virtual bool IsForWaterMark(){ return false;}
     virtual LwpPara* GetLastParaOfPreviousStory() { return nullptr; }
     rtl::Reference<LwpVirtualLayout> GetParentLayout();
@@ -200,7 +200,7 @@ public:
     void RegisterChildStyle();
     bool NoContentReference();
     bool IsStyleLayout();
-    enumXFAlignType GetVerticalAlignmentType()
+    enumXFAlignType GetVerticalAlignmentType() const
     {
         if (m_nAttributes & STYLE_CENTEREDVERTICALLY)
         {
@@ -401,7 +401,7 @@ protected:
     };
 
     LwpObjectID m_Content;
-    rtl::Reference<LwpObject> GetBasedOnStyle();
+    rtl::Reference<LwpObject> GetBasedOnStyle() const;
     LwpObjectID     m_TabPiece;
     LwpLayoutStyle  m_aStyleStuff;
     LwpLayoutMisc   m_aMiscStuff;
@@ -482,7 +482,7 @@ public:
      * @descr:   Get font style for setting position of frame
      *
      */
-    const rtl::Reference<XFFont>& GetFont() { return m_pFont; }
+    const rtl::Reference<XFFont>& GetFont() const { return m_pFont; }
     void SetFont(rtl::Reference<XFFont> const & pFont);
     enum WrapType
     {
diff --git a/lotuswordpro/source/filter/lwplaypiece.hxx b/lotuswordpro/source/filter/lwplaypiece.hxx
index f19833e26c3a..d5319ffb299d 100644
--- a/lotuswordpro/source/filter/lwplaypiece.hxx
+++ b/lotuswordpro/source/filter/lwplaypiece.hxx
@@ -83,11 +83,11 @@ class LwpLayoutGeometry final : public LwpVirtualPiece
 public:
     LwpLayoutGeometry(LwpObjectHeader const & objHdr, LwpSvStream* pStrm);
     virtual void Parse(IXFStream* pOutputStream) override;
-    sal_Int32 GetWidth() { return m_nWidth; }
-    sal_Int32 GetHeight() { return m_nHeight; }
-    const LwpPoint& GetOrigin() { return m_Origin; }
-    const LwpPoint& GetAbsoluteOrigin() { return m_AbsoluteOrigin; }
-    sal_uInt8 GetContentOrientation(){ return m_ContentOrientation;}
+    sal_Int32 GetWidth() const { return m_nWidth; }
+    sal_Int32 GetHeight() const { return m_nHeight; }
+    const LwpPoint& GetOrigin() const { return m_Origin; }
+    const LwpPoint& GetAbsoluteOrigin() const { return m_AbsoluteOrigin; }
+    sal_uInt8 GetContentOrientation() const { return m_ContentOrientation;}
 
 private:
     virtual void Read() override;
@@ -110,11 +110,11 @@ public:
     enum    {CENTERED = 1, TILED = 2};
     LwpLayoutScale(LwpObjectHeader const & objHdr, LwpSvStream* pStrm);
     virtual void Parse(IXFStream* pOutputStream) override;
-    sal_uInt16 GetScaleMode(){return m_nScaleMode;}
-    sal_uInt32 GetScalePercentage(){return m_nScalePercentage;}
-    sal_Int32 GetScaleWidth(){return m_nScaleWidth;}
-    sal_Int32 GetScaleHeight(){return m_nScaleHeight;}
-    sal_uInt16 GetPlacement(){return m_nPlacement;}
+    sal_uInt16 GetScaleMode() const {return m_nScaleMode;}
+    sal_uInt32 GetScalePercentage() const {return m_nScalePercentage;}
+    sal_Int32 GetScaleWidth() const {return m_nScaleWidth;}
+    sal_Int32 GetScaleHeight() const {return m_nScaleHeight;}
+    sal_uInt16 GetPlacement() const {return m_nPlacement;}
     LwpPoint& GetOffset() {return m_Offset;}
 private:
     virtual void Read() override;
@@ -214,7 +214,7 @@ class LwpLayoutColumns final : public LwpVirtualPiece
 public:
     LwpLayoutColumns(LwpObjectHeader const & objHdr, LwpSvStream* pStrm);
     virtual void Parse(IXFStream* pOutputStream) override;
-    sal_uInt16 GetNumCols(){return m_nNumCols;}
+    sal_uInt16 GetNumCols() const {return m_nNumCols;}
     double GetColGap(sal_uInt16 nIndex);
 private:
     virtual void Read() override;
@@ -313,7 +313,7 @@ class LwpLayoutRelativityGuts
 public:
     LwpLayoutRelativityGuts();
     void Read(LwpObjectStream *pStrm);
-    sal_uInt8 GetRelativeType(){ return m_nRelType;}
+    sal_uInt8 GetRelativeType() const { return m_nRelType;}
     enum RelativeType
     {
         LAY_PARENT_RELATIVE = 1,
diff --git a/lotuswordpro/source/filter/lwpmarker.cxx b/lotuswordpro/source/filter/lwpmarker.cxx
index 553f2369a244..9f71b3e7bab7 100644
--- a/lotuswordpro/source/filter/lwpmarker.cxx
+++ b/lotuswordpro/source/filter/lwpmarker.cxx
@@ -140,7 +140,7 @@ void LwpCHBlkMarker::Read()
     }
 }
 
-OUString LwpCHBlkMarker::GetPromptText()
+OUString LwpCHBlkMarker::GetPromptText() const
 {
     LwpStory* pStory = nullptr;
     if (m_objPromptStory.obj().is())
@@ -286,12 +286,12 @@ void LwpCHBlkMarker::ProcessKeylist(XFContentContainer* pXFPara,sal_uInt8 nType)
     }
 }
 
-bool LwpCHBlkMarker::IsHasFilled()
+bool LwpCHBlkMarker::IsHasFilled() const
 {
     return (CHB_PROMPT & m_nFlag) == 0;
 }
 
-bool LwpCHBlkMarker::IsBubbleHelp()
+bool LwpCHBlkMarker::IsBubbleHelp() const
 {
     return (CHB_HELP & m_nFlag) != 0;
 }
@@ -411,7 +411,7 @@ void LwpFieldMark::ParseTOC(OUString& sLevel,OUString& sText)
         sText.clear();
 }
 
-bool LwpFieldMark::IsFormulaInsert()
+bool LwpFieldMark::IsFormulaInsert() const
 {
     return (m_nFlag & FF_FORMULAINSERTED) != 0;
 }
diff --git a/lotuswordpro/source/filter/lwpmarker.hxx b/lotuswordpro/source/filter/lwpmarker.hxx
index a2a03ca3634d..719b07ea4c50 100644
--- a/lotuswordpro/source/filter/lwpmarker.hxx
+++ b/lotuswordpro/source/filter/lwpmarker.hxx
@@ -113,7 +113,7 @@ class LwpCHBlkMarker : public LwpStoryMarker
 public:
     LwpCHBlkMarker(LwpObjectHeader const &objHdr, LwpSvStream *pStrm);
     void Read() override;
-    sal_uInt16 GetAction(){return m_nAction;}
+    sal_uInt16 GetAction() const {return m_nAction;}
     void ConvertCHBlock(XFContentContainer* pXFPara,sal_uInt8 nType);
     enum{
         CLICKHERE_CHBEHAVIORTEXT=1,
@@ -136,9 +136,9 @@ private:
     void ProcessPlaceHolder(XFContentContainer* pXFPara,sal_uInt16 nAction,sal_uInt8 nType);
     void ProcessOtherCHB(XFContentContainer* pXFPara,sal_uInt8 nType);
     void ProcessKeylist(XFContentContainer* pXFPara,sal_uInt8 nType);
-    bool IsHasFilled();
-    bool IsBubbleHelp();
-    OUString GetPromptText();
+    bool IsHasFilled() const;
+    bool IsBubbleHelp() const;
+    OUString GetPromptText() const;
     void EnumAllKeywords();
 private:
     enum{
@@ -189,19 +189,19 @@ public:
     void Read() override;
     void ParseIndex(OUString& sKey1,OUString& sKey2);
     void ParseTOC(OUString& sLevel,OUString& sText);
-    sal_uInt16 GetFieldType(){return m_nFieldType;}
-    bool IsFormulaInsert();
+    sal_uInt16 GetFieldType() const {return m_nFieldType;}
+    bool IsFormulaInsert() const;
     bool IsDateTimeField(sal_uInt8& type,OUString& formula);
     bool IsCrossRefField(sal_uInt8& nType, OUString& sMarkName);
     bool IsDocPowerField(sal_uInt8& nType,OUString& sFormula);
-    OUString const & GetFormula(){return m_Formula.str();}
+    OUString const & GetFormula() const {return m_Formula.str();}
     void SetStyleFlag(bool bFalg){m_bHasStyle = bFalg;}
-    bool GetStyleFlag(){return m_bHasStyle;}
-    bool GetStart(){return m_bHasStart;}
+    bool GetStyleFlag() const {return m_bHasStyle;}
+    bool GetStart() const {return m_bHasStart;}
     void SetStart(bool bFlag){m_bHasStart = bFlag;}
     LwpFrib* GetStartFrib(){return m_pFrib;}
     void SetStartFrib(LwpFrib* pFrib){m_pFrib = pFrib;}
-    bool GetRevisionFlag(){return m_bRevisionFlag;}
+    bool GetRevisionFlag() const {return m_bRevisionFlag;}
     void SetRevisionFlag(bool bFlag){m_bRevisionFlag = bFlag;}
 
     enum{
@@ -250,11 +250,11 @@ class LwpRubyMarker : public LwpStoryMarker
 public:
     LwpRubyMarker(LwpObjectHeader const &objHdr, LwpSvStream *pStrm);
     void Read() override;
-    const OUString& GetRubyText(){return m_strRubyText;}
+    const OUString& GetRubyText() const {return m_strRubyText;}
     void SetRubyText(const OUString& sText){m_strRubyText = sText;}
-    const OUString& GetTextStyleName(){return m_TextStyle;}
+    const OUString& GetTextStyleName() const {return m_TextStyle;}
     void SetTextStyleName(const OUString& sName){m_TextStyle = sName;}
-    const OUString& GetRubyStyleName(){return m_RubyStyle;}
+    const OUString& GetRubyStyleName() const {return m_RubyStyle;}
     void SetRubyStyleName(const OUString& sName){m_RubyStyle = sName;}
 private:
     LwpObjectID m_objLayout;
diff --git a/lotuswordpro/source/filter/lwpnotes.hxx b/lotuswordpro/source/filter/lwpnotes.hxx
index 9abcce3897f6..df79d1b62fcc 100644
--- a/lotuswordpro/source/filter/lwpnotes.hxx
+++ b/lotuswordpro/source/filter/lwpnotes.hxx
@@ -91,7 +91,7 @@ public:
     virtual LWP_LAYOUT_TYPE GetLayoutType () override { return LWP_NOTE_LAYOUT;}
     virtual void RegisterStyle() override;
     virtual void XFConvert(XFContentContainer* pCont) override;
-    sal_uInt32 GetTime(){ return m_nTime;}
+    sal_uInt32 GetTime() const { return m_nTime;}
     OUString GetAuthor();
 
 private:
diff --git a/lotuswordpro/source/filter/lwpnumberingoverride.hxx b/lotuswordpro/source/filter/lwpnumberingoverride.hxx
index 029bef6a70d0..b4851a103dec 100644
--- a/lotuswordpro/source/filter/lwpnumberingoverride.hxx
+++ b/lotuswordpro/source/filter/lwpnumberingoverride.hxx
@@ -82,7 +82,7 @@ public:
 
     inline sal_uInt16 GetLevel() const;
     inline sal_uInt16 GetPosition() const;
-    inline bool IsHeading();
+    inline bool IsHeading() const;
 
     void OverrideLevel(sal_uInt16 nNewLv);
 
@@ -104,7 +104,7 @@ inline sal_uInt16 LwpNumberingOverride::GetPosition() const
     return m_nPosition;
 }
 
-inline bool LwpNumberingOverride::IsHeading()
+inline bool LwpNumberingOverride::IsHeading() const
 {
     return (m_nValues & HEADING) != 0;
 }
diff --git a/lotuswordpro/source/filter/lwpnumericfmt.cxx b/lotuswordpro/source/filter/lwpnumericfmt.cxx
index e70ae6d04208..871dd56ab4f0 100644
--- a/lotuswordpro/source/filter/lwpnumericfmt.cxx
+++ b/lotuswordpro/source/filter/lwpnumericfmt.cxx
@@ -103,7 +103,7 @@ void LwpNumericFormatSubset::QuickRead(LwpObjectStream* pStrm)
 
     pStrm->SkipExtra();
 }
-LwpColor LwpNumericFormatSubset::GetColor()
+LwpColor LwpNumericFormatSubset::GetColor() const
 {
     if (cSubFlags&0x04)
     {
diff --git a/lotuswordpro/source/filter/lwpnumericfmt.hxx b/lotuswordpro/source/filter/lwpnumericfmt.hxx
index 65f7cba39833..bd21accecfe8 100644
--- a/lotuswordpro/source/filter/lwpnumericfmt.hxx
+++ b/lotuswordpro/source/filter/lwpnumericfmt.hxx
@@ -76,11 +76,11 @@ class LwpNumericFormatSubset final
 public:
     LwpNumericFormatSubset();
     void QuickRead(LwpObjectStream* pStrm);
-    OUString const & GetPrefix(){ return cPrefix.str();}
-    OUString const & GetSuffix(){ return cSuffix.str();}
-    bool IsDefaultPrefix(){ return !(cSubFlags&SF_OVER_PREFIX); }
-    bool IsDefaultSuffix(){ return !(cSubFlags&SF_OVER_SUFFIX); }
-    LwpColor GetColor();
+    OUString const & GetPrefix() const { return cPrefix.str();}
+    OUString const & GetSuffix() const { return cSuffix.str();}
+    bool IsDefaultPrefix() const { return !(cSubFlags&SF_OVER_PREFIX); }
+    bool IsDefaultSuffix() const { return !(cSubFlags&SF_OVER_SUFFIX); }
+    LwpColor GetColor() const;
 
 private:
     LwpColor cColor;
@@ -248,8 +248,8 @@ public:
     void Read();
     static bool IsCurrencyFormat(sal_uInt16 Format);
     sal_uInt16 GetDecimalPlaces();
-    bool IsDecimalPlacesOverridden();
-    bool IsNegativeOverridden();
+    bool IsDecimalPlacesOverridden() const;
+    bool IsNegativeOverridden() const;
     XFStyle* Convert();
 
 private:
@@ -280,13 +280,13 @@ private:
 };
 
 inline bool
-LwpNumericFormat::IsDecimalPlacesOverridden()
+LwpNumericFormat::IsDecimalPlacesOverridden() const
 {
     return (cFlags & NF_OVER_DECIMAL_PLACES) != 0;
 }
 
 inline bool
-LwpNumericFormat::IsNegativeOverridden()
+LwpNumericFormat::IsNegativeOverridden() const
 {
     return (cFlags & NF_OVER_NEGATIVE) != 0;
 }
diff --git a/lotuswordpro/source/filter/lwpoverride.cxx b/lotuswordpro/source/filter/lwpoverride.cxx
index dcf94e0c75f7..677b3638f9f0 100644
--- a/lotuswordpro/source/filter/lwpoverride.cxx
+++ b/lotuswordpro/source/filter/lwpoverride.cxx
@@ -164,7 +164,7 @@ void LwpTextAttributeOverride::Read(LwpObjectStream* pStrm)
     pStrm->SkipExtra();
 }
 
-bool LwpTextAttributeOverride::IsHighlight()
+bool LwpTextAttributeOverride::IsHighlight() const
 {
     return (m_nValues & TAO_HIGHLIGHT) != 0;
 }
@@ -497,7 +497,7 @@ void LwpIndentOverride::Override(LwpIndentOverride* other)
         other->OverrideRelative(GetRelative());
 }
 
-sal_uInt16 LwpIndentOverride::GetRelative()
+sal_uInt16 LwpIndentOverride::GetRelative() const
 {
     if ((m_nOverride & IO_REL_FLAGS) == IO_REL_FIRST)
         return RELATIVE_FIRST;
@@ -506,7 +506,7 @@ sal_uInt16 LwpIndentOverride::GetRelative()
     return RELATIVE_REST;
 }
 
-bool LwpIndentOverride::IsUseRelative()
+bool LwpIndentOverride::IsUseRelative() const
 {
     return (m_nValues & IO_USE_RELATIVE) != 0;
 }
diff --git a/lotuswordpro/source/filter/lwppagehint.hxx b/lotuswordpro/source/filter/lwppagehint.hxx
index 9761b531d9b7..c4133b49159d 100644
--- a/lotuswordpro/source/filter/lwppagehint.hxx
+++ b/lotuswordpro/source/filter/lwppagehint.hxx
@@ -99,9 +99,9 @@ public:
     LwpPageHint(LwpObjectHeader const &objHdr, LwpSvStream* pStrm);
     void Read() override;
     void Parse(IXFStream* pOutputStream) override;
-    sal_uInt16 GetPageNumber(){return m_nPageNumber;}
+    sal_uInt16 GetPageNumber() const {return m_nPageNumber;}
     LwpObjectID& GetPageLayoutID(){ return m_PageLayout;}
-    sal_uInt16 GetLayoutPageNumber(){ return m_nLayoutPageNumber;}
+    sal_uInt16 GetLayoutPageNumber() const { return m_nLayoutPageNumber;}
 private:
     virtual ~LwpPageHint() override {}
 
diff --git a/lotuswordpro/source/filter/lwppara.hxx b/lotuswordpro/source/filter/lwppara.hxx
index 1a688304937d..00139692f992 100644
--- a/lotuswordpro/source/filter/lwppara.hxx
+++ b/lotuswordpro/source/filter/lwppara.hxx
@@ -164,7 +164,7 @@ public:
 
     void GetParaNumber(sal_uInt16 nPosition, ParaNumbering* pParaNumbering);
     LwpFribPtr& GetFribs();
-    double GetBelowSpacing();
+    double GetBelowSpacing() const;
     LwpParaProperty* GetProperty(sal_uInt32 nPropType);
     void GatherDropcapInfo();
     const OUString& GetBulletStyleName() const;
@@ -351,7 +351,7 @@ inline void LwpPara::SetDropcapLayout(LwpDropcapLayout* pLayout)
 {
     m_pDropcapLayout = pLayout;
 }
-inline double LwpPara::GetBelowSpacing()
+inline double LwpPara::GetBelowSpacing() const
 {
     return m_BelowSpacing;
 }
diff --git a/lotuswordpro/source/filter/lwpparaborderoverride.hxx b/lotuswordpro/source/filter/lwpparaborderoverride.hxx
index 7102eae35513..cb711052c1d0 100644
--- a/lotuswordpro/source/filter/lwpparaborderoverride.hxx
+++ b/lotuswordpro/source/filter/lwpparaborderoverride.hxx
@@ -89,19 +89,19 @@ public:
 
     void Override(LwpParaBorderOverride* pOther);
 
-    inline bool IsBorderStuffOverridden();
-    inline bool IsBetweenStuffOverridden();
-    inline bool IsShadowOverridden();
-    inline bool IsMarginsOverridden();
-    inline bool IsAboveTypeOverridden();
-    inline bool IsBelowTypeOverridden();
-    inline bool IsRightTypeOverridden();
-    inline bool IsBetweenTypeOverridden();
-    inline bool IsAboveWidthOverridden();
-    inline bool IsBelowWidthOverridden();
-    inline bool IsBetweenWidthOverridden();
-    inline bool IsRightWidthOverridden();
-    inline bool IsBetweenMarginOverridden();
+    inline bool IsBorderStuffOverridden() const;
+    inline bool IsBetweenStuffOverridden() const;
+    inline bool IsShadowOverridden() const;
+    inline bool IsMarginsOverridden() const;
+    inline bool IsAboveTypeOverridden() const;
+    inline bool IsBelowTypeOverridden() const;
+    inline bool IsRightTypeOverridden() const;
+    inline bool IsBetweenTypeOverridden() const;
+    inline bool IsAboveWidthOverridden() const;
+    inline bool IsBelowWidthOverridden() const;
+    inline bool IsBetweenWidthOverridden() const;
+    inline bool IsRightWidthOverridden() const;
+    inline bool IsBetweenMarginOverridden() const;
 
     void OverrideBorderStuff(LwpBorderStuff const * pBorderStuff);
     void OverrideBetweenStuff(LwpBorderStuff const * pBorderStuff);
@@ -172,55 +172,55 @@ private:
     sal_uInt32          m_nBetweenMargin;
 };
 
-inline bool LwpParaBorderOverride::IsBorderStuffOverridden()
+inline bool LwpParaBorderOverride::IsBorderStuffOverridden() const
 {
     return ((m_nOverride & PBO_STUFF) != 0);
 }
-inline bool LwpParaBorderOverride::IsBetweenStuffOverridden()
+inline bool LwpParaBorderOverride::IsBetweenStuffOverridden() const
 {
     return ((m_nOverride & PBO_BETWEENSTUFF) != 0);
 }
-inline bool LwpParaBorderOverride::IsShadowOverridden()
+inline bool LwpParaBorderOverride::IsShadowOverridden() const
 {
     return ((m_nOverride & PBO_SHADOW) != 0);
 }
-inline bool LwpParaBorderOverride::IsMarginsOverridden()
+inline bool LwpParaBorderOverride::IsMarginsOverridden() const
 {
     return ((m_nOverride & PBO_MARGINS) != 0);
 }
-inline bool LwpParaBorderOverride::IsAboveTypeOverridden()
+inline bool LwpParaBorderOverride::IsAboveTypeOverridden() const
 {
     return ((m_nOverride & PBO_ABOVETYPE) != 0);
 }
-inline bool LwpParaBorderOverride::IsBelowTypeOverridden()
+inline bool LwpParaBorderOverride::IsBelowTypeOverridden() const
 {
     return ((m_nOverride & PBO_BELOWTYPE) != 0);
 }
-inline bool LwpParaBorderOverride::IsRightTypeOverridden()
+inline bool LwpParaBorderOverride::IsRightTypeOverridden() const
 {
     return ((m_nOverride & PBO_RIGHTTYPE) != 0);
 }
-inline bool LwpParaBorderOverride::IsBetweenTypeOverridden()
+inline bool LwpParaBorderOverride::IsBetweenTypeOverridden() const
 {
     return ((m_nOverride & PBO_BETWEENTYPE) != 0);
 }
-inline bool LwpParaBorderOverride::IsAboveWidthOverridden()
+inline bool LwpParaBorderOverride::IsAboveWidthOverridden() const
 {
     return ((m_nOverride & PBO_ABOVE) != 0);
 }
-inline bool LwpParaBorderOverride::IsBelowWidthOverridden()
+inline bool LwpParaBorderOverride::IsBelowWidthOverridden() const
 {
     return ((m_nOverride & PBO_BELOW) != 0);
 }
-inline bool LwpParaBorderOverride::IsBetweenWidthOverridden()
+inline bool LwpParaBorderOverride::IsBetweenWidthOverridden() const
 {
     return ((m_nOverride & PBO_BETWEEN) != 0);
 }
-inline bool LwpParaBorderOverride::IsRightWidthOverridden()
+inline bool LwpParaBorderOverride::IsRightWidthOverridden() const
 {
     return ((m_nOverride & PBO_RIGHT) != 0);
 }
-inline bool LwpParaBorderOverride::IsBetweenMarginOverridden()
+inline bool LwpParaBorderOverride::IsBetweenMarginOverridden() const
 {
     return ((m_nOverride & PBO_BETWEENMARGIN) != 0);
 }
diff --git a/lotuswordpro/source/filter/lwpparaproperty.hxx b/lotuswordpro/source/filter/lwpparaproperty.hxx
index f00e7fb0a905..4b4f6fca6ec6 100644
--- a/lotuswordpro/source/filter/lwpparaproperty.hxx
+++ b/lotuswordpro/source/filter/lwpparaproperty.hxx
@@ -118,13 +118,13 @@ public:
         virtual ~LwpParaIndentProperty() override;
         LwpIndentOverride* GetIndent();
         sal_uInt32 GetType() override;
-        inline const LwpObjectID& GetIndentID();
+        inline const LwpObjectID& GetIndentID() const;
 
 private:
         LwpObjectID m_aIndentID;
         LwpIndentOverride* m_pIndent;
 };
-inline const LwpObjectID& LwpParaIndentProperty::GetIndentID()
+inline const LwpObjectID& LwpParaIndentProperty::GetIndentID() const
 {
     return m_aIndentID;
 }
diff --git a/lotuswordpro/source/filter/lwpparastyle.cxx b/lotuswordpro/source/filter/lwpparastyle.cxx
index 4afe02ae2d29..f7fc6979746d 100644
--- a/lotuswordpro/source/filter/lwpparastyle.cxx
+++ b/lotuswordpro/source/filter/lwpparastyle.cxx
@@ -359,7 +359,7 @@ void LwpParaStyle::ApplyParaBorder(XFParaStyle* pParaStyle, LwpParaBorderOverrid
     }
 }
 
-void LwpParaStyle::ApplyBreaks(XFParaStyle* pParaStyle, LwpBreaksOverride* pBreaks)
+void LwpParaStyle::ApplyBreaks(XFParaStyle* pParaStyle, const LwpBreaksOverride* pBreaks)
 {
     if (pBreaks->IsKeepWithNext())
     {
@@ -383,7 +383,7 @@ void LwpParaStyle::ApplyBreaks(XFParaStyle* pParaStyle, LwpBreaksOverride* pBrea
     }
 }
 
-void LwpParaStyle::ApplyAlignment(XFParaStyle* pParaStyle, LwpAlignmentOverride* pAlign)
+void LwpParaStyle::ApplyAlignment(XFParaStyle* pParaStyle, const LwpAlignmentOverride* pAlign)
 {
     enumXFAlignType alignType = enumXFAlignStart;
     LwpAlignmentOverride::AlignType type;
@@ -418,7 +418,7 @@ void LwpParaStyle::ApplyAlignment(XFParaStyle* pParaStyle, LwpAlignmentOverride*
     pParaStyle->SetAlignType(alignType);
 }
 
-void LwpParaStyle::ApplyIndent(LwpPara* pPara, XFParaStyle* pParaStyle, LwpIndentOverride* pIndent)
+void LwpParaStyle::ApplyIndent(LwpPara* pPara, XFParaStyle* pParaStyle, const LwpIndentOverride* pIndent)
 {
     LwpPara* pParentPara;
     if (pPara)
diff --git a/lotuswordpro/source/filter/lwpparastyle.hxx b/lotuswordpro/source/filter/lwpparastyle.hxx
index 3dc461ae1518..7c46c4238ce0 100644
--- a/lotuswordpro/source/filter/lwpparastyle.hxx
+++ b/lotuswordpro/source/filter/lwpparastyle.hxx
@@ -82,9 +82,9 @@ public:
 
     void        Apply(XFParaStyle *pStrm);
     static void ApplyParaBorder(XFParaStyle* pParaStyle, LwpParaBorderOverride* pBorder);
-    static void ApplyBreaks(XFParaStyle* pParaStyle, LwpBreaksOverride* pBreaks);
-    static void ApplyAlignment(XFParaStyle* pParaStyle, LwpAlignmentOverride* pAlign);
-    static void ApplyIndent(LwpPara* pPara, XFParaStyle* pParaStyle, LwpIndentOverride* pIndent);
+    static void ApplyBreaks(XFParaStyle* pParaStyle, const LwpBreaksOverride* pBreaks);
+    static void ApplyAlignment(XFParaStyle* pParaStyle, const LwpAlignmentOverride* pAlign);
+    static void ApplyIndent(LwpPara* pPara, XFParaStyle* pParaStyle, const LwpIndentOverride* pIndent);
     static void ApplySpacing(LwpPara* pPara, XFParaStyle* pParaStyle, LwpSpacingOverride* pSpacing);
 
     static void ApplyTab(XFParaStyle* pParaStyle, LwpTabOverride* pTab);
diff --git a/lotuswordpro/source/filter/lwpproplist.hxx b/lotuswordpro/source/filter/lwpproplist.hxx
index 7398a995cc85..df1902c482c0 100644
--- a/lotuswordpro/source/filter/lwpproplist.hxx
+++ b/lotuswordpro/source/filter/lwpproplist.hxx
@@ -72,8 +72,8 @@ public:
     void Read() override;
     bool IsNamed(const OUString& name);
     LwpPropListElement* GetNext();
-    const LwpAtomHolder& GetValue(){return m_Value;}
-    const LwpAtomHolder& GetName(){return m_Name;}
+    const LwpAtomHolder& GetValue() const {return m_Value;}
+    const LwpAtomHolder& GetName() const {return m_Name;}
 private:
     virtual ~LwpPropListElement() override {}
 
diff --git a/lotuswordpro/source/filter/lwprowlayout.cxx b/lotuswordpro/source/filter/lwprowlayout.cxx
index f9b851fd7b8f..4648d1ec00e4 100644
--- a/lotuswordpro/source/filter/lwprowlayout.cxx
+++ b/lotuswordpro/source/filter/lwprowlayout.cxx
@@ -468,7 +468,7 @@ void LwpRowLayout::SetCellSplit(sal_uInt16 nEffectRows)
 /**
  * @short   check if the row has merge cell
  */
-bool LwpRowLayout::GetMergeCellFlag()
+bool LwpRowLayout::GetMergeCellFlag() const
 {
     return !m_ConnCellList.empty();
 }
diff --git a/lotuswordpro/source/filter/lwprowlayout.hxx b/lotuswordpro/source/filter/lwprowlayout.hxx
index e393c6908779..ad2c9eacb959 100644
--- a/lotuswordpro/source/filter/lwprowlayout.hxx
+++ b/lotuswordpro/source/filter/lwprowlayout.hxx
@@ -78,7 +78,7 @@ public:
     LwpRowLayout(LwpObjectHeader const &objHdr, LwpSvStream* pStrm);
     virtual ~LwpRowLayout() override;
     virtual LWP_LAYOUT_TYPE GetLayoutType () override { return LWP_ROW_LAYOUT;}
-    sal_uInt16 GetRowID() { return crowid;}
+    sal_uInt16 GetRowID() const { return crowid;}
     virtual void RegisterStyle() override;
     LwpTableLayout * GetParentTableLayout(){return dynamic_cast<LwpTableLayout *>(GetParent().obj().get());}
     void SetRowMap();
@@ -105,7 +105,7 @@ public:
     void ConvertCommonRow(rtl::Reference<XFTable> const & pXFTable, sal_uInt8 nStartCol, sal_uInt8 nEndCol);
     void CollectMergeInfo();
     void SetCellSplit(sal_uInt16 nEffectRows);
-    bool GetMergeCellFlag();
+    bool GetMergeCellFlag() const;
     sal_uInt16 GetCurMaxSpannedRows(sal_uInt8 nStartCol,sal_uInt8 nEndCol);
     void RegisterCurRowStyle(XFRow* pXFRow,sal_uInt16 nRowMark);
 };
diff --git a/lotuswordpro/source/filter/lwpsection.cxx b/lotuswordpro/source/filter/lwpsection.cxx
index 27b61fcc9d82..864f7e1f5280 100644
--- a/lotuswordpro/source/filter/lwpsection.cxx
+++ b/lotuswordpro/source/filter/lwpsection.cxx
@@ -142,13 +142,13 @@ void LwpIndexSection::Read()
     m_pObjStrm->SkipExtra();
 }
 
-bool LwpIndexSection::IsFormatRunin()
+bool LwpIndexSection::IsFormatRunin() const
 {
     return (m_nFlags & RUN_IN) != 0;
 
 }
 
-bool LwpIndexSection::IsFormatSeparator()
+bool LwpIndexSection::IsFormatSeparator() const
 {
     return (m_nFlags & SEPARATORS) != 0;
 
diff --git a/lotuswordpro/source/filter/lwpsection.hxx b/lotuswordpro/source/filter/lwpsection.hxx
index 7ba45ceba32e..a3678fb0ed89 100644
--- a/lotuswordpro/source/filter/lwpsection.hxx
+++ b/lotuswordpro/source/filter/lwpsection.hxx
@@ -92,7 +92,7 @@ public:
     virtual ~LwpSection() override;
     inline LwpPageLayout* GetPageLayout();
     void Parse(IXFStream* pOutputStream) override;
-    OUString const & GetSectionName(){return m_AtomHolder.str();}
+    OUString const & GetSectionName() const {return m_AtomHolder.str();}
 
 protected:
     void Read() override;
@@ -118,8 +118,8 @@ class LwpIndexSection : public LwpSection

... etc. - the rest is truncated


More information about the Libreoffice-commits mailing list