LibreOffice Module sc (master) 1
|
#include <dptabres.hxx>
#include <dptabdat.hxx>
#include <dptabsrc.hxx>
#include <global.hxx>
#include <subtotal.hxx>
#include <globstr.hrc>
#include <scresid.hxx>
#include <dpitemdata.hxx>
#include <generalfunction.hxx>
#include <document.hxx>
#include <dpresfilter.hxx>
#include <dputil.hxx>
#include <o3tl/safeint.hxx>
#include <osl/diagnose.h>
#include <rtl/math.hxx>
#include <sal/log.hxx>
#include <math.h>
#include <float.h>
#include <algorithm>
#include <limits>
#include <memory>
#include <unordered_map>
#include <com/sun/star/sheet/DataResultFlags.hpp>
#include <com/sun/star/sheet/MemberResultFlags.hpp>
#include <com/sun/star/sheet/DataPilotFieldReferenceType.hpp>
#include <com/sun/star/sheet/DataPilotFieldReferenceItemType.hpp>
#include <com/sun/star/sheet/DataPilotFieldShowItemsMode.hpp>
#include <com/sun/star/sheet/DataPilotFieldSortMode.hpp>
#include <com/sun/star/sheet/GeneralFunction2.hpp>
Go to the source code of this file.
Functions | |
static bool | lcl_IsLess (const ScDPDataMember *pDataMember1, const ScDPDataMember *pDataMember2, tools::Long nMeasure, bool bAscending) |
static bool | lcl_IsEqual (const ScDPDataMember *pDataMember1, const ScDPDataMember *pDataMember2, tools::Long nMeasure) |
static ScDPAggData * | lcl_GetChildTotal (ScDPAggData *pFirst, tools::Long nMeasure) |
static ScSubTotalFunc | lcl_GetForceFunc (const ScDPLevel *pLevel, tools::Long nFuncNo) |
static OUString | lcl_parseSubtotalName (std::u16string_view rSubStr, std::u16string_view rCaption) |
Parse subtotal string and replace all occurrences of '?' with the caption string. More... | |
static tools::Long | lcl_GetSubTotalPos (const ScDPSubTotalState &rSubState) |
Variables | |
const tools::Long | SC_SUBTOTALPOS_AUTO = -1 |
const tools::Long | SC_SUBTOTALPOS_SKIP = -2 |
|
static |
Definition at line 700 of file dptabres.cxx.
References ScDPAggData::Calculate(), ScDPAggData::GetChild(), ScDPAggData::IsCalculated(), nPos, and SUBTOTAL_FUNC_SUM.
Referenced by ScDPResultMember::GetColTotal(), ScDPRowTotals::GetGrandTotal(), and ScDPRowTotals::GetRowTotal().
|
static |
Definition at line 732 of file dptabres.cxx.
References aSeq, AUTO, ScDPLevel::getSubTotals(), SUBTOTAL_FUNC_NONE, and ScDPUtil::toSubTotalFunc().
Referenced by ScDPResultMember::FillDataResults(), ScDPDataMember::FillDataRow(), ScDPResultMember::FillMemberResults(), ScDPDataMember::ProcessData(), ScDPResultMember::ProcessData(), ScDPResultMember::UpdateDataResults(), ScDPDataMember::UpdateDataRow(), ScDPDataMember::UpdateRunningTotals(), and ScDPResultMember::UpdateRunningTotals().
|
static |
Definition at line 1896 of file dptabres.cxx.
References ScDPSubTotalState::nColSubTotalFunc, ScDPSubTotalState::nRowSubTotalFunc, SC_SUBTOTALPOS_AUTO, and SC_SUBTOTALPOS_SKIP.
Referenced by ScDPDataMember::GetAggData(), ScDPDataMember::GetConstAggData(), and ScDPDataMember::UpdateValues().
|
static |
Definition at line 196 of file dptabres.cxx.
References ScDPDataMember::GetConstAggData(), ScDPAggData::GetResult(), ScDPAggData::HasData(), and ScDPAggData::HasError().
Referenced by ScDPDataDimension::DoAutoShow(), and ScDPResultDimension::DoAutoShow().
|
static |
Definition at line 170 of file dptabres.cxx.
References ScDPDataMember::GetConstAggData(), ScDPAggData::GetResult(), ScDPAggData::HasData(), and ScDPAggData::HasError().
|
static |
Parse subtotal string and replace all occurrences of '?' with the caption string.
Do ensure that escaped characters are not translated.
Definition at line 1300 of file dptabres.cxx.
Referenced by ScDPResultMember::FillMemberResults().
const tools::Long SC_SUBTOTALPOS_AUTO = -1 |
Definition at line 1893 of file dptabres.cxx.
Referenced by lcl_GetSubTotalPos().
const tools::Long SC_SUBTOTALPOS_SKIP = -2 |
Definition at line 1894 of file dptabres.cxx.
Referenced by ScDPDataMember::GetAggData(), ScDPDataMember::GetConstAggData(), lcl_GetSubTotalPos(), and ScDPDataMember::UpdateValues().