diff options
author | Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de> | 2024-01-04 15:04:06 +0100 |
---|---|---|
committer | Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de> | 2024-01-11 12:44:39 +0100 |
commit | fb443c6d4d210d73795bdb3b7cb392765726f3a1 (patch) | |
tree | d44279453f4585142b46a47a1e4d9296d98e0eec /sw/inc | |
parent | 79f3a2655d995421c989b9479e3c63e8ebeabeb2 (diff) |
Use officecfg instead of utl::ConfigItem
Change-Id: If6fa84bcdb56873df288d216b157ad669c45bca1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161622
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/PostItMgr.hxx | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/sw/inc/PostItMgr.hxx b/sw/inc/PostItMgr.hxx index 510a4fa55a2a..ec6604c43a23 100644 --- a/sw/inc/PostItMgr.hxx +++ b/sw/inc/PostItMgr.hxx @@ -82,45 +82,6 @@ struct FieldShadowState } }; -class SwNoteProps final : public utl::ConfigItem -{ - private: - bool m_bIsShowAnchor; - - virtual void ImplCommit() override; - - public: - SwNoteProps() - : ConfigItem("Office.Writer/Notes") - , m_bIsShowAnchor(false) - { - const css::uno::Sequence< OUString >& rNames = GetPropertyNames(); - css::uno::Sequence< css::uno::Any > aValues = GetProperties(rNames); - const css::uno::Any* pValues = aValues.getConstArray(); - SAL_WARN_IF(aValues.getLength() != rNames.getLength(), "sw", "GetProperties failed"); - if (aValues.hasElements()) - pValues[0]>>=m_bIsShowAnchor; - } - - bool IsShowAnchor() const - { - return m_bIsShowAnchor; - } - static css::uno::Sequence< OUString >& GetPropertyNames() - { - static css::uno::Sequence< OUString > aNames; - if(!aNames.hasElements()) - { - aNames.realloc(1); - OUString* pNames = aNames.getArray(); - pNames[0] = "ShowAnkor"; - } - return aNames; - } - - virtual void Notify( const css::uno::Sequence< OUString >& aPropertyNames ) override; -}; - class SAL_DLLPUBLIC_RTTI SwPostItMgr final : public SfxListener { private: @@ -140,7 +101,6 @@ class SAL_DLLPUBLIC_RTTI SwPostItMgr final : public SfxListener FieldShadowState mShadowState; std::optional<OutlinerParaObject> mpAnswer; OUString maAnswerText; - bool mbIsShowAnchor; // data structure to collect the <SwAnnotationWin> instances for certain <SwFrame> instances. std::unique_ptr<sw::sidebarwindows::SwFrameSidebarWinContainer> mpFrameSidebarWinContainer; @@ -190,7 +150,6 @@ class SAL_DLLPUBLIC_RTTI SwPostItMgr final : public SfxListener bool ShowScrollbar(const tools::ULong aPage) const; bool HasNotes() const ; bool ShowNotes() const; - bool IsShowAnchor() const { return mbIsShowAnchor;} void SetSidebarWidth(sal_uInt16 nPx); tools::ULong GetSidebarWidth(bool bPx = false) const; tools::ULong GetSidebarBorderWidth(bool bPx = false) const; |