LibreOffice Module sc (master)  1
Functions
docfunc.cxx File Reference
#include <scitems.hxx>
#include <comphelper/lok.hxx>
#include <o3tl/safeint.hxx>
#include <sfx2/app.hxx>
#include <editeng/editobj.hxx>
#include <editeng/justifyitem.hxx>
#include <sfx2/linkmgr.hxx>
#include <sfx2/bindings.hxx>
#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 <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 <memory>
#include <utility>
#include <basic/basmgr.hxx>
#include <set>
#include <vector>
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

static ScDirection DirFromFillDir ( FillDir  eDir)
static

Definition at line 4457 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().

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

Definition at line 3155 of file docfunc.cxx.

References SfxObjectShell::GetModel().

Referenced by lcl_InitModuleInfo().

static void lcl_collectAllPredOrSuccRanges ( const ScRangeList rSrcRanges,
vector< ScTokenRef > &  rRefTokens,
ScDocShell rDocShell,
bool  bPred 
)
static
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 3612 of file docfunc.cxx.

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

Referenced by ScDocFunc::SetWidthOrHeight().

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

Definition at line 3169 of file docfunc.cxx.

References GetDocModuleObject().

Referenced by VBA_InsertModule().

static void lcl_PaintAbove ( ScDocShell rDocShell,
const ScRange rRange 
)
static
void VBA_DeleteModule ( ScDocShell rDocSh,
const OUString &  sModuleName 
)
void VBA_InsertModule ( ScDocument rDoc,
SCTAB  nTab,
const OUString &  sSource 
)