LibreOffice Module idl (master) 1
|
#include <database.hxx>
Public Member Functions | |
SvIdlDataBase (const SvCommand &rCmd) | |
~SvIdlDataBase () | |
SvRefMemberList< SvMetaType * > & | GetTypeList () |
SvRefMemberList< SvMetaClass * > & | GetClassList () |
SvRefMemberList< SvMetaModule * > & | GetModuleList () |
void | StartNewFile (std::u16string_view rName) |
void | SetExportFile (const OUString &rName) |
void | AppendSlot (SvMetaSlot *pSlot) |
const SvIdlError & | GetError () const |
void | SetError (const SvIdlError &r) |
const OUString & | GetPath () const |
void | SetPath (const OUString &s) |
SvRefMemberList< SvMetaObject * > & | GetStack () |
void | Write (const OString &rText) const |
void | WriteError (SvTokenStream &rInStm) |
void | SetError (const OString &rError, SvToken const &rTok) |
void | SetAndWriteError (SvTokenStream &rInStm, const OString &rError) |
void | Push (SvMetaObject *pObj) |
sal_uInt32 | GetUniqueId () |
bool | FindId (const OString &rIdName, sal_uInt32 *pVal) |
void | InsertId (const OString &rIdName, sal_uInt32 nVal) |
bool | ReadIdFile (std::string_view rFileName) |
SvMetaType * | FindType (std::string_view rName) |
SvMetaType * | ReadKnownType (SvTokenStream &rInStm) |
SvMetaAttribute * | ReadKnownAttr (SvTokenStream &rInStm, SvMetaType *pType) |
SvMetaAttribute * | FindKnownAttr (const SvIdentifier &) |
SvMetaClass * | ReadKnownClass (SvTokenStream &rInStm) |
SvMetaClass * | FindKnownClass (std::string_view aName) |
void | AddDepFile (OUString const &rFileName) |
void | WriteDepFile (SvFileStream &rStream, std::u16string_view rTarget) |
Static Public Member Functions | |
static SvMetaType * | FindType (const SvMetaType *, SvRefMemberList< SvMetaType * > &) |
Public Attributes | |
OUString | sSlotMapFile |
SvRefMemberList< SvMetaType * > | aUsedTypes |
Protected Member Functions | |
void | WriteReset () |
Protected Attributes | |
::std::set< OUString > | m_DepFiles |
OUString | aPath |
SvIdlError | aError |
Private Attributes | |
bool | bExport |
OUString | aExportFile |
sal_uInt32 | nUniqueId |
sal_uInt32 | nVerbosity |
std::vector< OUString > | aIdFileList |
std::unique_ptr< SvStringHashTable > | pIdTable |
SvRefMemberList< SvMetaType * > | aTypeList |
SvRefMemberList< SvMetaClass * > | aClassList |
SvRefMemberList< SvMetaModule * > | aModuleList |
SvRefMemberList< SvMetaSlot * > | aSlotList |
SvRefMemberList< SvMetaObject * > | aContextStack |
Definition at line 60 of file database.hxx.
|
explicit |
Definition at line 48 of file database.cxx.
References sSlotMapFile.
SvIdlDataBase::~SvIdlDataBase | ( | ) |
Definition at line 56 of file database.cxx.
References aIdFileList.
void SvIdlDataBase::AddDepFile | ( | OUString const & | rFileName | ) |
Definition at line 509 of file database.cxx.
References m_DepFiles.
Referenced by ReadIdFile(), ReadIdl(), and SvIdlParser::ReadInclude().
void SvIdlDataBase::AppendSlot | ( | SvMetaSlot * | pSlot | ) |
Definition at line 503 of file database.cxx.
References aSlotList, bExport, and SvRefMemberList< T >::push_back().
Referenced by SvIdlParser::ReadModuleElement().
bool SvIdlDataBase::FindId | ( | const OString & | rIdName, |
sal_uInt32 * | pVal | ||
) |
Definition at line 112 of file database.cxx.
References pIdTable.
Referenced by FindKnownAttr(), ReadIdFile(), ReadKnownAttr(), SvIdlParser::ReadSlotId(), SvIdlParser::ReadStruct(), and SvIdentifier::ReadSvIdl().
SvMetaAttribute * SvIdlDataBase::FindKnownAttr | ( | const SvIdentifier & | rId | ) |
Definition at line 351 of file database.cxx.
References aSlotList, FindId(), SvMetaAttribute::GetSlotId(), SvIdentifier::getString(), i, and n.
Referenced by SvIdlParser::ReadSlot(), and SvMetaSlot::ReadSvIdl().
SvMetaClass * SvIdlDataBase::FindKnownClass | ( | std::string_view | aName | ) |
Definition at line 383 of file database.cxx.
References aClassList, aName, SvMetaReference::GetName(), and n.
Referenced by SvIdlParser::ReadKnownClass(), and ReadKnownClass().
|
static |
Definition at line 277 of file database.cxx.
SvMetaType * SvIdlDataBase::FindType | ( | std::string_view | rName | ) |
Definition at line 286 of file database.cxx.
References aTypeList.
Referenced by SvMetaSlot::WriteSlot(), and SvMetaSlot::WriteSlotParamArray().
|
inline |
Definition at line 90 of file database.hxx.
References aClassList.
Referenced by SvIdlParser::ReadInterfaceOrShell().
|
inline |
Definition at line 100 of file database.hxx.
References aError.
Referenced by SvIdlParser::ReadInclude().
|
inline |
Definition at line 91 of file database.hxx.
References aModuleList.
Referenced by SvIdlParser::ReadSvIdl(), and SvIdlWorkingBase::WriteSfx().
|
inline |
Definition at line 104 of file database.hxx.
References aPath.
Referenced by ReadIdFile(), and SvIdlParser::ReadInclude().
|
inline |
Definition at line 106 of file database.hxx.
References aContextStack.
Referenced by Push(), and SvIdlParser::ReadModuleHeader().
SvRefMemberList< SvMetaType * > & SvIdlDataBase::GetTypeList | ( | ) |
Definition at line 64 of file database.cxx.
References ADD_TYPE, aTypeList, and SvRefMemberList< T >::push_back().
Referenced by SvIdlParser::ReadEnum(), SvIdlParser::ReadItem(), SvIdlParser::ReadKnownType(), ReadKnownType(), and SvIdlParser::ReadStruct().
|
inline |
Definition at line 113 of file database.hxx.
References nUniqueId.
Referenced by SvMetaClass::ReadContextSvIdl(), and SvIdlParser::ReadInterfaceOrShellEntry().
void SvIdlDataBase::InsertId | ( | const OString & | rIdName, |
sal_uInt32 | nVal | ||
) |
void SvIdlDataBase::Push | ( | SvMetaObject * | pObj | ) |
Definition at line 107 of file database.cxx.
References GetStack(), and SvRefMemberList< T >::push_back().
Referenced by SvIdlParser::ReadModuleHeader().
bool SvIdlDataBase::ReadIdFile | ( | std::string_view | rFileName | ) |
Definition at line 135 of file database.cxx.
References AddDepFile(), aIdFileList, aName, ERRCODE_NONE, FindId(), SvToken::GetChar(), SvStream::GetError(), SvToken::GetNumber(), GetPath(), SvTokenStream::GetStream(), SvToken::GetString(), SvTokenStream::GetToken_Next(), SvToken::GetTokenAsString(), i, InsertId(), SvToken::Is(), SvToken::IsChar(), SvToken::IsEof(), SvToken::IsIdentifier(), SvToken::IsInteger(), SvToken::IsString(), n, and ReadIdFile().
Referenced by ReadIdFile(), and SvIdlParser::ReadModuleBody().
SvMetaAttribute * SvIdlDataBase::ReadKnownAttr | ( | SvTokenStream & | rInStm, |
SvMetaType * | pType | ||
) |
Definition at line 314 of file database.cxx.
References aSlotList, FindId(), SvMetaAttribute::GetSlotId(), SvIdentifier::getString(), SvToken::GetString(), SvTokenStream::GetToken_Next(), i, SvToken::IsIdentifier(), n, ReadKnownType(), SvTokenStream::Seek(), and SvTokenStream::Tell().
Referenced by SvIdlParser::ReadSlot(), and SvMetaSlot::ReadSvIdl().
SvMetaClass * SvIdlDataBase::ReadKnownClass | ( | SvTokenStream & | rInStm | ) |
Definition at line 367 of file database.cxx.
References FindKnownClass(), SvToken::GetString(), SvTokenStream::GetToken_Next(), SvToken::IsIdentifier(), p, SvTokenStream::Seek(), and SvTokenStream::Tell().
Referenced by SvMetaClass::ReadContextSvIdl().
SvMetaType * SvIdlDataBase::ReadKnownType | ( | SvTokenStream & | rInStm | ) |
Definition at line 294 of file database.cxx.
References aName, SvToken::GetString(), SvTokenStream::GetToken_Next(), GetTypeList(), SvToken::IsIdentifier(), SvTokenStream::Seek(), and SvTokenStream::Tell().
Referenced by SvMetaClass::ReadContextSvIdl(), SvIdlParser::ReadInterfaceOrShellEntry(), ReadKnownAttr(), and SvMetaAttribute::ReadSvIdl().
void SvIdlDataBase::SetAndWriteError | ( | SvTokenStream & | rInStm, |
const OString & | rError | ||
) |
Definition at line 101 of file database.cxx.
References SvTokenStream::GetToken(), SetError(), and WriteError().
Referenced by SvIdentifier::ReadSvIdl().
void SvIdlDataBase::SetError | ( | const OString & | rError, |
SvToken const & | rTok | ||
) |
Definition at line 88 of file database.cxx.
References aError, SvToken::GetColumn(), SvToken::GetLine(), SvIdlError::nColumn, SvIdlError::nLine, and SvIdlError::SetText().
|
inline |
Definition at line 101 of file database.hxx.
References aError.
Referenced by ReadIdl(), SvIdlParser::ReadInclude(), SvMetaAttribute::ReadSvIdl(), and SetAndWriteError().
|
inline |
Definition at line 97 of file database.hxx.
References aExportFile.
|
inline |
Definition at line 105 of file database.hxx.
References aPath.
Referenced by SvIdlParser::ReadSvIdl().
void SvIdlDataBase::StartNewFile | ( | std::u16string_view | rName | ) |
Definition at line 497 of file database.cxx.
References aExportFile, and bExport.
Referenced by SvIdlParser::ReadInclude().
void SvIdlDataBase::Write | ( | const OString & | rText | ) | const |
Definition at line 394 of file database.cxx.
References nVerbosity.
Referenced by SvMetaType::ReadSvIdl().
void SvIdlDataBase::WriteDepFile | ( | SvFileStream & | rStream, |
std::u16string_view | rTarget | ||
) |
Definition at line 542 of file database.cxx.
References m_DepFiles, OUStringToOString(), rTarget, and SvStream::WriteOString().
void SvIdlDataBase::WriteError | ( | SvTokenStream & | rInStm | ) |
Definition at line 400 of file database.cxx.
References aError, SvToken::GetColumn(), SvTokenStream::GetFileName(), GetIdlApp(), SvToken::GetLine(), SvToken::GetString(), SvIdlError::GetText(), SvTokenStream::GetToken(), SvTokenStream::GetToken_PrevAll(), SvIdlError::IsError(), SvToken::IsIdentifier(), SvIdlError::nColumn, SvIdlError::nLine, OUStringToOString(), IdlDll::pHashTable, and SvTokenStream::SeekToMax().
Referenced by ReadIdl(), SvIdlParser::ReadInclude(), and SetAndWriteError().
|
inlineprotected |
Definition at line 79 of file database.hxx.
References aUsedTypes, and SvRefMemberList< T >::clear().
Referenced by SvIdlWorkingBase::WriteSfx().
|
private |
Definition at line 70 of file database.hxx.
Referenced by FindKnownClass(), and GetClassList().
|
private |
Definition at line 73 of file database.hxx.
Referenced by GetStack().
|
protected |
Definition at line 78 of file database.hxx.
Referenced by GetError(), SetError(), and WriteError().
|
private |
Definition at line 63 of file database.hxx.
Referenced by SetExportFile(), and StartNewFile().
|
private |
Definition at line 66 of file database.hxx.
Referenced by ReadIdFile(), and ~SvIdlDataBase().
|
private |
Definition at line 71 of file database.hxx.
Referenced by GetModuleList().
|
protected |
Definition at line 77 of file database.hxx.
|
private |
Definition at line 72 of file database.hxx.
Referenced by AppendSlot(), FindKnownAttr(), and ReadKnownAttr().
|
private |
Definition at line 69 of file database.hxx.
Referenced by FindType(), and GetTypeList().
SvRefMemberList<SvMetaType *> SvIdlDataBase::aUsedTypes |
Definition at line 94 of file database.hxx.
Referenced by WriteReset(), SvIdlWorkingBase::WriteSfx(), SvMetaSlot::WriteSlot(), and SvMetaSlot::WriteSlotParamArray().
|
private |
Definition at line 62 of file database.hxx.
Referenced by AppendSlot(), and StartNewFile().
|
protected |
Definition at line 76 of file database.hxx.
Referenced by AddDepFile(), and WriteDepFile().
|
private |
Definition at line 64 of file database.hxx.
Referenced by GetUniqueId().
|
private |
Definition at line 65 of file database.hxx.
Referenced by Write().
|
private |
Definition at line 67 of file database.hxx.
Referenced by FindId(), and InsertId().
OUString SvIdlDataBase::sSlotMapFile |
Definition at line 84 of file database.hxx.
Referenced by SvIdlDataBase(), and SvMetaType::WriteSfxItem().