Kaydet (Commit) 5f336095 authored tarafından Miklos Vajna's avatar Miklos Vajna

SfxTabDialog: rename members missing their prefixes

Change-Id: I6c739d4c64fb0b460e993f2a326a0acfec98b1c7
Reviewed-on: https://gerrit.libreoffice.org/23902Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
üst 753c474b
...@@ -62,8 +62,8 @@ namespace dbaui ...@@ -62,8 +62,8 @@ namespace dbaui
m_pImpl->translateProperties(xDatasource, *_pItems); m_pImpl->translateProperties(xDatasource, *_pItems);
SetInputSet(_pItems); SetInputSet(_pItems);
// propagate this set as our new input set and reset the example set // propagate this set as our new input set and reset the example set
delete pExampleSet; delete m_pExampleSet;
pExampleSet = new SfxItemSet(*GetInputSetImpl()); m_pExampleSet = new SfxItemSet(*GetInputSetImpl());
AddTabPage("settings", OUserAdmin::Create, nullptr); AddTabPage("settings", OUserAdmin::Create, nullptr);
...@@ -90,7 +90,7 @@ namespace dbaui ...@@ -90,7 +90,7 @@ namespace dbaui
} }
SetInputSet(nullptr); SetInputSet(nullptr);
DELETEZ(pExampleSet); DELETEZ(m_pExampleSet);
SfxTabDialog::dispose(); SfxTabDialog::dispose();
} }
......
...@@ -425,8 +425,8 @@ namespace dbaui ...@@ -425,8 +425,8 @@ namespace dbaui
m_pImpl->translateProperties(xDatasource, *_pItems); m_pImpl->translateProperties(xDatasource, *_pItems);
SetInputSet(_pItems); SetInputSet(_pItems);
// propagate this set as our new input set and reset the example set // propagate this set as our new input set and reset the example set
delete pExampleSet; delete m_pExampleSet;
pExampleSet = new SfxItemSet(*GetInputSetImpl()); m_pExampleSet = new SfxItemSet(*GetInputSetImpl());
const OUString eType = dbaui::ODbDataSourceAdministrationHelper::getDatasourceType(*_pItems); const OUString eType = dbaui::ODbDataSourceAdministrationHelper::getDatasourceType(*_pItems);
...@@ -457,7 +457,7 @@ namespace dbaui ...@@ -457,7 +457,7 @@ namespace dbaui
void AdvancedSettingsDialog::dispose() void AdvancedSettingsDialog::dispose()
{ {
SetInputSet(nullptr); SetInputSet(nullptr);
DELETEZ(pExampleSet); DELETEZ(m_pExampleSet);
SfxTabDialog::dispose(); SfxTabDialog::dispose();
} }
...@@ -475,8 +475,8 @@ namespace dbaui ...@@ -475,8 +475,8 @@ namespace dbaui
short nRet = SfxTabDialog::Execute(); short nRet = SfxTabDialog::Execute();
if ( nRet == RET_OK ) if ( nRet == RET_OK )
{ {
pExampleSet->Put(*GetOutputItemSet()); m_pExampleSet->Put(*GetOutputItemSet());
m_pImpl->saveChanges(*pExampleSet); m_pImpl->saveChanges(*m_pExampleSet);
} }
return nRet; return nRet;
} }
...@@ -496,12 +496,12 @@ namespace dbaui ...@@ -496,12 +496,12 @@ namespace dbaui
const SfxItemSet* AdvancedSettingsDialog::getOutputSet() const const SfxItemSet* AdvancedSettingsDialog::getOutputSet() const
{ {
return pExampleSet; return m_pExampleSet;
} }
SfxItemSet* AdvancedSettingsDialog::getWriteOutputSet() SfxItemSet* AdvancedSettingsDialog::getWriteOutputSet()
{ {
return pExampleSet; return m_pExampleSet;
} }
::std::pair< Reference< XConnection >, sal_Bool > AdvancedSettingsDialog::createConnection() ::std::pair< Reference< XConnection >, sal_Bool > AdvancedSettingsDialog::createConnection()
......
...@@ -72,7 +72,7 @@ ODbAdminDialog::~ODbAdminDialog() ...@@ -72,7 +72,7 @@ ODbAdminDialog::~ODbAdminDialog()
void ODbAdminDialog::dispose() void ODbAdminDialog::dispose()
{ {
SetInputSet(nullptr); SetInputSet(nullptr);
DELETEZ(pExampleSet); DELETEZ(m_pExampleSet);
SfxTabDialog::dispose(); SfxTabDialog::dispose();
} }
...@@ -195,14 +195,14 @@ void ODbAdminDialog::impl_resetPages(const Reference< XPropertySet >& _rxDatasou ...@@ -195,14 +195,14 @@ void ODbAdminDialog::impl_resetPages(const Reference< XPropertySet >& _rxDatasou
m_pImpl->translateProperties(_rxDatasource, *GetInputSetImpl()); m_pImpl->translateProperties(_rxDatasource, *GetInputSetImpl());
// reset the example set // reset the example set
delete pExampleSet; delete m_pExampleSet;
pExampleSet = new SfxItemSet(*GetInputSetImpl()); m_pExampleSet = new SfxItemSet(*GetInputSetImpl());
// special case: MySQL Native does not have the generic "advanced" page // special case: MySQL Native does not have the generic "advanced" page
const DbuTypeCollectionItem& rCollectionItem = dynamic_cast<const DbuTypeCollectionItem&>(*getOutputSet()->GetItem(DSID_TYPECOLLECTION)); const DbuTypeCollectionItem& rCollectionItem = dynamic_cast<const DbuTypeCollectionItem&>(*getOutputSet()->GetItem(DSID_TYPECOLLECTION));
::dbaccess::ODsnTypeCollection* pCollection = rCollectionItem.getCollection(); ::dbaccess::ODsnTypeCollection* pCollection = rCollectionItem.getCollection();
if ( pCollection->determineType(getDatasourceType( *pExampleSet )) == ::dbaccess::DST_MYSQL_NATIVE ) if ( pCollection->determineType(getDatasourceType( *m_pExampleSet )) == ::dbaccess::DST_MYSQL_NATIVE )
{ {
AddTabPage( PAGE_MYSQL_NATIVE, OUString( ModuleRes( STR_PAGETITLE_CONNECTION ) ), ODriversSettings::CreateMySQLNATIVE, nullptr ); AddTabPage( PAGE_MYSQL_NATIVE, OUString( ModuleRes( STR_PAGETITLE_CONNECTION ) ), ODriversSettings::CreateMySQLNATIVE, nullptr );
RemoveTabPage("advanced"); RemoveTabPage("advanced");
...@@ -241,7 +241,7 @@ ODbAdminDialog::ApplyResult ODbAdminDialog::implApplyChanges() ...@@ -241,7 +241,7 @@ ODbAdminDialog::ApplyResult ODbAdminDialog::implApplyChanges()
return AR_KEEP; return AR_KEEP;
} }
if ( !m_pImpl->saveChanges(*pExampleSet) ) if ( !m_pImpl->saveChanges(*m_pExampleSet) )
return AR_KEEP; return AR_KEEP;
if ( isUIEnabled() ) if ( isUIEnabled() )
...@@ -267,7 +267,7 @@ const SfxItemSet* ODbAdminDialog::getOutputSet() const ...@@ -267,7 +267,7 @@ const SfxItemSet* ODbAdminDialog::getOutputSet() const
SfxItemSet* ODbAdminDialog::getWriteOutputSet() SfxItemSet* ODbAdminDialog::getWriteOutputSet()
{ {
return pExampleSet; return m_pExampleSet;
} }
::std::pair< Reference<XConnection>,sal_Bool> ODbAdminDialog::createConnection() ::std::pair< Reference<XConnection>,sal_Bool> ODbAdminDialog::createConnection()
......
...@@ -78,13 +78,13 @@ friend class SfxTabDialogController; ...@@ -78,13 +78,13 @@ friend class SfxTabDialogController;
bool m_bOwnsResetBtn; bool m_bOwnsResetBtn;
bool m_bOwnsBaseFmtBtn; bool m_bOwnsBaseFmtBtn;
SfxItemSet* pSet; SfxItemSet* m_pSet;
SfxItemSet* pOutSet; SfxItemSet* m_pOutSet;
TabDlg_Impl* pImpl; TabDlg_Impl* m_pImpl;
sal_uInt16* pRanges; sal_uInt16* m_pRanges;
sal_uInt16 nAppPageId; sal_uInt16 m_nAppPageId;
bool bItemsReset; bool m_bItemsReset;
bool bStandardPushed; bool m_bStandardPushed;
DECL_DLLPRIVATE_LINK_TYPED(ActivatePageHdl, TabControl*, void ); DECL_DLLPRIVATE_LINK_TYPED(ActivatePageHdl, TabControl*, void );
DECL_DLLPRIVATE_LINK_TYPED(DeactivatePageHdl, TabControl*, bool ); DECL_DLLPRIVATE_LINK_TYPED(DeactivatePageHdl, TabControl*, bool );
...@@ -104,7 +104,7 @@ protected: ...@@ -104,7 +104,7 @@ protected:
virtual void PageCreated( sal_uInt16 nId, SfxTabPage &rPage ); virtual void PageCreated( sal_uInt16 nId, SfxTabPage &rPage );
VclPtr<VclButtonBox> m_pActionArea; VclPtr<VclButtonBox> m_pActionArea;
SfxItemSet* pExampleSet; SfxItemSet* m_pExampleSet;
SfxItemSet* GetInputSetImpl(); SfxItemSet* GetInputSetImpl();
SfxTabPage* GetTabPage( sal_uInt16 nPageId ) const; SfxTabPage* GetTabPage( sal_uInt16 nPageId ) const;
...@@ -146,11 +146,11 @@ public: ...@@ -146,11 +146,11 @@ public:
void SetCurPageId(sal_uInt16 nId) void SetCurPageId(sal_uInt16 nId)
{ {
nAppPageId = nId; m_nAppPageId = nId;
} }
void SetCurPageId(const OString& rName) void SetCurPageId(const OString& rName)
{ {
nAppPageId = m_pTabCtrl->GetPageId(rName); m_nAppPageId = m_pTabCtrl->GetPageId(rName);
} }
sal_uInt16 GetCurPageId() const sal_uInt16 GetCurPageId() const
{ {
...@@ -172,7 +172,7 @@ public: ...@@ -172,7 +172,7 @@ public:
// may provide local slots converted by Map // may provide local slots converted by Map
const sal_uInt16* GetInputRanges( const SfxItemPool& ); const sal_uInt16* GetInputRanges( const SfxItemPool& );
void SetInputSet( const SfxItemSet* pInSet ); void SetInputSet( const SfxItemSet* pInSet );
const SfxItemSet* GetOutputItemSet() const { return pOutSet; } const SfxItemSet* GetOutputItemSet() const { return m_pOutSet; }
const PushButton& GetOKButton() const { return *m_pOKBtn; } const PushButton& GetOKButton() const { return *m_pOKBtn; }
PushButton& GetOKButton() { return *m_pOKBtn; } PushButton& GetOKButton() { return *m_pOKBtn; }
...@@ -188,8 +188,8 @@ public: ...@@ -188,8 +188,8 @@ public:
void StartExecuteModal( const Link<Dialog&,void>& rEndDialogHdl ) override; void StartExecuteModal( const Link<Dialog&,void>& rEndDialogHdl ) override;
void Start(); void Start();
const SfxItemSet* GetExampleSet() const { return pExampleSet; } const SfxItemSet* GetExampleSet() const { return m_pExampleSet; }
SfxItemSet* GetExampleSet() { return pExampleSet; } SfxItemSet* GetExampleSet() { return m_pExampleSet; }
void SetApplyHandler(const Link<Button*,void>& _rHdl); void SetApplyHandler(const Link<Button*,void>& _rHdl);
......
...@@ -62,8 +62,8 @@ SfxStyleDialog::SfxStyleDialog ...@@ -62,8 +62,8 @@ SfxStyleDialog::SfxStyleDialog
OUString sTxt = GetText() + ": " + rStyle.GetName(); OUString sTxt = GetText() + ": " + rStyle.GetName();
SetText( sTxt ); SetText( sTxt );
} }
delete pExampleSet; // in SfxTabDialog::Ctor() already created delete m_pExampleSet; // in SfxTabDialog::Ctor() already created
pExampleSet = &pStyle->GetItemSet(); m_pExampleSet = &pStyle->GetItemSet();
GetCancelButton().SetClickHdl( LINK(this, SfxStyleDialog, CancelHdl) ); GetCancelButton().SetClickHdl( LINK(this, SfxStyleDialog, CancelHdl) );
} }
...@@ -82,7 +82,7 @@ SfxStyleDialog::~SfxStyleDialog() ...@@ -82,7 +82,7 @@ SfxStyleDialog::~SfxStyleDialog()
void SfxStyleDialog::dispose() void SfxStyleDialog::dispose()
{ {
pExampleSet = nullptr; m_pExampleSet = nullptr;
pStyle = nullptr; pStyle = nullptr;
SfxTabDialog::dispose(); SfxTabDialog::dispose();
} }
...@@ -134,9 +134,9 @@ IMPL_LINK_NOARG_TYPED( SfxStyleDialog, CancelHdl, Button *, void ) ...@@ -134,9 +134,9 @@ IMPL_LINK_NOARG_TYPED( SfxStyleDialog, CancelHdl, Button *, void )
SfxItemState eState = pInSet->GetItemState( nWhich, false ); SfxItemState eState = pInSet->GetItemState( nWhich, false );
if ( SfxItemState::DEFAULT == eState ) if ( SfxItemState::DEFAULT == eState )
pExampleSet->ClearItem( nWhich ); m_pExampleSet->ClearItem( nWhich );
else else
pExampleSet->Put( pInSet->Get( nWhich ) ); m_pExampleSet->Put( pInSet->Get( nWhich ) );
nWhich = aIter.NextWhich(); nWhich = aIter.NextWhich();
} }
......
This diff is collapsed.
...@@ -162,8 +162,8 @@ SwLabDlg::SwLabDlg(vcl::Window* pParent, const SfxItemSet& rSet, ...@@ -162,8 +162,8 @@ SwLabDlg::SwLabDlg(vcl::Window* pParent, const SfxItemSet& rSet,
if ( !aMakes.empty() ) if ( !aMakes.empty() )
_ReplaceGroup( aMakes[nLstGroup] ); _ReplaceGroup( aMakes[nLstGroup] );
if (pExampleSet) if (m_pExampleSet)
pExampleSet->Put(aItem); m_pExampleSet->Put(aItem);
} }
SwLabDlg::~SwLabDlg() SwLabDlg::~SwLabDlg()
......
...@@ -334,7 +334,7 @@ short SwTemplateDlg::Ok() ...@@ -334,7 +334,7 @@ short SwTemplateDlg::Ok()
if( RET_OK == nRet ) if( RET_OK == nRet )
{ {
const SfxPoolItem *pOutItem, *pExItem; const SfxPoolItem *pOutItem, *pExItem;
if( SfxItemState::SET == pExampleSet->GetItemState( if( SfxItemState::SET == m_pExampleSet->GetItemState(
SID_ATTR_NUMBERING_RULE, false, &pExItem ) && SID_ATTR_NUMBERING_RULE, false, &pExItem ) &&
( !GetOutputItemSet() || ( !GetOutputItemSet() ||
SfxItemState::SET != GetOutputItemSet()->GetItemState( SfxItemState::SET != GetOutputItemSet()->GetItemState(
......
...@@ -1025,7 +1025,7 @@ void SwSvxNumBulletTabDialog::PageCreated(sal_uInt16 nPageId, SfxTabPage& rPage) ...@@ -1025,7 +1025,7 @@ void SwSvxNumBulletTabDialog::PageCreated(sal_uInt16 nPageId, SfxTabPage& rPage)
short SwSvxNumBulletTabDialog::Ok() short SwSvxNumBulletTabDialog::Ok()
{ {
short nRet = SfxTabDialog::Ok(); short nRet = SfxTabDialog::Ok();
pExampleSet->ClearItem(SID_PARAM_NUM_PRESET); m_pExampleSet->ClearItem(SID_PARAM_NUM_PRESET);
return nRet; return nRet;
} }
......
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