diff options
author | Kurt Zenker <kz@openoffice.org> | 2008-03-06 15:46:43 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2008-03-06 15:46:43 +0000 |
commit | 3066706161b18d5373cdfcc13f5bad9620e19d8d (patch) | |
tree | c32d248d21cc131cddf032209433c130587b6ad0 /chart2/source/controller/inc/RangeSelectionHelper.hxx | |
parent | eb248ec2c1213fbcfa97049c523b2d99d7efa841 (diff) |
INTEGRATION: CWS chart20_DEV300 (1.1.2); FILE ADDED
2008/02/21 16:00:48 bm 1.1.2.1: #i366# moved to inc for broader access
Diffstat (limited to 'chart2/source/controller/inc/RangeSelectionHelper.hxx')
-rwxr-xr-x | chart2/source/controller/inc/RangeSelectionHelper.hxx | 98 |
1 files changed, 98 insertions, 0 deletions
diff --git a/chart2/source/controller/inc/RangeSelectionHelper.hxx b/chart2/source/controller/inc/RangeSelectionHelper.hxx new file mode 100755 index 000000000000..4f125cb4324b --- /dev/null +++ b/chart2/source/controller/inc/RangeSelectionHelper.hxx @@ -0,0 +1,98 @@ +/************************************************************************* + * + * OpenOffice.org - a multi-platform office productivity suite + * + * $RCSfile: RangeSelectionHelper.hxx,v $ + * + * $Revision: 1.2 $ + * + * last change: $Author: kz $ $Date: 2008-03-06 16:46:43 $ + * + * 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 + * + ************************************************************************/ +#ifndef CHART2_RANGESELECTIONHELPER_HXX +#define CHART2_RANGESELECTIONHELPER_HXX + +#include <com/sun/star/chart2/XChartDocument.hpp> +#include <com/sun/star/beans/PropertyValue.hpp> + +namespace com { namespace sun { namespace star { + namespace sheet{ + class XRangeSelection; + class XRangeSelectionListener; + class XCellRangesAccess; + } +}}} + +namespace chart +{ + +class RangeSelectionListenerParent; + +class RangeSelectionHelper +{ +public: + explicit RangeSelectionHelper( + const ::com::sun::star::uno::Reference< + ::com::sun::star::chart2::XChartDocument > & xChartDocument ); + ~RangeSelectionHelper(); + + bool hasRangeSelection(); + ::com::sun::star::uno::Reference< + ::com::sun::star::sheet::XRangeSelection > getRangeSelection(); + ::com::sun::star::uno::Reference< + ::com::sun::star::sheet::XCellRangesAccess > getCellRangesAccess(); + void raiseRangeSelectionDocument(); + bool chooseRange( + const ::rtl::OUString & aCurrentRange, + const ::rtl::OUString & aUIString, + RangeSelectionListenerParent & rListenerParent ); + void stopRangeListening( bool bRemoveListener = true ); + bool verifyCellRange( const ::rtl::OUString & rRangeStr ); + bool verifyArguments( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rArguments ); + ::rtl::OUString getCellRangeContent( const ::rtl::OUString & rRangeStr ); + +private: + ::com::sun::star::uno::Reference< + ::com::sun::star::sheet::XRangeSelection > + m_xRangeSelection; + + ::com::sun::star::uno::Reference< + ::com::sun::star::chart2::XChartDocument > + m_xChartDocument; + + ::com::sun::star::uno::Reference< + ::com::sun::star::sheet::XCellRangesAccess > + m_xCellRangesAccess; + + ::com::sun::star::uno::Reference< + ::com::sun::star::sheet::XRangeSelectionListener > + m_xRangeSelectionListener; +}; + +} // namespace chart + +// CHART2_RANGESELECTIONHELPER_HXX +#endif |