|
LibreOffice Module svtools (master) 1
|
#include <sal/config.h>#include <config_folders.h>#include <comphelper/lok.hxx>#include <i18nutil/unicode.hxx>#include <officecfg/Office/Common.hxx>#include <tools/stream.hxx>#include <vcl/customweld.hxx>#include <vcl/event.hxx>#include <vcl/svapp.hxx>#include <vcl/fieldvalues.hxx>#include <vcl/settings.hxx>#include <vcl/image.hxx>#include <vcl/virdev.hxx>#include <vcl/weldutils.hxx>#include <rtl/math.hxx>#include <sal/macros.h>#include <sal/log.hxx>#include <comphelper/string.hxx>#include <unotools/localedatawrapper.hxx>#include <unotools/syslocale.hxx>#include <svtools/borderline.hxx>#include <svtools/sampletext.hxx>#include <svtools/svtresid.hxx>#include <svtools/strings.hrc>#include <svtools/ctrlbox.hxx>#include <svtools/ctrltool.hxx>#include <svtools/borderhelper.hxx>#include <svtools/valueset.hxx>#include <basegfx/polygon/b2dpolygon.hxx>#include <basegfx/polygon/b2dpolygontools.hxx>#include <editeng/borderline.hxx>#include <rtl/bootstrap.hxx>#include <borderline.hrc>#include <stdio.h>Go to the source code of this file.
Namespaces | |
| namespace | svtools |
Macros | |
| #define | IMGOUTERTEXTSPACE 5 |
| #define | EXTRAFONTSIZE 5 |
| #define | GAPTOEXTRAPREVIEW 10 |
| #define | MINGAPWIDTH 2 |
Functions | |
| static double | lcl_getGuessedWidth (tools::Long nTested, double nRate, bool bChanging) |
| static void | lclDrawPolygon (OutputDevice &rDev, const basegfx::B2DPolygon &rPolygon, tools::Long nWidth, SvxBorderLineStyle nDashing) |
| static std::vector< double > | svtools::GetDashing (SvxBorderLineStyle nDashing) |
| Dashing array must start with a line width and end with a blank width. More... | |
| std::vector< double > | svtools::GetLineDashing (SvxBorderLineStyle nDashing, double fScale) |
| basegfx::B2DPolyPolygon | svtools::ApplyLineDashing (const basegfx::B2DPolygon &rPolygon, SvxBorderLineStyle nDashing, double fScale) |
| void | svtools::DrawLine (OutputDevice &rDev, const Point &rP1, const Point &rP2, sal_uInt32 nWidth, SvxBorderLineStyle nDashing) |
| void | svtools::DrawLine (OutputDevice &rDev, const basegfx::B2DPoint &rP1, const basegfx::B2DPoint &rP2, sal_uInt32 nWidth, SvxBorderLineStyle nDashing) |
| IMPL_LINK (FontNameBox, SettingsChangedHdl, VclSimpleEvent &, rEvent, void) | |
| static bool | IsRunningUnitTest () |
| IMPL_LINK_NOARG (FontNameBox, CustomGetSizeHdl, OutputDevice &, Size) | |
| IMPL_LINK_NOARG (FontNameBox, UpdateHdl, Timer *, void) | |
| static void | DrawPreview (const FontMetric &rFontMetric, const Point &rTopLeft, OutputDevice &rDevice, bool bSelected) |
| IMPL_LINK (FontNameBox, CustomRenderHdl, weld::ComboBox::render_args, aPayload, void) | |
| IMPL_LINK (FontSizeBox, ReformatHdl, weld::Widget &, rWidget, void) | |
| IMPL_LINK (FontSizeBox, ModifyHdl, weld::ComboBox &, rBox, void) | |
| IMPL_LINK (SvtLineListBox, ToggleHdl, weld::Toggleable &, rButton, void) | |
| IMPL_LINK_NOARG (SvtLineListBox, StyleUpdatedHdl, weld::Widget &, void) | |
| IMPL_LINK_NOARG (SvtLineListBox, NoneHdl, weld::Button &, void) | |
| IMPL_LINK_NOARG (SvtLineListBox, ValueSelectHdl, ValueSet *, void) | |
| IMPL_LINK_NOARG (SvtCalendarBox, SelectHdl, weld::Calendar &, void) | |
| IMPL_LINK_NOARG (SvtCalendarBox, ActivateHdl, weld::Calendar &, void) | |
Variables | |
| constexpr OUStringLiteral | FONTNAMEBOXMRUENTRIESFILE = u"/user/config/fontnameboxmruentries" |
| static Size | gUserItemSz |
| static int | gFontNameBoxes |
| static size_t | gPreviewsPerDevice |
| static std::vector< VclPtr< VirtualDevice > > | gFontPreviewVirDevs |
| static std::vector< OUString > | gRenderedFontNames |
| #define EXTRAFONTSIZE 5 |
Definition at line 62 of file ctrlbox.cxx.
| #define GAPTOEXTRAPREVIEW 10 |
Definition at line 63 of file ctrlbox.cxx.
| #define IMGOUTERTEXTSPACE 5 |
Definition at line 61 of file ctrlbox.cxx.
| #define MINGAPWIDTH 2 |
Definition at line 64 of file ctrlbox.cxx.
|
static |
Definition at line 574 of file ctrlbox.cxx.
References Size::AdjustHeight(), canRenderNameOfSelectedFont(), OutputDevice::DrawText(), EXTRAFONTSIZE, GAPTOEXTRAPREVIEW, StyleSettings::GetDialogTextColor(), vcl::Font::GetFamilyName(), OutputDevice::GetFont(), vcl::Font::GetFontSize(), tools::Rectangle::GetHeight(), StyleSettings::GetHighlightTextColor(), Application::GetSettings(), AllSettings::GetStyleSettings(), OutputDevice::GetTextBoundRect(), tools::Rectangle::GetWidth(), gUserItemSz, OutputDevice::HasGlyphs(), Size::Height(), IMGOUTERTEXTSPACE, isSymbolFont(), makeShortMinimalTextForScript(), makeShortRepresentativeSymbolTextForSelectedFont(), makeShortRepresentativeTextForScript(), makeShortRepresentativeTextForSelectedFont(), OutputDevice::Pop(), OutputDevice::Push(), OutputDevice::SetFont(), vcl::Font::SetFontSize(), OutputDevice::SetTextColor(), vcl::TEXTCOLOR, tools::Rectangle::Top(), Size::Width(), Point::X(), and Point::Y().
Referenced by FontNameBox::CachePreview(), and IMPL_LINK().
| IMPL_LINK | ( | FontNameBox | , |
| CustomRenderHdl | , | ||
| weld::ComboBox::render_args | , | ||
| aPayload | , | ||
| void | |||
| ) |
Definition at line 796 of file ctrlbox.cxx.
References Point::AdjustY(), OutputDevice::DrawOutDev(), DrawPreview(), gUserItemSz, Size::Height(), and nIndex.
| IMPL_LINK | ( | FontNameBox | , |
| SettingsChangedHdl | , | ||
| VclSimpleEvent & | , | ||
| rEvent | , | ||
| void | |||
| ) |
Definition at line 351 of file ctrlbox.cxx.
References GetData, gFontPreviewVirDevs, gRenderedFontNames, and pData.
| IMPL_LINK | ( | FontSizeBox | , |
| ModifyHdl | , | ||
| weld::ComboBox & | , | ||
| rBox | , | ||
| void | |||
| ) |
Definition at line 1032 of file ctrlbox.cxx.
References aStr, unicode::isSpace(), and comphelper::string::stripStart().
| IMPL_LINK | ( | FontSizeBox | , |
| ReformatHdl | , | ||
| weld::Widget & | , | ||
| rWidget | , | ||
| void | |||
| ) |
Definition at line 1018 of file ctrlbox.cxx.
References Application::GetSettings().
| IMPL_LINK | ( | SvtLineListBox | , |
| ToggleHdl | , | ||
| weld::Toggleable & | , | ||
| rButton | , | ||
| void | |||
| ) |
Definition at line 1447 of file ctrlbox.cxx.
References GrabFocus.
| IMPL_LINK_NOARG | ( | FontNameBox | , |
| CustomGetSizeHdl | , | ||
| OutputDevice & | , | ||
| Size | |||
| ) |
Definition at line 531 of file ctrlbox.cxx.
References gUserItemSz.
| IMPL_LINK_NOARG | ( | FontNameBox | , |
| UpdateHdl | , | ||
| Timer * | , | ||
| void | |||
| ) |
Definition at line 564 of file ctrlbox.cxx.
| IMPL_LINK_NOARG | ( | SvtCalendarBox | , |
| ActivateHdl | , | ||
| weld::Calendar & | , | ||
| void | |||
| ) |
Definition at line 1607 of file ctrlbox.cxx.
References m_xControl.
| IMPL_LINK_NOARG | ( | SvtCalendarBox | , |
| SelectHdl | , | ||
| weld::Calendar & | , | ||
| void | |||
| ) |
Definition at line 1601 of file ctrlbox.cxx.
| IMPL_LINK_NOARG | ( | SvtLineListBox | , |
| NoneHdl | , | ||
| weld::Button & | , | ||
| void | |||
| ) |
Definition at line 1459 of file ctrlbox.cxx.
| IMPL_LINK_NOARG | ( | SvtLineListBox | , |
| StyleUpdatedHdl | , | ||
| weld::Widget & | , | ||
| void | |||
| ) |
Definition at line 1453 of file ctrlbox.cxx.
| IMPL_LINK_NOARG | ( | SvtLineListBox | , |
| ValueSelectHdl | , | ||
| ValueSet * | , | ||
| void | |||
| ) |
Definition at line 1534 of file ctrlbox.cxx.
References m_xControl.
|
static |
Definition at line 507 of file ctrlbox.cxx.
Referenced by FontNameBox::EnableWYSIWYG().
|
static |
Definition at line 136 of file ctrlbox.cxx.
Referenced by BorderWidthImpl::GuessWidth().
|
static |
Definition at line 197 of file ctrlbox.cxx.
References basegfx::B2DPolygon::append(), svtools::ApplyLineDashing(), basegfx::B2DPolygon::count(), basegfx::B2DPolyPolygon::count(), OutputDevice::DrawPolygon(), OutputDevice::GetAntialiasing(), basegfx::B2DPolygon::getB2DPoint(), basegfx::B2DPolyPolygon::getB2DPolygon(), OutputDevice::GetMapMode(), MapMode::GetMapUnit(), basegfx::getPerpendicular(), i, basegfx::B2DVector::normalize(), OutputDevice::PixelToLogic(), OutputDevice::SetAntialiasing(), and basegfx::B2DPolygon::setClosed().
Referenced by svtools::DrawLine().
|
constexpr |
Definition at line 66 of file ctrlbox.cxx.
Referenced by FontNameBox::InitFontMRUEntriesFile().
|
static |
Definition at line 332 of file ctrlbox.cxx.
Referenced by FontNameBox::FontNameBox(), and FontNameBox::~FontNameBox().
|
static |
Definition at line 334 of file ctrlbox.cxx.
Referenced by FontNameBox::CachePreview(), IMPL_LINK(), and FontNameBox::~FontNameBox().
|
static |
Definition at line 333 of file ctrlbox.cxx.
Referenced by FontNameBox::CachePreview().
|
static |
Definition at line 335 of file ctrlbox.cxx.
Referenced by FontNameBox::CachePreview(), IMPL_LINK(), and FontNameBox::~FontNameBox().
|
static |
Definition at line 331 of file ctrlbox.cxx.
Referenced by FontNameBox::CachePreview(), DrawPreview(), IMPL_LINK(), and IMPL_LINK_NOARG().
|
private |
Definition at line 280 of file ctrlbox.cxx.