28#include <com/sun/star/i18n/CollatorOptions.hpp>
30#include <rtl/ustring.hxx>
52#define SC_COLLATOR_IGNORES css::i18n::CollatorOptions::CollatorOptions_IGNORE_CASE
76#define MINDOUBLE 1.7e-307
77#define MAXDOUBLE 1.7e307
96#define STD_ROWHEIGHT_DIFF 23
104#define OLE_STD_CELLS_X 4
105#define OLE_STD_CELLS_Y 5
224#define SC_INDENT_STEP 200
498 class XOrdinalSuffix;
502 class TransliterationWrapper;
506 class SharedStringPoolPurge;
533 static std::atomic<css::lang::Locale*>
pLocale;
578 static void OpenURL(
const OUString& rURL,
const OUString& rTarget,
bool bIgnoreSettings =
false);
584 std::u16string_view rTabName );
624 const sal_uInt16 nWhich );
632 {
return ( c >=
'a' && c <=
'z' ) ? ( c-
'a'+
'A' ) : c; }
641 std::u16string_view rTokenList, std::u16string_view rToken,
643 bool bForceSep =
false );
677 static rtl_TextEncoding
GetCharsetValue( std::u16string_view rCharSet );
714 std::u16string_view rPlaceholder,
715 const OUString& rReplacement );
922 void SetAreas ( std::unique_ptr<
ScArea[]> pAreas, sal_uInt16 nCount );
size_t SCSIZE
size_t typedef to be able to find places where code was changed from USHORT to size_t and is used to ...
List of spreadsheet functions.
Stores spreadsheet functions in categories, including a cumulative ('All') category and makes them ac...
static constexpr sal_Unicode cListDelimiter
static SC_DLLPUBLIC double nScreenPPTX
Horizontal pixel per twips factor.
static rtl_TextEncoding GetCharsetValue(std::u16string_view rCharSet)
static SC_DLLPUBLIC bool bThreadedGroupCalcInProgress
Calc's threaded group calculation is in progress.
static SC_DLLPUBLIC sal_uInt16 GetStandardRowHeight()
static std::unique_ptr< ScFunctionList > xStarCalcFunctionList
static void InitTextHeight(const SfxItemPool *pPool)
static SC_DLLPUBLIC OUString GetDocTabName(std::u16string_view rFileName, std::u16string_view rTabName)
static std::atomic<::utl::TransliterationWrapper * > pTransliteration
static const sal_Unicode * UnicodeStrChr(const sal_Unicode *pStr, sal_Unicode c)
strchr() functionality on unicode, as long as we need it for FormulaToken etc.
static SC_DLLPUBLIC sal_uInt16 nStdRowHeight
static LanguageType GetEditDefaultLanguage()
static css::lang::Locale & GetLocale()
static SvxBrushItem * GetEmptyBrushItem()
static SC_DLLPUBLIC bool IsQuoted(std::u16string_view rString, sal_Unicode cQuote)
Returns true, if the first and last character of the string is cQuote.
static SC_DLLPUBLIC CollatorWrapper & GetCollator()
case-insensitive collator
static LegacyFuncCollection * GetLegacyFuncCollection()
static SC_DLLPUBLIC OUString ReplaceOrAppend(const OUString &rString, std::u16string_view rPlaceholder, const OUString &rReplacement)
Replaces the first occurrence of rPlaceholder in rString with rReplacement, or if rPlaceholder is not...
static std::atomic<::utl::TransliterationWrapper * > pCaseTransliteration
static SvxBrushItem * GetButtonBrushItem()
static OUString aStrClipDocName
static SC_DLLPUBLIC sal_uInt32 GetStandardFormat(SvNumberFormatter &, sal_uInt32 nFormat, SvNumFormatType nType)
::tools::Long nLastColWidthExtra
static std::unique_ptr< ScAutoFormat > xAutoFormat
::utl::TransliterationWrapper & GetCaseTransliteration()
static SC_DLLPUBLIC double nScreenPPTY
Vertical pixel per twips factor.
static SvNumberFormatter * GetEnglishFormatter()
a "ReadOnly" formatter for UNO/XML export
static std::optional< CalendarWrapper > oCalendar
static std::atomic< CollatorWrapper * > pCaseCollator
static void ResetFunctionList()
static SC_DLLPUBLIC void SetSearchItem(const SvxSearchItem &rNew)
static void OpenURL(const OUString &rURL, const OUString &rTarget, bool bIgnoreSettings=false)
Open the specified URL.
static std::atomic< LegacyFuncCollection * > pLegacyFuncCollection
static OUString GetOrdinalSuffix(sal_Int32 nNumber)
Obtain the ordinal suffix for a number according to the system locale.
static bool IsSystemRTL()
static SC_DLLPUBLIC ::utl::TransliterationWrapper & GetTransliteration()
static std::unique_ptr< ScUserList > xUserList
static SC_DLLPUBLIC void EraseQuotes(OUString &rString, sal_Unicode cQuote, bool bUnescapeEmbedded=true)
Erases the character cQuote from rString, if it exists at beginning AND end.
static const InputHandlerFunctionNames & GetInputHandlerFunctionNames()
static double ConvertStringToValue(const OUString &rStr, const ScCalcConfig &rConfig, FormulaError &rError, FormulaError nStringNoValueError, SvNumberFormatter *pFormatter, SvNumFormatType &rCurFmtType)
Convert string content to numeric value.
static void SetUserList(const ScUserList *pNewList)
static InputHandlerFunctionNames maInputHandlerFunctionNames
static SC_DLLPUBLIC LanguageType eLnge
static std::unique_ptr< ScFieldEditEngine > xFieldEditEngine
static OUString GetLongErrorString(FormulaError nErrNumber)
static SC_DLLPUBLIC ScAutoFormat * GetOrCreateAutoFormat()
static bool EETextObjEqual(const EditTextObject *pObj1, const EditTextObject *pObj2)
static SC_DLLPUBLIC OUString addToken(std::u16string_view rTokenList, std::u16string_view rToken, sal_Unicode cSep, sal_Int32 nSepCount=1, bool bForceSep=false)
Adds the string rToken to rTokenList, using a list separator character.
static SC_DLLPUBLIC sal_uInt16 GetScriptedWhichID(SvtScriptType nScriptType, sal_uInt16 nWhich)
Map ATTR_((CJK|CTL)_)?FONT_... to proper WhichIDs.
static SC_DLLPUBLIC ScUnoAddInCollection * GetAddInCollection()
static SC_DLLPUBLIC sal_Int32 FindUnquoted(const OUString &rString, sal_Unicode cChar, sal_Int32 nStart=0)
Finds an unquoted instance of cChar in rString, starting at offset nStart.
static ScFunctionList * GetStarCalcFunctionList()
static std::unique_ptr< SvxBrushItem > xButtonBrushItem
static std::unique_ptr< SvNumberFormatter > xEnglishFormatter
static OUString GetCharsetString(rtl_TextEncoding eVal)
static SC_DLLPUBLIC OUString GetAbsDocName(const OUString &rFileName, const SfxObjectShell *pShell)
static SC_DLLPUBLIC const LocaleDataWrapper & getLocaleData()
static std::optional< SvtSysLocale > oSysLocale
static std::atomic< ScUnoAddInCollection * > pAddInCollection
static CollatorWrapper & GetCaseCollator()
case-sensitive collator
static bool HasStarCalcFunctionList()
static OUString GetErrorString(FormulaError nErrNumber)
static ScFunctionMgr * GetStarCalcFunctionMgr()
static bool HasAttrChanged(const SfxItemSet &rNewAttrs, const SfxItemSet &rOldAttrs, const sal_uInt16 nWhich)
static std::atomic< css::lang::Locale * > pLocale
static SC_DLLPUBLIC void AddQuotes(OUString &rString, sal_Unicode cQuote, bool bEscapeEmbedded=true)
Inserts the character cQuote at beginning and end of rString.
static ScFieldEditEngine & GetStaticFieldEditEngine()
A static instance of ScFieldEditEngine not capable of resolving document specific fields,...
static sc::SharedStringPoolPurge & GetSharedStringPoolPurge()
static tools::SvRef< ScDocShell > xDrawClipDocShellRef
static std::unique_ptr< SvxSearchItem > xSearchItem
static sal_uInt16 nDefFontHeight
static ScUnitConverter * GetUnitConverter()
static std::atomic< CollatorWrapper * > pCollator
static sal_Unicode ToUpperAlpha(sal_Unicode c)
static SC_DLLPUBLIC ScUserList * GetUserList()
static std::unique_ptr< ScFunctionMgr > xStarCalcFunctionMgr
static css::uno::Reference< css::i18n::XOrdinalSuffix > xOrdinalSuffix
static std::atomic< ScUnitConverter * > pUnitConverter
static SC_DLLPUBLIC SvtScriptType GetDefaultScriptType()
static SC_DLLPUBLIC void AddLanguage(SfxItemSet &rSet, const SvNumberFormatter &rFormatter)
Adds a language item to the item set, if the number format item contains a language that differs from...
static void SetClipDocName(const OUString &rNew)
static SC_DLLPUBLIC const CharClass & getCharClass()
static const OUString & GetClipDocName()
static SC_DLLPUBLIC ::tools::Long nLastRowHeightExtra
static CalendarWrapper & GetCalendar()
static SC_DLLPUBLIC void Clear()
static SC_DLLPUBLIC ScAutoFormat * GetAutoFormat()
static std::atomic< sc::SharedStringPoolPurge * > pSharedStringPoolPurge
static SC_DLLPUBLIC const SvxSearchItem & GetSearchItem()
static bool ShouldOpenURL()
Whether the URL can be opened according to current security options (Click/Ctrl-Click)
static void ClearAutoFormat()
static SC_DLLPUBLIC void Init()
static bool CheckWidthInvalidate(bool &bNumFormatChanged, const SfxItemSet &rNewAttrs, const SfxItemSet &rOldAttrs)
static std::unique_ptr< SvxBrushItem > xEmptyBrushItem
Collection of user-defined sort lists.
SfxViewShell * pScActiveViewShell
const sal_Unicode CHAR_RLM
constexpr sal_Unicode cParenthesesReplacement
constexpr sal_Int32 MAX_COL_WIDTH
constexpr SdrLayerID SC_LAYER_HIDDEN(4)
constexpr OUStringLiteral STRING_SCAPP
constexpr SdrLayerID SC_LAYER_FRONT(0)
const sal_Unicode CHAR_NBHY
constexpr auto TWIPS_PER_CHAR
constexpr SdrLayerID SC_LAYER_INTERN(2)
const sal_Unicode CHAR_SHY
constexpr OUStringLiteral SC_TEXT_CSV_FILTER_NAME
constexpr OUStringLiteral STRING_STANDARD
sal_uInt16 nScClickMouseModifier
@ SPARKLINES
Sheet / outlining (grouping) information.
@ NOCAPTIONS
Sparklines in a cell.
@ SPECIAL_BOOLEAN
Internal use only (copy from clip): do not delete existing cell contents when pasting notes.
@ EDITATTR
Drawing objects.
@ AUTOFILL
Copy flags for auto/series fill functions: do not touch notes and drawing objects.
@ ADDNOTES
Internal use only (undo etc.): do not copy/delete caption objects of cell notes.
@ ATTRIB
Internal use only (d&d undo): do not delete caption objects of cell notes.
constexpr sal_Int32 MAX_EXTRA_WIDTH
const sal_Unicode CHAR_NBSP
const sal_Unicode CHAR_LRM
ScGetDBSelection
For ScDBFunc::GetDBData()
@ Keep
Keep selection as is, expand to used data area if no selection.
@ RowDown
If only one row or portion thereof is selected, shrink row to used data columns and select further ro...
@ ShrinkToUsedData
Shrink selection to actually used data area within the selection.
@ ForceMark
Behave as if the range corresponding to a ScDBData area was selected, for API use.
@ StartListening
If set, cloned formula cells will start to listen to the document.
@ NoMakeAbsExternal
If set, absolute refs will not transformed to external references.
@ NamesToLocal
If set, global named expressions will be converted to sheet-local named expressions.
const sal_Unicode CHAR_ZWSP
constexpr SdrLayerID SC_LAYER_BACK(1)
const sal_Unicode CHAR_NNBSP
@ SUBTOTAL_FUNC_SELECTION_COUNT
constexpr SdrLayerID SC_LAYER_CONTROLS(3)
sal_uInt16 nScFillModeMouseModifier
constexpr sal_Int32 STD_EXTRA_WIDTH
const sal_Unicode CHAR_WJ
@ SC_DB_AUTOFILTER
force use of sheet-local instead of document global anonymous range
@ SC_DB_IMPORT
create "Importx" (if necessary)
@ SC_DB_MAKE
create "untitled" (if necessary)
constexpr sal_Int32 MAX_ROW_HEIGHT
constexpr sal_Int32 STD_COL_WIDTH
constexpr sal_Int32 MAX_EXTRA_HEIGHT
constexpr auto toTwips(N number, Length from)
constexpr Point convert(const Point &rPoint, o3tl::Length eFrom, o3tl::Length eTo)
CAUTION! The following defines must be in the same namespace as the respective type.
constexpr ::tools::Long TwipsToEvenHMM(::tools::Long nTwips)
Configuration options for formula interpreter.
ScConsolidateParam & operator=(const ScConsolidateParam &r)
sal_uInt16 nDataAreaCount
bool operator==(const ScConsolidateParam &r) const
std::unique_ptr< ScArea[]> pDataAreas
void SetAreas(std::unique_ptr< ScArea[]> pAreas, sal_uInt16 nCount)
bool operator==(const ScImportParam &r) const
ScImportParam & operator=(const ScImportParam &r)
std::set< ScTypedStrData, ScTypedStrData::LessCaseSensitive > ScTypedCaseStrSet