28#include <osl/file.hxx>
41 Read( SvHash_module() );
78 sal_uInt32 nBeginPos = 0;
90 if(
ReadIf( SvHash_interface() ) )
94 else if(
ReadIf( SvHash_shell() ) )
98 else if(
ReadIf( SvHash_enum() ) )
102 else if(
ReadIf( SvHash_item() ) )
106 else if(
ReadIf( SvHash_struct() ) )
110 else if(
ReadIf( SvHash_include() ) )
120 if( xSlot->Test(
rInStm ) )
133 OUString aFullName(OStringToOUString(
ReadString(), RTL_TEXTENCODING_ASCII_US));
135 osl::FileBase::RC searchError = osl::File::searchFileURL(aFullName,
rBase.
GetPath(), aFullName);
136 if( osl::FileBase::E_None != searchError )
138 OString
aStr =
"cannot find file:" +
142 osl::FileBase::getSystemPathFromFileURL( aFullName, aFullName );
147 OString
aStr =
"cannot open file: " +
158 sal_uInt32 nBeginPos = 0xFFFFFFFF;
159 while( nBeginPos != aTokStm.
Tell() )
161 nBeginPos = aTokStm.
Tell();
195 xAttr->aSlotId.SetValue(
n);
196 xStruct->GetAttrList().push_back( xAttr.
get() );
211 xItem->SetItem(
true);
238 sal_Int32 nMax = std::min(rA.size(), rB.size());
242 if (rA[nI] != rB[nI])
246 return rA.substr(0, nI);
256 rEnum.
aPrefix = aEnumVal->GetName();
269 aClass->SetType( aMetaTypeType );
279 sal_uInt32 nBeginPos = 0;
295 if(
ReadIf( SvHash_import() ) )
312 if( !pType || pType->
IsItem() )
324 bOk = xAttr->Test(
rInStm );
329 if( !xAttr->GetSlotId().IsSet() )
347 rSlot.
SetRef( pKnownSlot );
351 sal_uInt32 nBeginPos = 0;
363 bOk = rSlot.SvMetaAttribute::ReadSvIdl(
rBase,
rInStm );
370 rSlot.
SetRef( pKnownSlot );
443 rAttr.
aType->GetAttrList().push_back( xParamAttr.
get() );
473 if( aType->GetName() ==
aName )
bool ReadStringSvIdl(SvStringHashEntry const *pName, SvTokenStream &rInStm, OString &aRetString)
void SetPrefix(const OString &rPrefix)
void SetValue(sal_uInt32 bVal)
void setString(const OString &rStr)
const OString & getString() const
SvRefMemberList< SvMetaObject * > & GetStack()
SvMetaAttribute * FindKnownAttr(const SvIdentifier &)
void AppendSlot(SvMetaSlot *pSlot)
SvRefMemberList< SvMetaModule * > & GetModuleList()
void Push(SvMetaObject *pObj)
void SetPath(const OUString &s)
const OUString & GetPath() const
SvMetaAttribute * ReadKnownAttr(SvTokenStream &rInStm, SvMetaType *pType)
SvRefMemberList< SvMetaClass * > & GetClassList()
SvRefMemberList< SvMetaType * > & GetTypeList()
void SetError(const SvIdlError &r)
void StartNewFile(std::u16string_view rName)
void WriteError(SvTokenStream &rInStm)
void AddDepFile(OUString const &rFileName)
bool FindId(const OString &rIdName, sal_uInt32 *pVal)
SvMetaType * ReadKnownType(SvTokenStream &rInStm)
SvMetaClass * FindKnownClass(std::string_view aName)
const SvIdlError & GetError() const
bool ReadIdFile(std::string_view rFileName)
SvMetaClass * ReadKnownClass()
void ReadInterfaceOrShellEntry(SvMetaClass &rClass)
void ReadSlotId(SvIdentifier &rSlotId)
void ReadInterfaceOrShell(SvMetaModule &rModule, MetaTypeType aMetaTypeType)
void ReadEnumValue(SvMetaTypeEnum &rEnum)
void ReadInterfaceOrShellMethod(SvMetaAttribute &rAttr)
void ReadModuleBody(SvMetaModule &rModule)
void ReadModuleElement(SvMetaModule &rModule)
void ReadIfIdAttribute(SvIdentifier &rIdentifier, SvStringHashEntry const *pName)
void ReadSvIdl(const OUString &rPath)
void ReadInclude(SvMetaModule &rModule)
bool ReadSlot(SvMetaSlot &rSlot)
SvMetaType * ReadKnownType()
void ReadSlotAttribute(SvMetaSlot &rSlot)
bool ReadIfBoolAttribute(SvBOOL &, SvStringHashEntry const *pName)
void ReadModuleHeader(SvMetaModule &rModule)
const OString & GetName() const
void Seek(sal_uInt32 nPos)
SvToken & GetToken() const
SvToken & GetToken_Next()
bool Is(SvStringHashEntry const *pEntry) const
bool IsIdentifier() const
const OString & GetString() const
OString OUStringToOString(std::u16string_view str, ConnectionSettings const *settings)
static std::string_view getCommonSubPrefix(std::string_view rA, std::string_view rB)