From 7a16f31752990abd1d0d4afc682259b67f24ea60 Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Mon, 28 Nov 2011 22:15:03 -0500 Subject: New UNO API to return currently selected sheets. Both from the sheet view and preview modes. --- offapi/UnoApi_offapi.mk | 1 + .../com/sun/star/sheet/XSelectedSheetsSupplier.idl | 44 ++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 offapi/com/sun/star/sheet/XSelectedSheetsSupplier.idl (limited to 'offapi') diff --git a/offapi/UnoApi_offapi.mk b/offapi/UnoApi_offapi.mk index 66e594439951..5fe45e99feb3 100644 --- a/offapi/UnoApi_offapi.mk +++ b/offapi/UnoApi_offapi.mk @@ -3428,6 +3428,7 @@ $(eval $(call gb_UnoApiTarget_add_idlfiles,offapi,offapi/com/sun/star/sheet,\ XScenarioEnhanced \ XScenarios \ XScenariosSupplier \ + XSelectedSheetsSupplier \ XSheetAnnotation \ XSheetAnnotationAnchor \ XSheetAnnotationShapeSupplier \ diff --git a/offapi/com/sun/star/sheet/XSelectedSheetsSupplier.idl b/offapi/com/sun/star/sheet/XSelectedSheetsSupplier.idl new file mode 100644 index 000000000000..786dba3dba44 --- /dev/null +++ b/offapi/com/sun/star/sheet/XSelectedSheetsSupplier.idl @@ -0,0 +1,44 @@ +/* + * Version: MPL 1.1 / GPLv3+ / LGPLv3+ + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with + * the License or as specified alternatively below. You may obtain a copy of + * the License at http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * Major Contributor(s): + * Copyright (C) 2011 Kohei Yoshida + * + * All Rights Reserved. + * + * For minor contributions see the git repository. + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 3 or later (the "GPLv3+"), or + * the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), + * in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable + * instead of those above. + */ + +#ifndef __com_sun_star_sheet_XSelectedSheetsSupplier_idl__ +#define __com_sun_star_sheet_XSelectedSheetsSupplier_idl__ + +module com { module sun { module star { module sheet { + +interface XSelectedSheetsSupplier: com::sun::star::uno::XInterface +{ + /** + returns the indices of currently selected sheets. Sheet indices are + 0-based. + */ + sequence getSelectedSheets(); +}; + +}; }; }; }; + +#endif -- cgit