diff options
author | Andreas Heinisch <andreas.heinisch@yahoo.de> | 2022-05-08 14:31:00 +0200 |
---|---|---|
committer | Andreas Heinisch <andreas.heinisch@yahoo.de> | 2022-05-10 20:30:56 +0200 |
commit | ad79900cd62c487bda9d2515892d62b3b08a5dfa (patch) | |
tree | 68db852861aa90cee6f0af6f30930a04e06d5ba8 /sfx2 | |
parent | adb5eca79f3ae0c80c8046e73d7a411734a1b75d (diff) |
tdf#108188, tdf#131190 - Verify that the page style is actually used
Change-Id: I007d26c6fcaf60d2a2378cc00e630da447f95a8a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134022
Tested-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/dialog/StyleList.cxx | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/sfx2/source/dialog/StyleList.cxx b/sfx2/source/dialog/StyleList.cxx index 6f8e3543aac8..a25050ead918 100644 --- a/sfx2/source/dialog/StyleList.cxx +++ b/sfx2/source/dialog/StyleList.cxx @@ -1321,21 +1321,6 @@ IMPL_LINK_NOARG(StyleList, EnableDelete, void*, void) { bEnableDelete = true; } - else if (pStyle->GetFamily() == SfxStyleFamily::Page) - { - // Hack to allow Calc page styles to be deleted, - // remove when IsUsed is fixed for Calc page styles. - SfxViewFrame* pFrame = m_pCurObjShell->GetFrame(); - if (pFrame) - { - uno::Reference<frame::XFrame> xFrame = pFrame->GetFrame().GetFrameInterface(); - if (vcl::CommandInfoProvider::GetModuleIdentifier(xFrame) - == "com.sun.star.sheet.SpreadsheetDocument") - { - bEnableDelete = true; - } - } - } } } m_pParentDialog->EnableDel(bEnableDelete, this); |