summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorAndreas Heinisch <andreas.heinisch@yahoo.de>2022-05-08 14:31:00 +0200
committerAndras Timar <andras.timar@collabora.com>2022-05-13 16:41:11 +0200
commit760bc6a5e8a501d4ff986f22aa2360e0cbc2fd3c (patch)
treea62d6b6abca863a258eadb644e6b6a648771c4a4 /sfx2
parent74b2e18d0f38dacca0822cf698224a3bc44b8a2d (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> (cherry picked from commit ad79900cd62c487bda9d2515892d62b3b08a5dfa) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134067 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/dialog/StyleList.cxx15
1 files changed, 0 insertions, 15 deletions
diff --git a/sfx2/source/dialog/StyleList.cxx b/sfx2/source/dialog/StyleList.cxx
index 5b86a1033c49..f8bcf6ee1799 100644
--- a/sfx2/source/dialog/StyleList.cxx
+++ b/sfx2/source/dialog/StyleList.cxx
@@ -1335,21 +1335,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);