Kaydet (Commit) 1d0be858 authored tarafından Caolán McNamara's avatar Caolán McNamara

SwDropCapsDlg can now be converted to SfxSingleTabDialog

Change-Id: I2d9baf887cf31789e0d439c4b9bbe3c1371b8f18
üst 7fd6d43c
...@@ -519,18 +519,12 @@ void SwDropCapsPict::_InitPrinter() ...@@ -519,18 +519,12 @@ void SwDropCapsPict::_InitPrinter()
} }
} }
SwDropCapsDlg::SwDropCapsDlg(Window *pParent, const SfxItemSet &rSet ) : SwDropCapsDlg::SwDropCapsDlg(Window *pParent, const SfxItemSet &rSet )
: SfxSingleTabDialog(pParent, rSet)
SfxNoLayoutSingleTabDialog(pParent, rSet, 0)
{
SwDropCapsPage* pNewPage = (SwDropCapsPage*) SwDropCapsPage::Create(this, rSet);
pNewPage->SetFormat(sal_False);
SetTabPage(pNewPage);
}
SwDropCapsDlg::~SwDropCapsDlg()
{ {
SwDropCapsPage* pNewPage = (SwDropCapsPage*) SwDropCapsPage::Create(get_content_area(), rSet);
pNewPage->SetFormat(false);
setTabPage(pNewPage);
} }
SwDropCapsPage::SwDropCapsPage(Window *pParent, const SfxItemSet &rSet) SwDropCapsPage::SwDropCapsPage(Window *pParent, const SfxItemSet &rSet)
......
...@@ -36,14 +36,10 @@ class SwWrtShell; ...@@ -36,14 +36,10 @@ class SwWrtShell;
// class SwDropCapsDlg ****************************************************** // class SwDropCapsDlg ******************************************************
class SwDropCapsDlg : public SfxNoLayoutSingleTabDialog class SwDropCapsDlg : public SfxSingleTabDialog
{ {
public: public:
SwDropCapsDlg(Window *pParent, const SfxItemSet &rSet ); SwDropCapsDlg(Window *pParent, const SfxItemSet &rSet );
~SwDropCapsDlg();
}; };
class SwDropCapsPict; class SwDropCapsPict;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment