summaryrefslogtreecommitdiff
path: root/sfx2/source/control/thumbnailviewacc.cxx
diff options
context:
space:
mode:
authorRafael Dominguez <venccsralph@gmail.com>2012-06-10 13:23:09 -0430
committerRafael Dominguez <venccsralph@gmail.com>2012-06-10 13:23:09 -0430
commit2e5fa82e733963a4411666f010a0cf66b0572d4c (patch)
tree97e40e26d0ee635e3788d878af75a29d5a65abb7 /sfx2/source/control/thumbnailviewacc.cxx
parentb67630b3d9f4538aeaa00ddf8ad6af1efff2a606 (diff)
Remove window style WB_NONEFIELD.
Change-Id: I0e9e275072fc67466f66c9b2c78dc680ac10d73d
Diffstat (limited to 'sfx2/source/control/thumbnailviewacc.cxx')
-rw-r--r--sfx2/source/control/thumbnailviewacc.cxx33
1 files changed, 2 insertions, 31 deletions
diff --git a/sfx2/source/control/thumbnailviewacc.cxx b/sfx2/source/control/thumbnailviewacc.cxx
index f3ce539e2a8e..cb0340568949 100644
--- a/sfx2/source/control/thumbnailviewacc.cxx
+++ b/sfx2/source/control/thumbnailviewacc.cxx
@@ -142,8 +142,6 @@ sal_Int32 SAL_CALL ThumbnailViewAcc::getAccessibleChildCount()
ThrowIfDisposed();
sal_Int32 nCount = mpParent->ImplGetVisibleItemCount();
- if (HasNoneField())
- nCount += 1;
return nCount;
}
@@ -600,31 +598,12 @@ void SAL_CALL ThumbnailViewAcc::disposing (void)
sal_uInt16 ThumbnailViewAcc::getItemCount (void) const
{
- sal_uInt16 nCount = mpParent->ImplGetVisibleItemCount();
- // When the None-Item is visible then increase the number of items by
- // one.
- if (HasNoneField())
- nCount += 1;
- return nCount;
+ return mpParent->ImplGetVisibleItemCount();
}
ThumbnailViewItem* ThumbnailViewAcc::getItem (sal_uInt16 nIndex) const
{
- ThumbnailViewItem* pItem = NULL;
-
- if (HasNoneField())
- {
- if (nIndex == 0)
- // When present the first item is the then allways visible none field.
- pItem = mpParent->ImplGetItem (THUMBNAILVIEW_ITEM_NONEITEM);
- else
- // Shift down the index to compensate for the none field.
- nIndex -= 1;
- }
- if (pItem == NULL)
- pItem = mpParent->ImplGetVisibleItem (static_cast<sal_uInt16>(nIndex));
-
- return pItem;
+ return mpParent->ImplGetVisibleItem (static_cast<sal_uInt16>(nIndex));
}
void ThumbnailViewAcc::ThrowIfDisposed (void)
@@ -643,14 +622,6 @@ void ThumbnailViewAcc::ThrowIfDisposed (void)
}
}
-
-
-bool ThumbnailViewAcc::HasNoneField (void) const
-{
- DBG_ASSERT (mpParent!=NULL, "ThumbnailViewAcc::HasNoneField called with mpParent==NULL");
- return ((mpParent->GetStyle() & WB_NONEFIELD) != 0);
-}
-
ThumbnailViewItemAcc::ThumbnailViewItemAcc( ThumbnailViewItem* pParent, bool bIsTransientChildrenDisabled ) :
mpParent( pParent ),
mbIsTransientChildrenDisabled( bIsTransientChildrenDisabled )