diff options
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/filter/ww8/rtfattributeoutput.hxx | 1 | ||||
-rw-r--r-- | sw/source/uibase/dochdl/gloshdl.cxx | 22 | ||||
-rw-r--r-- | sw/source/uibase/inc/gloshdl.hxx | 2 |
3 files changed, 0 insertions, 25 deletions
diff --git a/sw/source/filter/ww8/rtfattributeoutput.hxx b/sw/source/filter/ww8/rtfattributeoutput.hxx index 4a6b90607af5..66e902a770fc 100644 --- a/sw/source/filter/ww8/rtfattributeoutput.hxx +++ b/sw/source/filter/ww8/rtfattributeoutput.hxx @@ -83,7 +83,6 @@ public: // Access to (anyway) private buffers, used by the sdr exporter OStringBuffer& RunText(); - OStringBuffer& Styles() { return m_aStyles; } OString MoveCharacterProperties(bool aAutoWriteRtlLtr = false); /// Output text (without markup). diff --git a/sw/source/uibase/dochdl/gloshdl.cxx b/sw/source/uibase/dochdl/gloshdl.cxx index fc1f13dae296..2409f7b6511f 100644 --- a/sw/source/uibase/dochdl/gloshdl.cxx +++ b/sw/source/uibase/dochdl/gloshdl.cxx @@ -202,28 +202,6 @@ void SwGlossaryHdl::RenameGroup(const OUString& rOld, OUString& rNew, const OUSt } } -bool SwGlossaryHdl::CopyOrMove( const OUString& rSourceGroupName, OUString& rSourceShortName, - const OUString& rDestGroupName, const OUString& rLongName, bool bMove ) -{ - std::unique_ptr<SwTextBlocks> pSourceGroup = rStatGlossaries.GetGroupDoc(rSourceGroupName); - std::unique_ptr<SwTextBlocks> pDestGroup = rStatGlossaries.GetGroupDoc(rDestGroupName); - if (pDestGroup->IsReadOnly() || (bMove && pSourceGroup->IsReadOnly()) ) - { - return false; - } - - //The index must be determined here because rSourceShortName maybe changed in CopyBlock - sal_uInt16 nDeleteIdx = pSourceGroup->GetIndex( rSourceShortName ); - OSL_ENSURE(USHRT_MAX != nDeleteIdx, "entry not found"); - ErrCode nRet = pSourceGroup->CopyBlock( *pDestGroup, rSourceShortName, rLongName ); - if(!nRet && bMove) - { - // the index must be existing - nRet = pSourceGroup->Delete( nDeleteIdx ) ? ERRCODE_NONE : ErrCode(1); - } - return !nRet; -} - // delete a autotext-file-group bool SwGlossaryHdl::DelGroup(const OUString &rGrpName) { diff --git a/sw/source/uibase/inc/gloshdl.hxx b/sw/source/uibase/inc/gloshdl.hxx index d065aa9302a5..c57a762bbf6e 100644 --- a/sw/source/uibase/inc/gloshdl.hxx +++ b/sw/source/uibase/inc/gloshdl.hxx @@ -60,8 +60,6 @@ public: bool Rename( const OUString& rOldShortName, const OUString& rNewShortName, const OUString& rNewName); - bool CopyOrMove( const OUString& rSourceGroupName, OUString& rSourceShortName, - const OUString& rDestGroupName, const OUString& rLongName, bool bMove ); bool HasShortName(const OUString &rShortName) const; // when NewGlossary is called from Basic then the previously set group should // be newly created if applicable. |