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) |
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) |
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 37 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 53 of file editutil.cxx.
|
static |
Definition at line 168 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 136 of file editutil.cxx.
References EditEngine::CreateTextObject(), EE_FEATURE_FIELD(), EE_PARA_MAX_COUNT, EE_TEXTPOS_MAX_COUNT, EMPTY_OUSTRING, ScDocument::GetEditEngine(), EditEngine::QuickInsertField(), and EditEngine::SetText().
Referenced by ScFormulaCell::CreateURLObject(), and ScGridWindow::GetEditUrl().
|
static |
Definition at line 194 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::getLocaleDataPtr(), ScDocument::GetName(), INetURLHistory::GetOrCreate(), comphelper::getProcessComponentContext(), SvxURLField::GetRepresentation(), SvxTableField::GetTab(), SfxObjectShell::GetTitle(), SvxURLField::GetURL(), svtools::LINKS, svtools::LINKSVISITED, nTab, INetURLHistory::QueryUrl(), SC_MOD, Date::SYSTEM, and TABLE.
Referenced by ScFieldEditEngine::CalcFieldValue().
tools::Rectangle ScEditUtil::GetEditArea | ( | const ScPatternAttr * | pPattern, |
bool | bForceToTop | ||
) |
Definition at line 281 of file editutil.cxx.
References aCellPos, ATTR_HOR_JUSTIFY(), ATTR_INDENT(), ATTR_MARGIN(), ATTR_MERGE(), ATTR_STACKED(), ATTR_VER_JUSTIFY(), ATTR_VERTICAL_ASIAN(), aZoomX, aZoomY, bInPrintTwips, SvxMarginItem::GetBottomMargin(), ScMergeAttr::GetColMerge(), ScDocument::GetColWidth(), ScPatternAttr::GetFont(), ScPatternAttr::GetItem(), SvxMarginItem::GetLeftMargin(), OutputDevice::GetMapMode(), ScDocument::GetNeededSize(), ScDocument::GetPattern(), SvxMarginItem::GetRightMargin(), ScDocument::GetRowHeight(), ScMergeAttr::GetRowMerge(), ScDocument::GetScaledRowHeight(), OutputDevice::GetTextHeight(), SvxMarginItem::GetTopMargin(), i, ScDocument::IsLayoutRTL(), nCol, nPPTX, nPPTY, nRow, nTab, nTopMargin, pDev, pDoc, Point, SC_AUTOCOL_BLACK, SC_MOD, OutputDevice::SetFont(), and OutputDevice::SetMapMode().
Referenced by ScOutputData::DrawEditAsianVertical(), ScOutputData::DrawEditStacked(), ScOutputData::DrawEditStandard(), and ScViewData::SetEditEngine().
|
static |
Retrieves string with paragraphs delimited by new lines ('
').
Definition at line 101 of file editutil.cxx.
References lcl_GetDelimitedString().
Referenced by ScInputHandler::DataChanged(), ScAutoNameCache::GetNameOccurrences(), GetString(), IMPL_LINK_NOARG(), and ScInputHandler::NotifyChange().
|
static |
Definition at line 106 of file editutil.cxx.
References lcl_GetDelimitedString().
|
static |
Retrieves string with paragraphs delimited by spaces.
Definition at line 97 of file editutil.cxx.
References lcl_GetDelimitedString().
Referenced by ScViewFunc::EnterData(), GetEditText(), and 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 111 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 62 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 147 of file editutil.cxx.
References ATTR_FONT(), ATTR_FONT_COLOR(), ATTR_FONT_HEIGHT(), ATTR_FONT_WEIGHT(), EE_CHAR_COLOR(), EE_CHAR_FONTHEIGHT(), EE_CHAR_FONTINFO(), EE_CHAR_WEIGHT(), SfxSetItem::GetItemSet(), SfxItemSet::GetItemState(), i, EditTextObject::RemoveCharAttribs(), and SAL_N_ELEMENTS.
Referenced by ScAttrArray::RemoveCellCharAttribs(), and ScColumn::RemoveEditTextCharAttribs().
|
private |
Definition at line 43 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().
|
private |
Definition at line 49 of file editutil.hxx.
Referenced by GetEditArea().
|
private |
Definition at line 40 of file editutil.hxx.
Referenced by GetEditArea().
|
private |
Definition at line 45 of file editutil.hxx.
Referenced by GetEditArea().
|
private |
Definition at line 46 of file editutil.hxx.
Referenced by GetEditArea().
|
private |
Definition at line 41 of file editutil.hxx.
Referenced by GetEditArea().
|
private |
Definition at line 42 of file editutil.hxx.
Referenced by GetCellFieldValue(), and GetEditArea().
|
private |
Definition at line 44 of file editutil.hxx.
Referenced by GetEditArea().
|
private |
Definition at line 39 of file editutil.hxx.
Referenced by GetEditArea(), and GetString().