diff options
Diffstat (limited to 'basic/source/inc/image.hxx')
-rw-r--r-- | basic/source/inc/image.hxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/basic/source/inc/image.hxx b/basic/source/inc/image.hxx index b33009c1e029..5a4522bd91bf 100644 --- a/basic/source/inc/image.hxx +++ b/basic/source/inc/image.hxx @@ -23,6 +23,7 @@ #include <rtl/ustring.hxx> #include "filefmt.hxx" #include <o3tl/typed_flags_set.hxx> +#include <cstddef> #include <vector> // This class reads in the image that's been produced by the compiler @@ -56,7 +57,7 @@ class SbiImage { sal_uInt16 nDimBase; // OPTION BASE value rtl_TextEncoding eCharSet; // temporary management-variable: - short nStringIdx; + std::size_t nStringIdx; sal_uInt32 nStringOff; // current Pos in the stringbuffer // routines for the compiler: void MakeStrings( short ); // establish StringPool @@ -78,13 +79,13 @@ public: bool Load( SvStream&, sal_uInt32& nVer ); // nVer is set to version // of image - bool Save( SvStream&, sal_uInt32 = B_CURVERSION ); + bool Save( SvStream&, sal_uInt32 ); bool IsError() const { return bError; } const sal_uInt8* GetCode() const { return aCode.data(); } sal_uInt32 GetCodeSize() const { return aCode.size(); } sal_uInt16 GetBase() const { return nDimBase; } - OUString GetString( short nId, SbxDataType *eType = nullptr ) const; + OUString GetString( sal_uInt32 nId, SbxDataType *eType = nullptr ) const; const SbxObject* FindType (const OUString& aTypeName) const; const SbxArrayRef& GetEnums() const { return rEnums; } @@ -95,6 +96,7 @@ public: sal_uInt32 CalcNewOffset( sal_Int16 nOffset ); void ReleaseLegacyBuffer(); bool ExceedsLegacyLimits(); + bool ExceedsImgVersion12Limits(); }; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |