SmMathConfig Class Reference

#include <cfgitem.hxx>

Inherited by SmConfig.

Inheritance diagram for SmMathConfig:

Inheritance graph
[legend]
Collaboration diagram for SmMathConfig:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SmMathConfig ()
virtual ~SmMathConfig ()
virtual void Commit ()
SmSymSetManagerGetSymSetManager ()
void GetSymbols (std::vector< SmSym > &rSymbols) const
void SetSymbols (const std::vector< SmSym > &rNewSymbols)
USHORT GetSymbolCount () const
const SmSymGetSymbol (USHORT nIndex) const
const SmFormatGetStandardFormat () const
void SetStandardFormat (const SmFormat &rFormat)
BOOL IsPrintTitle () const
void SetPrintTitle (BOOL bVal)
BOOL IsPrintFormulaText () const
void SetPrintFormulaText (BOOL bVal)
BOOL IsPrintFrame () const
void SetPrintFrame (BOOL bVal)
SmPrintSize GetPrintSize () const
void SetPrintSize (SmPrintSize eSize)
USHORT GetPrintZoomFactor () const
void SetPrintZoomFactor (USHORT nVal)
BOOL IsIgnoreSpacesRight () const
void SetIgnoreSpacesRight (BOOL bVal)
BOOL IsToolboxVisible () const
void SetToolboxVisible (BOOL bVal)
BOOL IsAutoRedraw () const
void SetAutoRedraw (BOOL bVal)
BOOL IsShowFormulaCursor () const
void SetShowFormulaCursor (BOOL bVal)

Protected Member Functions

void LoadOther ()
void SaveOther ()
void LoadFormat ()
void SaveFormat ()
void LoadFontFormatList ()
void SaveFontFormatList ()
void SetOtherModified (BOOL bVal)
BOOL IsOtherModified () const
void SetFormatModified (BOOL bVal)
BOOL IsFormatModified () const
SmFontFormatListGetFontFormatList ()
const SmFontFormatListGetFontFormatList () const

Private Member Functions

 SmMathConfig (const SmMathConfig &)
SmMathConfigoperator= (const SmMathConfig &)
void StripFontFormatList (const std::vector< SmSym > &rSymbols)
void Save ()
void ReadSymbol (SmSym &rSymbol, const rtl::OUString &rSymbolName, const rtl::OUString &rBaseNode) const
void ReadFontFormat (SmFontFormat &rFontFormat, const rtl::OUString &rSymbolName, const rtl::OUString &rBaseNode) const
void SetOtherIfNotEqual (BOOL &rbItem, BOOL bNewVal)

Private Attributes

SmFormatpFormat
SmCfgOtherpOther
SmFontFormatListpFontFormatList
SmSymSetManagerpSymSetMgr
BOOL bIsOtherModified
BOOL bIsFormatModified

Detailed Description

Definition at line 140 of file cfgitem.hxx.


Constructor & Destructor Documentation

SmMathConfig::SmMathConfig ( const SmMathConfig  )  [private]

SmMathConfig::SmMathConfig (  ) 

Definition at line 436 of file cfgitem.cxx.

References bIsFormatModified, bIsOtherModified, pFontFormatList, pFormat, pOther, and pSymSetMgr.

SmMathConfig::~SmMathConfig (  )  [virtual]

Definition at line 448 of file cfgitem.cxx.

References pFontFormatList, pFormat, pOther, pSymSetMgr, and Save().


Member Function Documentation

SmMathConfig& SmMathConfig::operator= ( const SmMathConfig  )  [private]

void SmMathConfig::StripFontFormatList ( const std::vector< SmSym > &  rSymbols  )  [private]

Definition at line 841 of file cfgitem.cxx.

References FNT_BEGIN, FNT_END, SmFontFormatList::GetCount(), SmFormat::GetFont(), SmFontFormatList::GetFontFormat(), SmFontFormatList::GetFontFormatId(), GetFontFormatList(), GetStandardFormat(), and SmFontFormatList::RemoveFontFormat().

Referenced by SetSymbols().

