summaryrefslogtreecommitdiffstats
path: root/basctl
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-04-07 16:18:28 +0200
committerNoel Grandin <noel@peralex.com>2015-04-09 11:01:06 +0200
commit14505bb67eb671ebcb91c81cbefbbc1aab930b44 (patch)
tree0ad2166f5c6c95d01f2f7204b13aaa0ca8119acc /basctl
parenttdf#85594 Additional tweaking of the standard, formatting and draw toolbars (diff)
downloadcore-14505bb67eb671ebcb91c81cbefbbc1aab930b44.tar.gz
core-14505bb67eb671ebcb91c81cbefbbc1aab930b44.zip
loplugin:staticmethods
Change-Id: I715374b531da2850434b2436633b6042ecb9ebe0
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/moduldl2.cxx14
-rw-r--r--basctl/source/basicide/moduldlg.cxx2
2 files changed, 8 insertions, 8 deletions
diff --git a/basctl/source/basicide/moduldl2.cxx b/basctl/source/basicide/moduldl2.cxx
index 114cfd0bda2d..ea06d718b3cb 100644
--- a/basctl/source/basicide/moduldl2.cxx
+++ b/basctl/source/basicide/moduldl2.cxx
@@ -489,7 +489,7 @@ void LibPage::CheckButtons()
SvTreeListEntry* pCur = m_pLibBox->GetCurEntry();
if ( pCur )
{
- OUString aLibName = m_pLibBox->GetEntryText( pCur, 0 );
+ OUString aLibName = SvTabListBox::GetEntryText( pCur, 0 );
Reference< script::XLibraryContainer2 > xModLibContainer( m_aCurDocument.getLibraryContainer( E_SCRIPTS ), UNO_QUERY );
Reference< script::XLibraryContainer2 > xDlgLibContainer( m_aCurDocument.getLibraryContainer( E_DIALOGS ), UNO_QUERY );
@@ -572,7 +572,7 @@ IMPL_LINK( LibPage, ButtonHdl, Button *, pButton )
SfxUsrAnyItem aDocItem( SID_BASICIDE_ARG_DOCUMENT_MODEL, makeAny( m_aCurDocument.getDocumentOrNull() ) );
SvTreeListEntry* pCurEntry = m_pLibBox->GetCurEntry();
DBG_ASSERT( pCurEntry, "Entry?!" );
- OUString aLibName( m_pLibBox->GetEntryText( pCurEntry, 0 ) );
+ OUString aLibName( SvTabListBox::GetEntryText( pCurEntry, 0 ) );
SfxStringItem aLibNameItem( SID_BASICIDE_ARG_LIBNAME, aLibName );
if (SfxDispatcher* pDispatcher = GetDispatcher())
pDispatcher->Execute( SID_BASICIDE_LIBSELECTED,
@@ -591,7 +591,7 @@ IMPL_LINK( LibPage, ButtonHdl, Button *, pButton )
else if (pButton == m_pPasswordButton)
{
SvTreeListEntry* pCurEntry = m_pLibBox->GetCurEntry();
- OUString aLibName( m_pLibBox->GetEntryText( pCurEntry, 0 ) );
+ OUString aLibName( SvTabListBox::GetEntryText( pCurEntry, 0 ) );
// load module library (if not loaded)
Reference< script::XLibraryContainer > xModLibContainer = m_aCurDocument.getLibraryContainer( E_SCRIPTS );
@@ -655,7 +655,7 @@ IMPL_LINK_INLINE_START( LibPage, CheckPasswordHdl, SvxPasswordDialog *, pDlg )
long nRet = 0;
SvTreeListEntry* pCurEntry = m_pLibBox->GetCurEntry();
- OUString aLibName( m_pLibBox->GetEntryText( pCurEntry, 0 ) );
+ OUString aLibName( SvTabListBox::GetEntryText( pCurEntry, 0 ) );
Reference< script::XLibraryContainerPassword > xPasswd( m_aCurDocument.getLibraryContainer( E_SCRIPTS ), UNO_QUERY );
if ( xPasswd.is() )
@@ -817,7 +817,7 @@ void LibPage::InsertLib()
{
SvTreeListEntry* pEntry = pLibDlg->GetLibBox().GetEntry( nLib );
DBG_ASSERT( pEntry, "Entry?!" );
- OUString aLibName( pLibDlg->GetLibBox().GetEntryText( pEntry, 0 ) );
+ OUString aLibName( SvTabListBox::GetEntryText( pEntry, 0 ) );
Reference< script::XLibraryContainer2 > xModLibContainer( m_aCurDocument.getLibraryContainer( E_SCRIPTS ), UNO_QUERY );
Reference< script::XLibraryContainer2 > xDlgLibContainer( m_aCurDocument.getLibraryContainer( E_DIALOGS ), UNO_QUERY );
@@ -1044,7 +1044,7 @@ void LibPage::InsertLib()
void LibPage::Export( void )
{
SvTreeListEntry* pCurEntry = m_pLibBox->GetCurEntry();
- OUString aLibName( m_pLibBox->GetEntryText( pCurEntry, 0 ) );
+ OUString aLibName( SvTabListBox::GetEntryText( pCurEntry, 0 ) );
// Password verification
OUString aOULibName( aLibName );
@@ -1285,7 +1285,7 @@ void LibPage::ExportAsBasic( const OUString& aLibName )
void LibPage::DeleteCurrent()
{
SvTreeListEntry* pCurEntry = m_pLibBox->GetCurEntry();
- OUString aLibName( m_pLibBox->GetEntryText( pCurEntry, 0 ) );
+ OUString aLibName( SvTabListBox::GetEntryText( pCurEntry, 0 ) );
// check, if library is link
bool bIsLibraryLink = false;
diff --git a/basctl/source/basicide/moduldlg.cxx b/basctl/source/basicide/moduldlg.cxx
index 57b9e110a9cc..dd39719b39da 100644
--- a/basctl/source/basicide/moduldlg.cxx
+++ b/basctl/source/basicide/moduldlg.cxx
@@ -331,7 +331,7 @@ TriState ExtTreeListBox::NotifyCopyingMoving( SvTreeListEntry* pTarget, SvTreeLi
{
// Target = module/dialog => put module/dialog under the superordinate Basic
rpNewParent = GetParent( pTarget );
- rNewChildPos = GetModel()->GetRelPos( pTarget ) + 1;
+ rNewChildPos = SvTreeList::GetRelPos( pTarget ) + 1;
}
// get target shell and target library name