21#include <osl/diagnose.h> 
   22#include <osl/thread.h> 
   34#include <stlsheet.hxx> 
   35#include <compiler.hxx> 
   47    bool bOk = 10 == 
rStrm.Read(&fRet, 10);
 
   50    fResult = 
static_cast<double>(fRet);
 
   70    long double lfFactor = 256.0;
 
   77    lfDouble  = 
static_cast< long double >( pDouble10[ 7 ] );   
 
   79    lfDouble += 
static_cast< long double >( pDouble10[ 6 ] );   
 
   81    lfDouble += 
static_cast< long double >( pDouble10[ 5 ] );   
 
   83    lfDouble += 
static_cast< long double >( pDouble10[ 4 ] );   
 
   85    lfDouble += 
static_cast< long double >( pDouble10[ 3 ] );   
 
   87    lfDouble += 
static_cast< long double >( pDouble10[ 2 ] );   
 
   89    lfDouble += 
static_cast< long double >( pDouble10[ 1 ] );   
 
   91    lfDouble += 
static_cast< long double >( pDouble10[ 0 ] );   
 
   98        nExp = pDouble10[ 9 ] & 0x7F;
 
  100        nExp += pDouble10[ 8 ];
 
  103        lfDouble *= pow( 2.0, 
static_cast< double >( nExp ) );
 
  107    if( pDouble10[ 9 ] & 0x80 )
 
  108        lfDouble *= 
static_cast< long double >( -1.0 );
 
  110    fResult = 
static_cast<double>(lfDouble);
 
  118    return osl_getThreadTextEncoding();
 
  123    const char pHex[] = 
"0123456789ABCDEF";
 
  124    OUString 
aStr = OUStringChar( pHex[ 
nValue >> 12 ] )
 
  125                  + OUStringChar( pHex[ (
nValue >> 8) & 0x000F ] )
 
  126                  + OUStringChar( pHex[ (
nValue >> 4) & 0x000F ] )
 
  127                  + OUStringChar( pHex[ 
nValue & 0x000F ] );
 
  133    sal_Int32 nTemp = ((
static_cast< sal_Int32 
>( nBack ) - nFore) * nTrans) / 0x80 + nFore;
 
  134    return static_cast< sal_uInt8 >( nTemp );
 
  152    OUString 
sName = rName.replace(
u'.',
 
  154    sal_Int32 nLen = 
sName.getLength();
 
  168    if( xStrg.
is() && xStrg->IsContained( rStrgName ) )
 
  169        xSubStrg = xStrg->OpenSotStorage( rStrgName, StreamMode::STD_READ );
 
  177        xSubStrg = xStrg->OpenSotStorage( rStrgName, StreamMode::STD_WRITE );
 
  184    if( xStrg.
is() && xStrg->IsContained( rStrmName ) && xStrg->IsStream( rStrmName ) )
 
  185        xStrm = xStrg->OpenSotStream( rStrmName, StreamMode::STD_READ );
 
  191    OSL_ENSURE( !xStrg.
is() || !xStrg->IsContained( rStrmName ), 
"ScfTools::OpenStorageStreamWrite - stream exists already" );
 
  194        xStrm = xStrg->OpenSotStream( rStrmName, StreamMode::STD_WRITE | StreamMode::TRUNC );
 
  202    return rItemSet.
GetItemState( nWhichId, bDeep ) == SfxItemState::SET;
 
  207    OSL_ENSURE( pnWhichIds, 
"ScfTools::CheckItems - no which id list" );
 
  208    for( 
const sal_uInt16* pnWhichId = pnWhichIds; *pnWhichId != 0; ++pnWhichId )
 
  209        if( 
CheckItem( rItemSet, *pnWhichId, bDeep ) )
 
  224    PutItem( rItemSet, rItem, rItem.
Which(), bSkipPoolDef );
 
  234    OUString aNewName( rStyleName );
 
  239        if( !pOldStyleSheet )
 
  240            pOldStyleSheet = pStyleSheet;
 
  241        aNewName = rStyleName + 
" " + OUString::number( ++nIndex );
 
  245    if( pOldStyleSheet && bForceName )
 
  247        pOldStyleSheet->
SetName( aNewName );
 
  248        aNewName = rStyleName;
 
  252    return static_cast< ScStyleSheet& 
>( rPool.
Make( aNewName, eFamily, SfxStyleSearchBits::UserDefined ) );
 
  259    return lclMakeStyleSheet( rPool, rStyleName, SfxStyleFamily::Para, bForceName );
 
  264    return lclMakeStyleSheet( rPool, rStyleName, SfxStyleFamily::Page, bForceName );
 
  272    rnBytesLeft -= aRet.getLength(); 
 
  287    static const OUString saHTMLDoc( 
"HTML_all" );
 
  293    static const OUString saHTMLTables( 
"HTML_tables" );
 
  299    static const OUString saHTMLIndexPrefix( 
"HTML_" );
 
  300    return saHTMLIndexPrefix;
 
  306    static const OUString saHTMLNamePrefix( 
"HTML__" );
 
  307    return saHTMLNamePrefix;
 
  313                     OUString::number( 
static_cast< sal_Int32 
>( 
nIndex ) );
 
  346    return !rName.isEmpty();
 
static bool isAsciiNumeric(std::u16string_view rStr)
sal_uInt8 GetBlue() const
sal_uInt8 GetGreen() const
static bool IsCharFlagAllConventions(OUString const &rStr, sal_Int32 nPos, ScCharFlags nFlags)
If the character is allowed as tested by nFlags (SC_COMPILER_C_... bits) for all known address conven...
static SC_DLLPUBLIC void AddQuotes(OUString &rString, sal_Unicode cQuote, bool bEscapeEmbedded=true)
Inserts the character cQuote at beginning and end of rString.
Collection of orcus filter wrappers.
virtual SfxStyleSheetBase & Make(const OUString &, SfxStyleFamily eFam, SfxStyleSearchBits nMask=SfxStyleSearchBits::All) override
const SfxPoolItem & GetDefaultItem(sal_uInt16 nWhich) const
SfxItemPool * GetPool() const
SfxItemState GetItemState(sal_uInt16 nWhich, bool bSrchInParent=true, const SfxPoolItem **ppItem=nullptr) const
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
std::unique_ptr< SfxPoolItem > CloneSetWhich(sal_uInt16 nNewWhich) const
virtual SfxStyleSheetBase * Find(const OUString &, SfxStyleFamily eFam, SfxStyleSearchBits n=SfxStyleSearchBits::All)
virtual bool SetName(const OUString &rNewName, bool bReindexNow=true)
std::size_t ReadBytes(void *pData, std::size_t nSize)
std::deque< AttacherIndex_Impl > aIndex
double getLength(const B2DPolygon &rCandidate)
bool equalsIgnoreAsciiCase(std::u16string_view s1, std::u16string_view s2)