LibreOffice Module svx (master) 1
|
#include <utility>
#include <comphelper/configurationlistener.hxx>
#include <comphelper/propertysequence.hxx>
#include <comphelper/propertyvalue.hxx>
#include <tools/color.hxx>
#include <svl/numformat.hxx>
#include <svl/poolitem.hxx>
#include <svl/itemset.hxx>
#include <svl/itempool.hxx>
#include <vcl/commandinfoprovider.hxx>
#include <vcl/event.hxx>
#include <vcl/toolbox.hxx>
#include <vcl/customweld.hxx>
#include <vcl/vclptr.hxx>
#include <vcl/weldutils.hxx>
#include <svtools/valueset.hxx>
#include <svtools/ctrlbox.hxx>
#include <svl/style.hxx>
#include <svtools/ctrltool.hxx>
#include <svtools/borderhelper.hxx>
#include <vcl/InterimItemWindow.hxx>
#include <sfx2/tbxctrl.hxx>
#include <sfx2/tplpitem.hxx>
#include <sfx2/sfxstatuslistener.hxx>
#include <toolkit/helper/vclunohelper.hxx>
#include <sfx2/viewfrm.hxx>
#include <vcl/svapp.hxx>
#include <vcl/settings.hxx>
#include <vcl/virdev.hxx>
#include <com/sun/star/awt/FontDescriptor.hpp>
#include <com/sun/star/table/BorderLine2.hpp>
#include <com/sun/star/style/XStyleFamiliesSupplier.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/util/XNumberFormatsSupplier.hpp>
#include <com/sun/star/frame/XDispatchProvider.hpp>
#include <com/sun/star/frame/XFrame.hpp>
#include <svx/strings.hrc>
#include <svx/svxids.hrc>
#include <helpids.h>
#include <sfx2/sidebar/Sidebar.hxx>
#include <svx/xtable.hxx>
#include <editeng/editids.hrc>
#include <editeng/fontitem.hxx>
#include <editeng/fhgtitem.hxx>
#include <editeng/boxitem.hxx>
#include <editeng/charreliefitem.hxx>
#include <editeng/contouritem.hxx>
#include <editeng/colritem.hxx>
#include <editeng/crossedoutitem.hxx>
#include <editeng/emphasismarkitem.hxx>
#include <editeng/flstitem.hxx>
#include <editeng/lineitem.hxx>
#include <editeng/postitem.hxx>
#include <editeng/shdditem.hxx>
#include <editeng/udlnitem.hxx>
#include <editeng/wghtitem.hxx>
#include <editeng/svxfont.hxx>
#include <editeng/cmapitem.hxx>
#include <svx/colorwindow.hxx>
#include <svx/colorbox.hxx>
#include <svx/tbcontrl.hxx>
#include <svx/dialmgr.hxx>
#include <svx/PaletteManager.hxx>
#include <memory>
#include <tbxcolorupdate.hxx>
#include <editeng/eerdll.hxx>
#include <editeng/editrids.hrc>
#include <svx/xdef.hxx>
#include <svx/xfillit0.hxx>
#include <svx/xflclit.hxx>
#include <svl/currencytable.hxx>
#include <svtools/langtab.hxx>
#include <cppu/unotype.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <officecfg/Office/Common.hxx>
#include <o3tl/safeint.hxx>
#include <o3tl/string_view.hxx>
#include <o3tl/typed_flags_set.hxx>
#include <bitmaps.hlst>
#include <sal/log.hxx>
#include <unotools/collatorwrapper.hxx>
#include <comphelper/lok.hxx>
#include <tools/json_writer.hxx>
#include <editeng/editeng.hxx>
Go to the source code of this file.
Classes | |
class | SfxStyleControllerItem_Impl |
struct | o3tl::typed_flags< FrmValidFlags > |
struct | SvxStyleToolBoxControl::Impl |
Namespaces | |
namespace | o3tl |
Macros | |
#define | MAX_MRU_FONTNAME_ENTRIES 5 |
#define | COMBO_WIDTH_IN_CHARS 18 |
#define | MAX_MRU_CURRENCIES 5 |
#define | INVALID_CURRENCY sal_uInt16(-2) |
#define | BUTTON_PADDING 10 |
#define | ITEM_HEIGHT 30 |
Functions | |
IMPL_LINK (SvxStyleBox_Base, CustomGetSizeHdl, OutputDevice &, rArg, Size) | |
IMPL_LINK (SvxStyleBox_Base, MenuSelectHdl, const OUString &, rMenuIdent, void) | |
IMPL_STATIC_LINK_NOARG (SvxStyleBox_Base, ShowMoreHdl, void *, void) | |
IMPL_LINK (SvxStyleBox_Base, SelectHdl, weld::ComboBox &, rCombo, void) | |
IMPL_LINK_NOARG (SvxStyleBox_Base, ActivateHdl, weld::ComboBox &, bool) | |
IMPL_LINK_NOARG (SvxStyleBox_Base, FocusOutHdl, weld::Widget &, void) | |
IMPL_LINK (SvxStyleBox_Base, KeyInputHdl, const KeyEvent &, rKEvt, bool) | |
static bool | GetWhich (const SfxItemSet &rSet, sal_uInt16 nSlot, sal_uInt16 &rWhich) |
static bool | SetFont (const SfxItemSet &rSet, sal_uInt16 nSlot, SvxFont &rFont) |
static bool | SetFontSize (vcl::RenderContext &rRenderContext, const SfxItemSet &rSet, sal_uInt16 nSlot, SvxFont &rFont) |
static void | SetFontStyle (const SfxItemSet &rSet, sal_uInt16 nPosture, sal_uInt16 nWeight, SvxFont &rFont) |
IMPL_LINK (SvxStyleBox_Base, CustomRenderHdl, weld::ComboBox::render_args, aPayload, void) | |
IMPL_LINK (SvxStyleBox_Base, DumpAsPropertyTreeHdl, tools::JsonWriter &, rJsonWriter, void) | |
static bool | lcl_GetDocFontList (const FontList **ppFontList, SvxFontNameBox_Base *pBox) |
IMPL_LINK_NOARG (SvxFontNameBox_Base, FocusInHdl, weld::Widget &, void) | |
IMPL_LINK (SvxFontNameBox_Base, KeyInputHdl, const KeyEvent &, rKEvt, bool) | |
IMPL_LINK_NOARG (SvxFontNameBox_Base, FocusOutHdl, weld::Widget &, void) | |
IMPL_LINK (SvxFontNameBox_Base, SelectHdl, weld::ComboBox &, rCombo, void) | |
IMPL_LINK_NOARG (SvxFontNameBox_Base, ActivateHdl, weld::ComboBox &, bool) | |
IMPL_LINK (SvxFontNameBox_Base, DumpAsPropertyTreeHdl, tools::JsonWriter &, rJsonWriter, void) | |
IMPL_LINK (ColorWindow, SelectHdl, ValueSet *, pColorSet, void) | |
IMPL_LINK_NOARG (ColorWindow, SelectPaletteHdl, weld::ComboBox &, void) | |
IMPL_LINK (ColorWindow, AutoColorClickHdl, weld::Button &, rButton, void) | |
IMPL_LINK_NOARG (ColorWindow, OpenPickerClickHdl, weld::Button &, void) | |
IMPL_LINK_NOARG (SvxFrameWindow_Impl, SelectHdl, ValueSet *, void) | |
static Color | lcl_mediumColor (Color aMain, Color) |
IMPL_LINK_NOARG (SvxLineWindow_Impl, SelectHdl, ValueSet *, void) | |
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * | com_sun_star_comp_svx_StyleToolBoxControl_get_implementation (css::uno::XComponentContext *, css::uno::Sequence< css::uno::Any > const &) |
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * | com_sun_star_comp_svx_FontNameToolBoxControl_get_implementation (css::uno::XComponentContext *, css::uno::Sequence< css::uno::Any > const &) |
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * | com_sun_star_comp_svx_ColorToolBoxControl_get_implementation (css::uno::XComponentContext *rContext, css::uno::Sequence< css::uno::Any > const &) |
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * | com_sun_star_comp_svx_FrameToolBoxControl_get_implementation (css::uno::XComponentContext *rContext, css::uno::Sequence< css::uno::Any > const &) |
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * | com_sun_star_comp_svx_CurrencyToolBoxControl_get_implementation (css::uno::XComponentContext *rContext, css::uno::Sequence< css::uno::Any > const &) |
IMPL_LINK (ColorListBox, ToggleHdl, weld::Toggleable &, rButton, void) | |
Variables | |
static const char * | StyleSlotToStyleCommand [MAX_FAMILIES] |
#define BUTTON_PADDING 10 |
Definition at line 859 of file tbcontrl.cxx.
#define COMBO_WIDTH_IN_CHARS 18 |
Definition at line 112 of file tbcontrl.cxx.
#define INVALID_CURRENCY sal_uInt16(-2) |
Definition at line 116 of file tbcontrl.cxx.
#define ITEM_HEIGHT 30 |
Definition at line 860 of file tbcontrl.cxx.
#define MAX_MRU_CURRENCIES 5 |
Definition at line 114 of file tbcontrl.cxx.
#define MAX_MRU_FONTNAME_ENTRIES 5 |
Definition at line 110 of file tbcontrl.cxx.
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * com_sun_star_comp_svx_ColorToolBoxControl_get_implementation | ( | css::uno::XComponentContext * | rContext, |
css::uno::Sequence< css::uno::Any > const & | |||
) |
Definition at line 3756 of file tbcontrl.cxx.
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * com_sun_star_comp_svx_CurrencyToolBoxControl_get_implementation | ( | css::uno::XComponentContext * | rContext, |
css::uno::Sequence< css::uno::Any > const & | |||
) |
Definition at line 4093 of file tbcontrl.cxx.
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * com_sun_star_comp_svx_FontNameToolBoxControl_get_implementation | ( | css::uno::XComponentContext * | , |
css::uno::Sequence< css::uno::Any > const & | |||
) |
Definition at line 3479 of file tbcontrl.cxx.
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * com_sun_star_comp_svx_FrameToolBoxControl_get_implementation | ( | css::uno::XComponentContext * | rContext, |
css::uno::Sequence< css::uno::Any > const & | |||
) |
Definition at line 3840 of file tbcontrl.cxx.
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * com_sun_star_comp_svx_StyleToolBoxControl_get_implementation | ( | css::uno::XComponentContext * | , |
css::uno::Sequence< css::uno::Any > const & | |||
) |
Definition at line 3122 of file tbcontrl.cxx.
|
static |
Definition at line 1296 of file tbcontrl.cxx.
References SfxItemSet::GetItemState(), SfxItemSet::GetPool(), SfxItemPool::GetWhich(), and rSet.
Referenced by SetFont(), SetFontSize(), and SetFontStyle().
IMPL_LINK | ( | ColorListBox | , |
ToggleHdl | , | ||
weld::Toggleable & | , | ||
rButton | , | ||
void | |||
) |
Definition at line 4291 of file tbcontrl.cxx.
References ColorWindow::GrabFocus(), and comphelper::LibreOfficeKit::isActive().
IMPL_LINK | ( | ColorWindow | , |
AutoColorClickHdl | , | ||
weld::Button & | , | ||
rButton | , | ||
void | |||
) |
Definition at line 2256 of file tbcontrl.cxx.
IMPL_LINK | ( | ColorWindow | , |
SelectHdl | , | ||
ValueSet * | , | ||
pColorSet | , | ||
void | |||
) |
Definition at line 2207 of file tbcontrl.cxx.
References PaletteManager::GetThemeAndEffectIndex(), NamedColor::m_aColor, NamedColor::m_aName, NamedColor::m_nLumMod, NamedColor::m_nLumOff, and NamedColor::m_nThemeIndex.
IMPL_LINK | ( | SvxFontNameBox_Base | , |
DumpAsPropertyTreeHdl | , | ||
tools::JsonWriter & | , | ||
rJsonWriter | , | ||
void | |||
) |
Definition at line 1989 of file tbcontrl.cxx.
IMPL_LINK | ( | SvxFontNameBox_Base | , |
KeyInputHdl | , | ||
const KeyEvent & | , | ||
rKEvt | , | ||
bool | |||
) |
Definition at line 1824 of file tbcontrl.cxx.
IMPL_LINK | ( | SvxFontNameBox_Base | , |
SelectHdl | , | ||
weld::ComboBox & | , | ||
rCombo | , | ||
void | |||
) |
Definition at line 1929 of file tbcontrl.cxx.
References Select.
IMPL_LINK | ( | SvxStyleBox_Base | , |
CustomGetSizeHdl | , | ||
OutputDevice & | , | ||
rArg | , | ||
Size | |||
) |
Definition at line 899 of file tbcontrl.cxx.
References ITEM_HEIGHT.
IMPL_LINK | ( | SvxStyleBox_Base | , |
CustomRenderHdl | , | ||
weld::ComboBox::render_args | , | ||
aPayload | , | ||
void | |||
) |
Definition at line 1526 of file tbcontrl.cxx.
References vcl::FILLCOLOR, vcl::FONT, m_xWidget, nIndex, OutputDevice::Pop(), OutputDevice::Push(), and vcl::TEXTCOLOR.
IMPL_LINK | ( | SvxStyleBox_Base | , |
DumpAsPropertyTreeHdl | , | ||
tools::JsonWriter & | , | ||
rJsonWriter | , | ||
void | |||
) |
Definition at line 1614 of file tbcontrl.cxx.
IMPL_LINK | ( | SvxStyleBox_Base | , |
KeyInputHdl | , | ||
const KeyEvent & | , | ||
rKEvt | , | ||
bool | |||
) |
Definition at line 1070 of file tbcontrl.cxx.
IMPL_LINK | ( | SvxStyleBox_Base | , |
MenuSelectHdl | , | ||
const OUString & | , | ||
rMenuIdent | , | ||
void | |||
) |
Definition at line 933 of file tbcontrl.cxx.
References SfxToolBoxControl::Dispatch(), m_xFrame, m_xWidget, and comphelper::makePropertyValue().
IMPL_LINK | ( | SvxStyleBox_Base | , |
SelectHdl | , | ||
weld::ComboBox & | , | ||
rCombo | , | ||
void | |||
) |
Definition at line 966 of file tbcontrl.cxx.
References Select.
IMPL_LINK_NOARG | ( | ColorWindow | , |
OpenPickerClickHdl | , | ||
weld::Button & | , | ||
void | |||
) |
Definition at line 2276 of file tbcontrl.cxx.
IMPL_LINK_NOARG | ( | ColorWindow | , |
SelectPaletteHdl | , | ||
weld::ComboBox & | , | ||
void | |||
) |
Definition at line 2243 of file tbcontrl.cxx.
References nPos.
IMPL_LINK_NOARG | ( | SvxFontNameBox_Base | , |
ActivateHdl | , | ||
weld::ComboBox & | , | ||
bool | |||
) |
Definition at line 1934 of file tbcontrl.cxx.
References Select.
IMPL_LINK_NOARG | ( | SvxFontNameBox_Base | , |
FocusInHdl | , | ||
weld::Widget & | , | ||
void | |||
) |
Definition at line 1819 of file tbcontrl.cxx.
IMPL_LINK_NOARG | ( | SvxFontNameBox_Base | , |
FocusOutHdl | , | ||
weld::Widget & | , | ||
void | |||
) |
Definition at line 1861 of file tbcontrl.cxx.
References m_xWidget.
IMPL_LINK_NOARG | ( | SvxFrameWindow_Impl | , |
SelectHdl | , | ||
ValueSet * | , | ||
void | |||
) |
Definition at line 2501 of file tbcontrl.cxx.
References Any, SvxBorderLineWidth::Hairline, KEY_SHIFT, comphelper::makePropertyValue(), SvxBoxInfoItem::QueryValue(), SvxBoxItem::QueryValue(), SvxLineItem::SetLine(), SvxBoxInfoItem::SetLine(), SvxBoxItem::SetLine(), SvxBoxInfoItem::SetValid(), and SvxBorderLineWidth::Thin.
IMPL_LINK_NOARG | ( | SvxLineWindow_Impl | , |
SelectHdl | , | ||
ValueSet * | , | ||
void | |||
) |
Definition at line 2848 of file tbcontrl.cxx.
References a, Any, CONVERT_TWIPS, m_xControl, comphelper::makePropertyValue(), SvxLineItem::QueryValue(), SvxLineItem::SetLine(), and SvxBorderLineWidth::Thin.
IMPL_LINK_NOARG | ( | SvxStyleBox_Base | , |
ActivateHdl | , | ||
weld::ComboBox & | , | ||
bool | |||
) |
Definition at line 971 of file tbcontrl.cxx.
References Select.
IMPL_LINK_NOARG | ( | SvxStyleBox_Base | , |
FocusOutHdl | , | ||
weld::Widget & | , | ||
void | |||
) |
Definition at line 1064 of file tbcontrl.cxx.
References m_xWidget.
IMPL_STATIC_LINK_NOARG | ( | SvxStyleBox_Base | , |
ShowMoreHdl | , | ||
void * | , | ||
void | |||
) |
Definition at line 956 of file tbcontrl.cxx.
References SfxViewFrame::Current(), DBG_ASSERT, SfxViewFrame::GetFrame(), SfxFrame::GetFrameInterface(), SfxViewFrame::ShowChildWindow(), sfx2::sidebar::Sidebar::ShowPanel(), and u.
|
static |
Definition at line 1643 of file tbcontrl.cxx.
References SfxObjectShell::Current(), DBG_ASSERT, Application::GetDefaultDevice(), SvxFontListItem::GetFontList(), FontList::GetFontNameCount(), and SfxShell::GetItem().
Definition at line 2782 of file tbcontrl.cxx.
|
static |
Definition at line 1302 of file tbcontrl.cxx.
References SfxItemSet::Get(), GetWhich(), and rSet.
|
static |
Definition at line 1315 of file tbcontrl.cxx.
References SfxObjectShell::Current(), SfxItemSet::Get(), SfxObjectShell::GetMapUnit(), GetWhich(), OutputDevice::LogicToPixel(), and rSet.
|
static |
Definition at line 1332 of file tbcontrl.cxx.
References SfxItemSet::Get(), GetWhich(), and rSet.
|
static |
Definition at line 3022 of file tbcontrl.cxx.
Referenced by SvxStyleToolBoxControl::initialize().