LibreOffice Module sc (master)  1
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
ScEditUtil Class Reference

#include <editutil.hxx>

Collaboration diagram for ScEditUtil:
[legend]

Public Member Functions

 ScEditUtil (ScDocument *pDocument, SCCOL nX, SCROW nY, SCTAB nZ, const Point &rCellPos, OutputDevice *pDevice, double nScaleX, double nScaleY, const Fraction &rX, const Fraction &rY, bool bPrintTwips=false)
 
tools::Rectangle GetEditArea (const ScPatternAttr *pPattern, bool bForceToTop)
 

Static Public Member Functions

static OUString ModifyDelimiters (const OUString &rOld)
 
static OUString GetSpaceDelimitedString (const EditEngine &rEngine)
 Retrieves string with paragraphs delimited by spaces. More...
 
static OUString GetMultilineString (const EditEngine &rEngine)
 Retrieves string with paragraphs delimited by new lines ('
'). More...
 
static OUString GetMultilineString (const EditTextObject &rEdit)
 
static SC_DLLPUBLIC OUString GetString (const EditTextObject &rEditText, const ScDocument *pDoc)
 Retrieves string with paragraphs delimited by new lines ('
'). More...
 
static std::unique_ptr< EditTextObjectCreateURLObjectFromURL (ScDocument &rDoc, const OUString &rURL, const OUString &rText)
 
static void RemoveCharAttribs (EditTextObject &rEditText, const ScPatternAttr &rAttr)
 
static std::unique_ptr< EditTextObjectClone (const EditTextObject &rSrc, ScDocument &rDestDoc)
 
static OUString GetCellFieldValue (const SvxFieldData &rFieldData, const ScDocument *pDoc, std::optional< Color > *ppTextColor)
 

Private Attributes

ScDocumentpDoc
 
SCCOL nCol
 
SCROW nRow
 
SCTAB nTab
 
Point aCellPos
 
VclPtr< OutputDevicepDev
 
double nPPTX
 
double nPPTY
 
Fraction aZoomX
 
Fraction aZoomY
 
bool bInPrintTwips
 

Detailed Description

Definition at line 37 of file editutil.hxx.

Constructor & Destructor Documentation

ScEditUtil::ScEditUtil ( ScDocument pDocument,
SCCOL  nX,
SCROW  nY,
SCTAB  nZ,
const Point rCellPos,
OutputDevice pDevice,
double  nScaleX,
double  nScaleY,
const Fraction rX,
const Fraction rY,
bool  bPrintTwips = false 
)

Definition at line 57 of file editutil.cxx.

Member Function Documentation

std::unique_ptr< EditTextObject > ScEditUtil::Clone ( const EditTextObject rSrc,
ScDocument rDestDoc 
)
static
std::unique_ptr< EditTextObject > ScEditUtil::CreateURLObjectFromURL ( ScDocument rDoc,
const OUString &  rURL,
const OUString &  rText 
)
static
OUString ScEditUtil::GetCellFieldValue ( const SvxFieldData rFieldData,
const ScDocument pDoc,
std::optional< Color > *  ppTextColor 
)
static
tools::Rectangle ScEditUtil::GetEditArea ( const ScPatternAttr pPattern,
bool  bForceToTop 
)
OUString ScEditUtil::GetMultilineString ( const EditEngine rEngine)
static

Retrieves string with paragraphs delimited by new lines ('
').

Definition at line 105 of file editutil.cxx.

References lcl_GetDelimitedString().

Referenced by ScInputHandler::DataChanged(), ScAutoNameCache::GetNameOccurrences(), GetString(), IMPL_LINK_NOARG(), and ScInputHandler::NotifyChange().

OUString ScEditUtil::GetMultilineString ( const EditTextObject rEdit)
static

Definition at line 110 of file editutil.cxx.

References lcl_GetDelimitedString().

OUString ScEditUtil::GetSpaceDelimitedString ( const EditEngine rEngine)
static

Retrieves string with paragraphs delimited by spaces.

Definition at line 101 of file editutil.cxx.

References lcl_GetDelimitedString().

Referenced by ScViewFunc::EnterData(), GetEditText(), and ScHeaderFooterTextObj::getString().

OUString ScEditUtil::GetString ( const EditTextObject rEditText,
const ScDocument pDoc 
)
static

Retrieves string with paragraphs delimited by new lines ('
').

Parameters
pDocIf not NULL, use pDoc->GetEditEngine() to retrieve field content. If NULL, a static mutex-guarded ScFieldEditEngine is used that is not capable of resolving document specific fields; avoid.

Definition at line 115 of file editutil.cxx.

References aMutex, GetMultilineString(), ScGlobal::GetStaticFieldEditEngine(), EditTextObject::HasField(), pDoc, and EditEngine::SetText().

Referenced by ScColumn::CopyStaticToDocument(), ScTable::FillAutoSimple(), ScTable::FillSeries(), XclExpChTrCellContent::GetCellData(), ScChangeActionContent::GetStringOfCell(), ScChangeActionContent::GetValueString(), ScValidationData::IsDataValid(), lcl_GetCellContent(), ScColumn::ResolveStaticReference(), and ScChangeTrackingExportHelper::WriteEditCell().

OUString ScEditUtil::ModifyDelimiters ( const OUString &  rOld)
static
void ScEditUtil::RemoveCharAttribs ( EditTextObject rEditText,
const ScPatternAttr rAttr 
)
static

Member Data Documentation

Point ScEditUtil::aCellPos
private

Definition at line 43 of file editutil.hxx.

Referenced by GetEditArea().

Fraction ScEditUtil::aZoomX
private

Definition at line 47 of file editutil.hxx.

Referenced by GetEditArea().

Fraction ScEditUtil::aZoomY
private

Definition at line 48 of file editutil.hxx.

Referenced by GetEditArea().

bool ScEditUtil::bInPrintTwips
private

Definition at line 49 of file editutil.hxx.

Referenced by GetEditArea().

SCCOL ScEditUtil::nCol
private

Definition at line 40 of file editutil.hxx.

Referenced by GetEditArea().

double ScEditUtil::nPPTX
private

Definition at line 45 of file editutil.hxx.

Referenced by GetEditArea().

double ScEditUtil::nPPTY
private

Definition at line 46 of file editutil.hxx.

Referenced by GetEditArea().

SCROW ScEditUtil::nRow
private

Definition at line 41 of file editutil.hxx.

Referenced by GetEditArea().

SCTAB ScEditUtil::nTab
private

Definition at line 42 of file editutil.hxx.

Referenced by GetCellFieldValue(), and GetEditArea().

VclPtr<OutputDevice> ScEditUtil::pDev
private

Definition at line 44 of file editutil.hxx.

Referenced by GetEditArea().

ScDocument* ScEditUtil::pDoc
private

Definition at line 39 of file editutil.hxx.

Referenced by GetEditArea(), and GetString().


The documentation for this class was generated from the following files: