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/menubtn.hxx>
#include <vcl/customweld.hxx>
#include <vcl/vclptr.hxx>
#include <svtools/valueset.hxx>
#include <svtools/ctrlbox.hxx>
#include <svl/style.hxx>
#include <svtools/ctrltool.hxx>
#include <svtools/borderhelper.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 <boost/property_tree/ptree.hpp>
#include <comphelper/lok.hxx>
Include dependency graph for tbcontrl.cxx:

Go to the source code of this file.

Classes

class  SvxStyleBox_Impl
 
class  SfxStyleControllerItem_Impl
 
struct  o3tl::typed_flags< FrmValidFlags >
 
struct  SvxStyleToolBoxControl::Impl
 

Namespaces

 o3tl
 

Macros

#define MAX_MRU_FONTNAME_ENTRIES   5
 
#define MAX_STYLES_ENTRIES   15
 
#define BUTTON_WIDTH   20
 
#define BUTTON_PADDING   10
 
#define ITEM_HEIGHT   30
 

Enumerations

enum  FrmValidFlags
 

Functions

 SFX_IMPL_TOOLBOX_CONTROL (SvxStyleToolBoxControl, SfxTemplateItem)
 
 IMPL_LINK (SvxStyleBox_Impl, MenuSelectHdl, Menu *, pMenu, bool)
 
 IMPL_STATIC_LINK_NOARG (SvxStyleBox_Impl, ShowMoreHdl, void *, void)
 
 IMPL_LINK (SvxStyleBox_Impl, CalcOptimalExtraUserWidth, VclWindowEvent &, event, void)
 
static bool lcl_GetDocFontList (const FontList **ppFontList, SvxFontNameBox_Impl *pBox)
 
 IMPL_LINK (SvxFontNameBox_Impl, CheckAndMarkUnknownFont, VclWindowEvent &, event, void)
 
 IMPL_LINK (SvxColorWindow, SelectHdl, ValueSet *, pColorSet, void)
 
 IMPL_LINK (ColorWindow, SelectHdl, SvtValueSet *, pColorSet, void)
 
 IMPL_LINK_NOARG (SvxColorWindow, SelectPaletteHdl, ListBox &, void)
 
 IMPL_LINK_NOARG (ColorWindow, SelectPaletteHdl, weld::ComboBox &, void)
 
 IMPL_LINK (SvxColorWindow, AutoColorClickHdl, Button *, pButton, void)
 
 IMPL_LINK (ColorWindow, AutoColorClickHdl, weld::Button &, rButton, void)
 
 IMPL_LINK_NOARG (SvxColorWindow, OpenPickerClickHdl, Button *, void)
 
 IMPL_LINK_NOARG (ColorWindow, OpenPickerClickHdl, weld::Button &, void)
 
 IMPL_LINK_NOARG (SvxFrameWindow_Impl, SelectHdl, SvtValueSet *, void)
 
static Color lcl_mediumColor (Color aMain, Color)
 
 IMPL_LINK_NOARG (SvxLineWindow_Impl, SelectHdl, SvtValueSet *, void)
 
 IMPL_LINK_NOARG (SvxStyleToolBoxControl, VisibilityNotification, SvxStyleBox_Impl &, void)
 
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 (SvxColorListBox, WindowEventListener, VclWindowEvent &, rWindowEvent, void)
 
 IMPL_LINK_NOARG (SvxColorListBox, MenuActivateHdl, MenuButton *, void)
 
 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 643 of file tbcontrl.cxx.

Referenced by IMPL_LINK().

#define BUTTON_WIDTH   20

Definition at line 642 of file tbcontrl.cxx.

Referenced by IMPL_LINK(), and SvxStyleBox_Impl::SetupEntry().

#define ITEM_HEIGHT   30

Definition at line 644 of file tbcontrl.cxx.

Referenced by IMPL_LINK(), and SvxStyleBox_Impl::SvxStyleBox_Impl().

#define MAX_MRU_FONTNAME_ENTRIES   5

Definition at line 104 of file tbcontrl.cxx.

#define MAX_STYLES_ENTRIES   15

Enumeration Type Documentation

enum FrmValidFlags
strong

Definition at line 2377 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 3545 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 3848 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 3253 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 3630 of file tbcontrl.cxx.

IMPL_LINK ( SvxStyleBox_Impl  ,
MenuSelectHdl  ,
Menu ,
pMenu  ,
bool   
)

Definition at line 712 of file tbcontrl.cxx.

References SfxToolBoxControl::Dispatch().

IMPL_LINK ( SvxStyleBox_Impl  ,
CalcOptimalExtraUserWidth  ,
VclWindowEvent ,
event  ,
void   
)
IMPL_LINK ( SvxFontNameBox_Impl  ,
CheckAndMarkUnknownFont  ,
VclWindowEvent ,
event  ,
void   
)
IMPL_LINK ( SvxColorWindow  ,
SelectHdl  ,
ValueSet ,
pColorSet  ,
void   
)

Definition at line 1976 of file tbcontrl.cxx.

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

Definition at line 1997 of file tbcontrl.cxx.

IMPL_LINK ( SvxColorWindow  ,
AutoColorClickHdl  ,
Button ,
pButton  ,
void   
)

Definition at line 2046 of file tbcontrl.cxx.

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

Definition at line 2062 of file tbcontrl.cxx.

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

Definition at line 3435 of file tbcontrl.cxx.

IMPL_LINK ( SvxColorListBox  ,
WindowEventListener  ,
VclWindowEvent ,
rWindowEvent  ,
void   
)

Definition at line 4049 of file tbcontrl.cxx.

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

Definition at line 4145 of file tbcontrl.cxx.

IMPL_LINK_NOARG ( SvxColorWindow  ,
SelectPaletteHdl  ,
ListBox ,
void   
)

Definition at line 2020 of file tbcontrl.cxx.

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

Definition at line 2028 of file tbcontrl.cxx.

IMPL_LINK_NOARG ( SvxColorWindow  ,
OpenPickerClickHdl  ,
Button ,
void   
)

Definition at line 2082 of file tbcontrl.cxx.

References first(), and Application::GetFrameWeld().

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

Definition at line 2102 of file tbcontrl.cxx.

IMPL_LINK_NOARG ( SvxFrameWindow_Impl  ,
SelectHdl  ,
SvtValueSet ,
void   
)
IMPL_LINK_NOARG ( SvxLineWindow_Impl  ,
SelectHdl  ,
SvtValueSet ,
void   
)
IMPL_LINK_NOARG ( SvxStyleToolBoxControl  ,
VisibilityNotification  ,
SvxStyleBox_Impl ,
void   
)

Definition at line 3085 of file tbcontrl.cxx.

References SvxStyleBox_Impl::IsVisible().

IMPL_LINK_NOARG ( SvxColorListBox  ,
MenuActivateHdl  ,
MenuButton ,
void   
)

Definition at line 4058 of file tbcontrl.cxx.

IMPL_STATIC_LINK_NOARG ( SvxStyleBox_Impl  ,
ShowMoreHdl  ,
void ,
void   
)
static bool lcl_GetDocFontList ( const FontList **  ppFontList,
SvxFontNameBox_Impl *  pBox 
)
static
static Color lcl_mediumColor ( Color  aMain,
Color   
)
static

Definition at line 2571 of file tbcontrl.cxx.

SFX_IMPL_TOOLBOX_CONTROL ( SvxStyleToolBoxControl  ,
SfxTemplateItem   
)

Variable Documentation

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

Definition at line 2799 of file tbcontrl.cxx.