LibreOffice Module sc (master) 1
Macros | Functions
viewfun2.cxx File Reference
#include <scitems.hxx>
#include <sfx2/app.hxx>
#include <editeng/borderline.hxx>
#include <editeng/boxitem.hxx>
#include <editeng/fontitem.hxx>
#include <editeng/lineitem.hxx>
#include <editeng/scripttypeitem.hxx>
#include <svl/srchitem.hxx>
#include <sfx2/linkmgr.hxx>
#include <sfx2/dispatch.hxx>
#include <sfx2/docfilt.hxx>
#include <sfx2/docfile.hxx>
#include <sfx2/objitem.hxx>
#include <sfx2/viewfrm.hxx>
#include <svl/numformat.hxx>
#include <svl/stritem.hxx>
#include <svl/zforlist.hxx>
#include <svx/srchdlg.hxx>
#include <svx/svdview.hxx>
#include <vcl/svapp.hxx>
#include <vcl/weld.hxx>
#include <osl/diagnose.h>
#include <viewfunc.hxx>
#include <vcl/uitest/logger.hxx>
#include <vcl/uitest/eventdescription.hxx>
#include <sc.hrc>
#include <globstr.hrc>
#include <scresid.hxx>
#include <attrib.hxx>
#include <autoform.hxx>
#include <formulacell.hxx>
#include <cellmergeoption.hxx>
#include <compiler.hxx>
#include <docfunc.hxx>
#include <docpool.hxx>
#include <docsh.hxx>
#include <docoptio.hxx>
#include <global.hxx>
#include <patattr.hxx>
#include <printfun.hxx>
#include <refundo.hxx>
#include <table.hxx>
#include <tablink.hxx>
#include <tabvwsh.hxx>
#include <uiitems.hxx>
#include <undoblk.hxx>
#include <undotab.hxx>
#include <sizedev.hxx>
#include <editable.hxx>
#include <docuno.hxx>
#include <charthelper.hxx>
#include <tabbgcolor.hxx>
#include <clipparam.hxx>
#include <prnsave.hxx>
#include <searchresults.hxx>
#include <tokenarray.hxx>
#include <rowheightcontext.hxx>
#include <LibreOfficeKit/LibreOfficeKitEnums.h>
#include <comphelper/lok.hxx>
#include <mergecellsdialog.hxx>
#include <sheetevents.hxx>
#include <columnspanset.hxx>
#include <vector>
#include <memory>
#include <boost/property_tree/json_parser.hpp>
#include <tools/json_writer.hxx>
#include <officecfg/Office/Calc.hxx>
Include dependency graph for viewfun2.cxx:

Go to the source code of this file.

Macros

#define SC_AUTOSUM_MAXCOUNT   20
 
#define SET_LINE_ATTRIBUTES(LINE, BOXLINE)
 

Functions

static ScAutoSum lcl_IsAutoSumData (ScDocument &rDoc, SCCOL nCol, SCROW nRow, SCTAB nTab, ScDirection eDir, SCCOLROW &nExtend)
 
static ScAutoSum lcl_SeekAutoSumData (ScDocument &rDoc, SCCOL &nCol, SCROW &nRow, SCTAB nTab, ScDirection eDir, SCCOLROW &nExtend)
 
static bool lcl_FindNextSumEntryInColumn (ScDocument &rDoc, SCCOL nCol, SCROW &nRow, SCTAB nTab, SCCOLROW &nExtend, SCROW nMinRow)
 
static bool lcl_FindNextSumEntryInRow (ScDocument &rDoc, SCCOL &nCol, SCROW nRow, SCTAB nTab, SCCOLROW &nExtend, SCCOL nMinCol)
 
static ScAutoSum lcl_GetAutoSumForColumnRange (ScDocument &rDoc, ScRangeList &rRangeList, const ScRange &rRange)
 
