/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ module com { module sun { module star { module sheet { /** Provides methods to create new DataPilot fields where some or all items of this DataPilot field are grouped in some way. @see DataPilotField */ published interface XDataPilotFieldGrouping: com::sun::star::uno::XInterface { /** Creates a new DataPilot field which contains a group containing the given DataPilot field items (members).

It is possible to create multiple groups by calling this method several times at the same DataPilot field. On subsequent calls, the DataPilot field created at the first call is used to insert the new groups.

The collection of groups can be accessed via the DataPilotField::GroupInfo property. The returned struct contains the sequence of groups in its member DataPilotFieldGroupInfo::Groups.

@param aItems a sequence containing the names of the items (members) which will be part of the new group. Must be names of items contained in the current field. @returns the new created field if there is one created on the first call of this method. `NULL` is returned on subsequent calls. @see DataPilotField @see DataPilotFieldGroupInfo */ XDataPilotField createNameGroup([in] sequence< string > aItems) raises( com::sun::star::lang::IllegalArgumentException ); /** Groups the members of this field by dates, according to the passed settings.

If this field is already grouped by dates, a new DataPilot field will be created and returned. If this field is not grouped at all, the date grouping is performed inside of this field (no new field will be created). There must not be any other grouping (by member names or by numeric ranges), otherwise an exception is thrown.

@param aInfo contains the information how to group the items of the field. The members of this struct have to fulfill the following requirements: @returns the new created field if there is one created. `NULL` is returned, if date grouping is performed inside this field (i.e. this field was not grouped by dates before). @throws com::sun::star::lang::IllegalArgumentException if the passed struct does not contain valid settings as described, or if this field is already grouped by member names or numeric ranges. @see DataPilotField */ XDataPilotField createDateGroup([in] DataPilotFieldGroupInfo aInfo) raises( com::sun::star::lang::IllegalArgumentException ); }; }; }; }; }; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */