LibreOffice Module sc (master) 1
|
#include <editutil.hxx>
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) |
tools::Long | GetIndent (const ScPatternAttr *pPattern) const |
void | GetMargins (const ScPatternAttr *pPattern, tools::Long &nLeftMargin, tools::Long &nTopMargin, tools::Long &nRightMargin, tools::Long &BottomMargin) const |
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< EditTextObject > | CreateURLObjectFromURL (ScDocument &rDoc, const OUString &rURL, const OUString &rText) |
static void | RemoveCharAttribs (EditTextObject &rEditText, const ScPatternAttr &rAttr) |
static std::unique_ptr< EditTextObject > | Clone (const EditTextObject &rSrc, ScDocument &rDestDoc) |
static OUString | GetCellFieldValue (const SvxFieldData &rFieldData, const ScDocument *pDoc, std::optional< Color > *ppTextColor, std::optional< FontLineStyle > *ppFldLineStyle) |
Private Attributes | |
ScDocument * | pDoc |
SCCOL | nCol |
SCROW | nRow |
SCTAB | nTab |
Point | aCellPos |
VclPtr< OutputDevice > | pDev |
double | nPPTX |
double | nPPTY |
Fraction | aZoomX |
Fraction | aZoomY |
bool | bInPrintTwips |
Definition at line 36 of file editutil.hxx.
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 56 of file editutil.cxx.
|
static |
Definition at line 189 of file editutil.cxx.
References EditEngine::CreateTextObject(), EditEngine::GetControlWord(), ScDocument::GetEditEngine(), EditTextObject::HasOnlineSpellErrors(), EditEngine::SetControlWord(), and EditEngine::SetText().
Referenced by ScRefCellValue::commit(), and ScColumn::CopyCellToDocument().
|
static |
Definition at line 144 of file editutil.cxx.
References EditEngine::CreateTextObject(), EE_FEATURE_FIELD(), EE_PARA_MAX_COUNT, EE_TEXTPOS_MAX_COUNT, ScDocument::GetEditEngine(), EditEngine::QuickInsertField(), and EditEngine::SetText().
Referenced by ScFormulaCell::CreateURLObject(), and ScGridWindow::GetEditUrl().
|
static |
Definition at line 215 of file editutil.cxx.
References aName, aURL, condformat::entry::DATE, ScGlobal::eLnge, SvxFieldData::GetClassId(), LocaleDataWrapper::getDate(), SfxObjectShell::getDocProperties(), ScDocument::GetDocumentShell(), SvxURLField::GetFormat(), ScDocument::GetFormatTable(), SvxExtTimeField::GetFormatted(), ScGlobal::getLocaleData(), ScDocument::GetName(), INetURLHistory::GetOrCreate(), comphelper::getProcessComponentContext(), SvxURLField::GetRepresentation(), SvxTableField::GetTab(), SfxObjectShell::GetTitle(), SvxURLField::GetURL(), svtools::LINKS, svtools::LINKSVISITED, nTab, pDoc, INetURLHistory::QueryUrl(), SC_MOD, Date::SYSTEM, and TABLE.
Referenced by ScFieldEditEngine::CalcFieldValue().
tools::Rectangle ScEditUtil::GetEditArea | ( | const ScPatternAttr * | pPattern, |
bool | bForceToTop | ||
) |
Definition at line 338 of file editutil.cxx.
References aCellPos, Point::AdjustX(), Point::AdjustY(), ATTR_MERGE(), ATTR_STACKED(), ATTR_VER_JUSTIFY(), ATTR_VERTICAL_ASIAN(), aZoomX, aZoomY, bInPrintTwips, ScPatternAttr::fillFontOnly(), ScMergeAttr::GetColMerge(), ScDocument::GetColWidth(), GetIndent(), ScPatternAttr::GetItem(), GetMargins(), ScDocument::GetNeededSize(), ScDocument::GetPattern(), ScDocument::GetRowHeight(), ScMergeAttr::GetRowMerge(), ScDocument::GetScaledRowHeight(), i, comphelper::LibreOfficeKit::isActive(), ScDocument::IsLayoutRTL(), nBottomMargin, nCol, nLeftMargin, nPPTX, nPPTY, nRightMargin, nRow, nTab, nTopMargin, pDev, pDoc, and SC_MOD.
Referenced by ScOutputData::DrawEditAsianVertical(), ScOutputData::DrawEditStacked(), ScOutputData::DrawEditStandard(), and ScViewData::SetEditEngine().
tools::Long ScEditUtil::GetIndent | ( | const ScPatternAttr * | pPattern | ) | const |
Definition at line 305 of file editutil.cxx.
References ATTR_HOR_JUSTIFY(), ATTR_INDENT(), bInPrintTwips, ScPatternAttr::GetItem(), ScDocument::GetPattern(), nCol, nPPTX, nRow, nTab, and pDoc.
Referenced by GetEditArea(), and lcl_GetEditAreaTLOffset().
void ScEditUtil::GetMargins | ( | const ScPatternAttr * | pPattern, |
tools::Long & | nLeftMargin, | ||
tools::Long & | nTopMargin, | ||
tools::Long & | nRightMargin, | ||
tools::Long & | BottomMargin | ||
) | const |
Definition at line 322 of file editutil.cxx.
References ATTR_MARGIN(), bInPrintTwips, SvxMarginItem::GetBottomMargin(), ScPatternAttr::GetItem(), SvxMarginItem::GetLeftMargin(), ScDocument::GetPattern(), SvxMarginItem::GetRightMargin(), SvxMarginItem::GetTopMargin(), nBottomMargin, nCol, nLeftMargin, nPPTX, nPPTY, nRightMargin, nRow, nTab, nTopMargin, and pDoc.
Referenced by GetEditArea(), and lcl_GetEditAreaTLOffset().
|
static |
Retrieves string with paragraphs delimited by new lines ('
').
Definition at line 109 of file editutil.cxx.
References lcl_GetDelimitedString().
Referenced by ScInputHandler::DataChanged(), ScViewFunc::EnterData(), GetEditText(), ScAutoNameCache::GetNameOccurrences(), GetString(), IMPL_LINK_NOARG(), and ScInputHandler::NotifyChange().
|
static |
Definition at line 114 of file editutil.cxx.
References lcl_GetDelimitedString().
|
static |
Retrieves string with paragraphs delimited by spaces.
Definition at line 105 of file editutil.cxx.
References lcl_GetDelimitedString().
Referenced by ScHeaderFooterTextObj::getString().
|
static |
Retrieves string with paragraphs delimited by new lines ('
').
pDoc | If 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 119 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().
|
static |
Definition at line 65 of file editutil.cxx.
References formula::FormulaCompiler::GetNativeSymbol(), and ocSep.
Referenced by ScInputHandler::ImplCreateEditEngine(), ScTextWnd::InitEditEngine(), ScInputHandler::InitRangeFinder(), and ScPrintFunc::MakeEditEngine().
|
static |
Definition at line 155 of file editutil.cxx.
References ATTR_CJK_FONT(), ATTR_CJK_FONT_HEIGHT(), ATTR_CJK_FONT_POSTURE(), ATTR_CJK_FONT_WEIGHT(), ATTR_CTL_FONT(), ATTR_CTL_FONT_HEIGHT(), ATTR_CTL_FONT_POSTURE(), ATTR_CTL_FONT_WEIGHT(), ATTR_FONT(), ATTR_FONT_COLOR(), ATTR_FONT_CONTOUR(), ATTR_FONT_CROSSEDOUT(), ATTR_FONT_HEIGHT(), ATTR_FONT_POSTURE(), ATTR_FONT_SHADOWED(), ATTR_FONT_UNDERLINE(), ATTR_FONT_WEIGHT(), EE_CHAR_COLOR(), EE_CHAR_FONTHEIGHT(), EE_CHAR_FONTHEIGHT_CJK(), EE_CHAR_FONTHEIGHT_CTL(), EE_CHAR_FONTINFO(), EE_CHAR_FONTINFO_CJK(), EE_CHAR_FONTINFO_CTL(), EE_CHAR_ITALIC(), EE_CHAR_ITALIC_CJK(), EE_CHAR_ITALIC_CTL(), EE_CHAR_OUTLINE(), EE_CHAR_SHADOW(), EE_CHAR_STRIKEOUT(), EE_CHAR_UNDERLINE(), EE_CHAR_WEIGHT(), EE_CHAR_WEIGHT_CJK(), EE_CHAR_WEIGHT_CTL(), ScPatternAttr::GetItemSet(), SfxItemSet::GetItemState(), i, EditTextObject::RemoveCharAttribs(), rSet, and SAL_N_ELEMENTS.
Referenced by ScAttrArray::RemoveCellCharAttribs(), and ScColumn::RemoveEditTextCharAttribs().
|
private |
Definition at line 42 of file editutil.hxx.
Referenced by GetEditArea().
|
private |
Definition at line 46 of file editutil.hxx.
Referenced by GetEditArea().
|
private |
Definition at line 47 of file editutil.hxx.
Referenced by GetEditArea().
|
private |
Definition at line 48 of file editutil.hxx.
Referenced by GetEditArea(), GetIndent(), and GetMargins().
|
private |
Definition at line 39 of file editutil.hxx.
Referenced by GetEditArea(), GetIndent(), and GetMargins().
|
private |
Definition at line 44 of file editutil.hxx.
Referenced by GetEditArea(), GetIndent(), and GetMargins().
|
private |
Definition at line 45 of file editutil.hxx.
Referenced by GetEditArea(), and GetMargins().
|
private |
Definition at line 40 of file editutil.hxx.
Referenced by GetEditArea(), GetIndent(), and GetMargins().
|
private |
Definition at line 41 of file editutil.hxx.
Referenced by GetCellFieldValue(), GetEditArea(), GetIndent(), and GetMargins().
|
private |
Definition at line 43 of file editutil.hxx.
Referenced by GetEditArea().
|
private |
Definition at line 38 of file editutil.hxx.
Referenced by GetCellFieldValue(), GetEditArea(), GetIndent(), GetMargins(), and GetString().