SfxNoLayoutSingleTabDialog not needed anymore
all single tab dialogs are .ui enabled now. So now we can remove SfxNoLayoutSingleTabDialog and merge SfxSingleTabDialog and ~SfxNoLayoutSingleTabDialogBase together Change-Id: If0acc792d85b7d399572257d7e9b0e12993ba3fe
This commit is contained in:
parent
976ccb9374
commit
ebf5e613a5
@ -46,7 +46,7 @@ NumberFormatDialog::NumberFormatDialog(Window* pParent, SfxItemSet& rSet)
|
|||||||
{
|
{
|
||||||
SfxTabPage* pTabPage = (*fnCreatePage)( get_content_area(), rSet );
|
SfxTabPage* pTabPage = (*fnCreatePage)( get_content_area(), rSet );
|
||||||
pTabPage->PageCreated(rSet);
|
pTabPage->PageCreated(rSet);
|
||||||
setTabPage(pTabPage);
|
SetTabPage(pTabPage);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -873,7 +873,7 @@ SvxMacroAssignDlg::SvxMacroAssignDlg( Window* pParent, const Reference< frame::X
|
|||||||
const Reference< container::XNameReplace >& xNameReplace, sal_uInt16 nSelectedIndex )
|
const Reference< container::XNameReplace >& xNameReplace, sal_uInt16 nSelectedIndex )
|
||||||
: SvxMacroAssignSingleTabDialog(pParent, rSet)
|
: SvxMacroAssignSingleTabDialog(pParent, rSet)
|
||||||
{
|
{
|
||||||
setTabPage(new SvxMacroTabPage(get_content_area(), _rxDocumentFrame, rSet, xNameReplace, nSelectedIndex));
|
SetTabPage(new SvxMacroTabPage(get_content_area(), _rxDocumentFrame, rSet, xNameReplace, nSelectedIndex));
|
||||||
}
|
}
|
||||||
|
|
||||||
//===============================================
|
//===============================================
|
||||||
|
@ -506,7 +506,7 @@ void SpellDialog::StartSpellOptDlg_Impl()
|
|||||||
new SfxSingleTabDialog(this, aSet, "SpellOptionsDialog", "cui/ui/spelloptionsdialog.ui");
|
new SfxSingleTabDialog(this, aSet, "SpellOptionsDialog", "cui/ui/spelloptionsdialog.ui");
|
||||||
SfxTabPage* pPage = SvxLinguTabPage::Create( pDlg->get_content_area(), aSet );
|
SfxTabPage* pPage = SvxLinguTabPage::Create( pDlg->get_content_area(), aSet );
|
||||||
( (SvxLinguTabPage*)pPage )->HideGroups( GROUP_MODULES );
|
( (SvxLinguTabPage*)pPage )->HideGroups( GROUP_MODULES );
|
||||||
pDlg->setTabPage( pPage );
|
pDlg->SetTabPage( pPage );
|
||||||
if(RET_OK == pDlg->Execute())
|
if(RET_OK == pDlg->Execute())
|
||||||
{
|
{
|
||||||
InitUserDicts();
|
InitUserDicts();
|
||||||
|
@ -56,7 +56,7 @@ SvxJSearchOptionsDialog::SvxJSearchOptionsDialog(Window *pParent,
|
|||||||
// SfxSingleTabDialog destructor
|
// SfxSingleTabDialog destructor
|
||||||
pPage = (SvxJSearchOptionsPage *)
|
pPage = (SvxJSearchOptionsPage *)
|
||||||
SvxJSearchOptionsPage::Create(get_content_area(), rOptionsSet );
|
SvxJSearchOptionsPage::Create(get_content_area(), rOptionsSet );
|
||||||
setTabPage( pPage ); //! implicitly calls pPage->Reset(...)!
|
SetTabPage( pPage ); //! implicitly calls pPage->Reset(...)!
|
||||||
pPage->EnableSaveOptions(false);
|
pPage->EnableSaveOptions(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -79,7 +79,7 @@ DatabaseRegistrationDialog::DatabaseRegistrationDialog( Window* pParent, const S
|
|||||||
, SfxSingleTabDialog(pParent, getRegistrationItems())
|
, SfxSingleTabDialog(pParent, getRegistrationItems())
|
||||||
{
|
{
|
||||||
SfxTabPage* page = DbRegistrationOptionsPage::Create(get_content_area(), getRegistrationItems());
|
SfxTabPage* page = DbRegistrationOptionsPage::Create(get_content_area(), getRegistrationItems());
|
||||||
setTabPage(page);
|
SetTabPage(page);
|
||||||
SetText(page->get<VclFrame>("frame1")->get_label());
|
SetText(page->get<VclFrame>("frame1")->get_label());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -60,7 +60,7 @@ SvxConnectionDialog::SvxConnectionDialog( Window* pParent, const SfxItemSet& rIn
|
|||||||
_pPage->SetView( pSdrView );
|
_pPage->SetView( pSdrView );
|
||||||
_pPage->Construct();
|
_pPage->Construct();
|
||||||
|
|
||||||
setTabPage( _pPage );
|
SetTabPage( _pPage );
|
||||||
SetText(CUI_RESSTR( RID_SVXSTR_CONNECTOR ));
|
SetText(CUI_RESSTR( RID_SVXSTR_CONNECTOR ));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ SvxDistributeDialog::SvxDistributeDialog(Window* pParent,
|
|||||||
, mpPage(NULL)
|
, mpPage(NULL)
|
||||||
{
|
{
|
||||||
mpPage = new SvxDistributePage(get_content_area(), rInAttrs, eHor, eVer);
|
mpPage = new SvxDistributePage(get_content_area(), rInAttrs, eHor, eVer);
|
||||||
setTabPage(mpPage);
|
SetTabPage(mpPage);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*************************************************************************
|
/*************************************************************************
|
||||||
|
@ -474,7 +474,7 @@ SfxMacroAssignDlg::SfxMacroAssignDlg(Window* pParent,
|
|||||||
{
|
{
|
||||||
SfxMacroTabPage* pPage = CreateSfxMacroTabPage(get_content_area(), rSet);
|
SfxMacroTabPage* pPage = CreateSfxMacroTabPage(get_content_area(), rSet);
|
||||||
pPage->SetFrame( rxDocumentFrame );
|
pPage->SetFrame( rxDocumentFrame );
|
||||||
setTabPage( pPage );
|
SetTabPage( pPage );
|
||||||
pPage->LaunchFillGroup();
|
pPage->LaunchFillGroup();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -69,7 +69,7 @@ SvxMeasureDialog::SvxMeasureDialog( Window* pParent, const SfxItemSet& rInAttrs,
|
|||||||
_pPage->SetView( pSdrView );
|
_pPage->SetView( pSdrView );
|
||||||
_pPage->Construct();
|
_pPage->Construct();
|
||||||
|
|
||||||
setTabPage(_pPage );
|
SetTabPage(_pPage );
|
||||||
SetText(CUI_RESSTR(RID_SVXSTR_DIMENSION_LINE));
|
SetText(CUI_RESSTR(RID_SVXSTR_DIMENSION_LINE));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1108,7 +1108,7 @@ IMPL_LINK( SvxNumberFormatTabPage, DoubleClickHdl_Impl, SvxFontListBox*, pLb )
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
SfxSingleTabDialogBase* pParent = dynamic_cast< SfxSingleTabDialogBase* >( GetParentDialog() );
|
SfxSingleTabDialog* pParent = dynamic_cast< SfxSingleTabDialog* >( GetParentDialog() );
|
||||||
OKButton* pOKButton = pParent ? pParent->GetOKButton() : NULL;
|
OKButton* pOKButton = pParent ? pParent->GetOKButton() : NULL;
|
||||||
if ( pOKButton )
|
if ( pOKButton )
|
||||||
pOKButton->Click();
|
pOKButton->Click();
|
||||||
|
@ -56,7 +56,7 @@ OTableSubscriptionDialog::OTableSubscriptionDialog(Window* pParent
|
|||||||
|
|
||||||
OTableSubscriptionPage* pTabPage = new OTableSubscriptionPage(get_content_area(), *m_pOutSet, this);
|
OTableSubscriptionPage* pTabPage = new OTableSubscriptionPage(get_content_area(), *m_pOutSet, this);
|
||||||
pTabPage->SetServiceFactory(_rxORB);
|
pTabPage->SetServiceFactory(_rxORB);
|
||||||
setTabPage(pTabPage);
|
SetTabPage(pTabPage);
|
||||||
}
|
}
|
||||||
|
|
||||||
OTableSubscriptionDialog::~OTableSubscriptionDialog()
|
OTableSubscriptionDialog::~OTableSubscriptionDialog()
|
||||||
|
@ -2730,7 +2730,7 @@ namespace pcr
|
|||||||
throw RuntimeException(); // caught below
|
throw RuntimeException(); // caught below
|
||||||
|
|
||||||
SfxTabPage* pPage = (*fnCreatePage)( xDialog->get_content_area(), aCoreSet );
|
SfxTabPage* pPage = (*fnCreatePage)( xDialog->get_content_area(), aCoreSet );
|
||||||
xDialog->setTabPage( pPage );
|
xDialog->SetTabPage( pPage );
|
||||||
|
|
||||||
_rClearBeforeDialog.clear();
|
_rClearBeforeDialog.clear();
|
||||||
if ( RET_OK == xDialog->Execute() )
|
if ( RET_OK == xDialog->Execute() )
|
||||||
|
@ -178,21 +178,20 @@ struct SingleTabDlgImpl
|
|||||||
|
|
||||||
typedef sal_uInt16* (*GetTabPageRanges)(); // liefert internationale Which-Werte
|
typedef sal_uInt16* (*GetTabPageRanges)(); // liefert internationale Which-Werte
|
||||||
|
|
||||||
class SFX2_DLLPUBLIC SfxSingleTabDialogBase : public SfxModalDialog
|
class SFX2_DLLPUBLIC SfxSingleTabDialog : public SfxModalDialog
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
//layout ctors
|
SfxSingleTabDialog(Window *pParent, const SfxItemSet& rOptionsSet,
|
||||||
SfxSingleTabDialogBase(Window *pParent, const SfxItemSet& rOptionsSet,
|
const OString& rID = OString("SingleTabDialog"),
|
||||||
const OString& rID, const OUString& rUIXMLDescription);
|
const OUString& rUIXMLDescription = OUString("sfx/ui/singletabdialog.ui"));
|
||||||
SfxSingleTabDialogBase(Window *pParent, const SfxItemSet* pInSet,
|
|
||||||
const OString& rID, const OUString& rUIXMLDescription);
|
|
||||||
|
|
||||||
//non-layout ctors
|
SfxSingleTabDialog(Window *pParent, const SfxItemSet* pInSet = 0,
|
||||||
SfxSingleTabDialogBase( Window* pParent, const SfxItemSet& rOptionsSet, sal_uInt16 nUniqueId );
|
const OString& rID = OString("SingleTabDialog"),
|
||||||
SfxSingleTabDialogBase( Window* pParent, sal_uInt16 nUniqueId, const SfxItemSet* pInSet = 0 );
|
const OUString& rUIXMLDescription = OUString("sfx/ui/singletabdialog.ui"));
|
||||||
|
|
||||||
virtual ~SfxSingleTabDialogBase();
|
virtual ~SfxSingleTabDialog();
|
||||||
|
|
||||||
|
void SetTabPage(SfxTabPage* pTabPage, GetTabPageRanges pRangesFunc = 0, sal_uInt32 nSettingsId = 0);
|
||||||
SfxTabPage* GetTabPage() const { return pImpl->m_pSfxPage; }
|
SfxTabPage* GetTabPage() const { return pImpl->m_pSfxPage; }
|
||||||
|
|
||||||
OKButton* GetOKButton() const { return pOKBtn; }
|
OKButton* GetOKButton() const { return pOKBtn; }
|
||||||
@ -210,40 +209,6 @@ protected:
|
|||||||
DECL_DLLPRIVATE_LINK(OKHdl_Impl, void *);
|
DECL_DLLPRIVATE_LINK(OKHdl_Impl, void *);
|
||||||
};
|
};
|
||||||
|
|
||||||
class SFX2_DLLPUBLIC SfxSingleTabDialog : public SfxSingleTabDialogBase
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
SfxSingleTabDialog(Window *pParent, const SfxItemSet& rOptionsSet,
|
|
||||||
const OString& rID = OString("SingleTabDialog"),
|
|
||||||
const OUString& rUIXMLDescription = OUString("sfx/ui/singletabdialog.ui"))
|
|
||||||
: SfxSingleTabDialogBase(pParent, rOptionsSet, rID, rUIXMLDescription)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
SfxSingleTabDialog(Window *pParent, const SfxItemSet* pInSet = 0,
|
|
||||||
const OString& rID = OString("SingleTabDialog"),
|
|
||||||
const OUString& rUIXMLDescription = OUString("sfx/ui/singletabdialog.ui"))
|
|
||||||
: SfxSingleTabDialogBase(pParent, pInSet, rID, rUIXMLDescription)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
void setTabPage(SfxTabPage* pTabPage, GetTabPageRanges pRangesFunc = 0, sal_uInt32 nSettingsId = 0);
|
|
||||||
};
|
|
||||||
|
|
||||||
//Old school deprecated non-layout aware version
|
|
||||||
class SFX2_DLLPUBLIC SfxNoLayoutSingleTabDialog : public SfxSingleTabDialogBase
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
SfxNoLayoutSingleTabDialog(Window* pParent, const SfxItemSet& rOptionsSet, sal_uInt16 nUniqueId)
|
|
||||||
: SfxSingleTabDialogBase(pParent, rOptionsSet, nUniqueId)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
SfxNoLayoutSingleTabDialog(Window* pParent, sal_uInt16 nUniqueId, const SfxItemSet* pInSet = 0)
|
|
||||||
: SfxSingleTabDialogBase(pParent, nUniqueId, pInSet)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
~SfxNoLayoutSingleTabDialog();
|
|
||||||
void SetTabPage(SfxTabPage* pTabPage, GetTabPageRanges pRangesFunc = 0);
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||||
|
@ -232,17 +232,17 @@ IMPL_LINK_NOARG(ScHFPage, HFEditHdl)
|
|||||||
{
|
{
|
||||||
aText = ScGlobal::GetRscString( STR_PAGEHEADER );
|
aText = ScGlobal::GetRscString( STR_PAGEHEADER );
|
||||||
if ( bRightPage )
|
if ( bRightPage )
|
||||||
pDlg->setTabPage( ScRightHeaderEditPage::Create( pDlg->get_content_area(), aDataSet ), NULL, nSettingsId );
|
pDlg->SetTabPage( ScRightHeaderEditPage::Create( pDlg->get_content_area(), aDataSet ), NULL, nSettingsId );
|
||||||
else
|
else
|
||||||
pDlg->setTabPage( ScLeftHeaderEditPage::Create( pDlg->get_content_area(), aDataSet ), NULL, nSettingsId );
|
pDlg->SetTabPage( ScLeftHeaderEditPage::Create( pDlg->get_content_area(), aDataSet ), NULL, nSettingsId );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
aText = ScGlobal::GetRscString( STR_PAGEFOOTER );
|
aText = ScGlobal::GetRscString( STR_PAGEFOOTER );
|
||||||
if ( bRightPage )
|
if ( bRightPage )
|
||||||
pDlg->setTabPage( ScRightFooterEditPage::Create( pDlg->get_content_area(), aDataSet ), NULL, nSettingsId );
|
pDlg->SetTabPage( ScRightFooterEditPage::Create( pDlg->get_content_area(), aDataSet ), NULL, nSettingsId );
|
||||||
else
|
else
|
||||||
pDlg->setTabPage( ScLeftFooterEditPage::Create( pDlg->get_content_area(), aDataSet ), NULL, nSettingsId );
|
pDlg->SetTabPage( ScLeftFooterEditPage::Create( pDlg->get_content_area(), aDataSet ), NULL, nSettingsId );
|
||||||
}
|
}
|
||||||
|
|
||||||
SvxNumType eNumType = ((const SvxPageItem&)aDataSet.Get(ATTR_PAGE)).GetNumType();
|
SvxNumType eNumType = ((const SvxPageItem&)aDataSet.Get(ATTR_PAGE)).GetNumType();
|
||||||
|
@ -89,7 +89,7 @@ SdActionDlg::SdActionDlg (
|
|||||||
( (SdTPAction*) pNewPage )->SetView( pView );
|
( (SdTPAction*) pNewPage )->SetView( pView );
|
||||||
( (SdTPAction*) pNewPage )->Construct();
|
( (SdTPAction*) pNewPage )->Construct();
|
||||||
|
|
||||||
setTabPage( pNewPage );
|
SetTabPage( pNewPage );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -648,9 +648,9 @@ void SfxFloatingWindow::FillInfo(SfxChildWinInfo& rInfo) const
|
|||||||
rInfo.nFlags |= SFX_CHILDWIN_ZOOMIN;
|
rInfo.nFlags |= SFX_CHILDWIN_ZOOMIN;
|
||||||
}
|
}
|
||||||
|
|
||||||
// SfxSingleTabDialogBase ----------------------------------------------------
|
// SfxSingleTabDialog ----------------------------------------------------
|
||||||
|
|
||||||
IMPL_LINK_NOARG(SfxSingleTabDialogBase, OKHdl_Impl)
|
IMPL_LINK_NOARG(SfxSingleTabDialog, OKHdl_Impl)
|
||||||
|
|
||||||
/* [Description]
|
/* [Description]
|
||||||
|
|
||||||
@ -698,76 +698,25 @@ IMPL_LINK_NOARG(SfxSingleTabDialogBase, OKHdl_Impl)
|
|||||||
|
|
||||||
// -----------------------------------------------------------------------
|
// -----------------------------------------------------------------------
|
||||||
|
|
||||||
SfxSingleTabDialogBase::SfxSingleTabDialogBase
|
SfxSingleTabDialog::SfxSingleTabDialog(Window *pParent, const SfxItemSet& rSet,
|
||||||
(
|
|
||||||
Window *pParent,
|
|
||||||
const SfxItemSet& rSet,
|
|
||||||
sal_uInt16 nUniqueId
|
|
||||||
) :
|
|
||||||
|
|
||||||
/* [Description]
|
|
||||||
|
|
||||||
Constructor of the general base class for SingleTab-Dialoge;
|
|
||||||
ID for the ini-file is handed over.
|
|
||||||
*/
|
|
||||||
|
|
||||||
SfxModalDialog( pParent, nUniqueId, WinBits( WB_STDMODAL | WB_3DLOOK ) ),
|
|
||||||
|
|
||||||
pOKBtn ( 0 ),
|
|
||||||
pCancelBtn ( 0 ),
|
|
||||||
pHelpBtn ( 0 ),
|
|
||||||
pImpl ( new SingleTabDlgImpl )
|
|
||||||
{
|
|
||||||
DBG_WARNING( "please use the constructor with ViewFrame" );
|
|
||||||
SetInputSet( &rSet );
|
|
||||||
}
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------
|
|
||||||
|
|
||||||
SfxSingleTabDialogBase::SfxSingleTabDialogBase
|
|
||||||
(
|
|
||||||
Window* pParent,
|
|
||||||
sal_uInt16 nUniqueId,
|
|
||||||
const SfxItemSet* pInSet
|
|
||||||
)
|
|
||||||
|
|
||||||
/* [Description]
|
|
||||||
|
|
||||||
Constructor of the general base class for SingleTab-Dialoge;
|
|
||||||
ID for the ini-file is handed over.
|
|
||||||
Deprecated.
|
|
||||||
*/
|
|
||||||
|
|
||||||
: SfxModalDialog( pParent, nUniqueId, WinBits( WB_STDMODAL | WB_3DLOOK ) ),
|
|
||||||
|
|
||||||
pOKBtn ( 0 ),
|
|
||||||
pCancelBtn ( 0 ),
|
|
||||||
pHelpBtn ( 0 ),
|
|
||||||
pImpl ( new SingleTabDlgImpl )
|
|
||||||
{
|
|
||||||
DBG_WARNING( "please use the constructor with ViewFrame" );
|
|
||||||
SetInputSet( pInSet );
|
|
||||||
}
|
|
||||||
|
|
||||||
SfxSingleTabDialogBase::SfxSingleTabDialogBase(Window *pParent, const SfxItemSet& rSet,
|
|
||||||
const OString& rID, const OUString& rUIXMLDescription)
|
const OString& rID, const OUString& rUIXMLDescription)
|
||||||
: SfxModalDialog(pParent, rID, rUIXMLDescription)
|
: SfxModalDialog(pParent, rID, rUIXMLDescription)
|
||||||
, pImpl(new SingleTabDlgImpl)
|
, pImpl(new SingleTabDlgImpl)
|
||||||
{
|
{
|
||||||
get(pOKBtn, "ok");
|
get(pOKBtn, "ok");
|
||||||
pOKBtn->SetClickHdl( LINK( this, SfxSingleTabDialogBase, OKHdl_Impl ) );
|
pOKBtn->SetClickHdl( LINK( this, SfxSingleTabDialog, OKHdl_Impl ) );
|
||||||
get(pCancelBtn, "cancel");
|
get(pCancelBtn, "cancel");
|
||||||
get(pHelpBtn, "help");
|
get(pHelpBtn, "help");
|
||||||
SetInputSet( &rSet );
|
SetInputSet( &rSet );
|
||||||
}
|
}
|
||||||
|
|
||||||
SfxSingleTabDialogBase::SfxSingleTabDialogBase(Window* pParent, const SfxItemSet* pInSet,
|
SfxSingleTabDialog::SfxSingleTabDialog(Window* pParent, const SfxItemSet* pInSet,
|
||||||
const OString& rID, const OUString& rUIXMLDescription)
|
const OString& rID, const OUString& rUIXMLDescription)
|
||||||
: SfxModalDialog(pParent, rID, rUIXMLDescription)
|
: SfxModalDialog(pParent, rID, rUIXMLDescription)
|
||||||
, pImpl(new SingleTabDlgImpl)
|
, pImpl(new SingleTabDlgImpl)
|
||||||
{
|
{
|
||||||
get(pOKBtn, "ok");
|
get(pOKBtn, "ok");
|
||||||
pOKBtn->SetClickHdl( LINK( this, SfxSingleTabDialogBase, OKHdl_Impl ) );
|
pOKBtn->SetClickHdl( LINK( this, SfxSingleTabDialog, OKHdl_Impl ) );
|
||||||
get(pCancelBtn, "cancel");
|
get(pCancelBtn, "cancel");
|
||||||
get(pHelpBtn, "help");
|
get(pHelpBtn, "help");
|
||||||
SetInputSet( pInSet );
|
SetInputSet( pInSet );
|
||||||
@ -775,14 +724,14 @@ SfxSingleTabDialogBase::SfxSingleTabDialogBase(Window* pParent, const SfxItemSet
|
|||||||
|
|
||||||
// -----------------------------------------------------------------------
|
// -----------------------------------------------------------------------
|
||||||
|
|
||||||
SfxSingleTabDialogBase::~SfxSingleTabDialogBase()
|
SfxSingleTabDialog::~SfxSingleTabDialog()
|
||||||
{
|
{
|
||||||
delete pImpl->m_pSfxPage;
|
delete pImpl->m_pSfxPage;
|
||||||
delete pImpl->m_pLine;
|
delete pImpl->m_pLine;
|
||||||
delete pImpl;
|
delete pImpl;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SfxSingleTabDialog::setTabPage(SfxTabPage* pTabPage,
|
void SfxSingleTabDialog::SetTabPage(SfxTabPage* pTabPage,
|
||||||
GetTabPageRanges pRangesFunc, sal_uInt32 nSettingsId)
|
GetTabPageRanges pRangesFunc, sal_uInt32 nSettingsId)
|
||||||
/* [Description]
|
/* [Description]
|
||||||
|
|
||||||
@ -825,77 +774,4 @@ void SfxSingleTabDialog::setTabPage(SfxTabPage* pTabPage,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// -----------------------------------------------------------------------
|
|
||||||
|
|
||||||
void SfxNoLayoutSingleTabDialog::SetTabPage( SfxTabPage* pTabPage,
|
|
||||||
GetTabPageRanges pRangesFunc )
|
|
||||||
/* [Description]
|
|
||||||
|
|
||||||
Insert a (new) TabPage; an existing page is deleted.
|
|
||||||
The passed on page is initialized with the initially given Itemset
|
|
||||||
through calling Reset().
|
|
||||||
*/
|
|
||||||
|
|
||||||
{
|
|
||||||
if ( !pOKBtn )
|
|
||||||
{
|
|
||||||
pOKBtn = new OKButton( this, WB_DEFBUTTON );
|
|
||||||
pOKBtn->SetClickHdl( LINK( this, SfxSingleTabDialogBase, OKHdl_Impl ) );
|
|
||||||
}
|
|
||||||
if ( !pCancelBtn )
|
|
||||||
pCancelBtn = new CancelButton( this );
|
|
||||||
if ( !pHelpBtn )
|
|
||||||
pHelpBtn = new HelpButton( this );
|
|
||||||
|
|
||||||
delete pImpl->m_pSfxPage;
|
|
||||||
pImpl->m_pSfxPage = pTabPage;
|
|
||||||
fnGetRanges = pRangesFunc;
|
|
||||||
|
|
||||||
if ( pImpl->m_pSfxPage )
|
|
||||||
{
|
|
||||||
// First obtain the user data, only then Reset()
|
|
||||||
SvtViewOptions aPageOpt( E_TABPAGE, OUString::number( GetUniqId() ) );
|
|
||||||
OUString sUserData;
|
|
||||||
Any aUserItem = aPageOpt.GetUserItem( USERITEM_NAME );
|
|
||||||
OUString aTemp;
|
|
||||||
if ( aUserItem >>= aTemp )
|
|
||||||
sUserData = aTemp;
|
|
||||||
pImpl->m_pSfxPage->SetUserData( sUserData );
|
|
||||||
pImpl->m_pSfxPage->Reset( *GetInputItemSet() );
|
|
||||||
pImpl->m_pSfxPage->Show();
|
|
||||||
|
|
||||||
// Adjust size and position
|
|
||||||
pImpl->m_pSfxPage->SetPosPixel( Point() );
|
|
||||||
Size aOutSz( pImpl->m_pSfxPage->GetSizePixel() );
|
|
||||||
Size aBtnSiz = LogicToPixel( Size( 50, 14 ), MAP_APPFONT );
|
|
||||||
Point aPnt( aOutSz.Width(), LogicToPixel( Point( 0, 6 ), MAP_APPFONT ).Y() );
|
|
||||||
aOutSz.Width() += aBtnSiz.Width() + LogicToPixel( Size( 6, 0 ), MAP_APPFONT ).Width();
|
|
||||||
SetOutputSizePixel( aOutSz );
|
|
||||||
pOKBtn->SetPosSizePixel( aPnt, aBtnSiz );
|
|
||||||
pOKBtn->Show();
|
|
||||||
aPnt.Y() = LogicToPixel( Point( 0, 23 ), MAP_APPFONT ).Y();
|
|
||||||
pCancelBtn->SetPosSizePixel( aPnt, aBtnSiz );
|
|
||||||
pCancelBtn->Show();
|
|
||||||
aPnt.Y() = LogicToPixel( Point( 0, 43 ), MAP_APPFONT ).Y();
|
|
||||||
pHelpBtn->SetPosSizePixel( aPnt, aBtnSiz );
|
|
||||||
|
|
||||||
if ( Help::IsContextHelpEnabled() )
|
|
||||||
pHelpBtn->Show();
|
|
||||||
|
|
||||||
// Set TabPage text in the Dialog
|
|
||||||
SetText( pImpl->m_pSfxPage->GetText() );
|
|
||||||
|
|
||||||
// Dialog receives the HelpId of TabPage
|
|
||||||
SetHelpId( pImpl->m_pSfxPage->GetHelpId() );
|
|
||||||
SetUniqueId( pImpl->m_pSfxPage->GetUniqueId() );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
SfxNoLayoutSingleTabDialog::~SfxNoLayoutSingleTabDialog()
|
|
||||||
{
|
|
||||||
delete pOKBtn;
|
|
||||||
delete pCancelBtn;
|
|
||||||
delete pHelpBtn;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||||
|
@ -748,7 +748,7 @@ void SvxGrafAttrHelper::ExecuteGrafAttr( SfxRequest& rReq, SdrView& rView )
|
|||||||
SfxTabPage* pTabPage = (*fnCreatePage)( aCropDialog.get_content_area(), aCropDlgAttr );
|
SfxTabPage* pTabPage = (*fnCreatePage)( aCropDialog.get_content_area(), aCropDlgAttr );
|
||||||
|
|
||||||
pTabPage->SetText( aCropStr );
|
pTabPage->SetText( aCropStr );
|
||||||
aCropDialog.setTabPage( pTabPage );
|
aCropDialog.SetTabPage( pTabPage );
|
||||||
|
|
||||||
if( aCropDialog.Execute() == RET_OK )
|
if( aCropDialog.Execute() == RET_OK )
|
||||||
{
|
{
|
||||||
|
@ -526,7 +526,7 @@ SwDropCapsDlg::SwDropCapsDlg(Window *pParent, const SfxItemSet &rSet )
|
|||||||
{
|
{
|
||||||
SwDropCapsPage* pNewPage = (SwDropCapsPage*) SwDropCapsPage::Create(get_content_area(), rSet);
|
SwDropCapsPage* pNewPage = (SwDropCapsPage*) SwDropCapsPage::Create(get_content_area(), rSet);
|
||||||
pNewPage->SetFormat(false);
|
pNewPage->SetFormat(false);
|
||||||
setTabPage(pNewPage);
|
SetTabPage(pNewPage);
|
||||||
}
|
}
|
||||||
|
|
||||||
SwDropCapsPage::SwDropCapsPage(Window *pParent, const SfxItemSet &rSet)
|
SwDropCapsPage::SwDropCapsPage(Window *pParent, const SfxItemSet &rSet)
|
||||||
|
@ -44,7 +44,7 @@ SwNumFmtDlg::SwNumFmtDlg(Window* pParent, const SfxItemSet& rSet)
|
|||||||
SfxAllItemSet aSet(*(rSet.GetPool()));
|
SfxAllItemSet aSet(*(rSet.GetPool()));
|
||||||
aSet.Put ( SvxNumberInfoItem( (const SvxNumberInfoItem&)pNewPage->GetItemSet().Get( SID_ATTR_NUMBERFORMAT_INFO )));
|
aSet.Put ( SvxNumberInfoItem( (const SvxNumberInfoItem&)pNewPage->GetItemSet().Get( SID_ATTR_NUMBERFORMAT_INFO )));
|
||||||
pNewPage->PageCreated(aSet);
|
pNewPage->PageCreated(aSet);
|
||||||
setTabPage(pNewPage);
|
SetTabPage(pNewPage);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -357,7 +357,7 @@ SwMailConfigDlg::SwMailConfigDlg(Window* pParent, SfxItemSet& rSet)
|
|||||||
: SfxSingleTabDialog(pParent, rSet)
|
: SfxSingleTabDialog(pParent, rSet)
|
||||||
{
|
{
|
||||||
// create TabPage
|
// create TabPage
|
||||||
setTabPage(SwMailConfigPage::Create(get_content_area(), rSet));
|
SetTabPage(SwMailConfigPage::Create(get_content_area(), rSet));
|
||||||
}
|
}
|
||||||
|
|
||||||
SwAuthenticationSettingsDialog::SwAuthenticationSettingsDialog(
|
SwAuthenticationSettingsDialog::SwAuthenticationSettingsDialog(
|
||||||
|
@ -317,7 +317,7 @@ SwCaptionOptDlg::SwCaptionOptDlg(Window* pParent, const SfxItemSet& rSet)
|
|||||||
"modules/swriter/ui/captiondialog.ui")
|
"modules/swriter/ui/captiondialog.ui")
|
||||||
{
|
{
|
||||||
// create TabPage
|
// create TabPage
|
||||||
setTabPage(SwCaptionOptPage::Create(get_content_area(), rSet));
|
SetTabPage(SwCaptionOptPage::Create(get_content_area(), rSet));
|
||||||
}
|
}
|
||||||
|
|
||||||
SwCaptionPreview::SwCaptionPreview( Window* pParent, WinBits nStyle )
|
SwCaptionPreview::SwCaptionPreview( Window* pParent, WinBits nStyle )
|
||||||
@ -746,7 +746,7 @@ IMPL_LINK_NOARG(SwCaptionOptPage, ModifyHdl)
|
|||||||
{
|
{
|
||||||
OUString sFldTypeName = m_pCategoryBox->GetText();
|
OUString sFldTypeName = m_pCategoryBox->GetText();
|
||||||
|
|
||||||
SfxSingleTabDialogBase *pDlg = dynamic_cast<SfxSingleTabDialogBase*>(GetParentDialog());
|
SfxSingleTabDialog *pDlg = dynamic_cast<SfxSingleTabDialog*>(GetParentDialog());
|
||||||
PushButton *pBtn = pDlg ? pDlg->GetOKButton() : NULL;
|
PushButton *pBtn = pDlg ? pDlg->GetOKButton() : NULL;
|
||||||
if (pBtn)
|
if (pBtn)
|
||||||
pBtn->Enable(!sFldTypeName.isEmpty());
|
pBtn->Enable(!sFldTypeName.isEmpty());
|
||||||
|
@ -30,7 +30,7 @@ SwAddrDlg::SwAddrDlg(Window* pParent, const SfxItemSet& rSet)
|
|||||||
if ( fnCreatePage )
|
if ( fnCreatePage )
|
||||||
{
|
{
|
||||||
SfxTabPage* pPage2 = (*fnCreatePage)(get_content_area(), rSet);
|
SfxTabPage* pPage2 = (*fnCreatePage)(get_content_area(), rSet);
|
||||||
setTabPage(pPage2);
|
SetTabPage(pPage2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -186,7 +186,7 @@ SfxTabPage* SwFldEditDlg::CreatePage(sal_uInt16 nGroup)
|
|||||||
|
|
||||||
static_cast<SwFldPage*>(pTabPage)->SetWrtShell(pSh);
|
static_cast<SwFldPage*>(pTabPage)->SetWrtShell(pSh);
|
||||||
|
|
||||||
setTabPage(pTabPage);
|
SetTabPage(pTabPage);
|
||||||
|
|
||||||
return pTabPage;
|
return pTabPage;
|
||||||
}
|
}
|
||||||
|
@ -33,7 +33,7 @@ SwBackgroundDlg::SwBackgroundDlg(Window* pParent, const SfxItemSet& rSet)
|
|||||||
::CreateTabPage fnCreatePage = pFact->GetTabPageCreatorFunc( RID_SVXPAGE_BACKGROUND );
|
::CreateTabPage fnCreatePage = pFact->GetTabPageCreatorFunc( RID_SVXPAGE_BACKGROUND );
|
||||||
if ( fnCreatePage )
|
if ( fnCreatePage )
|
||||||
{
|
{
|
||||||
setTabPage((*fnCreatePage)(get_content_area(), rSet));
|
SetTabPage((*fnCreatePage)(get_content_area(), rSet));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -60,7 +60,7 @@ SwWrapDlg::SwWrapDlg(Window* pParent, SfxItemSet& rSet, SwWrtShell* pSh, bool bD
|
|||||||
SwWrapTabPage* pNewPage = (SwWrapTabPage*) SwWrapTabPage::Create(get_content_area(), rSet);
|
SwWrapTabPage* pNewPage = (SwWrapTabPage*) SwWrapTabPage::Create(get_content_area(), rSet);
|
||||||
pNewPage->SetFormatUsed(sal_False, bDrawMode);
|
pNewPage->SetFormatUsed(sal_False, bDrawMode);
|
||||||
pNewPage->SetShell(pWrtShell);
|
pNewPage->SetShell(pWrtShell);
|
||||||
setTabPage(pNewPage);
|
SetTabPage(pNewPage);
|
||||||
}
|
}
|
||||||
|
|
||||||
SwWrapTabPage::SwWrapTabPage(Window *pParent, const SfxItemSet &rSet)
|
SwWrapTabPage::SwWrapTabPage(Window *pParent, const SfxItemSet &rSet)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user