LibreOffice Module starmath (master) 1
|
#include <sal/config.h>
#include "smdllapi.hxx"
#include <comphelper/lok.hxx>
#include <o3tl/unit_conversion.hxx>
#include <sal/log.hxx>
#include <vcl/font.hxx>
#include <vcl/weld.hxx>
#include <tools/fract.hxx>
#include <tools/mapunit.hxx>
#include <deque>
Go to the source code of this file.
Classes | |
class | SmFace |
class | SmFontPickList |
class | SmFontPickListBox |
Functions | |
SmViewShell * | SmGetActiveView () |
! Since this method is based on the current focus it is somewhat ! unreliable and may return unexpected 0 pointers! More... | |
bool | IsItalic (const vcl::Font &rFont) |
bool | IsBold (const vcl::Font &rFont) |
SmFace & | operator*= (SmFace &rFace, const Fraction &rFrac) |
MapUnit | SmMapUnit () |
o3tl::Length | SmO3tlLengthUnit () |
bool IsBold | ( | const vcl::Font & | rFont | ) |
Definition at line 184 of file utility.cxx.
References vcl::Font::GetWeight(), and WEIGHT_NORMAL.
Referenced by SmModel::_getPropertyValues(), SmTextNode::Prepare(), SmSpecialNode::Prepare(), and SmFontDialog::SetFont().
bool IsItalic | ( | const vcl::Font & | rFont | ) |
Definition at line 176 of file utility.cxx.
References vcl::Font::GetItalic(), ITALIC_NORMAL, and ITALIC_OBLIQUE.
Referenced by SmModel::_getPropertyValues(), SmXMLExport::ExportMath(), SmXMLExport::ExportText(), SmTextNode::Prepare(), SmSpecialNode::Prepare(), and SmFontDialog::SetFont().
Definition at line 234 of file utility.cxx.
References vcl::Font::GetFontSize(), Size::Height(), SmFace::SetSize(), and Size::Width().
SmViewShell * SmGetActiveView | ( | ) |
! Since this method is based on the current focus it is somewhat ! unreliable and may return unexpected 0 pointers!
Definition at line 33 of file utility.cxx.
References SfxViewShell::Current(), SmViewShell::GetGraphicWidget(), LokStarMathHelper::GetGraphicWindow(), SmGraphicWidget::GetView(), and comphelper::LibreOfficeKit::isActive().
Referenced by SmDocShell::ArrangeFormula(), SmPrintOptionsTabPage::FillItemSet(), SmDocShell::Repaint(), SmCursor::RequestRepaint(), SmDocShell::SetText(), and SmPrintOptionsTabPage::~SmPrintOptionsTabPage().
|
inline |
Definition at line 121 of file utility.hxx.
References comphelper::LibreOfficeKit::isActive().
Referenced by SmElementsControl::addElement(), SmDocShell::ArrangeFormula(), SmDocShell::GetPrt(), SmModel::getRenderer(), SmViewShell::Impl_Print(), SmViewShell::InnerResizePixel(), SmModel::render(), SmGraphicWidget::SetDrawingArea(), SmDocShell::SetPrinter(), SmGraphicWindow::SetZoom(), SmDocShell::SmDocShell(), SmPrinterAccess::SmPrinterAccess(), SmTmpDevice::SmTmpDevice(), SmViewShell::ZoomByItemSet(), and SmGraphicWindow::ZoomToFitInWindow().
|
inline |
Definition at line 125 of file utility.hxx.
References comphelper::LibreOfficeKit::isActive(), o3tl::mm100, and o3tl::twip.
Referenced by SmModel::_getPropertyValues(), SmModel::_setPropertyValues(), SmXMLExport::ExportFont(), SmMathConfig::LoadFormat(), SmFontSizeDialog::ReadFrom(), SmMathConfig::SaveFormat(), SmNode::SetFontSize(), SmFace::SetSize(), and SmFontSizeDialog::WriteTo().