diff options
author | Rafael Dominguez <venccsralph@gmail.com> | 2012-08-03 11:21:34 -0430 |
---|---|---|
committer | Rafael Dominguez <venccsralph@gmail.com> | 2012-08-03 18:31:33 -0430 |
commit | e433ab143c378299d18fc6579bc2df131f714e69 (patch) | |
tree | bc0c3a46d0b6547de5c17e576549ec4960c73a8c /sfx2 | |
parent | e93169a97b1832d00aaf2b3e75a70c7a7f95c19a (diff) |
Remove unneeded attribute.
Change-Id: I41fcd5e07fa799f483f0c9eb007e8e6d8788eda1
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/inc/sfx2/thumbnailview.hxx | 1 | ||||
-rw-r--r-- | sfx2/source/control/templatelocalview.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/control/templateonlineview.cxx | 1 | ||||
-rw-r--r-- | sfx2/source/control/thumbnailview.cxx | 5 |
4 files changed, 2 insertions, 7 deletions
diff --git a/sfx2/inc/sfx2/thumbnailview.hxx b/sfx2/inc/sfx2/thumbnailview.hxx index 24827ee6efaa..a5102e37ddcb 100644 --- a/sfx2/inc/sfx2/thumbnailview.hxx +++ b/sfx2/inc/sfx2/thumbnailview.hxx @@ -354,7 +354,6 @@ protected: bool mbIsTransientChildrenDisabled : 1; bool mbHasVisibleItems : 1; bool mbSelectionMode; - bool mbActive; Color maColor; Link maItemStateHdl; diff --git a/sfx2/source/control/templatelocalview.cxx b/sfx2/source/control/templatelocalview.cxx index 146000880c6c..9fff6d2b9c56 100644 --- a/sfx2/source/control/templatelocalview.cxx +++ b/sfx2/source/control/templatelocalview.cxx @@ -187,7 +187,6 @@ std::vector<rtl::OUString> TemplateLocalView::getFolderNames() void TemplateLocalView::showOverlay (bool bVisible) { - mbActive = !bVisible; mpItemView->Show(bVisible); // Clear items is the overlay is closed. @@ -582,7 +581,6 @@ void TemplateLocalView::OnItemDblClicked (ThumbnailViewItem *pRegionItem) if (meFilterOption != FILTER_APP_NONE) mpItemView->filterItems(ViewFilter_Application(meFilterOption)); - mbActive = false; mpItemView->Show(); } diff --git a/sfx2/source/control/templateonlineview.cxx b/sfx2/source/control/templateonlineview.cxx index 0ed95c5f57a8..7fce193142c6 100644 --- a/sfx2/source/control/templateonlineview.cxx +++ b/sfx2/source/control/templateonlineview.cxx @@ -100,7 +100,6 @@ void TemplateOnlineView::filterTemplatesByApp(const FILTER_APPLICATION &eApp) void TemplateOnlineView::showOverlay (bool bVisible) { - mbActive = !bVisible; mpItemView->Show(bVisible); // Clear items is the overlay is closed. diff --git a/sfx2/source/control/thumbnailview.cxx b/sfx2/source/control/thumbnailview.cxx index 5f08084cc0d9..c7361827e2ba 100644 --- a/sfx2/source/control/thumbnailview.cxx +++ b/sfx2/source/control/thumbnailview.cxx @@ -103,7 +103,6 @@ void ThumbnailView::ImplInit() mbScroll = false; mbHasVisibleItems = false; mbSelectionMode = false; - mbActive = true; maFilterFunc = ViewFilterAll(); maColor = GetSettings().GetStyleSettings().GetDialogColor(); @@ -196,7 +195,7 @@ void ThumbnailView::ImplInitScrollBar() void ThumbnailView::DrawItem (ThumbnailViewItem *pItem) { - if (mbActive && pItem->isVisible()) + if (pItem->isVisible()) { Rectangle aRect = pItem->getDrawArea(); @@ -605,7 +604,7 @@ void ThumbnailView::MouseMove( const MouseEvent& rMEvt ) { ThumbnailViewItem* pItem = ImplGetItem( ImplGetItem( rMEvt.GetPosPixel() ) ); - if (pItem && mbActive) + if (pItem) { if (mnHighItemId != pItem->mnId && pItem->isVisible()) { |