LibreOffice Module sc (master) 1
|
#include <algorithm>
#include <cmath>
#include <o3tl/safeint.hxx>
#include <svl/hint.hxx>
#include <utility>
#include <vcl/svapp.hxx>
#include <sal/log.hxx>
#include <dapiuno.hxx>
#include <datauno.hxx>
#include <miscuno.hxx>
#include <convuno.hxx>
#include <docsh.hxx>
#include <tabvwsh.hxx>
#include <rangeutl.hxx>
#include <dpobject.hxx>
#include <dpshttab.hxx>
#include <dpsdbtab.hxx>
#include <dpsave.hxx>
#include <dbdocfun.hxx>
#include <unonames.hxx>
#include <dpdimsave.hxx>
#include <hints.hxx>
#include <dputil.hxx>
#include <globstr.hrc>
#include <scresid.hxx>
#include <generalfunction.hxx>
#include <com/sun/star/container/XNameAccess.hpp>
#include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
#include <com/sun/star/lang/IllegalArgumentException.hpp>
#include <com/sun/star/lang/NullPointerException.hpp>
#include <com/sun/star/lang/WrappedTargetRuntimeException.hpp>
#include <com/sun/star/sheet/XDimensionsSupplier.hpp>
#include <com/sun/star/sheet/XLevelsSupplier.hpp>
#include <com/sun/star/sheet/XMembersAccess.hpp>
#include <com/sun/star/beans/PropertyAttribute.hpp>
#include <com/sun/star/sheet/DataImportMode.hpp>
#include <com/sun/star/sheet/DataPilotFieldGroupBy.hpp>
#include <com/sun/star/sheet/DataPilotFieldFilter.hpp>
#include <com/sun/star/sheet/DataPilotOutputRangeType.hpp>
#include <com/sun/star/sheet/DataPilotTablePositionData.hpp>
#include <com/sun/star/sheet/GeneralFunction2.hpp>
#include <comphelper/extract.hxx>
#include <comphelper/propertysequence.hxx>
#include <comphelper/sequence.hxx>
#include <comphelper/servicehelper.hxx>
#include <cppuhelper/exc_hlp.hxx>
Go to the source code of this file.
Functions | |
static ScDPObject * | lcl_GetDPObject (ScDocShell *pDocShell, SCTAB nTab, std::u16string_view rName) |
static OUString | lcl_CreatePivotName (ScDocShell *pDocShell) |
static sal_Int32 | lcl_GetObjectIndex (ScDPObject *pDPObj, const ScFieldIdentifier &rFieldId) |
static bool | lcl_IsDuplicated (const Reference< XPropertySet > &rDimProps) |
static OUString | lcl_GetOriginalName (const Reference< XNamed > &rDim) |
static sal_Int32 | lcl_GetFieldCount (const Reference< XDimensionsSupplier > &rSource, const Any &rOrient) |
static bool | lcl_GetFieldDataByIndex (const Reference< XDimensionsSupplier > &rSource, const Any &rOrient, SCSIZE nIndex, ScFieldIdentifier &rFieldId) |
static bool | lcl_GetFieldDataByName (ScDPObject *pDPObj, const OUString &rFieldName, ScFieldIdentifier &rFieldId) |
Variables | |
constexpr OUStringLiteral | SC_DATALAYOUT_NAME = u"Data" |
|
static |
Definition at line 268 of file dapiuno.cxx.
References ScDPCollection::CreateNewName(), ScDocShell::GetDocument(), and ScDocument::GetDPCollection().
Referenced by ScDataPilotTablesObj::insertNewByName().
|
static |
Definition at line 247 of file dapiuno.cxx.
References ScRange::aStart, ScDPCollection::GetCount(), ScDocShell::GetDocument(), ScDocument::GetDPCollection(), ScDPObject::GetName(), ScDPObject::GetOutRange(), i, nCount, and ScAddress::Tab().
Referenced by ScDataPilotTableObj::GetDPObject(), ScDataPilotTableObj::getName(), ScDataPilotTableObj::getOutputRange(), ScDataPilotTableObj::getOutputRangeByType(), ScDataPilotTableObj::getTag(), ScDataPilotTableObj::refresh(), ScDataPilotTablesObj::removeByName(), ScDataPilotTableObj::SetDPObject(), ScDataPilotTableObj::setName(), and ScDataPilotTableObj::setTag().
|
static |
Definition at line 1405 of file dapiuno.cxx.
References i, lcl_IsDuplicated(), and SC_UNO_DP_ORIENTATION.
Referenced by ScDataPilotFieldsObj::getCount(), and ScDataPilotFieldsObj::getElementNames().
|
static |
Definition at line 1431 of file dapiuno.cxx.
References ScUnoHelpFunctions::GetBoolProperty(), i, lcl_GetOriginalName(), lcl_IsDuplicated(), ScFieldIdentifier::maFieldName, ScFieldIdentifier::mbDataLayout, ScFieldIdentifier::mnFieldIdx, nIndex, nPos, SC_UNO_DP_ISDATALAYOUT, and SC_UNO_DP_ORIENTATION.
Referenced by ScDataPilotFieldsObj::GetObjectByIndex_Impl().
|
static |
Definition at line 1499 of file dapiuno.cxx.
References ScDPObject::GetSource(), ScDPObject::IsDimNameInUse(), ScFieldIdentifier::maFieldName, ScFieldIdentifier::mbDataLayout, ScFieldIdentifier::mnFieldIdx, and SC_DATALAYOUT_NAME.
Referenced by ScDataPilotFieldsObj::GetObjectByName_Impl().
|
static |
Definition at line 280 of file dapiuno.cxx.
References ScDPObject::GetDimCount(), ScDPObject::GetDimName(), ScFieldIdentifier::maFieldName, ScFieldIdentifier::mbDataLayout, and nCount.
Referenced by ScDataPilotItemsObj::getElementNames(), and ScDataPilotChildObjBase::GetMembers().
|
static |
Definition at line 381 of file dapiuno.cxx.
References Any, Exception, and SC_UNO_DP_ORIGINAL.
Referenced by lcl_GetFieldDataByIndex().
|
static |
Definition at line 367 of file dapiuno.cxx.
References Any, Exception, and SC_UNO_DP_ORIGINAL.
Referenced by lcl_GetFieldCount(), and lcl_GetFieldDataByIndex().
|
constexpr |
Definition at line 191 of file dapiuno.cxx.
Referenced by ScDataPilotDescriptorBase::getDataLayoutField(), ScDataPilotFieldObj::getName(), and lcl_GetFieldDataByName().