LibreOffice Module svx (master)
1
|
#include <charmap.hxx>
Static Public Member Functions | |
static sal_uInt32 & | getSelectedChar () |
static void | CopyToClipboard (const OUString &str) |
static sal_uInt16 | GetRowPos (sal_uInt16 _nPos) |
static sal_uInt16 | GetColumnPos (sal_uInt16 _nPos) |
![]() | |
static bool | IsUpdateMode () |
Protected Types | |
typedef std::map< sal_Int32, std::shared_ptr< svx::SvxShowCharSetItem > > | ItemsMap |
Protected Member Functions | |
virtual void | DrawChars_Impl (vcl::RenderContext &rRenderContext, int n1, int n2) |
void | InitSettings (vcl::RenderContext &rRenderContext) |
Point | MapIndexToPixel (int) const |
DECL_LINK (VscrollHdl, weld::ScrolledWindow &, void) | |
void | ContextMenuSelect (std::string_view rIdent) |
void | init () |
tools::Rectangle | getGridRectangle (const Point &rPointUL, const Size &rOutputSize) |
Protected Attributes | |
VclPtr< VirtualDevice > | mxVirDev |
vcl::Font | maFont |
std::unique_ptr< weld::ScrolledWindow > | mxScrollArea |
ItemsMap | m_aItems |
Link< SvxShowCharSet *, void > | aDoubleClkHdl |
Link< SvxShowCharSet *, void > | aSelectHdl |
Link< SvxShowCharSet *, void > | aFavClickHdl |
Link< SvxShowCharSet *, void > | aHighHdl |
Link< SvxShowCharSet *, void > | aPreSelectHdl |
std::deque< OUString > | maFavCharList |
std::deque< OUString > | maFavCharFontList |
rtl::Reference< svx::SvxShowCharSetAcc > | m_xAccessible |
uno::Reference< uno::XComponentContext > | mxContext |
tools::Long | nX |
tools::Long | nY |
tools::Long | m_nXGap |
tools::Long | m_nYGap |
bool | bDrag |
sal_Int32 | nSelectedIndex |
FontCharMapRef | mxFontCharMap |
Size | maFontSize |
Point | maPosition |
bool | mbRecalculateFont: 1 |
bool | mbUpdateForeground: 1 |
bool | mbUpdateBackground: 1 |
Private Member Functions | |
virtual void | SetDrawingArea (weld::DrawingArea *pDrawingArea) override |
virtual void | Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override |
virtual void | Resize () override |
virtual bool | MouseButtonDown (const MouseEvent &rMEvt) override |
virtual bool | MouseMove (const MouseEvent &rMEvt) override |
virtual bool | MouseButtonUp (const MouseEvent &rMEvt) override |
virtual void | GetFocus () override |
virtual void | LoseFocus () override |
virtual bool | KeyInput (const KeyEvent &) override |
virtual css::uno::Reference< css::accessibility::XAccessible > | CreateAccessible () override |
virtual FactoryFunction | GetUITestFactory () const override |
Definition at line 55 of file charmap.hxx.
|
protected |
Definition at line 119 of file charmap.hxx.
SvxShowCharSet::SvxShowCharSet | ( | std::unique_ptr< weld::ScrolledWindow > | pScrollArea, |
const VclPtr< VirtualDevice > & | rVirDev | ||
) |
Definition at line 62 of file charmap.cxx.
References getProcessComponentContext(), init(), maPosition, and mxContext.
|
overridevirtual |
Definition at line 800 of file charmap.cxx.
References m_aItems, and m_xAccessible.
|
protected |
Definition at line 239 of file charmap.cxx.
References aDoubleClkHdl, aFavClickHdl, Link< class, class >::Call(), CopyToClipboard(), vcl::Font::GetFamilyName(), OutputDevice::GetFont(), GetSelectCharacter(), mxVirDev, and updateFavCharacterList().
Referenced by createContextMenu().
|
static |
Definition at line 255 of file charmap.cxx.
References comphelper::getProcessComponentContext().
Referenced by ContextMenuSelect().
|
overrideprivatevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 810 of file charmap.cxx.
References m_xAccessible.
void SvxShowCharSet::createContextMenu | ( | ) |
Definition at line 222 of file charmap.cxx.
References ContextMenuSelect(), Application::CreateBuilder(), weld::CustomWidgetController::GetDrawingArea(), vcl::Font::GetFamilyName(), OutputDevice::GetFont(), GetSelectCharacter(), weld::CustomWidgetController::GrabFocus(), weld::CustomWidgetController::Invalidate(), isFavChar(), maFavCharList, maPosition, and mxVirDev.
Referenced by MouseButtonDown().
|
protected |
void SvxShowCharSet::DeSelect | ( | ) |
Definition at line 460 of file charmap.cxx.
References weld::CustomWidgetController::Invalidate().
Referenced by svx::SvxShowCharSetAcc::implSelect().
|
protectedvirtual |
Reimplemented in SvxSearchCharSet.
Definition at line 496 of file charmap.cxx.
References tools::Rectangle::Bottom(), COLUMN_COUNT, OutputDevice::DrawLine(), OutputDevice::DrawRect(), OutputDevice::DrawText(), FirstInView(), StyleSettings::GetFaceColor(), StyleSettings::GetFieldTextColor(), OutputDevice::GetFillColor(), getGridRectangle(), StyleSettings::GetHighlightColor(), StyleSettings::GetHighlightTextColor(), StyleSettings::GetLightColor(), OutputDevice::GetLineColor(), weld::CustomWidgetController::GetOutputSizePixel(), Application::GetSettings(), StyleSettings::GetShadowColor(), AllSettings::GetStyleSettings(), OutputDevice::GetTextBoundRect(), OutputDevice::GetTextColor(), OutputDevice::GetTextHeight(), OutputDevice::GetTextWidth(), tools::Rectangle::GetWidth(), weld::CustomWidgetController::HasFocus(), Size::Height(), i, tools::Rectangle::IsEmpty(), LastInView(), tools::Rectangle::Left(), m_nXGap, m_nYGap, MapIndexToPixel(), mxFontCharMap, nSelectedIndex, nX, nY, Point, tools::Rectangle::Right(), ROW_COUNT, OutputDevice::SetFillColor(), OutputDevice::SetLineColor(), OutputDevice::SetTextColor(), tools::Rectangle::Top(), Size::Width(), x, and y.
Referenced by Paint().
int SvxShowCharSet::FirstInView | ( | ) | const |
Definition at line 347 of file charmap.cxx.
References COLUMN_COUNT, and mxScrollArea.
Referenced by SvxSearchCharSet::DrawChars_Impl(), DrawChars_Impl(), svx::SvxShowCharSetItemAcc::getAccessibleStateSet(), SvxSearchCharSet::LastInView(), LastInView(), MapIndexToPixel(), SvxSearchCharSet::Paint(), Paint(), PixelToMapIndex(), SvxSearchCharSet::SelectIndex(), and SelectIndex().
|
inline |
Definition at line 102 of file charmap.hxx.
References weld::DrawingArea::get_accessible_parent(), and weld::CustomWidgetController::GetDrawingArea().
Referenced by svx::SvxShowCharSetAcc::getAccessibleParent().
|
static |
Definition at line 342 of file charmap.cxx.
References COLUMN_COUNT.
Referenced by svx::SvxShowCharSetAcc::getAccessibleColumn(), svx::SvxShowCharSetAcc::getSelectedAccessibleColumns(), and svx::SvxShowCharSetAcc::isAccessibleColumnSelected().
void SvxShowCharSet::getFavCharacterList | ( | ) |
Definition at line 195 of file charmap.cxx.
References maFavCharFontList, maFavCharList, and comphelper::sequenceToContainer().
Referenced by init(), SvxSearchCharSet::RecalculateFont(), and RecalculateFont().
|
overrideprivatevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 110 of file charmap.cxx.
References nSelectedIndex, and SelectIndex().
|
inline |
Definition at line 78 of file charmap.hxx.
FontCharMapRef const & SvxShowCharSet::GetFontCharMap | ( | ) |
Definition at line 841 of file charmap.cxx.
References mxFontCharMap, mxVirDev, and RecalculateFont().
|
protected |
Definition at line 466 of file charmap.cxx.
References Size::AdjustHeight(), Size::AdjustWidth(), Size::Height(), m_nXGap, m_nYGap, nX, nY, Point, Size::Width(), x, and y.
Referenced by SvxSearchCharSet::DrawChars_Impl(), and DrawChars_Impl().
|
virtual |
Reimplemented in SvxSearchCharSet.
Definition at line 836 of file charmap.cxx.
References mxFontCharMap.
Referenced by svx::SvxShowCharSetAcc::getAccessibleChildCount().
|
static |
Definition at line 190 of file charmap.cxx.
References COLUMN_COUNT.
Referenced by svx::SvxShowCharSetAcc::getAccessibleRow(), svx::SvxShowCharSetAcc::getSelectedAccessibleRows(), and svx::SvxShowCharSetAcc::isAccessibleRowSelected().
|
virtual |
Reimplemented in SvxSearchCharSet.
Definition at line 633 of file charmap.cxx.
References getSelectedChar(), mxFontCharMap, and nSelectedIndex.
Referenced by ContextMenuSelect(), and createContextMenu().
|
static |
Definition at line 51 of file charmap.cxx.
Referenced by GetSelectCharacter(), RecalculateFont(), and SelectIndex().
|
inline |
Definition at line 93 of file charmap.hxx.
Referenced by svx::SvxShowCharSetItemAcc::getAccessibleStateSet(), svx::SvxShowCharSetAcc::getSelectedAccessibleColumns(), svx::SvxShowCharSetAcc::getSelectedAccessibleRows(), svx::SvxShowCharSetAcc::isAccessibleColumnSelected(), svx::SvxShowCharSetAcc::isAccessibleRowSelected(), and svx::SvxShowCharSetAcc::isAccessibleSelected().
|
overrideprivatevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 57 of file charmap.cxx.
References SvxShowCharSetUIObject::create().
|
inlineoverridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 100 of file charmap.hxx.
|
virtual |
Reimplemented in SvxSearchCharSet.
Definition at line 817 of file charmap.cxx.
References m_aItems, m_xAccessible, MapIndexToPixel(), mxFontCharMap, nX, nY, and Point.
Referenced by svx::SvxShowCharSetAcc::getAccessibleAtPoint(), svx::SvxShowCharSetAcc::getAccessibleCellAt(), svx::SvxShowCharSetAcc::getAccessibleChild(), and SelectIndex().
|
protected |
Definition at line 92 of file charmap.cxx.
References bDrag, getFavCharacterList(), LINK, m_nXGap, m_nYGap, mxScrollArea, and nSelectedIndex.
Referenced by SvxShowCharSet().
|
protected |
Definition at line 608 of file charmap.cxx.
References ALIGN_TOP, OutputDevice::Erase(), StyleSettings::GetDialogTextColor(), OutputDevice::GetSettings(), AllSettings::GetStyleSettings(), StyleSettings::GetWindowColor(), maFont, maFontSize, mbUpdateBackground, mbUpdateForeground, vcl::Font::SetAlignment(), OutputDevice::SetBackground(), OutputDevice::SetFont(), vcl::Font::SetFontSize(), OutputDevice::SetTextColor(), vcl::Font::SetTransparent(), vcl::Font::SetWeight(), and WEIGHT_LIGHT.
Referenced by SvxSearchCharSet::Paint(), and Paint().
bool SvxShowCharSet::isFavChar | ( | const OUString & | sTitle, |
const OUString & | rFont | ||
) |
Definition at line 208 of file charmap.cxx.
References a, maFavCharFontList, and maFavCharList.
Referenced by createContextMenu(), and updateFavCharacterList().
|
inline |
Definition at line 92 of file charmap.hxx.
|
overrideprivatevirtual |
Reimplemented from weld::CustomWidgetController.
Reimplemented in SvxSearchCharSet.
Definition at line 377 of file charmap.cxx.
References aPreSelectHdl, aSelectHdl, Link< class, class >::Call(), COLUMN_COUNT, KeyEvent::GetCharCode(), vcl::KeyCode::GetCode(), KeyEvent::GetKeyCode(), vcl::KeyCode::GetModifier(), KEY_DOWN, KEY_END, KEY_ESCAPE, KEY_HOME, KEY_LEFT, KEY_PAGEDOWN, KEY_PAGEUP, KEY_RETURN, KEY_RIGHT, KEY_SPACE, KEY_TAB, KEY_UP, mxFontCharMap, nSelectedIndex, ROW_COUNT, and SelectIndex().
|
virtual |
Reimplemented in SvxSearchCharSet.
Definition at line 352 of file charmap.cxx.
References COLUMN_COUNT, FirstInView(), mxFontCharMap, nIndex, and ROW_COUNT.
Referenced by DrawChars_Impl(), svx::SvxShowCharSetItemAcc::getAccessibleStateSet(), Paint(), and SelectIndex().
|
overrideprivatevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 115 of file charmap.cxx.
References nSelectedIndex, and SelectIndex().
Definition at line 362 of file charmap.cxx.
References COLUMN_COUNT, FirstInView(), m_nXGap, m_nYGap, nX, nY, Point, x, and y.
Referenced by SvxSearchCharSet::DrawChars_Impl(), DrawChars_Impl(), SvxSearchCharSet::ImplGetItem(), and ImplGetItem().
|
overrideprivatevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 120 of file charmap.cxx.
References aDoubleClkHdl, bDrag, Link< class, class >::Call(), weld::CustomWidgetController::CaptureMouse(), createContextMenu(), MouseEvent::GetClicks(), MouseEvent::GetPosPixel(), weld::CustomWidgetController::GrabFocus(), MouseEvent::IsLeft(), MouseEvent::IsRight(), maPosition, nIndex, PixelToMapIndex(), Point, and SelectIndex().
|
overrideprivatevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 152 of file charmap.cxx.
References aSelectHdl, bDrag, Link< class, class >::Call(), weld::CustomWidgetController::GetOutputSizePixel(), MouseEvent::GetPosPixel(), tools::Rectangle::IsInside(), MouseEvent::IsLeft(), Point, and weld::CustomWidgetController::ReleaseMouse().
|
overrideprivatevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 166 of file charmap.cxx.
References bDrag, weld::CustomWidgetController::GetOutputSizePixel(), MouseEvent::GetPosPixel(), Size::Height(), MouseEvent::IsLeft(), nIndex, PixelToMapIndex(), Point, SelectIndex(), and Size::Width().
Definition at line 754 of file charmap.cxx.
References aSelectHdl, Link< class, class >::Call(), and SelectIndex().
Referenced by svx::SvxShowCharSetItemAcc::doAccessibleAction(), and SvxShowCharSetUIObject::execute().
|
overrideprivatevirtual |
Implements weld::CustomWidgetController.
Reimplemented in SvxSearchCharSet.
Definition at line 446 of file charmap.cxx.
References DrawChars_Impl(), FirstInView(), InitSettings(), LastInView(), and RecalculateFont().
Definition at line 371 of file charmap.cxx.
References COLUMN_COUNT, FirstInView(), m_nXGap, m_nYGap, nX, and nY.
Referenced by svx::SvxShowCharSetAcc::getAccessibleAtPoint(), MouseButtonDown(), and MouseMove().
|
virtual |
Reimplemented in SvxSearchCharSet.
Definition at line 641 of file charmap.cxx.
References ALIGN_TOP, COLUMN_COUNT, getFavCharacterList(), OutputDevice::GetFontCharMap(), weld::CustomWidgetController::GetOutputSizePixel(), getSelectedChar(), Size::Height(), m_nXGap, m_nYGap, maFont, maFontSize, mbRecalculateFont, mxFontCharMap, mxScrollArea, nSelectedIndex, nX, nY, OutputDevice::PixelToLogic(), ROW_COUNT, SelectIndex(), vcl::Font::SetAlignment(), OutputDevice::SetFont(), vcl::Font::SetFontSize(), vcl::Font::SetTransparent(), vcl::Font::SetWeight(), WEIGHT_LIGHT, and Size::Width().
Referenced by GetFontCharMap(), Paint(), SelectCharacter(), and SelectIndex().
|
overrideprivatevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 105 of file charmap.cxx.
References mbRecalculateFont.
Definition at line 761 of file charmap.cxx.
References COLUMN_COUNT, weld::CustomWidgetController::Invalidate(), tools::SvRef< T >::is(), mxFontCharMap, mxScrollArea, mxVirDev, RecalculateFont(), and SelectIndex().
Reimplemented in SvxSearchCharSet.
Definition at line 682 of file charmap.cxx.
References aHighHdl, Any, assert(), Link< class, class >::Call(), COLUMN_COUNT, FirstInView(), svx::SvxShowCharSetItem::GetAccessible(), getSelectedChar(), ImplGetItem(), weld::CustomWidgetController::Invalidate(), tools::SvRef< T >::is(), LastInView(), m_xAccessible, svx::SvxShowCharSetItem::m_xItem, makeAny(), mxFontCharMap, mxScrollArea, mxVirDev, nSelectedIndex, and RecalculateFont().
Referenced by GetFocus(), svx::SvxShowCharSetAcc::implSelect(), KeyInput(), LoseFocus(), MouseButtonDown(), MouseMove(), OutputIndex(), RecalculateFont(), and SelectCharacter().
|
inline |
Definition at line 71 of file charmap.hxx.
|
overrideprivatevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 77 of file charmap.cxx.
References COLUMN_COUNT, weld::Widget::get_approximate_digit_width(), weld::Widget::get_text_height(), mxScrollArea, nX, nY, and ROW_COUNT.
|
inline |
Definition at line 75 of file charmap.hxx.
Definition at line 453 of file charmap.cxx.
References weld::CustomWidgetController::Invalidate(), maFont, and mbRecalculateFont.
|
inline |
Definition at line 73 of file charmap.hxx.
|
inline |
Definition at line 74 of file charmap.hxx.
|
inline |
Definition at line 72 of file charmap.hxx.
|
inlineoverridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 99 of file charmap.hxx.
void SvxShowCharSet::updateFavCharacterList | ( | const OUString & | rChar, |
const OUString & | rFont | ||
) |
Definition at line 278 of file charmap.cxx.
References comphelper::ConfigurationChanges::create(), i, isFavChar(), maFavCharFontList, maFavCharList, and mxContext.
Referenced by ContextMenuSelect().
|
protected |
Definition at line 121 of file charmap.hxx.
Referenced by ContextMenuSelect(), and MouseButtonDown().
|
protected |
Definition at line 123 of file charmap.hxx.
Referenced by ContextMenuSelect().
|
protected |
Definition at line 124 of file charmap.hxx.
Referenced by SvxSearchCharSet::SelectCharacter(), SvxSearchCharSet::SelectIndex(), and SelectIndex().
|
protected |
Definition at line 125 of file charmap.hxx.
Referenced by SvxSearchCharSet::KeyInput(), and KeyInput().
|
protected |
Definition at line 122 of file charmap.hxx.
Referenced by SvxSearchCharSet::KeyInput(), KeyInput(), MouseButtonUp(), and OutputIndex().
|
protected |
Definition at line 136 of file charmap.hxx.
Referenced by init(), MouseButtonDown(), MouseButtonUp(), and MouseMove().
|
protected |
Definition at line 120 of file charmap.hxx.
Referenced by SvxSearchCharSet::ImplGetItem(), ImplGetItem(), and ~SvxShowCharSet().
|
protected |
Definition at line 134 of file charmap.hxx.
Referenced by SvxSearchCharSet::DrawChars_Impl(), DrawChars_Impl(), getGridRectangle(), init(), MapIndexToPixel(), PixelToMapIndex(), SvxSearchCharSet::RecalculateFont(), and RecalculateFont().
|
protected |
Definition at line 135 of file charmap.hxx.
Referenced by SvxSearchCharSet::DrawChars_Impl(), DrawChars_Impl(), getGridRectangle(), init(), MapIndexToPixel(), PixelToMapIndex(), SvxSearchCharSet::RecalculateFont(), and RecalculateFont().
|
protected |
Definition at line 130 of file charmap.hxx.
Referenced by CreateAccessible(), SvxSearchCharSet::ImplGetItem(), ImplGetItem(), SvxSearchCharSet::SelectIndex(), SelectIndex(), and ~SvxShowCharSet().
|
protected |
Definition at line 128 of file charmap.hxx.
Referenced by getFavCharacterList(), isFavChar(), and updateFavCharacterList().
|
protected |
Definition at line 127 of file charmap.hxx.
Referenced by createContextMenu(), getFavCharacterList(), isFavChar(), and updateFavCharacterList().
|
protected |
Definition at line 59 of file charmap.hxx.
Referenced by InitSettings(), RecalculateFont(), and SetFont().
|
protected |
Definition at line 141 of file charmap.hxx.
Referenced by InitSettings(), SvxSearchCharSet::RecalculateFont(), and RecalculateFont().
|
protected |
Definition at line 142 of file charmap.hxx.
Referenced by createContextMenu(), and MouseButtonDown().
|
protected |
Definition at line 144 of file charmap.hxx.
Referenced by SvxSearchCharSet::RecalculateFont(), RecalculateFont(), Resize(), and SetFont().
|
protected |
Definition at line 146 of file charmap.hxx.
Referenced by InitSettings().
|
protected |
Definition at line 145 of file charmap.hxx.
Referenced by InitSettings().
|
protected |
Definition at line 131 of file charmap.hxx.
Referenced by updateFavCharacterList().
|
protected |
Definition at line 140 of file charmap.hxx.
Referenced by DrawChars_Impl(), GetFontCharMap(), getMaxCharCount(), GetSelectCharacter(), ImplGetItem(), KeyInput(), LastInView(), SvxSearchCharSet::RecalculateFont(), RecalculateFont(), SvxSearchCharSet::SelectCharacter(), SelectCharacter(), SvxSearchCharSet::SelectIndex(), and SelectIndex().
|
protected |
Definition at line 60 of file charmap.hxx.
Referenced by FirstInView(), init(), SvxSearchCharSet::RecalculateFont(), RecalculateFont(), SelectCharacter(), SvxSearchCharSet::SelectIndex(), SelectIndex(), and SetDrawingArea().
|
protected |
Definition at line 58 of file charmap.hxx.
Referenced by ContextMenuSelect(), createContextMenu(), GetFontCharMap(), SvxSearchCharSet::SelectCharacter(), SelectCharacter(), SvxSearchCharSet::SelectIndex(), and SelectIndex().
|
protected |
Definition at line 138 of file charmap.hxx.
Referenced by SvxSearchCharSet::DrawChars_Impl(), DrawChars_Impl(), GetFocus(), SvxSearchCharSet::GetSelectCharacter(), GetSelectCharacter(), init(), SvxSearchCharSet::KeyInput(), KeyInput(), LoseFocus(), RecalculateFont(), SvxSearchCharSet::SelectIndex(), and SelectIndex().
|
protected |
Definition at line 132 of file charmap.hxx.
Referenced by SvxSearchCharSet::DrawChars_Impl(), DrawChars_Impl(), getGridRectangle(), SvxSearchCharSet::ImplGetItem(), ImplGetItem(), MapIndexToPixel(), PixelToMapIndex(), SvxSearchCharSet::RecalculateFont(), RecalculateFont(), and SetDrawingArea().
|
protected |
Definition at line 133 of file charmap.hxx.
Referenced by SvxSearchCharSet::DrawChars_Impl(), DrawChars_Impl(), getGridRectangle(), SvxSearchCharSet::ImplGetItem(), ImplGetItem(), MapIndexToPixel(), PixelToMapIndex(), SvxSearchCharSet::RecalculateFont(), RecalculateFont(), and SetDrawingArea().