25#include <editeng/editeng.hxx>
27#include <tools/datetime.hxx>
70 ScDocument& rDoc,
const OUString& rURL,
const OUString& rText );
77 const SvxFieldData& rFieldData,
const ScDocument*
pDoc, std::optional<Color>* ppTextColor, std::optional<FontLineStyle>* ppFldLineStyle );
81 const Point& rCellPos,
128 bool bDeleteEnginePool =
false );
135 void SetDefaults(
const SfxItemSet& rDefaults,
bool bRememberCopy =
true );
138 void SetDefaults( std::unique_ptr<SfxItemSet> pDefaults );
152 const SfxItemSet& rDefaults,
bool bRememberCopy =
true );
155 void SetTextCurrentDefaults(
const OUString& rText );
157 void SetTextNewDefaults(
const OUString& rText,
162 void RemoveParaAttribs();
166 void RepeatDefaults();
179 bool bDeleteEnginePool =
false);
184 virtual OUString
CalcFieldValue(
const SvxFieldItem& rField, sal_Int32 nPara, sal_Int32 nPos, std::optional<Color>& rTxtColor, std::optional<Color>& rFldColor, std::optional<FontLineStyle>& rFldLineStyle )
override;
221 virtual OUString
CalcFieldValue(
const SvxFieldItem& rField, sal_Int32 nPara, sal_Int32 nPos, std::optional<Color>& rTxtColor, std::optional<Color>& rFldColor, std::optional<FontLineStyle>& rFldLineStyle )
override;
virtual OUString CalcFieldValue(const SvxFieldItem &rField, sal_Int32 nPara, sal_Int32 nPos, std::optional< Color > &rTxtColor, std::optional< Color > &rFldColor, std::optional< FontLineStyle > &rFldLineStyle)
void SetText(const OUString &rStr)
virtual bool FieldClicked(const SvxFieldItem &rField)
const SfxItemSet & GetAttribs() const
std::unique_ptr< SfxItemSet > pEditAttrs
ScEditAttrTester(ScEditEngineDefaulter *pEng)
bool NeedsCellAttr() const
static void RemoveCharAttribs(EditTextObject &rEditText, const ScPatternAttr &rAttr)
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)
void GetMargins(const ScPatternAttr *pPattern, tools::Long &nLeftMargin, tools::Long &nTopMargin, tools::Long &nRightMargin, tools::Long &BottomMargin) const
static OUString GetCellFieldValue(const SvxFieldData &rFieldData, const ScDocument *pDoc, std::optional< Color > *ppTextColor, std::optional< FontLineStyle > *ppFldLineStyle)
static std::unique_ptr< EditTextObject > CreateURLObjectFromURL(ScDocument &rDoc, const OUString &rURL, const OUString &rText)
static OUString ModifyDelimiters(const OUString &rOld)
tools::Rectangle GetEditArea(const ScPatternAttr *pPattern, bool bForceToTop)
tools::Long GetIndent(const ScPatternAttr *pPattern) const
static OUString GetMultilineString(const EditEngine &rEngine)
Retrieves string with paragraphs delimited by new lines (' ').
VclPtr< OutputDevice > pDev
static std::unique_ptr< EditTextObject > Clone(const EditTextObject &rSrc, ScDocument &rDestDoc)
static OUString GetSpaceDelimitedString(const EditEngine &rEngine)
Retrieves string with paragraphs delimited by spaces.
static SC_DLLPUBLIC OUString GetString(const EditTextObject &rEditText, const ScDocument *pDoc)
Retrieves string with paragraphs delimited by new lines (' ').
virtual ~ScEnginePoolHelper()
rtl::Reference< SfxItemPool > pEnginePool
ScEnginePoolHelper(SfxItemPool *pEnginePool, bool bDeleteEnginePool)
void SetExecuteURL(bool bSet)
ScNoteEditEngine(SfxItemPool *pEnginePool, SfxItemPool *pTextObjectPool)
constexpr OUStringLiteral aData