LibreOffice Module sw (master) 1
|
#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>
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 SwFrame * | lcl_FindFrameInTab (const SwLayoutFrame *pLay, const Point &rPt, SwTwips nFuzzy) |
static const SwCellFrame * | lcl_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) |
void ClearFEShellTabCols | ( | SwDoc & | rDoc, |
SwTabFrame const *const | pFrame | ||
) |
Definition at line 2266 of file fetab.cxx.
References IDocumentLayoutAccess::GetCurrentViewShell(), SwDoc::getIDocumentLayoutAccess(), and sw::Ring< value_type >::GetRingContainer().
Referenced by SwDoc::DeleteRowCol(), SwFEShell::DeleteTableSel(), SwTabFrame::DestroyImpl(), SwDoc::InsertCol(), SwDoc::InsertRow(), SwEditShell::MergeTable(), SwDoc::MergeTable(), SwUndoTableNdsChg::RedoImpl(), SwUndoSplitTable::RedoImpl(), SwUndoMergeTable::RedoImpl(), SwUndoSplitTable::RepeatImpl(), SwUndoMergeTable::RepeatImpl(), SwFEShell::SetColRowWidthHeight(), SwDoc::SetTabBorders(), SwDoc::SetTabCols(), SwDoc::SetTabLineStyle(), SwDoc::SetTabRows(), SwFEShell::SplitTab(), SwEditShell::SplitTable(), SwUndoTableToText::UndoImpl(), SwUndoAttrTable::UndoImpl(), SwUndoTableNdsChg::UndoImpl(), SwUndoTableMerge::UndoImpl(), SwUndoSplitTable::UndoImpl(), SwUndoMergeTable::UndoImpl(), and SwFEShell::UpdateTableStyleFormatting().
|
static |
Definition at line 74 of file fetab.cxx.
References abs(), and COLFUZZY.
Referenced by SwFEShell::GetCurMouseTabColNum(), SwFEShell::GetCurTabColNum(), and lcl_FindFrame().
|
static |
Definition at line 1833 of file fetab.cxx.
References abs(), basegfx::B2DVector::cross(), basegfx::B2DVector::getLength(), basegfx::B2DVector::scalar(), Point::X(), and Point::Y().
Referenced by lcl_ProjectOntoClosestTableFrame().
|
static |
Definition at line 1590 of file fetab.cxx.
References SwRect::Bottom(), SwRect::Contains(), SwLayoutFrame::ContainsContent(), SwFrame::FindNextCnt(), SwFrame::FindTabFrame(), SwFrameAreaDefinition::getFrameArea(), SwFrameAreaDefinition::getFramePrintArea(), SwRectFnSet::GetLeft(), SwRectFnSet::GetPos(), SwFrame::GetPrev(), SwRectFnSet::GetRight(), SwRectFnSet::GetTop(), SwFrame::GetUpper(), SwLayoutFrame::IsAnLower(), SwFrame::IsCellFrame(), SwFrame::IsInTab(), SwFrame::IsRightToLeft(), IsSame(), SwFrame::IsTabFrame(), SwRectFnSet::IsVert(), lcl_FindFrameInTab(), SwRect::Left(), SwRect::Pos(), SwRect::Right(), Point::setX(), Point::setY(), SwRect::Top(), SwRect::TopRight(), Point::X(), SwRectFnSet::XDiff(), Point::Y(), and SwRectFnSet::YDiff().
Referenced by SwFEShell::GetBox().
|
static |
Definition at line 1566 of file fetab.cxx.
References SwFrame::FindNext(), SwFrameAreaDefinition::getFrameArea(), SwLayoutFrame::IsAnLower(), SwFrame::IsLayoutFrame(), SwRect::IsNear(), lcl_FindFrameInTab(), and SwLayoutFrame::Lower().
Referenced by lcl_FindFrame(), and lcl_FindFrameInTab().
|
static |
Definition at line 1195 of file fetab.cxx.
References SwNode::GetContentNode(), IDocumentLayoutAccess::GetCurrentLayout(), SwNode::GetDoc(), SwDoc::getIDocumentLayoutAccess(), SwContentNode::getLayoutFrame(), SwPosition::GetNode(), SwTabFrame::GetTable(), SwTable::GetTabLines(), SwFrame::GetUpper(), SwFrame::IsInTab(), SwFrame::IsTabFrame(), and SwTableLines::size().
Referenced by SwFEShell::GetRowSelectionFromTop().
|
static |
Definition at line 2366 of file fetab.cxx.
References SwTableFormula::GetBoxesOfFormula(), and o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::size().
Referenced by SwFEShell::GetAutoSum().
|
static |
Definition at line 1862 of file fetab.cxx.
References SwRect::BottomLeft(), SwRect::BottomRight(), SwTabFrame::GetFollow(), SwFrameAreaDefinition::getFrameArea(), SwFrameAreaDefinition::getFramePrintArea(), Point::getX(), Point::getY(), SwFrame::IsRightToLeft(), SwFrame::IsVertical(), lcl_DistancePoint2Segment(), SwRect::Pos(), Point::setX(), Point::setY(), SwRect::TopLeft(), and SwRect::TopRight().
Referenced by SwFEShell::SelTableRowCol().