summaryrefslogtreecommitdiff
path: root/sd/source/ui/dlg/dlgassim.cxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2012-10-18 16:28:20 +0200
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-10-19 11:45:36 +0200
commit4b313fd5661ca5ac096e60d46691b1a9857877d9 (patch)
tree59ba989a24fe1d21562f9a3c8a465b124028c62a /sd/source/ui/dlg/dlgassim.cxx
parentd47508e036fd30f410798f37d25039bb25528f60 (diff)
Merge SvListEntry and SvLBoxEntry into SvTreeListEntry.
Change-Id: I89cfc8c1288c00674fe64e791c149743d377d5ee
Diffstat (limited to 'sd/source/ui/dlg/dlgassim.cxx')
-rw-r--r--sd/source/ui/dlg/dlgassim.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/sd/source/ui/dlg/dlgassim.cxx b/sd/source/ui/dlg/dlgassim.cxx
index c5dcc2c70a30..3f042c39941b 100644
--- a/sd/source/ui/dlg/dlgassim.cxx
+++ b/sd/source/ui/dlg/dlgassim.cxx
@@ -63,7 +63,7 @@ SdPageListControl::SdPageListControl(
IMPL_LINK_NOARG(SdPageListControl, CheckButtonClickHdl)
{
SvLBoxTreeList* pTreeModel = GetModel();
- SvLBoxEntry* pEntry = pTreeModel->First();
+ SvTreeListEntry* pEntry = pTreeModel->First();
while( pEntry )
{
@@ -88,9 +88,9 @@ void SdPageListControl::Clear()
SvTreeListBox::Clear();
}
-SvLBoxEntry* SdPageListControl::InsertPage( const String& rPageName )
+SvTreeListEntry* SdPageListControl::InsertPage( const String& rPageName )
{
- SvLBoxEntry* pEntry = new SvLBoxEntry;
+ SvTreeListEntry* pEntry = new SvTreeListEntry;
pEntry->AddItem( new SvLBoxButton( pEntry, SvLBoxButtonKind_enabledCheckbox,
0, m_pCheckButton));
@@ -102,9 +102,9 @@ SvLBoxEntry* SdPageListControl::InsertPage( const String& rPageName )
return pEntry;
}
-void SdPageListControl::InsertTitle( SvLBoxEntry* pParent, const String& rTitle )
+void SdPageListControl::InsertTitle( SvTreeListEntry* pParent, const String& rTitle )
{
- SvLBoxEntry* pEntry = new SvLBoxEntry;
+ SvTreeListEntry* pEntry = new SvTreeListEntry;
pEntry->AddItem( new SvLBoxString( pEntry, 0, String() ) );
pEntry->AddItem( new SvLBoxContextBmp( pEntry, 0, Image(), Image(), 0)); // Sonst Puff!
pEntry->AddItem( new SvLBoxString( pEntry, 0, rTitle ) );
@@ -122,7 +122,7 @@ void SdPageListControl::Fill( SdDrawDocument* pDoc )
SdPage* pPage = (SdPage*) pDoc->GetPage( nPage );
if( pPage->GetPageKind() == PK_STANDARD )
{
- SvLBoxEntry* pEntry = InsertPage( pPage->GetName() );
+ SvTreeListEntry* pEntry = InsertPage( pPage->GetName() );
SetCheckButtonState(pEntry, SvButtonState( SV_BUTTON_CHECKED ) );
SdrTextObj* pTO = (SdrTextObj*)pPage->GetPresObj(PRESOBJ_TEXT);
@@ -174,13 +174,13 @@ void SdPageListControl::Fill( SdDrawDocument* pDoc )
sal_uInt16 SdPageListControl::GetSelectedPage()
{
- SvLBoxEntry* pSelEntry = GetCurEntry();
+ SvTreeListEntry* pSelEntry = GetCurEntry();
sal_uInt16 nPage = 0;
if ( pSelEntry )
{
SvLBoxTreeList* pTreeModel = GetModel();
- SvLBoxEntry* pEntry = pTreeModel->First();
+ SvTreeListEntry* pEntry = pTreeModel->First();
while( pEntry && pEntry != pSelEntry )
{
@@ -197,7 +197,7 @@ sal_uInt16 SdPageListControl::GetSelectedPage()
sal_Bool SdPageListControl::IsPageChecked( sal_uInt16 nPage )
{
- SvLBoxEntry* pEntry = GetModel()->GetEntry(nPage);
+ SvTreeListEntry* pEntry = GetModel()->GetEntry(nPage);
return pEntry?(sal_Bool)(GetCheckButtonState( pEntry ) == SV_BUTTON_CHECKED): sal_False;
}