#include <symbol.hxx>
Collaboration diagram for SmSymSetManager:
Public Member Functions | |
SmSymSetManager (USHORT HashTableSize=137) | |
SmSymSetManager (const SmSymSetManager &rSymbolSetManager) | |
~SmSymSetManager () | |
SmSymSetManager & | operator= (const SmSymSetManager &rSymbolSetManager) |
void | GetSymbols (std::vector< SmSym > &rSymbols) const |
USHORT | AddSymbolSet (SmSymSet *pSymbolSet) |
void | ChangeSymbolSet (SmSymSet *pSymbolSet) |
void | DeleteSymbolSet (USHORT SymbolSetNo) |
USHORT | GetSymbolSetPos (const String &rSymbolSetName) const |
USHORT | GetSymbolSetCount () const |
SmSymSet * | GetSymbolSet (USHORT SymbolSetNo) const |
SmSym * | GetSymbolByName (const String &rSymbolName) |
const SmSym * | GetSymbolByName (const String &rSymbolName) const |
void | AddReplaceSymbol (const SmSym &rSymbol) |
USHORT | GetSymbolCount () const |
const SmSym * | GetSymbolByPos (USHORT nPos) const |
BOOL | IsModified () const |
void | SetModified (BOOL Modify) |
void | Load () |
void | Save () |
Private Member Functions | |
virtual void | SFX_NOTIFY (SfxBroadcaster &rBC, const TypeId &rBCType, const SfxHint &rHint, const TypeId &rHintType) |
UINT32 | GetHashIndex (const String &rSymbolName) |
void | EnterHashTable (SmSym &rSymbol) |
void | EnterHashTable (SmSymSet &rSymbolSet) |
void | FillHashTable () |
void | Init () |
void | Exit () |
Private Attributes | |
SmSymSetManager_Impl * | pImpl |
Friends | |
struct | SmSymSetManager_Impl |
Definition at line 201 of file symbol.hxx.
SmSymSetManager::SmSymSetManager | ( | USHORT | HashTableSize = 137 |
) |
SmSymSetManager::SmSymSetManager | ( | const SmSymSetManager & | rSymbolSetManager | ) |
Definition at line 405 of file symbol.cxx.
References SmSymSetManager_Impl::NoHashEntries, pImpl, and SmSymSetManager_Impl.
SmSymSetManager::~SmSymSetManager | ( | ) |
void SmSymSetManager::SFX_NOTIFY | ( | SfxBroadcaster & | rBC, | |
const TypeId & | rBCType, | |||
const SfxHint & | rHint, | |||
const TypeId & | rHintType | |||
) | [private, virtual] |
Definition at line 336 of file symbol.cxx.
UINT32 SmSymSetManager::GetHashIndex | ( | const String & | rSymbolName | ) | [private] |
Definition at line 342 of file symbol.cxx.
References SmSymSetManager_Impl::NoHashEntries, and pImpl.
Referenced by EnterHashTable(), and GetSymbolByName().
void SmSymSetManager::EnterHashTable | ( | SmSym & | rSymbol | ) | [private] |
Definition at line 352 of file symbol.cxx.
References GetHashIndex(), SmSym::GetName(), SmSymSetManager_Impl::HashEntries, SmSym::pHashNext, and pImpl.
Referenced by AddReplaceSymbol(), EnterHashTable(), and FillHashTable().
void SmSymSetManager::EnterHashTable | ( | SmSymSet & | rSymbolSet | ) | [private] |
Definition at line 368 of file symbol.cxx.
References EnterHashTable(), SmSymSet::GetCount(), and SmSymSet::SymbolList.
void SmSymSetManager::FillHashTable | ( | ) | [private] |
Definition at line 374 of file symbol.cxx.
References EnterHashTable(), GetSymbolSet(), SmSymSetManager_Impl::HashEntries, SmSymSetManager_Impl::NoHashEntries, SmSymSetManager_Impl::NoSymbolSets, and pImpl.
Referenced by AddSymbolSet(), ChangeSymbolSet(), and DeleteSymbolSet().
void SmSymSetManager::Init | ( | ) | [private] |
void SmSymSetManager::Exit | ( | ) | [private] |
SmSymSetManager & SmSymSetManager::operator= | ( | const SmSymSetManager & | rSymbolSetManager | ) |
void SmSymSetManager::GetSymbols | ( | std::vector< SmSym > & | rSymbols | ) | const |
Definition at line 544 of file symbol.cxx.
References GetSymbolByPos(), and GetSymbolCount().
Referenced by Save().
USHORT SmSymSetManager::AddSymbolSet | ( | SmSymSet * | pSymbolSet | ) |
Definition at line 425 of file symbol.cxx.
References FillHashTable(), SmSymSet::GetCount(), SmSymSetManager_Impl::Modified, SmSymSetManager_Impl::NoSymbolSets, pImpl, SmSymSet::pSymSetManager, SmSymSet::SymbolList, and SmSymSetManager_Impl::SymbolSets.
Referenced by AddReplaceSymbol(), Load(), and SmSymSetManager_Impl::operator=().
void SmSymSetManager::ChangeSymbolSet | ( | SmSymSet * | pSymbolSet | ) |
Definition at line 443 of file symbol.cxx.
References FillHashTable(), SmSymSetManager_Impl::Modified, and pImpl.
Referenced by Load().
void SmSymSetManager::DeleteSymbolSet | ( | USHORT | SymbolSetNo | ) |
Definition at line 452 of file symbol.cxx.
References FillHashTable(), SmSymSetManager_Impl::Modified, SmSymSetManager_Impl::NoSymbolSets, pImpl, and SmSymSetManager_Impl::SymbolSets.
Referenced by SmSymDefineDialog::Execute().
USHORT SmSymSetManager::GetSymbolSetPos | ( | const String & | rSymbolSetName | ) | const |
Definition at line 466 of file symbol.cxx.
References SmSymSetManager_Impl::NoSymbolSets, pImpl, SYMBOLSET_NONE, and SmSymSetManager_Impl::SymbolSets.
Referenced by AddReplaceSymbol(), SmSymDefineDialog::GetSymbolSet(), Load(), and SmSymbolDialog::SelectSymbolSet().
USHORT SmSymSetManager::GetSymbolSetCount | ( | ) | const [inline] |
Definition at line 231 of file symbol.hxx.
References SmSymSetManager_Impl::NoSymbolSets, and pImpl.
Referenced by SmSymDefineDialog::Execute(), SmSymDefineDialog::FillSymbolSets(), SmSymbolDialog::FillSymbolSets(), GetSymbolByPos(), GetSymbolCount(), Load(), and Save().
SmSymSet* SmSymSetManager::GetSymbolSet | ( | USHORT | SymbolSetNo | ) | const [inline] |
Definition at line 232 of file symbol.hxx.
References pImpl, and SmSymSetManager_Impl::SymbolSets.
Referenced by AddReplaceSymbol(), SmSymDefineDialog::Execute(), FillHashTable(), SmSymDefineDialog::FillSymbolSets(), SmSymbolDialog::FillSymbolSets(), GetSymbolByPos(), GetSymbolCount(), SmSymDefineDialog::GetSymbolSet(), Load(), SmSymSetManager_Impl::operator=(), Save(), and SmSymbolDialog::SelectSymbolSet().
SmSym * SmSymSetManager::GetSymbolByName | ( | const String & | rSymbolName | ) |
Definition at line 475 of file symbol.cxx.
References GetHashIndex(), SmSymSetManager_Impl::HashEntries, SmSym::Name, SmSym::pHashNext, and pImpl.
Referenced by AddReplaceSymbol(), SmSymDefineDialog::GetSymbol(), SmSpecialNode::Prepare(), SmSymDefineDialog::SelectSymbol(), and SmSymDefineDialog::UpdateButtons().
const SmSym* SmSymSetManager::GetSymbolByName | ( | const String & | rSymbolName | ) | const [inline] |
Definition at line 238 of file symbol.hxx.
void SmSymSetManager::AddReplaceSymbol | ( | const SmSym & | rSymbol | ) |
Definition at line 489 of file symbol.cxx.
References SmSymSet::AddSymbol(), AddSymbolSet(), EnterHashTable(), SmSym::GetName(), SmSym::GetSetName(), GetSymbolByName(), GetSymbolSet(), GetSymbolSetPos(), SetModified(), and SYMBOLSET_NONE.
USHORT SmSymSetManager::GetSymbolCount | ( | ) | const |
Definition at line 513 of file symbol.cxx.
References GetSymbolSet(), and GetSymbolSetCount().
Referenced by GetSymbols().
const SmSym * SmSymSetManager::GetSymbolByPos | ( | USHORT | nPos | ) | const |
Definition at line 523 of file symbol.cxx.
References SmSymSet::GetCount(), SmSymSet::GetSymbol(), GetSymbolSet(), and GetSymbolSetCount().
Referenced by GetSymbols().
BOOL SmSymSetManager::IsModified | ( | ) | const [inline] |
Definition at line 247 of file symbol.hxx.
References SmSymSetManager_Impl::Modified, and pImpl.
Referenced by SmSymDefineDialog::Execute().
void SmSymSetManager::SetModified | ( | BOOL | Modify | ) | [inline] |
Definition at line 248 of file symbol.hxx.
References SmSymSetManager_Impl::Modified, and pImpl.
Referenced by AddReplaceSymbol(), SmSymSet::AddSymbol(), SmSymSet::operator=(), SmSym::operator=(), SmSymSet::RemoveSymbol(), SmSymSet::SetName(), and SmSymDefineDialog::SetSymbolSetManager().
void SmSymSetManager::Load | ( | ) |
Definition at line 562 of file symbol.cxx.
References AddSymbolSet(), ChangeSymbolSet(), SmMathConfig::GetSymbols(), GetSymbolSet(), GetSymbolSetCount(), GetSymbolSetPos(), SmSymSetManager_Impl::Modified, pImpl, SM_MOD1, and SYMBOLSET_NONE.
Referenced by SmMathConfig::GetSymSetManager(), and SmDocShell::LoadSymbols().
void SmSymSetManager::Save | ( | ) |
Definition at line 602 of file symbol.cxx.
References SmSymSet::GetCount(), GetSymbols(), GetSymbolSet(), GetSymbolSetCount(), SmMathConfig::SetSymbols(), and SM_MOD1.
Referenced by SmDocShell::SaveSymbols().
friend struct SmSymSetManager_Impl [friend] |
SmSymSetManager_Impl* SmSymSetManager::pImpl [private] |
Definition at line 205 of file symbol.hxx.
Referenced by AddSymbolSet(), ChangeSymbolSet(), DeleteSymbolSet(), EnterHashTable(), FillHashTable(), GetHashIndex(), GetSymbolByName(), GetSymbolSet(), GetSymbolSetCount(), GetSymbolSetPos(), IsModified(), Load(), operator=(), SetModified(), SmSymSetManager(), and ~SmSymSetManager().