#include <sfx2/minarray.hxx>
#include <vcl/font.hxx>
#include <vcl/fixed.hxx>
#include <vcl/combobox.hxx>
#include <vcl/lstbox.hxx>
#include <tools/fract.hxx>
Include dependency graph for utility.hxx:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Classes | |
class | SmFace |
class | SmPickList |
class | SmFontPickList |
class | SmFontPickListBox |
Defines | |
#define | C2S(cChar) String::CreateFromAscii(RTL_CONSTASCII_STRINGPARAM(cChar)) |
Functions | |
const ByteString | ExportString (const String &rString) |
const String | ImportString (const ByteString &rByteString) |
long | SmPtsTo100th_mm (long nNumPts) |
long | SmPtsTo100th_mm (const Fraction &rNumPts) |
Fraction | Sm100th_mmToPts (long nNum100th_mm) |
long | SmRoundFraction (const Fraction &rFrac) |
SmViewShell * | SmGetActiveView () |
BOOL | IsItalic (const Font &rFont) |
BOOL | IsBold (const Font &rFont) |
SmFace & | operator *= (SmFace &rFace, const Fraction &rFrac) |
#define C2S | ( | cChar | ) | String::CreateFromAscii(RTL_CONSTASCII_STRINGPARAM(cChar)) |
Definition at line 61 of file utility.hxx.
Referenced by SmLineNode::Arrange(), SmDocShell::ConvertFrom(), MathType::ConvertFromStarMath(), SmEditWindow::DataChanged(), SmModule::FillStatusBar(), SmDocShell::GetEditEngine(), SmViewShell::Insert(), SmDocShell::Load(), SmFormat::SmFormat(), SmModule::SmModule(), and SmViewShell::SmViewShell().
const ByteString ExportString | ( | const String & | rString | ) |
const String ImportString | ( | const ByteString & | rByteString | ) |
BOOL IsBold | ( | const Font & | rFont | ) |
Definition at line 369 of file utility.cxx.
Referenced by SmFontPickList::GetStringItem(), SmFontStyles::GetStyleName(), SmSpecialNode::Prepare(), SmTextNode::Prepare(), and SmFontDialog::SetFont().
BOOL IsItalic | ( | const Font & | rFont | ) |
Definition at line 361 of file utility.cxx.
Referenced by SmXMLExport::ExportText(), SmFontPickList::GetStringItem(), SmFontStyles::GetStyleName(), SmSpecialNode::Prepare(), SmTextNode::Prepare(), and SmFontDialog::SetFont().
Fraction Sm100th_mmToPts | ( | long | nNum100th_mm | ) | [inline] |
Definition at line 92 of file utility.hxx.
Referenced by SmXMLExport::ExportFont(), SmFontSizeDialog::ReadFrom(), and SmMathConfig::SaveFormat().
SmViewShell* SmGetActiveView | ( | ) |
! Since this method is based on the current focus it is somewhat ! unreliable and may return unexpected 0 pointers!
Definition at line 70 of file utility.cxx.
Referenced by SmDocShell::ArrangeFormula(), SmDocShell::Repaint(), SmDocShell::SetFormat(), and SmDocShell::SetText().
long SmPtsTo100th_mm | ( | const Fraction & | rNumPts | ) | [inline] |
Definition at line 84 of file utility.hxx.
long SmPtsTo100th_mm | ( | long | nNumPts | ) | [inline] |
Definition at line 70 of file utility.hxx.
Referenced by SmMathConfig::LoadFormat(), SmNode::SetFontSize(), SmFace::SetSize(), and SmFontSizeDialog::WriteTo().
long SmRoundFraction | ( | const Fraction & | rFrac | ) | [inline] |
Definition at line 102 of file utility.hxx.
Referenced by SmFontSizeDialog::ReadFrom(), and SmMathConfig::SaveFormat().