diff options
author | Rafael Dominguez <venccsralph@gmail.com> | 2012-06-10 08:47:11 -0430 |
---|---|---|
committer | Rafael Dominguez <venccsralph@gmail.com> | 2012-06-10 08:47:11 -0430 |
commit | 9757fdd2cf41dc1fc2e17e30cf73a2c9ac937626 (patch) | |
tree | d325e63b9275054e763eaa972b21e51058005bf5 /sfx2/source/control/thumbnailviewitem.cxx | |
parent | fd845d37ee757ddf746ddee557cb6cff81fb1136 (diff) |
Move thumbnailview to sfx2 folder.
Change-Id: Iace30ac7911938184cee5f4e5e16159598771014
Diffstat (limited to 'sfx2/source/control/thumbnailviewitem.cxx')
-rw-r--r-- | sfx2/source/control/thumbnailviewitem.cxx | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/sfx2/source/control/thumbnailviewitem.cxx b/sfx2/source/control/thumbnailviewitem.cxx new file mode 100644 index 000000000000..955cf5f9b728 --- /dev/null +++ b/sfx2/source/control/thumbnailviewitem.cxx @@ -0,0 +1,64 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * This file is part of OpenOffice.org. + * + * OpenOffice.org is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 3 + * only, as published by the Free Software Foundation. + * + * OpenOffice.org is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License version 3 for more details + * (a copy is included in the LICENSE file that accompanied this code). + * + * You should have received a copy of the GNU Lesser General Public License + * version 3 along with OpenOffice.org. If not, see + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#include "thumbnailviewacc.hxx" + +#include <sfx2/thumbnailviewitem.hxx> +#include <vcl/svapp.hxx> + +using namespace ::com::sun::star; + +ThumbnailViewItem::ThumbnailViewItem( ThumbnailView& rParent ) + : mrParent(rParent) + , mnId(0) + , mbVisible(true) + , mpData(NULL) + , mpxAcc(NULL) +{ +} + +ThumbnailViewItem::~ThumbnailViewItem() +{ + if( mpxAcc ) + { + static_cast< ThumbnailViewItemAcc* >( mpxAcc->get() )->ParentDestroyed(); + delete mpxAcc; + } +} + +uno::Reference< accessibility::XAccessible > ThumbnailViewItem::GetAccessible( bool bIsTransientChildrenDisabled ) +{ + if( !mpxAcc ) + mpxAcc = new uno::Reference< accessibility::XAccessible >( new ThumbnailViewItemAcc( this, bIsTransientChildrenDisabled ) ); + + return *mpxAcc; +} + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ + + |