32#include <svx/strings.hrc> 
   54#include <osl/diagnose.h> 
   55#include <osl/thread.hxx> 
   61#include <document.hxx> 
  100        sal_uInt64 endOfBlob = 0;
 
  101        stream.ReadUInt64( endOfBlob );
 
  103        const sal_uInt64 currentPosition = 
stream.Tell();
 
  104        const sal_uInt64 blobSize = endOfBlob - currentPosition;
 
  110            blob.
size = 
static_cast<std::size_t
>(blobSize);
 
  120        const sal_uInt64 endOfBlob = 
stream.Tell() + 
sizeof(sal_uInt64) + blob.
size;
 
  121        stream.WriteUInt64( endOfBlob );
 
  182    m_aAdjust = std::make_unique<SvxAdjustItem>(SvxAdjust::Left, 0);
 
  185    m_aStacked = std::make_unique<ScVerticalStackCell>();
 
  195    aNumFormat( rCopy.aNumFormat )
 
  222    rtl_TextEncoding eSysSet = osl_getThreadTextEncoding();
 
  224    if( eSrcSet != eSysSet && 
m_aFont->GetCharSet() == eSrcSet )
 
  264        nStrResId( rData.nStrResId ),
 
  265        bIncludeFont( rData.bIncludeFont ),
 
  266        bIncludeJustify( rData.bIncludeJustify ),
 
  267        bIncludeFrame( rData.bIncludeFrame ),
 
  268        bIncludeBackground( rData.bIncludeBackground ),
 
  269        bIncludeValueFormat( rData.bIncludeValueFormat ),
 
  270        bIncludeWidthHeight( rData.bIncludeWidthHeight )
 
  282    OSL_ENSURE( 
nIndex < 16, 
"ScAutoFormatData::GetField - illegal index" );
 
  289    OSL_ENSURE( 
nIndex < 16, 
"ScAutoFormatData::GetField - illegal index" );
 
  335    switch( rItem.
Which() )
 
  449        rItemSet.
Put( aValueFormat );
 
  462            rItemSet.
Put( rCJKFont );
 
  471            rItemSet.
Put( aFontHeightItem );
 
  474            rItemSet.
Put( aWeightItem );
 
  477            rItemSet.
Put( aPostureItem );
 
  483            rItemSet.
Put( rCTLFont );
 
  492            rItemSet.
Put( aFontHeightItem );
 
  495            rItemSet.
Put( aWeightItem );
 
  498            rItemSet.
Put( aPostureItem );
 
  564    RID_SVXSTR_TBLAFMT_3D,
 
  565    RID_SVXSTR_TBLAFMT_BLACK1,
 
  566    RID_SVXSTR_TBLAFMT_BLACK2,
 
  567    RID_SVXSTR_TBLAFMT_BLUE,
 
  568    RID_SVXSTR_TBLAFMT_BROWN,
 
  569    RID_SVXSTR_TBLAFMT_CURRENCY,
 
  570    RID_SVXSTR_TBLAFMT_CURRENCY_3D,
 
  571    RID_SVXSTR_TBLAFMT_CURRENCY_GRAY,
 
  572    RID_SVXSTR_TBLAFMT_CURRENCY_LAVENDER,
 
  573    RID_SVXSTR_TBLAFMT_CURRENCY_TURQUOISE,
 
  574    RID_SVXSTR_TBLAFMT_GRAY,
 
  575    RID_SVXSTR_TBLAFMT_GREEN,
 
  576    RID_SVXSTR_TBLAFMT_LAVENDER,
 
  577    RID_SVXSTR_TBLAFMT_RED,
 
  578    RID_SVXSTR_TBLAFMT_TURQUOISE,
 
  579    RID_SVXSTR_TBLAFMT_YELLOW,
 
  580    RID_SVXSTR_TBLAFMT_LO6_ACADEMIC,
 
  581    RID_SVXSTR_TBLAFMT_LO6_BOX_LIST_BLUE,
 
  582    RID_SVXSTR_TBLAFMT_LO6_BOX_LIST_GREEN,
 
  583    RID_SVXSTR_TBLAFMT_LO6_BOX_LIST_RED,
 
  584    RID_SVXSTR_TBLAFMT_LO6_BOX_LIST_YELLOW,
 
  585    RID_SVXSTR_TBLAFMT_LO6_ELEGANT,
 
  586    RID_SVXSTR_TBLAFMT_LO6_FINANCIAL,
 
  587    RID_SVXSTR_TBLAFMT_LO6_SIMPLE_GRID_COLUMNS,
 
  588    RID_SVXSTR_TBLAFMT_LO6_SIMPLE_GRID_ROWS,
 
  589    RID_SVXSTR_TBLAFMT_LO6_SIMPLE_LIST_SHADED
 
  604                RTL_TEXTENCODING_UTF8);
 
  630        for( sal_uInt16 
i = 0; bRet && 
i < 16; ++
i )
 
  656    for (sal_uInt16 
i = 0; bRet && (
i < 16); 
i++)
 
  695    aBox.
SetLine(&aLine, SvxBoxItemLine::LEFT);
 
  696    aBox.
SetLine(&aLine, SvxBoxItemLine::TOP);
 
  697    aBox.
SetLine(&aLine, SvxBoxItemLine::RIGHT);
 
  698    aBox.
SetLine(&aLine, SvxBoxItemLine::BOTTOM);
 
  708    for (sal_uInt16 
i=0; 
i<16; 
i++)
 
  710        pData->PutItem( 
i, aBox );
 
  711        pData->PutItem( 
i, aFontItem );
 
  712        pData->PutItem( 
i, aCJKFontItem );
 
  713        pData->PutItem( 
i, aCTLFontItem );
 
  715        pData->PutItem( 
i, aHeight );
 
  717        pData->PutItem( 
i, aHeight );
 
  719        pData->PutItem( 
i, aHeight );
 
  722            pData->PutItem( 
i, aWhiteText );
 
  723            pData->PutItem( 
i, aBlueBack );
 
  727            pData->PutItem( 
i, aWhiteText );
 
  728            pData->PutItem( 
i, aGray70Back );
 
  730        else if ( 
i%4 == 3 || 
i >= 12 )             
 
  732            pData->PutItem( 
i, aBlackText );
 
  733            pData->PutItem( 
i, aGray20Back );
 
  737            pData->PutItem( 
i, aBlackText );
 
  738            pData->PutItem( 
i, aWhiteBack );
 
  747    OUString aStrStandard(
ScResId(STR_STYLENAME_STANDARD));
 
  767    MapType::const_iterator it = 
m_Data.begin();
 
  769    return it->second.get();
 
  777    MapType::iterator it = 
m_Data.begin();
 
  779    return it->second.get();
 
  784    return m_Data.find(rName);
 
  789    OUString 
aName = pNew->GetName();
 
  790    return m_Data.insert(std::make_pair(
aName, std::move(pNew))).first;
 
  828    aURL.setFinalSlash();
 
  852                    OSL_FAIL( 
"header contains more/newer data" );
 
  869                const size_t nMaxRecords = rStream.
remainingSize() / 
sizeof(sal_uInt16);
 
  870                if (nCnt > nMaxRecords)
 
  872                    SAL_WARN(
"sc", 
"Parsing error: " << nMaxRecords <<
 
  873                             " max possible entries, but " << nCnt << 
" claimed, truncating");
 
  877                for (sal_uInt16 
i=0; bRet && (
i < nCnt); 
i++)
 
  894    aURL.setFinalSlash();
 
  910                    osl_getThreadTextEncoding() ) );
 
  917        MapType::iterator it = 
m_Data.begin(), itEnd = 
m_Data.end();
 
  920            for (++it; bRet && it != itEnd; ++it) 
 
  922                bRet &= it->second->Save(rStream, fileVersion);
 
