Files
libreoffice/sc/source/ui/vba/vbaoutline.cxx
Rüdiger Timm 806758fc3c INTEGRATION: CWS npower6 (1.1.2); FILE ADDED
2007/02/21 17:29:20 npower 1.1.2.2: #i74096 add license
2007/02/07 21:17:57 npower 1.1.2.1: #i74096# add compatibility api implementation
2007-04-25 15:08:07 +00:00

55 lines
1.9 KiB
C++

/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: vbaoutline.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: rt $ $Date: 2007-04-25 16:08:07 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
*
*
* GNU Lesser General Public License Version 2.1
* =============================================
* Copyright 2005 by Sun Microsystems, Inc.
* 901 San Antonio Road, Palo Alto, CA 94303, USA
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1, as published by the Free Software Foundation.
*
* This library 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 for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*
************************************************************************/
#include "vbaoutline.hxx"
using namespace ::com::sun::star;
using namespace ::org::openoffice;
void
ScVbaOutline::ShowLevels( const uno::Any& RowLevels, const uno::Any& ColumnLevels ) throw (uno::RuntimeException)
{
sal_Int16 nLevel = 0;
if (mxOutline.is())
{
if (RowLevels >>= nLevel)
{
mxOutline->showLevel(nLevel, table::TableOrientation_ROWS);
}
if (ColumnLevels >>= nLevel)
{
mxOutline->showLevel(nLevel,table::TableOrientation_COLUMNS);
}
}
}