void SmMathConfig::Save (  )  [private]

Definition at line 576 of file cfgitem.cxx.

References SaveFontFormatList(), SaveFormat(), and SaveOther().

Referenced by Commit(), and ~SmMathConfig().

void SmMathConfig::ReadSymbol ( SmSym rSymbol,
const rtl::OUString &  rSymbolName,
const rtl::OUString &  rBaseNode 
) const [private]

Definition at line 470 of file cfgitem.cxx.

References SmFontFormat::GetFont(), SmFontFormatList::GetFontFormat(), GetFontFormatList(), GetUiSymbolName(), GetUiSymbolSetName(), lcl_GetSymbolPropertyNames(), and SmSym::SetExportName().

Referenced by GetSymbols().

void SmMathConfig::ReadFontFormat ( SmFontFormat rFontFormat,
const rtl::OUString &  rSymbolName,
const rtl::OUString &  rBaseNode 
) const [private]

Referenced by LoadFontFormatList().

void SmMathConfig::SetOtherIfNotEqual ( BOOL &  rbItem,
BOOL  bNewVal 
) [private]

Definition at line 1183 of file cfgitem.cxx.

References SetOtherModified().

Referenced by SetAutoRedraw(), SetIgnoreSpacesRight(), SetPrintFormulaText(), SetPrintFrame(), SetPrintTitle(), SetShowFormulaCursor(), and SetToolboxVisible().

void SmMathConfig::LoadOther (  )  [protected]

Definition at line 883 of file cfgitem.cxx.

References SmCfgOther::bAutoRedraw, SmCfgOther::bFormulaCursor, SmCfgOther::bIgnoreSpacesRight, SmCfgOther::bPrintFormulaText, SmCfgOther::bPrintFrame, SmCfgOther::bPrintTitle, SmCfgOther::bToolboxVisible, SmCfgOther::ePrintSize, GetOtherPropertyNames(), SmCfgOther::nPrintZoomFactor, pOther, and SetOtherModified().

Referenced by SetAutoRedraw(), SetIgnoreSpacesRight(), SetPrintFormulaText(), SetPrintFrame(), SetPrintSize(), SetPrintTitle(), SetPrintZoomFactor(), SetShowFormulaCursor(), and SetToolboxVisible().

void SmMathConfig::SaveOther (  )  [protected]

Definition at line 948 of file cfgitem.cxx.

References SmCfgOther::bAutoRedraw, SmCfgOther::bFormulaCursor, SmCfgOther::bIgnoreSpacesRight, SmCfgOther::bPrintFormulaText, SmCfgOther::bPrintFrame, SmCfgOther::bPrintTitle, SmCfgOther::bToolboxVisible, SmCfgOther::ePrintSize, GetOtherPropertyNames(), IsOtherModified(), SmCfgOther::nPrintZoomFactor, pOther, and SetOtherModified().

Referenced by SmConfig::ItemSetToConfig(), and Save().

void SmMathConfig::LoadFormat (  )  [protected]

Definition at line 988 of file cfgitem.cxx.

References DIS_BEGIN, DIS_END, FNT_BEGIN, FNT_END, SmFormat::GetBaseSize(), GetDefaultFontName(), SmFontFormat::GetFont(), SmFormat::GetFont(), SmFontFormatList::GetFontFormat(), GetFontFormatList(), GetFormatPropertyNames(), pFormat, SmFormat::SetBaseSize(), SmFormat::SetDistance(), SmFormat::SetFont(), SetFormatModified(), SmFormat::SetHorAlign(), SmFormat::SetRelSize(), SmFormat::SetScaleNormalBrackets(), SmFormat::SetTextmode(), SIZ_BEGIN, SIZ_END, and SmPtsTo100th_mm().

Referenced by SetStandardFormat().

void SmMathConfig::SaveFormat (  )  [protected]

Definition at line 1072 of file cfgitem.cxx.

References DIS_BEGIN, DIS_END, FNT_BEGIN, FNT_END, SmFormat::GetBaseSize(), SmFormat::GetDistance(), SmFormat::GetFont(), SmFontFormatList::GetFontFormatId(), GetFontFormatList(), GetFormatPropertyNames(), SmFormat::GetHorAlign(), SmFormat::GetRelSize(), SmFormat::IsDefaultFont(), IsFormatModified(), SmFormat::IsScaleNormalBrackets(), SmFormat::IsTextmode(), pFormat, SetFormatModified(), SIZ_BEGIN, SIZ_END, Sm100th_mmToPts(), and SmRoundFraction().

Referenced by Save(), and SetStandardFormat().

void SmMathConfig::LoadFontFormatList (  )  [protected]

Definition at line 683 of file cfgitem.cxx.

References A2OU, SmFontFormatList::AddFontFormat(), SmFontFormatList::Clear(), FONT_FORMAT_LIST, SmFontFormatList::GetFontFormat(), pFontFormatList, ReadFontFormat(), and SmFontFormatList::SetModified().

Referenced by GetFontFormatList().

void SmMathConfig::SaveFontFormatList (  )  [protected]

Definition at line 774 of file cfgitem.cxx.

References A2OU, FONT_FORMAT_LIST, SmFontFormatList::GetCount(), SmFontFormatList::GetFontFormat(), SmFontFormatList::GetFontFormatId(), GetFontFormatList(), SmFontFormatList::IsModified(), lcl_GetFontPropertyNames(), and SmFontFormatList::SetModified().

Referenced by Save(), and SetSymbols().

void SmMathConfig::SetOtherModified ( BOOL  bVal  )  [protected]

Definition at line 458 of file cfgitem.cxx.

References bIsOtherModified.

Referenced by LoadOther(), SaveOther(), SetOtherIfNotEqual(), SetPrintSize(), and SetPrintZoomFactor().

BOOL SmMathConfig::IsOtherModified (  )  const [inline, protected]

Definition at line 177 of file cfgitem.hxx.

References bIsOtherModified.

Referenced by SaveOther().

void SmMathConfig::SetFormatModified ( BOOL  bVal  )  [protected]

Definition at line 464 of file cfgitem.cxx.

References bIsFormatModified.

Referenced by LoadFormat(), SaveFormat(), and SetStandardFormat().

BOOL SmMathConfig::IsFormatModified (  )  const [inline, protected]

Definition at line 179 of file cfgitem.hxx.

References bIsFormatModified.

Referenced by SaveFormat().

SmFontFormatList & SmMathConfig::GetFontFormatList (  )  [protected]

Definition at line 673 of file cfgitem.cxx.

References LoadFontFormatList(), and pFontFormatList.

Referenced by LoadFormat(), ReadSymbol(), SaveFontFormatList(), SaveFormat(), SetSymbols(), and StripFontFormatList().

const SmFontFormatList& SmMathConfig::GetFontFormatList (  )  const [inline, protected]

Definition at line 182 of file cfgitem.hxx.

void SmMathConfig::Commit (  )  [virtual]

Definition at line 571 of file cfgitem.cxx.

References Save().

SmSymSetManager & SmMathConfig::GetSymSetManager (  ) 

Definition at line 560 of file cfgitem.cxx.

References SmSymSetManager::Load(), and pSymSetMgr.

Referenced by SmModule::GetSymSetManager().

void SmMathConfig::GetSymbols ( std::vector< SmSym > &  rSymbols  )  const

Definition at line 596 of file cfgitem.cxx.

References A2OU, ReadSymbol(), and SYMBOL_LIST.

Referenced by SmSymSetManager::Load().

void SmMathConfig::SetSymbols ( const std::vector< SmSym > &  rNewSymbols  ) 

Definition at line 612 of file cfgitem.cxx.

References A2OU, SmSym::GetCharacter(), SmSym::GetExportName(), GetExportSymbolSetName(), SmSym::GetFace(), GetFontFormatList(), SmSym::GetSetName(), SmSym::IsPredefined(), lcl_GetSymbolPropertyNames(), SaveFontFormatList(), StripFontFormatList(), and SYMBOL_LIST.