void SetValue(sal_uInt32 nTheValue)
sal_Int32 compareString(const OUString &s1, const OUString &s2) const
static vcl::Font GetDefaultFont(DefaultFontType nType, LanguageType eLang, GetDefaultFontFlags nFlags, const OutputDevice *pOutDev=nullptr)
SC_DLLPUBLIC SvNumberFormatter * GetFormatTable() const
static SC_DLLPUBLIC CollatorWrapper & GetCollator()
case-insensitive collator
static SC_DLLPUBLIC ::utl::TransliterationWrapper & GetTransliteration()
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
const SfxPoolItem & Get(sal_uInt16 nWhich, bool bSrchInParent=true) const
SvStream * GetOutStream()
T & StaticWhichCast(TypedWhichId< T > nId)
SvStream & ReadCharAsBool(bool &rBool)
OUString ReadUniOrByteString(rtl_TextEncoding eSrcCharSet)
SvStream & WriteBool(bool b)
SvStream & WriteUChar(unsigned char nChar)
SvStream & WriteUInt16(sal_uInt16 nUInt16)
void SetVersion(sal_Int32 n)
sal_uInt64 Seek(sal_uInt64 nPos)
void SetStreamCharSet(rtl_TextEncoding eCharSet)
rtl_TextEncoding GetStreamCharSet() const
SvStream & ReadUInt16(sal_uInt16 &rUInt16)
sal_uInt64 remainingSize()
SvStream & ReadUChar(unsigned char &rChar)
const OUString & GetUserConfigPath() const
static const sal_Int16 VeryThin
void SetLine(const editeng::SvxBorderLine *pNew, SvxBoxItemLine nLine)
const OUString & GetStyleName() const
FontFamily GetFamilyType()
const OUString & GetStyleName() const
const OUString & GetFamilyName() const
rtl_TextEncoding GetCharSet() const
constexpr ::Color COL_WHITE(0xFF, 0xFF, 0xFF)
constexpr ::Color COL_BLUE(0x00, 0x00, 0x80)
constexpr ::Color COL_BLACK(0x00, 0x00, 0x00)
SVXCORE_DLLPUBLIC OUString SvxResId(TranslateId aId)
Reference< XOutputStream > stream
#define LANGUAGE_ENGLISH_US
#define SAL_WARN(area, stream)
#define SAL_N_ELEMENTS(arr)
std::unique_ptr< sal_Int32[]> pData
OUString ScResId(TranslateId aId)
constexpr TypedWhichId< SvxFontHeightItem > ATTR_FONT_HEIGHT(101)
constexpr TypedWhichId< SvxFontItem > ATTR_CJK_FONT(111)
constexpr TypedWhichId< SvxPostureItem > ATTR_CTL_FONT_POSTURE(119)
constexpr TypedWhichId< SvxFontItem > ATTR_CTL_FONT(116)
constexpr TypedWhichId< SvxFontHeightItem > ATTR_CJK_FONT_HEIGHT(112)
constexpr TypedWhichId< SvxPostureItem > ATTR_FONT_POSTURE(103)
constexpr TypedWhichId< SvxWeightItem > ATTR_FONT_WEIGHT(102)
constexpr TypedWhichId< SvxColorItem > ATTR_FONT_COLOR(109)
constexpr TypedWhichId< SvxWeightItem > ATTR_CJK_FONT_WEIGHT(113)
constexpr TypedWhichId< SvxLineItem > ATTR_BORDER_TLBR(141)
constexpr TypedWhichId< SvxShadowedItem > ATTR_FONT_SHADOWED(108)
constexpr TypedWhichId< SvxContourItem > ATTR_FONT_CONTOUR(107)
constexpr TypedWhichId< SvxBrushItem > ATTR_BACKGROUND(148)
constexpr TypedWhichId< SvxOverlineItem > ATTR_FONT_OVERLINE(105)
constexpr TypedWhichId< SvxLanguageItem > ATTR_LANGUAGE_FORMAT(147)
constexpr TypedWhichId< ScRotateValueItem > ATTR_ROTATE_VALUE(135)
constexpr TypedWhichId< SvxHorJustifyItem > ATTR_HOR_JUSTIFY(129)
constexpr TypedWhichId< SvxRotateModeItem > ATTR_ROTATE_MODE(136)
constexpr TypedWhichId< SvxBoxItem > ATTR_BORDER(150)
constexpr TypedWhichId< SfxUInt32Item > ATTR_VALUE_FORMAT(146)
constexpr TypedWhichId< SvxCrossedOutItem > ATTR_FONT_CROSSEDOUT(106)
constexpr TypedWhichId< SvxMarginItem > ATTR_MARGIN(143)
constexpr TypedWhichId< SvxLineItem > ATTR_BORDER_BLTR(142)
constexpr TypedWhichId< ScVerticalStackCell > ATTR_STACKED(134)
constexpr TypedWhichId< SvxVerJustifyItem > ATTR_VER_JUSTIFY(132)
constexpr TypedWhichId< SvxFontItem > ATTR_FONT(100)
constexpr TypedWhichId< SvxWeightItem > ATTR_CTL_FONT_WEIGHT(118)
constexpr TypedWhichId< ScLineBreakCell > ATTR_LINEBREAK(139)
constexpr TypedWhichId< SvxPostureItem > ATTR_CJK_FONT_POSTURE(114)
constexpr TypedWhichId< SvxFontHeightItem > ATTR_CTL_FONT_HEIGHT(117)
constexpr TypedWhichId< SvxUnderlineItem > ATTR_FONT_UNDERLINE(104)
OUString read_uInt16_lenPrefixed_uInt8s_ToOUString(SvStream &rStrm, rtl_TextEncoding eEnc)
std::size_t write_uInt16_lenPrefixed_uInt8s_FromOUString(SvStream &rStrm, std::u16string_view rStr, rtl_TextEncoding eEnc)
bool operator()(const OUString &left, const OUString &right) const
Struct with version numbers of the Items.
void Load(SvStream &rStream, sal_uInt16 nVer)
void Write(SvStream &rStream, sal_uInt16 fileVersion)
AutoFormatSwBlob swVersions
TOOLS_DLLPUBLIC rtl_TextEncoding GetSOLoadTextEncoding(rtl_TextEncoding eEncoding)
XclImpStream & operator>>(XclImpStream &rStrm, XclImpDffPropSet &rPropSet)