// return pointer to active SmViewShell, if this is not possible // return 0 instead. //!! Since this method is based on the current focus it is somewhat //!! unreliable and may return unexpected 0 pointers!
SmViewShell * SmGetActiveView()
{
SfxViewShell *pView = SfxViewShell::Current();
SmViewShell* pSmView = dynamic_cast<SmViewShell*>(pView); if (!pSmView && comphelper::LibreOfficeKit::isActive())
{ auto* pWindow = static_cast<SmGraphicWindow*>(LokStarMathHelper(pView).GetGraphicWindow()); if (pWindow)
pSmView = &pWindow->GetGraphicWidget().GetView();
} return pSmView;
}
// check the requested size against minimum value constint nMinVal = o3tl::convert(2, o3tl::Length::pt, SmO3tlLengthUnit());
if (aSize.Height() < nMinVal)
aSize.setHeight( nMinVal );
//! we don't force a maximum value here because this may prevent eg the //! parentheses in "left ( ... right )" from matching up with large //! bodies (eg stack{...} with many entries). //! Of course this is holds only if characters are used and not polygons.
SmFace & operator *= (SmFace &rFace, const Fraction &rFrac) // scales the width and height of 'rFace' by 'rFrac' and returns a // reference to 'rFace'. // It's main use is to make scaling fonts look easier.
{ const Size &rFaceSize = rFace.GetFontSize();
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.