LibreOffice Module sc (master) 1
Functions
docfunc.cxx File Reference
#include <scitems.hxx>
#include <comphelper/lok.hxx>
#include <o3tl/safeint.hxx>
#include <o3tl/string_view.hxx>
#include <sfx2/app.hxx>
#include <editeng/editobj.hxx>
#include <editeng/justifyitem.hxx>
#include <sfx2/linkmgr.hxx>
#include <sfx2/bindings.hxx>
#include <utility>
#include <vcl/weld.hxx>
#include <vcl/stdtext.hxx>
#include <vcl/svapp.hxx>
#include <svx/svdocapt.hxx>
#include <sal/log.hxx>
#include <unotools/charclass.hxx>
#include <osl/diagnose.h>
#include <com/sun/star/container/XNameContainer.hpp>
#include <com/sun/star/script/ModuleType.hpp>
#include <com/sun/star/script/XLibraryContainer.hpp>
#include <com/sun/star/script/vba/XVBAModuleInfo.hpp>
#include <docfunc.hxx>
#include <sc.hrc>
#include <strings.hrc>
#include <arealink.hxx>
#include <attrib.hxx>
#include <dociter.hxx>
#include <autoform.hxx>
#include <formulacell.hxx>
#include <cellmergeoption.hxx>
#include <detdata.hxx>
#include <detfunc.hxx>
#include <docpool.hxx>
#include <docsh.hxx>
#include <drwlayer.hxx>
#include <editutil.hxx>
#include <globstr.hrc>
#include <olinetab.hxx>
#include <patattr.hxx>
#include <rangenam.hxx>
#include <refundo.hxx>
#include <scresid.hxx>
#include <stlpool.hxx>
#include <stlsheet.hxx>
#include <tablink.hxx>
#include <tabvwsh.hxx>
#include <uiitems.hxx>
#include <undoblk.hxx>
#include <undocell.hxx>
#include <undodraw.hxx>
#include <undotab.hxx>
#include <sizedev.hxx>
#include <scmod.hxx>
#include <inputhdl.hxx>
#include <editable.hxx>
#include <compiler.hxx>
#include <scui_def.hxx>
#include <tabprotection.hxx>
#include <clipparam.hxx>
#include <externalrefmgr.hxx>
#include <undorangename.hxx>
#include <progress.hxx>
#include <dpobject.hxx>
#include <stringutil.hxx>
#include <cellvalue.hxx>
#include <tokenarray.hxx>
#include <rowheightcontext.hxx>
#include <cellvalues.hxx>
#include <undoconvert.hxx>
#include <docfuncutil.hxx>
#include <sheetevents.hxx>
#include <conditio.hxx>
#include <columnspanset.hxx>
#include <validat.hxx>
#include <SparklineGroup.hxx>
#include <SparklineAttributes.hxx>
#include <SparklineData.hxx>
#include <undo/UndoInsertSparkline.hxx>
#include <undo/UndoDeleteSparkline.hxx>
#include <undo/UndoDeleteSparklineGroup.hxx>
#include <undo/UndoEditSparklineGroup.hxx>
#include <undo/UndoUngroupSparklines.hxx>
#include <undo/UndoGroupSparklines.hxx>
#include <undo/UndoEditSparkline.hxx>
#include <config_features.h>
#include <memory>
#include <basic/basmgr.hxx>
#include <set>
#include <vector>
#include <sfx2/viewfrm.hxx>
Include dependency graph for docfunc.cxx:

Go to the source code of this file.

Functions

static void lcl_PaintAbove (ScDocShell &rDocShell, const ScRange &rRange)
 
static void lcl_collectAllPredOrSuccRanges (const ScRangeList &rSrcRanges, vector< ScTokenRef > &rRefTokens, ScDocShell &rDocShell, bool bPred)
 
static uno::Reference< uno::XInterface > GetDocModuleObject (const SfxObjectShell &rDocSh, const OUString &sCodeName)
 
static script::ModuleInfo lcl_InitModuleInfo (const SfxObjectShell &rDocSh, const OUString &sModule)
 
void VBA_InsertModule (ScDocument &rDoc, SCTAB nTab, const OUString &sSource)
 
void VBA_DeleteModule (ScDocShell &rDocSh, const OUString &sModuleName)
 
static sal_uInt16 lcl_GetOptimalColWidth (ScDocShell &rDocShell, SCCOL nCol, SCTAB nTab)
 SetWidthOrHeight - duplicated in ViewFunc !!!!!! Problems: More...
 
static ScDirection DirFromFillDir (FillDir eDir)
 

Function Documentation

◆ DirFromFillDir()

static ScDirection DirFromFillDir ( FillDir  eDir)
static

Definition at line 4464 of file docfunc.cxx.

References DIR_BOTTOM, DIR_LEFT, DIR_RIGHT, DIR_TOP, FILL_TO_BOTTOM, FILL_TO_RIGHT, and FILL_TO_TOP.

Referenced by ScDocFunc::FillSeries().

◆ GetDocModuleObject()

static uno::Reference< uno::XInterface > GetDocModuleObject ( const SfxObjectShell rDocSh,
const OUString &  sCodeName 
)
static

Definition at line 3175 of file docfunc.cxx.

References SfxObjectShell::GetModel().

Referenced by lcl_InitModuleInfo().

◆ lcl_collectAllPredOrSuccRanges()

static void lcl_collectAllPredOrSuccRanges ( const ScRangeList rSrcRanges,
vector< ScTokenRef > &  rRefTokens,
ScDocShell rDocShell,
bool  bPred 
)
static

◆ lcl_GetOptimalColWidth()

static sal_uInt16 lcl_GetOptimalColWidth ( ScDocShell rDocShell,
SCCOL  nCol,
SCTAB  nTab 
)
static

SetWidthOrHeight - duplicated in ViewFunc !!!!!! Problems:

  • Optimal height of text cells is different for a printer and a screen
  • Optimal width needs a selection in order to take only selected cells into account

Definition at line 3637 of file docfunc.cxx.

References ScSizeDeviceProvider::GetDevice(), ScDocShell::GetDocument(), ScDocument::GetOptimalColWidth(), ScSizeDeviceProvider::GetPPTX(), ScSizeDeviceProvider::GetPPTY(), nPPTX, and nPPTY.

Referenced by ScDocFunc::SetWidthOrHeight().

◆ lcl_InitModuleInfo()

static script::ModuleInfo lcl_InitModuleInfo ( const SfxObjectShell rDocSh,
const OUString &  sModule 
)
static

Definition at line 3189 of file docfunc.cxx.

References GetDocModuleObject().

Referenced by VBA_InsertModule().

◆ lcl_PaintAbove()

static void lcl_PaintAbove ( ScDocShell rDocShell,
const ScRange rRange 
)
static

◆ VBA_DeleteModule()

void VBA_DeleteModule ( ScDocShell rDocSh,
const OUString &  sModuleName 
)

◆ VBA_InsertModule()

void VBA_InsertModule ( ScDocument rDoc,
SCTAB  nTab,
const OUString &  sSource 
)