LibreOffice Module sw (master)  1
Classes | Macros | Functions
fetab.cxx File Reference
#include <memory>
#include <hintids.hxx>
#include <vcl/errinf.hxx>
#include <vcl/svapp.hxx>
#include <basegfx/vector/b2dvector.hxx>
#include <svx/svxids.hrc>
#include <editeng/protitem.hxx>
#include <editeng/brushitem.hxx>
#include <editeng/frmdiritem.hxx>
#include <svtools/ruler.hxx>
#include <swwait.hxx>
#include <fmtfsize.hxx>
#include <fmtornt.hxx>
#include <frmatr.hxx>
#include <docary.hxx>
#include <fesh.hxx>
#include <doc.hxx>
#include <IDocumentState.hxx>
#include <IDocumentLayoutAccess.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 <dflyobj.hxx>
#include <swtable.hxx>
#include <swddetbl.hxx>
#include <ndtxt.hxx>
#include <calc.hxx>
#include <tabcol.hxx>
#include <tblafmt.hxx>
#include <cellatr.hxx>
#include <pam.hxx>
#include <pamtyp.hxx>
#include <viscrs.hxx>
#include <tblsel.hxx>
#include <swtblfmt.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.

Classes

class  TableWait
 

Macros

#define COLFUZZY   20L
 
#define ENHANCED_TABLE_SELECTION_FUZZY   10
 

Functions

static bool IsSame (long nA, 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

#define COLFUZZY   20L

Definition at line 72 of file fetab.cxx.

Referenced by SwFEShell::GetBox(), and IsSame().

#define ENHANCED_TABLE_SELECTION_FUZZY   10

Definition at line 1609 of file fetab.cxx.

Referenced by SwFEShell::GetBox().

Function Documentation

void ClearFEShellTabCols ( SwDoc rDoc,
SwTabFrame const *const  pFrame 
)
static bool IsSame ( long  nA,
long  nB 
)
static

Definition at line 74 of file fetab.cxx.

References COLFUZZY.

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

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

Definition at line 1661 of file fetab.cxx.

References basegfx::B2DVector::scalar(), Point::X(), and Point::Y().

Referenced by lcl_ProjectOntoClosestTableFrame().

static const SwCellFrame* lcl_FindFrame ( const SwLayoutFrame pLay,
const Point rPt,
SwTwips  nFuzzy,
bool *  pbRow,
bool *  pbCol 
)
static
static const SwFrame* lcl_FindFrameInTab ( const SwLayoutFrame pLay,
const Point rPt,
SwTwips  nFuzzy 
)
static
static sal_uInt16 lcl_GetRowNumber ( const SwPosition rPos)
static
static bool lcl_IsFormulaSelBoxes ( const SwTable rTable,
const SwTableBoxFormula rFormula,
SwCellFrames rCells 
)
static
static Point lcl_ProjectOntoClosestTableFrame ( const SwTabFrame rTab,
const Point rPoint,
bool  bRowDrag 
)
static