LibreOffice Module sc (master)  1
Macros | Enumerations | 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/stritem.hxx>
#include <svl/zforlist.hxx>
#include <svx/srchdlg.hxx>
#include <svx/svdview.hxx>
#include <vcl/svapp.hxx>
#include <vcl/weld.hxx>
#include <vcl/waitobj.hxx>
#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 <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)
 

Enumerations

enum  ScAutoSum
 

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

#define SC_AUTOSUM_MAXCOUNT   20

Definition at line 299 of file viewfun2.cxx.

Referenced by lcl_SeekAutoSumData().

#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 3255 of file viewfun2.cxx.

Referenced by ScViewFunc::SetSelectionFrameLines().

Enumeration Type Documentation

enum ScAutoSum

Definition at line 249 of file viewfun2.cxx.

Function Documentation

static sal_Int8 GetSubTotal ( const OpCode  eCode)
static

Definition at line 456 of file viewfun2.cxx.

References ocAverage, ocCount, ocMax, ocMin, and ocSum.

Referenced by ScViewFunc::GetAutoSumFormula().

static bool lcl_extendMergeRange ( ScCellMergeOption rOption,
const ScRange rRange 
)
static
static bool lcl_FindNextSumEntryInColumn ( ScDocument rDoc,
SCCOL  nCol,
SCROW nRow,
SCTAB  nTab,
SCCOLROW nExtend,
SCROW  nMinRow 
)
static

Definition at line 332 of file viewfun2.cxx.

References DIR_TOP, and lcl_IsAutoSumData().

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

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

Definition at line 347 of file viewfun2.cxx.

References DIR_LEFT, and lcl_IsAutoSumData().

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

static ScAutoSum lcl_GetAutoSumForColumnRange ( ScDocument rDoc,
ScRangeList rRangeList,
const ScRange rRange 
)
static
static ScAutoSum lcl_GetAutoSumForRowRange ( ScDocument rDoc,
ScRangeList rRangeList,
const ScRange rRange 
)
static
static ScAutoSum lcl_IsAutoSumData ( ScDocument rDoc,
SCCOL  nCol,
SCROW  nRow,
SCTAB  nTab,
ScDirection  eDir,
SCCOLROW nExtend 
)
static
static ScAutoSum lcl_SeekAutoSumData ( ScDocument rDoc,
SCCOL nCol,
SCROW nRow,
SCTAB  nTab,
ScDirection  eDir,
SCCOLROW nExtend 
)
static

Definition at line 301 of file viewfun2.cxx.

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

Referenced by ScViewFunc::GetAutoSumArea().