summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
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 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);