22#include <com/sun/star/i18n/BreakIterator.hpp>
23#include <com/sun/star/i18n/ScriptType.hpp>
26#include <document.hxx>
53 if (!rString.isEmpty())
56 if ( xBreakIter.is() )
58 sal_Int32 nLen = rString.getLength();
63 sal_Int16
nType = xBreakIter->getScriptType( rString,
nPos );
64 if (
nType == i18n::ScriptType::WEAK )
79 if (!rString.isEmpty())
82 if ( xBreakIter.is() )
84 sal_Int32 nLen = rString.getLength();
89 sal_Int16
nType = xBreakIter->getScriptType( rString,
nPos );
92 case i18n::ScriptType::LATIN:
93 nRet |= SvtScriptType::LATIN;
95 case i18n::ScriptType::ASIAN:
96 nRet |= SvtScriptType::ASIAN;
98 case i18n::ScriptType::COMPLEX:
99 nRet |= SvtScriptType::COMPLEX;
115 if ( nStored != SvtScriptType::UNKNOWN )
138 if ( nStored != SvtScriptType::UNKNOWN )
144 if (!pPattern)
return SvtScriptType::NONE;
187 return SvtScriptType::NONE;
195 for (
size_t i = 0,
n = rRanges.
size();
i <
n; ++
i)
202 aSet.
set(*
this, nTab, nCol, nRow1, nRow2,
true);
205 ScriptTypeAggregator aAction(*
this);
207 return aAction.getScriptType();
bool HasStringWeakCharacters(const OUString &rString)
rtl::Reference< ScPoolHelper > mxPoolHelper
SC_DLLPUBLIC bool InitColumnBlockPosition(sc::ColumnBlockPosition &rBlockPos, SCTAB nTab, SCCOL nCol)
SC_DLLPUBLIC SvtScriptType GetStringScriptType(const OUString &rString)
SC_DLLPUBLIC const css::uno::Reference< css::i18n::XBreakIterator > & GetBreakIterator()
SC_DLLPUBLIC SvtScriptType GetCellScriptType(const ScAddress &rPos, sal_uInt32 nNumberFormat, const ScRefCellValue *pCell=nullptr)
SvtScriptType GetRangeScriptType(sc::ColumnBlockPosition &rBlockPos, const ScAddress &rPos, SCROW nLength)
SC_DLLPUBLIC SvtScriptType GetScriptType(SCCOL nCol, SCROW nRow, SCTAB nTab, const ScRefCellValue *pCell=nullptr)
SC_DLLPUBLIC bool HasTable(SCTAB nTab) const
std::unique_ptr< ScScriptTypeData > pScriptTypeData
void SetScriptType(const ScAddress &rPos, SvtScriptType nType)
SC_DLLPUBLIC const SfxItemSet * GetCondResult(SCCOL nCol, SCROW nRow, SCTAB nTab, ScRefCellValue *pCell=nullptr) const
SC_DLLPUBLIC const ScPatternAttr * GetPattern(SCCOL nCol, SCROW nRow, SCTAB nTab) const
sal_uInt32 GetNumberFormat(SvNumberFormatter *) const
const SfxPoolItem & GetItem(sal_uInt16 nWhichP) const
virtual void startColumn(SCTAB nTab, SCCOL nCol)
virtual void execute(const ScAddress &rPos, SCROW nLength, bool bVal)=0
Structure that stores segments of boolean flags per column, and perform custom action on those segmen...
void executeAction(ScDocument &rDoc, Action &ac) const
void set(const ScDocument &rDoc, SCTAB nTab, SCCOL nCol, SCROW nRow, bool bVal)
Reference< XComponentContext > getProcessComponentContext()
constexpr TypedWhichId< ScCondFormatItem > ATTR_CONDITIONAL(154)
This is very similar to ScCellValue, except that it references the original value instead of copying ...
Store position data for column array storage.