LibreOffice Module sw (master) 1
Macros | Functions
fetab.cxx File Reference
#include <memory>
#include <hintids.hxx>
#include <vcl/errinf.hxx>
#include <basegfx/vector/b2dvector.hxx>
#include <editeng/protitem.hxx>
#include <editeng/brushitem.hxx>
#include <editeng/frmdiritem.hxx>
#include <svtools/ruler.hxx>
#include <osl/diagnose.h>
#include <swwait.hxx>
#include <fmtfsize.hxx>
#include <fmtornt.hxx>
#include <frmatr.hxx>
#include <fesh.hxx>
#include <wrtsh.hxx>
#include <doc.hxx>
#include <docsh.hxx>
#include <IDocumentState.hxx>
#include <IDocumentLayoutAccess.hxx>
#include <IDocumentRedlineAccess.hxx>
#include <IDocumentUndoRedo.hxx>
#include <cntfrm.hxx>
#include <txtfrm.hxx>
#include <notxtfrm.hxx>
#include <rootfrm.hxx>
#include <pagefrm.hxx>
#include <tabfrm.hxx>
#include <rowfrm.hxx>
#include <cellfrm.hxx>
#include <flyfrm.hxx>
#include <swtable.hxx>
#include <swddetbl.hxx>
#include <ndtxt.hxx>
#include <calc.hxx>
#include <dialoghelp.hxx>
#include <tabcol.hxx>
#include <tblafmt.hxx>
#include <cellatr.hxx>
#include <pam.hxx>
#include <viscrs.hxx>
#include <tblsel.hxx>
#include <swerror.h>
#include <swundo.hxx>
#include <frmtool.hxx>
#include <fmtrowsplt.hxx>
#include <node.hxx>
#include <sortedobjs.hxx>
Include dependency graph for fetab.cxx:

Go to the source code of this file.

Macros

#define COLFUZZY   20L
 
#define ENHANCED_TABLE_SELECTION_FUZZY   10
 

Functions

static bool IsSame (tools::Long nA, tools::Long nB)
 
static sal_uInt16 lcl_GetRowNumber (const SwPosition &rPos)
 
static const SwFramelcl_FindFrameInTab (const SwLayoutFrame *pLay, const Point &rPt, SwTwips nFuzzy)
 
static const SwCellFramelcl_FindFrame (const SwLayoutFrame *pLay, const Point &rPt, SwTwips nFuzzy, bool *pbRow, bool *pbCol)
 
static double lcl_DistancePoint2Segment (const Point &rA, const Point &rB, const Point &rC)
 
static Point lcl_ProjectOntoClosestTableFrame (const SwTabFrame &rTab, const Point &rPoint, bool bRowDrag)
 
void ClearFEShellTabCols (SwDoc &rDoc, SwTabFrame const *const pFrame)
 
static bool lcl_IsFormulaSelBoxes (const SwTable &rTable, const SwTableBoxFormula &rFormula, SwCellFrames &rCells)
 

Macro Definition Documentation

◆ COLFUZZY

#define COLFUZZY   20L

Definition at line 72 of file fetab.cxx.

◆ ENHANCED_TABLE_SELECTION_FUZZY

#define ENHANCED_TABLE_SELECTION_FUZZY   10

Definition at line 1782 of file fetab.cxx.

Function Documentation

◆ ClearFEShellTabCols()

void ClearFEShellTabCols ( SwDoc rDoc,
SwTabFrame const *const  pFrame 
)

◆ IsSame()

static bool IsSame ( tools::Long  nA,
tools::Long  nB 
)
static

Definition at line 74 of file fetab.cxx.

References abs(), and COLFUZZY.

Referenced by SwFEShell::GetCurMouseTabColNum(), SwFEShell::GetCurTabColNum(), and lcl_FindFrame().

◆ lcl_DistancePoint2Segment()

static double lcl_DistancePoint2Segment ( const Point rA,
const Point rB,
const Point rC 
)
static

◆ lcl_FindFrame()

static const SwCellFrame * lcl_FindFrame ( const SwLayoutFrame pLay,
const Point rPt,
SwTwips  nFuzzy,
bool *  pbRow,
bool *  pbCol 
)
static

◆ lcl_FindFrameInTab()

static const SwFrame * lcl_FindFrameInTab ( const SwLayoutFrame pLay,
const Point rPt,
SwTwips  nFuzzy 
)
static

◆ lcl_GetRowNumber()

static sal_uInt16 lcl_GetRowNumber ( const SwPosition rPos)
static

◆ lcl_IsFormulaSelBoxes()

static bool lcl_IsFormulaSelBoxes ( const SwTable rTable,
const SwTableBoxFormula rFormula,
SwCellFrames rCells 
)
static

◆ lcl_ProjectOntoClosestTableFrame()

static Point lcl_ProjectOntoClosestTableFrame ( const SwTabFrame rTab,
const Point rPoint,
bool  bRowDrag 
)
static