static ScAutoSum lcl_GetAutoSumForRowRange (ScDocument &rDoc, ScRangeList &rRangeList, const ScRange &rRange)
 
static sal_Int8 GetSubTotal (const OpCode eCode)
 
static bool lcl_extendMergeRange (ScCellMergeOption &rOption, const ScRange &rRange)
 

Macro Definition Documentation

◆ SC_AUTOSUM_MAXCOUNT

#define SC_AUTOSUM_MAXCOUNT   20

Definition at line 320 of file viewfun2.cxx.

◆ SET_LINE_ATTRIBUTES

#define SET_LINE_ATTRIBUTES (   LINE,
  BOXLINE 
)
Value:
pBoxLine = aBoxItem.Get##LINE(); \
if ( pBoxLine ) \
{ \
if ( pLine ) \
{ \
UpdateLineAttrs( aLine, pBoxLine, pLine, bColorOnly ); \
aBoxItem.SetLine( &aLine, BOXLINE ); \
} \
else \
aBoxItem.SetLine( nullptr, BOXLINE ); \
}
LINE

Definition at line 3343 of file viewfun2.cxx.

Function Documentation

◆ GetSubTotal()

static sal_Int8 GetSubTotal ( const OpCode  eCode)
static

Definition at line 477 of file viewfun2.cxx.

References ocAverage, ocCount, ocCount2, ocMax, ocMin, ocProduct, ocStDev, ocStDevP, ocSum, ocVar, and ocVarP.

Referenced by ScViewFunc::GetAutoSumFormula().

◆ lcl_extendMergeRange()

static bool lcl_extendMergeRange ( ScCellMergeOption rOption,
const ScRange rRange 
)
static

◆ lcl_FindNextSumEntryInColumn()

static bool lcl_FindNextSumEntryInColumn ( ScDocument rDoc,
SCCOL  nCol,
SCROW nRow,
SCTAB  nTab,
SCCOLROW nExtend,
SCROW  nMinRow 
)
static

Definition at line 353 of file viewfun2.cxx.

References DIR_TOP, and lcl_IsAutoSumData().

Referenced by ScViewFunc::GetAutoSumArea(), and lcl_GetAutoSumForColumnRange().

◆ lcl_FindNextSumEntryInRow()

static bool lcl_FindNextSumEntryInRow ( ScDocument rDoc,
SCCOL nCol,
SCROW  nRow,
SCTAB  nTab,
SCCOLROW nExtend,
SCCOL  nMinCol 
)
static

Definition at line 368 of file viewfun2.cxx.

References DIR_LEFT, and lcl_IsAutoSumData().

Referenced by ScViewFunc::GetAutoSumArea(), and lcl_GetAutoSumForRowRange().

◆ lcl_GetAutoSumForColumnRange()

static ScAutoSum lcl_GetAutoSumForColumnRange ( ScDocument rDoc,
ScRangeList rRangeList,
const ScRange rRange 
)
static

◆ lcl_GetAutoSumForRowRange()

static ScAutoSum lcl_GetAutoSumForRowRange ( ScDocument rDoc,
ScRangeList rRangeList,
const ScRange rRange 
)
static

◆ lcl_IsAutoSumData()

static ScAutoSum lcl_IsAutoSumData ( ScDocument rDoc,
SCCOL  nCol,
SCROW  nRow,
SCTAB  nTab,
ScDirection  eDir,
SCCOLROW nExtend 
)
static

◆ lcl_SeekAutoSumData()

static ScAutoSum lcl_SeekAutoSumData ( ScDocument rDoc,
SCCOL nCol,
SCROW nRow,
SCTAB  nTab,
ScDirection  eDir,
SCCOLROW nExtend 
)
static

Definition at line 322 of file viewfun2.cxx.

References DIR_TOP, lcl_IsAutoSumData(), nCount, and SC_AUTOSUM_MAXCOUNT.

Referenced by ScViewFunc::GetAutoSumArea().