LibreOffice Module svx (master) 1
Classes | Namespaces | Macros | Functions | Variables
tbcontrl.cxx File Reference
#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/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 <com/sun/star/uno/Reference.h>
#include <com/sun/star/i18n/BreakIterator.hpp>
#include <comphelper/processfactory.hxx>
#include <com/sun/star/i18n/ScriptType.hpp>
Include dependency graph for tbcontrl.cxx:

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 BUTTON_PADDING   10
 
#define ITEM_HEIGHT   30
 

Functions

 IMPL_LINK (SvxStyleBox_Base, CustomGetSizeHdl, OutputDevice &, rArg, Size)
 
 IMPL_LINK (SvxStyleBox_Base, MenuSelectHdl, const OString &, 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 &)
 
 IMPL_LINK (SvxColorToolBoxControl, SelectedHdl, const NamedColor &, rColor, void)
 
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]
 

Macro Definition Documentation

◆ BUTTON_PADDING

#define BUTTON_PADDING   10

Definition at line 862 of file tbcontrl.cxx.

◆ COMBO_WIDTH_IN_CHARS

#define COMBO_WIDTH_IN_CHARS   18

Definition at line 114 of file tbcontrl.cxx.

◆ ITEM_HEIGHT

#define ITEM_HEIGHT   30

Definition at line 863 of file tbcontrl.cxx.

◆ MAX_MRU_FONTNAME_ENTRIES

#define MAX_MRU_FONTNAME_ENTRIES   5

Definition at line 112 of file tbcontrl.cxx.

Function Documentation

◆ com_sun_star_comp_svx_ColorToolBoxControl_get_implementation()

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 3798 of file tbcontrl.cxx.

◆ com_sun_star_comp_svx_CurrencyToolBoxControl_get_implementation()

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 4112 of file tbcontrl.cxx.

◆ com_sun_star_comp_svx_FontNameToolBoxControl_get_implementation()

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 3506 of file tbcontrl.cxx.

◆ com_sun_star_comp_svx_FrameToolBoxControl_get_implementation()

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 3883 of file tbcontrl.cxx.

◆ com_sun_star_comp_svx_StyleToolBoxControl_get_implementation()

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.

◆ GetWhich()

static bool GetWhich ( const SfxItemSet rSet,
sal_uInt16  nSlot,
sal_uInt16 &  rWhich 
)
static

◆ IMPL_LINK() [1/13]

IMPL_LINK ( ColorListBox  ,
ToggleHdl  ,
weld::Toggleable ,
rButton  ,
void   
)

◆ IMPL_LINK() [2/13]

IMPL_LINK ( ColorWindow  ,
AutoColorClickHdl  ,
weld::Button ,
rButton  ,
void   
)

Definition at line 2256 of file tbcontrl.cxx.

References svx::NamedThemedColor::FromNamedColor().

◆ IMPL_LINK() [3/13]

IMPL_LINK ( ColorWindow  ,
SelectHdl  ,
ValueSet ,
pColorSet  ,
void   
)

◆ IMPL_LINK() [4/13]

IMPL_LINK ( SvxColorToolBoxControl  ,
SelectedHdl  ,
const NamedColor ,
rColor  ,
void   
)

Definition at line 3692 of file tbcontrl.cxx.

◆ IMPL_LINK() [5/13]

IMPL_LINK ( SvxFontNameBox_Base  ,
DumpAsPropertyTreeHdl  ,
tools::JsonWriter ,
rJsonWriter  ,
void   
)

Definition at line 1994 of file tbcontrl.cxx.

References i, and m_xWidget.

◆ IMPL_LINK() [6/13]

IMPL_LINK ( SvxFontNameBox_Base  ,
KeyInputHdl  ,
const KeyEvent ,
rKEvt  ,
bool   
)

Definition at line 1826 of file tbcontrl.cxx.

◆ IMPL_LINK() [7/13]

IMPL_LINK ( SvxFontNameBox_Base  ,
SelectHdl  ,
weld::ComboBox ,
rCombo  ,
void   
)

Definition at line 1931 of file tbcontrl.cxx.

References Select.

◆ IMPL_LINK() [8/13]

IMPL_LINK ( SvxStyleBox_Base  ,
CustomGetSizeHdl  ,
OutputDevice ,
rArg  ,
Size   
)

Definition at line 904 of file tbcontrl.cxx.

References ITEM_HEIGHT.

◆ IMPL_LINK() [9/13]

IMPL_LINK ( SvxStyleBox_Base  ,
CustomRenderHdl  ,
weld::ComboBox::render_args  ,
aPayload  ,
void   
)

◆ IMPL_LINK() [10/13]

IMPL_LINK ( SvxStyleBox_Base  ,
DumpAsPropertyTreeHdl  ,
tools::JsonWriter ,
rJsonWriter  ,
void   
)

