LibreOffice Module svx (master)  1
Classes | Namespaces | Macros | Enumerations | Functions | Variables
tbcontrl.cxx File Reference
#include <typeinfo>
#include <utility>
#include <comphelper/propertysequence.hxx>
#include <tools/color.hxx>
#include <svl/poolitem.hxx>
#include <svl/itemset.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/tplpitem.hxx>
#include <sfx2/sfxstatuslistener.hxx>
#include <toolkit/helper/vclunohelper.hxx>
#include <sfx2/viewfrm.hxx>
#include <unotools/fontoptions.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 <sfx2/sidebar/SidebarToolBox.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 <svx/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 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

 o3tl
 

Macros

#define MAX_MRU_FONTNAME_ENTRIES   5
 
#define COMBO_WIDTH_IN_CHARS   18
 
#define BUTTON_PADDING   10
 
#define ITEM_HEIGHT   30
 

Enumerations

enum  FrmValidFlags
 

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)
 
 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::ToggleButton &, rButton, void)
 

Variables

static const char * StyleSlotToStyleCommand [MAX_FAMILIES]
 

Macro Definition Documentation

#define BUTTON_PADDING   10

Definition at line 823 of file tbcontrl.cxx.

#define COMBO_WIDTH_IN_CHARS   18

Definition at line 107 of file tbcontrl.cxx.

#define ITEM_HEIGHT   30

Definition at line 824 of file tbcontrl.cxx.

Referenced by IMPL_LINK().

#define MAX_MRU_FONTNAME_ENTRIES   5

Definition at line 105 of file tbcontrl.cxx.

Enumeration Type Documentation

enum FrmValidFlags
strong

Definition at line 2179 of file tbcontrl.cxx.

Function Documentation

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 3375 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 3678 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 3083 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 3460 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 2711 of file tbcontrl.cxx.

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

Definition at line 864 of file tbcontrl.cxx.

References ITEM_HEIGHT.

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

Definition at line 897 of file tbcontrl.cxx.

References SfxToolBoxControl::Dispatch().

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

Definition at line 930 of file tbcontrl.cxx.

References Select.

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

Definition at line 1028 of file tbcontrl.cxx.

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

Definition at line 1262 of file tbcontrl.cxx.

References nIndex, OutputDevice::Pop(), and OutputDevice::Push().

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

Definition at line 1345 of file tbcontrl.cxx.

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

Definition at line 1547 of file tbcontrl.cxx.

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

Definition at line 1649 of file tbcontrl.cxx.

References Select.

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

Definition at line 1711 of file tbcontrl.cxx.

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

Definition at line 1927 of file tbcontrl.cxx.

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

Definition at line 1963 of file tbcontrl.cxx.

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

Definition at line 3265 of file tbcontrl.cxx.

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

Definition at line 3809 of file tbcontrl.cxx.

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

Definition at line 935 of file tbcontrl.cxx.

References Select.

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

Definition at line 1022 of file tbcontrl.cxx.

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

Definition at line 1541 of file tbcontrl.cxx.

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

Definition at line 1584 of file tbcontrl.cxx.

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

Definition at line 1654 of file tbcontrl.cxx.

References Select.

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

Definition at line 1950 of file tbcontrl.cxx.

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

Definition at line 1983 of file tbcontrl.cxx.

IMPL_LINK_NOARG ( SvxFrameWindow_Impl  ,
SelectHdl  ,
ValueSet ,
void   
)
IMPL_LINK_NOARG ( SvxLineWindow_Impl  ,
SelectHdl  ,
ValueSet ,
void   
)
IMPL_STATIC_LINK_NOARG ( SvxStyleBox_Base  ,
ShowMoreHdl  ,
void ,
void   
)
static bool lcl_GetDocFontList ( const FontList **  ppFontList,
SvxFontNameBox_Base *  pBox 
)
static
static Color lcl_mediumColor ( Color  aMain,
Color   
)
static

Definition at line 2373 of file tbcontrl.cxx.

Variable Documentation

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

Definition at line 2608 of file tbcontrl.cxx.