Referenced by SmSymSetManager::Save().

USHORT SmMathConfig::GetSymbolCount (  )  const

Definition at line 584 of file cfgitem.cxx.

const SmSym * SmMathConfig::GetSymbol ( USHORT  nIndex  )  const

Definition at line 590 of file cfgitem.cxx.

const SmFormat & SmMathConfig::GetStandardFormat (  )  const

Definition at line 1122 of file cfgitem.cxx.

References pFormat.

Referenced by SmDocShell::Execute(), SmDocShell::SmDocShell(), and StripFontFormatList().

void SmMathConfig::SetStandardFormat ( const SmFormat rFormat  ) 

Definition at line 1130 of file cfgitem.cxx.

References LoadFormat(), pFormat, SaveFormat(), and SetFormatModified().

Referenced by SmDocShell::Execute().

BOOL SmMathConfig::IsPrintTitle (  )  const

Definition at line 1193 of file cfgitem.cxx.

References SmCfgOther::bPrintTitle, and pOther.

Referenced by SmConfig::ConfigToItemSet(), and SmViewShell::Impl_Print().

void SmMathConfig::SetPrintTitle ( BOOL  bVal  ) 

Definition at line 1201 of file cfgitem.cxx.

References SmCfgOther::bPrintTitle, LoadOther(), pOther, and SetOtherIfNotEqual().

Referenced by SmConfig::ItemSetToConfig().

BOOL SmMathConfig::IsPrintFormulaText (  )  const

Definition at line 1209 of file cfgitem.cxx.

References SmCfgOther::bPrintFormulaText, and pOther.

Referenced by SmConfig::ConfigToItemSet(), and SmViewShell::Impl_Print().

void SmMathConfig::SetPrintFormulaText ( BOOL  bVal  ) 

Definition at line 1217 of file cfgitem.cxx.

References SmCfgOther::bPrintFormulaText, LoadOther(), pOther, and SetOtherIfNotEqual().

Referenced by SmConfig::ItemSetToConfig().

BOOL SmMathConfig::IsPrintFrame (  )  const

Definition at line 1225 of file cfgitem.cxx.

References SmCfgOther::bPrintFrame, and pOther.

Referenced by SmConfig::ConfigToItemSet(), and SmViewShell::Impl_Print().

void SmMathConfig::SetPrintFrame ( BOOL  bVal  ) 

Definition at line 1233 of file cfgitem.cxx.

References SmCfgOther::bPrintFrame, LoadOther(), pOther, and SetOtherIfNotEqual().

Referenced by SmConfig::ItemSetToConfig().

SmPrintSize SmMathConfig::GetPrintSize (  )  const

Definition at line 1143 of file cfgitem.cxx.

References SmCfgOther::ePrintSize, and pOther.

Referenced by SmConfig::ConfigToItemSet(), and SmViewShell::Print().

void SmMathConfig::SetPrintSize ( SmPrintSize  eSize  ) 

Definition at line 1151 of file cfgitem.cxx.

References SmCfgOther::ePrintSize, LoadOther(), pOther, and SetOtherModified().

Referenced by SmConfig::ItemSetToConfig().

USHORT SmMathConfig::GetPrintZoomFactor (  )  const

Definition at line 1163 of file cfgitem.cxx.

References SmCfgOther::nPrintZoomFactor, and pOther.

Referenced by SmConfig::ConfigToItemSet(), and SmViewShell::Impl_Print().

void SmMathConfig::SetPrintZoomFactor ( USHORT  nVal  ) 

Definition at line 1171 of file cfgitem.cxx.

References LoadOther(), SmCfgOther::nPrintZoomFactor, pOther, and SetOtherModified().

Referenced by SmConfig::ItemSetToConfig().

BOOL SmMathConfig::IsIgnoreSpacesRight (  )  const

Definition at line 1241 of file cfgitem.cxx.

References SmCfgOther::bIgnoreSpacesRight, and pOther.

Referenced by SmConfig::ConfigToItemSet(), and SmConfig::ItemSetToConfig().

