LibreOffice Module sc (master) 1
Functions | Variables
dptabres.cxx File Reference
#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>
Include dependency graph for dptabres.cxx:

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 ScDPAggDatalcl_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
 

Function Documentation

◆ lcl_GetChildTotal()

static ScDPAggData * lcl_GetChildTotal ( ScDPAggData pFirst,
tools::Long  nMeasure 
)
static

◆ lcl_GetForceFunc()

static ScSubTotalFunc lcl_GetForceFunc ( const ScDPLevel pLevel,
tools::Long  nFuncNo 
)
static

◆ lcl_GetSubTotalPos()

static tools::Long lcl_GetSubTotalPos ( const ScDPSubTotalState rSubState)
static

◆ lcl_IsEqual()

static bool lcl_IsEqual ( const ScDPDataMember pDataMember1,
const ScDPDataMember pDataMember2,
tools::Long  nMeasure 
)
static

◆ lcl_IsLess()

static bool lcl_IsLess ( const ScDPDataMember pDataMember1,
const ScDPDataMember pDataMember2,
tools::Long  nMeasure,
bool  bAscending 
)
static

◆ lcl_parseSubtotalName()

static OUString lcl_parseSubtotalName ( std::u16string_view  rSubStr,
std::u16string_view  rCaption 
)
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.

References i, and n.

Referenced by ScDPResultMember::FillMemberResults().

Variable Documentation

◆ SC_SUBTOTALPOS_AUTO

const tools::Long SC_SUBTOTALPOS_AUTO = -1

Definition at line 1893 of file dptabres.cxx.

Referenced by lcl_GetSubTotalPos().

◆ SC_SUBTOTALPOS_SKIP

const tools::Long SC_SUBTOTALPOS_SKIP = -2