LibreOffice Module sw (master) 1
Classes | Macros | Typedefs | Functions | Variables
unotext.cxx File Reference
#include <stdlib.h>
#include <memory>
#include <set>
#include <com/sun/star/drawing/XDrawPageSupplier.hpp>
#include <com/sun/star/text/ControlCharacter.hpp>
#include <com/sun/star/text/TableColumnSeparator.hpp>
#include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
#include <com/sun/star/lang/WrappedTargetRuntimeException.hpp>
#include <svl/listener.hxx>
#include <vcl/svapp.hxx>
#include <comphelper/profilezone.hxx>
#include <comphelper/sequence.hxx>
#include <comphelper/servicehelper.hxx>
#include <cppuhelper/exc_hlp.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <sal/log.hxx>
#include <comphelper/diagnose_ex.hxx>
#include <cmdid.h>
#include <unotextbodyhf.hxx>
#include <unotext.hxx>
#include <unotextrange.hxx>
#include <unotextcursor.hxx>
#include <unosection.hxx>
#include <unobookmark.hxx>
#include <unorefmark.hxx>
#include <unoport.hxx>
#include <unotbl.hxx>
#include <unoidx.hxx>
#include <unocoll.hxx>
#include <unoframe.hxx>
#include <unofield.hxx>
#include <unometa.hxx>
#include <unomap.hxx>
#include <unoprnms.hxx>
#include <unoparagraph.hxx>
#include <unocrsrhelper.hxx>
#include <docary.hxx>
#include <doc.hxx>
#include <IDocumentRedlineAccess.hxx>
#include <IDocumentUndoRedo.hxx>
#include <bookmark.hxx>
#include <redline.hxx>
#include <swundo.hxx>
#include <section.hxx>
#include <fmtanchr.hxx>
#include <fmtcntnt.hxx>
#include <ndtxt.hxx>
#include <SwRewriter.hxx>
#include <strings.hrc>
#include <frameformats.hxx>
#include <unocontentcontrol.hxx>
Include dependency graph for unotext.cxx:

Go to the source code of this file.

Classes

class  SwXText::Impl
 
class  SwXHeadFootText::Impl
 

Macros

#define COL_POS_FUZZY   2
 

Typedefs

typedef uno::Sequence< text::TableColumnSeparator > TableColumnSeparators
 

Functions

static bool isGraphicNode (const SwFrameFormat *pFrameFormat)
 
static bool IsAtParaMatch (const SwPaM &rAnchorCheckPam, const SwFormatAnchor &rAnchor)
 Determines if the at-para rAnchor is anchored at the start or end of rAnchorCheckPam. More...
 
static bool lcl_SimilarPosition (const sal_Int32 nPos1, const sal_Int32 nPos2)
 
static void lcl_ApplyRowProperties (uno::Sequence< beans::PropertyValue > const &rRowProperties, uno::Any const &rRow, TableColumnSeparators &rRowSeparators)
 
static sal_Int32 lcl_GetLeftPos (sal_Int32 nCell, TableColumnSeparators const &rRowSeparators)
 
static void lcl_ApplyCellProperties (const sal_Int32 nLeftPos, const uno::Sequence< beans::PropertyValue > &rCellProperties, const uno::Reference< uno::XInterface > &xCell, std::vector< VerticallyMergedCell > &rMergedCells)
 
static void lcl_MergeCells (std::vector< VerticallyMergedCell > &rMergedCells)
 

Variables

constexpr OUStringLiteral cInvalidObject = u"this object is invalid"
 

Macro Definition Documentation

◆ COL_POS_FUZZY

#define COL_POS_FUZZY   2

Definition at line 1871 of file unotext.cxx.

Typedef Documentation

◆ TableColumnSeparators

typedef uno::Sequence< text::TableColumnSeparator > TableColumnSeparators

Definition at line 2097 of file unotext.cxx.

Function Documentation

◆ IsAtParaMatch()

static bool IsAtParaMatch ( const SwPaM rAnchorCheckPam,
const SwFormatAnchor rAnchor 
)
static

Determines if the at-para rAnchor is anchored at the start or end of rAnchorCheckPam.

Definition at line 1498 of file unotext.cxx.

References SwPaM::End(), SwFormatAnchor::GetAnchorId(), SwFormatAnchor::GetAnchorNode(), SwPosition::GetContentIndex(), SwPosition::GetNode(), SwNode::GetTextNode(), SwTextNode::Len(), and SwPaM::Start().

Referenced by SwXText::convertToTextFrame().

◆ isGraphicNode()

static bool isGraphicNode ( const SwFrameFormat pFrameFormat)
static

◆ lcl_ApplyCellProperties()

static void lcl_ApplyCellProperties ( const sal_Int32  nLeftPos,
const uno::Sequence< beans::PropertyValue > &  rCellProperties,
const uno::Reference< uno::XInterface > &  xCell,
std::vector< VerticallyMergedCell > &  rMergedCells 
)
static

Definition at line 2131 of file unotext.cxx.

References lcl_SimilarPosition(), SAL_WARN_IF, TOOLS_WARN_EXCEPTION, u, and uno::Any::Value.

Referenced by SwXText::convertToTable().

◆ lcl_ApplyRowProperties()

static void lcl_ApplyRowProperties ( uno::Sequence< beans::PropertyValue > const &  rRowProperties,
uno::Any const &  rRow,
TableColumnSeparators rRowSeparators 
)
static

Definition at line 2100 of file unotext.cxx.

References uno::Any::Value.

Referenced by SwXText::convertToTable().

◆ lcl_GetLeftPos()

static sal_Int32 lcl_GetLeftPos ( sal_Int32  nCell,
TableColumnSeparators const &  rRowSeparators 
)
static

Definition at line 2121 of file unotext.cxx.

Referenced by SwXText::convertToTable().

◆ lcl_MergeCells()

static void lcl_MergeCells ( std::vector< VerticallyMergedCell > &  rMergedCells)
static

Definition at line 2198 of file unotext.cxx.

References SAL_WARN, and UNO_NAME_ROW_SPAN.

Referenced by SwXText::convertToTable().

◆ lcl_SimilarPosition()

static bool lcl_SimilarPosition ( const sal_Int32  nPos1,
const sal_Int32  nPos2 
)
static

Definition at line 1873 of file unotext.cxx.

References abs(), and COL_POS_FUZZY.

Referenced by lcl_ApplyCellProperties().

Variable Documentation

◆ cInvalidObject

constexpr OUStringLiteral cInvalidObject = u"this object is invalid"
constexpr