void SmMathConfig::SetIgnoreSpacesRight ( BOOL  bVal  ) 

Definition at line 1249 of file cfgitem.cxx.

References SmCfgOther::bIgnoreSpacesRight, LoadOther(), pOther, and SetOtherIfNotEqual().

Referenced by SmConfig::ItemSetToConfig().

BOOL SmMathConfig::IsToolboxVisible (  )  const

Definition at line 1257 of file cfgitem.cxx.

References SmCfgOther::bToolboxVisible, and pOther.

void SmMathConfig::SetToolboxVisible ( BOOL  bVal  ) 

Definition at line 1265 of file cfgitem.cxx.

References SmCfgOther::bToolboxVisible, LoadOther(), pOther, and SetOtherIfNotEqual().

BOOL SmMathConfig::IsAutoRedraw (  )  const

Definition at line 1273 of file cfgitem.cxx.

References SmCfgOther::bAutoRedraw, and pOther.

Referenced by SmConfig::ConfigToItemSet(), SmDocShell::Execute(), SmDocShell::GetState(), and IMPL_LINK().

void SmMathConfig::SetAutoRedraw ( BOOL  bVal  ) 

Definition at line 1281 of file cfgitem.cxx.

References SmCfgOther::bAutoRedraw, LoadOther(), pOther, and SetOtherIfNotEqual().

Referenced by SmDocShell::Execute(), and SmConfig::ItemSetToConfig().

BOOL SmMathConfig::IsShowFormulaCursor (  )  const

Definition at line 1289 of file cfgitem.cxx.

References SmCfgOther::bFormulaCursor, and pOther.

Referenced by SmViewShell::GetState(), SmGraphicWindow::Paint(), and SmGraphicWindow::SetCursor().

void SmMathConfig::SetShowFormulaCursor ( BOOL  bVal  ) 

Definition at line 1297 of file cfgitem.cxx.

References SmCfgOther::bFormulaCursor, LoadOther(), pOther, and SetOtherIfNotEqual().


Member Data Documentation

SmFormat* SmMathConfig::pFormat [private]

Definition at line 142 of file cfgitem.hxx.

Referenced by GetStandardFormat(), LoadFormat(), SaveFormat(), SetStandardFormat(), SmMathConfig(), and ~SmMathConfig().

SmCfgOther* SmMathConfig::pOther [private]

Definition at line 143 of file cfgitem.hxx.

Referenced by GetPrintSize(), GetPrintZoomFactor(), IsAutoRedraw(), IsIgnoreSpacesRight(), IsPrintFormulaText(), IsPrintFrame(), IsPrintTitle(), IsShowFormulaCursor(), IsToolboxVisible(), LoadOther(), SaveOther(), SetAutoRedraw(), SetIgnoreSpacesRight(), SetPrintFormulaText(), SetPrintFrame(), SetPrintSize(), SetPrintTitle(), SetPrintZoomFactor(), SetShowFormulaCursor(), SetToolboxVisible(), SmMathConfig(), and ~SmMathConfig().

SmFontFormatList* SmMathConfig::pFontFormatList [private]

Definition at line 144 of file cfgitem.hxx.

Referenced by GetFontFormatList(), LoadFontFormatList(), SmMathConfig(), and ~SmMathConfig().

SmSymSetManager* SmMathConfig::pSymSetMgr [private]

Definition at line 145 of file cfgitem.hxx.

Referenced by GetSymSetManager(), SmMathConfig(), and ~SmMathConfig().

BOOL SmMathConfig::bIsOtherModified [private]

Definition at line 146 of file cfgitem.hxx.

Referenced by IsOtherModified(), SetOtherModified(), and SmMathConfig().

BOOL SmMathConfig::bIsFormatModified [private]

Definition at line 147 of file cfgitem.hxx.

Referenced by IsFormatModified(), SetFormatModified(), and SmMathConfig().


The documentation for this class was generated from the following files:
Generated on Wed Feb 20 17:23:21 2008 for maths by  doxygen 1.5.1