Definition at line 1622 of file tbcontrl.cxx.

References i, and m_xWidget.

◆ IMPL_LINK() [11/13]

IMPL_LINK ( SvxStyleBox_Base  ,
KeyInputHdl  ,
const KeyEvent ,
rKEvt  ,
bool   
)

Definition at line 1072 of file tbcontrl.cxx.

◆ IMPL_LINK() [12/13]

IMPL_LINK ( SvxStyleBox_Base  ,
MenuSelectHdl  ,
const OString &  ,
rMenuIdent  ,
void   
)

◆ IMPL_LINK() [13/13]

IMPL_LINK ( SvxStyleBox_Base  ,
SelectHdl  ,
weld::ComboBox ,
rCombo  ,
void   
)

Definition at line 973 of file tbcontrl.cxx.

References Select.

◆ IMPL_LINK_NOARG() [1/9]

IMPL_LINK_NOARG ( ColorWindow  ,
OpenPickerClickHdl  ,
weld::Button ,
void   
)

Definition at line 2276 of file tbcontrl.cxx.

◆ IMPL_LINK_NOARG() [2/9]

IMPL_LINK_NOARG ( ColorWindow  ,
SelectPaletteHdl  ,
weld::ComboBox ,
void   
)

Definition at line 2243 of file tbcontrl.cxx.

References nPos.

◆ IMPL_LINK_NOARG() [3/9]

IMPL_LINK_NOARG ( SvxFontNameBox_Base  ,
ActivateHdl  ,
weld::ComboBox ,
bool   
)

Definition at line 1936 of file tbcontrl.cxx.

References Select.

◆ IMPL_LINK_NOARG() [4/9]

IMPL_LINK_NOARG ( SvxFontNameBox_Base  ,
FocusInHdl  ,
weld::Widget ,
void   
)

Definition at line 1821 of file tbcontrl.cxx.

◆ IMPL_LINK_NOARG() [5/9]

IMPL_LINK_NOARG ( SvxFontNameBox_Base  ,
FocusOutHdl  ,
weld::Widget ,
void   
)

Definition at line 1863 of file tbcontrl.cxx.

References m_xWidget.

◆ IMPL_LINK_NOARG() [6/9]

IMPL_LINK_NOARG ( SvxFrameWindow_Impl  ,
SelectHdl  ,
ValueSet ,
void   
)

◆ IMPL_LINK_NOARG() [7/9]

IMPL_LINK_NOARG ( SvxLineWindow_Impl  ,
SelectHdl  ,
ValueSet ,
void   
)

◆ IMPL_LINK_NOARG() [8/9]

IMPL_LINK_NOARG ( SvxStyleBox_Base  ,
ActivateHdl  ,
weld::ComboBox ,
bool   
)

Definition at line 978 of file tbcontrl.cxx.

References Select.

◆ IMPL_LINK_NOARG() [9/9]

IMPL_LINK_NOARG ( SvxStyleBox_Base  ,
FocusOutHdl  ,
weld::Widget ,
void   
)

Definition at line 1066 of file tbcontrl.cxx.

References m_xWidget.

◆ IMPL_STATIC_LINK_NOARG()

IMPL_STATIC_LINK_NOARG ( SvxStyleBox_Base  ,
ShowMoreHdl  ,
void *  ,
void   
)

◆ lcl_GetDocFontList()

static bool lcl_GetDocFontList ( const FontList **  ppFontList,
SvxFontNameBox_Base *  pBox 
)
static

◆ lcl_mediumColor()

static Color lcl_mediumColor ( Color  aMain,
Color   
)
static

Definition at line 2782 of file tbcontrl.cxx.

◆ SetFont()

static bool SetFont ( const SfxItemSet rSet,
sal_uInt16  nSlot,
SvxFont rFont 
)
static

Definition at line 1313 of file tbcontrl.cxx.

References SfxItemSet::Get(), GetWhich(), and rSet.

◆ SetFontSize()

static bool SetFontSize ( vcl::RenderContext rRenderContext,
const SfxItemSet rSet,
sal_uInt16  nSlot,
SvxFont rFont 
)
static

◆ SetFontStyle()

static void SetFontStyle ( const SfxItemSet rSet,
sal_uInt16  nPosture,
sal_uInt16  nWeight,
SvxFont rFont 
)
static

Definition at line 1341 of file tbcontrl.cxx.

References SfxItemSet::Get(), GetWhich(), and rSet.

Variable Documentation

◆ StyleSlotToStyleCommand

const char* StyleSlotToStyleCommand[MAX_FAMILIES]
static
Initial value:
=
{
".uno:CharStyle",
".uno:ParaStyle",
".uno:FrameStyle",
".uno:PageStyle",
".uno:TemplateFamily5"
}

Definition at line 3022 of file tbcontrl.cxx.

Referenced by SvxStyleToolBoxControl::initialize().