LibreOffice Module sw (master) 1
Macros | Functions | Variables
workctrl.cxx File Reference
#include <sal/config.h>
#include <i18nutil/unicode.hxx>
#include <sfx2/dispatch.hxx>
#include <sfx2/bindings.hxx>
#include <swmodule.hxx>
#include <utility>
#include <view.hxx>
#include <initui.hxx>
#include <docsh.hxx>
#include <gloshdl.hxx>
#include <gloslst.hxx>
#include <workctrl.hxx>
#include <strings.hrc>
#include <cmdid.h>
#include <helpids.h>
#include <wrtsh.hxx>
#include <cppuhelper/queryinterface.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <vcl/event.hxx>
#include <vcl/menu.hxx>
#include <vcl/settings.hxx>
#include <rtl/ustring.hxx>
#include <swabstdlg.hxx>
#include <sfx2/zoomitem.hxx>
#include <vcl/svapp.hxx>
#include <vcl/weldutils.hxx>
#include <svx/dialmgr.hxx>
#include <svx/strings.hrc>
#include <bitmaps.hlst>
#include <toolkit/helper/vclunohelper.hxx>
#include <com/sun/star/frame/XFrame.hpp>
#include <sfx2/viewfrm.hxx>
Include dependency graph for workctrl.cxx:

Go to the source code of this file.

Macros

#define NAVI_ENTRIES   21
 

Functions

 SFX_IMPL_TOOLBOX_CONTROL (SwTbxAutoTextCtrl, SfxVoidItem)
 
 IMPL_STATIC_LINK (SwTbxAutoTextCtrl, PopupHdl, Menu *, pMenu, bool)
 
static OUString lcl_GetScrollToolTip (bool bNext)
 
 IMPL_LINK (SwZoomBox_Impl, SelectHdl, weld::ComboBox &, rComboBox, void)
 
 IMPL_LINK_NOARG (SwZoomBox_Impl, ActivateHdl, weld::ComboBox &, bool)
 
 IMPL_LINK (SwZoomBox_Impl, KeyInputHdl, const KeyEvent &, rKEvt, bool)
 
 IMPL_LINK_NOARG (SwZoomBox_Impl, FocusOutHdl, weld::Widget &, void)
 
 SFX_IMPL_TOOLBOX_CONTROL (SwPreviewZoomControl, SfxUInt16Item)
 
 IMPL_LINK (SwJumpToSpecificBox_Impl, KeyInputHdl, const KeyEvent &, rKEvt, bool)
 
 IMPL_LINK_NOARG (SwJumpToSpecificBox_Impl, SelectHdl, weld::Entry &, bool)
 
 SFX_IMPL_TOOLBOX_CONTROL (SwJumpToSpecificPageControl, SfxUInt16Item)
 
 IMPL_STATIC_LINK (NavElementBox_Base, SelectHdl, weld::ComboBox &, rComboBox, void)
 
 IMPL_LINK (NavElementBox_Base, KeyInputHdl, const KeyEvent &, rKEvt, bool)
 
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * lo_writer_NavElementToolBoxController_get_implementation (css::uno::XComponentContext *rxContext, css::uno::Sequence< css::uno::Any > const &)
 
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * lo_writer_PreviousScrollToolboxController_get_implementation (css::uno::XComponentContext *context, css::uno::Sequence< css::uno::Any > const &)
 
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * lo_writer_NextScrollToolboxController_get_implementation (css::uno::XComponentContext *context, css::uno::Sequence< css::uno::Any > const &)
 

Variables

static sal_uInt16 aNavigationInsertIds [NAVI_ENTRIES]
 
rtl::OUStringConstExpr constexpr aNavigationImgIds [NAVI_ENTRIES]
 
const TranslateId aNavigationStrIds [NAVI_ENTRIES]
 
const TranslateId STR_IMGBTN_ARY []
 

Macro Definition Documentation

◆ NAVI_ENTRIES

#define NAVI_ENTRIES   21

Definition at line 56 of file workctrl.cxx.

Function Documentation

◆ IMPL_LINK() [1/4]

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

Definition at line 652 of file workctrl.cxx.

◆ IMPL_LINK() [2/4]

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

Definition at line 543 of file workctrl.cxx.

◆ IMPL_LINK() [3/4]

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

Definition at line 435 of file workctrl.cxx.

References KEY_ESCAPE, KEY_TAB, m_xWidget, and Select.

◆ IMPL_LINK() [4/4]

IMPL_LINK ( SwZoomBox_Impl  ,
SelectHdl  ,
weld::ComboBox ,
rComboBox  ,
void   
)

Definition at line 380 of file workctrl.cxx.

References Select.

◆ IMPL_LINK_NOARG() [1/3]

IMPL_LINK_NOARG ( SwJumpToSpecificBox_Impl  ,
SelectHdl  ,
weld::Entry ,
bool   
)

Definition at line 561 of file workctrl.cxx.

References SfxObjectShell::Current(), m_xWidget, and CntUInt16Item::SetValue().

◆ IMPL_LINK_NOARG() [2/3]

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

Definition at line 386 of file workctrl.cxx.

References Select.

◆ IMPL_LINK_NOARG() [3/3]

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

Definition at line 458 of file workctrl.cxx.

References m_xWidget.

◆ IMPL_STATIC_LINK() [1/2]

IMPL_STATIC_LINK ( NavElementBox_Base  ,
SelectHdl  ,
weld::ComboBox ,
rComboBox  ,
void   
)

◆ IMPL_STATIC_LINK() [2/2]

IMPL_STATIC_LINK ( SwTbxAutoTextCtrl  ,
PopupHdl  ,
Menu ,
pMenu  ,
bool   
)

◆ lcl_GetScrollToolTip()

static OUString lcl_GetScrollToolTip ( bool  bNext)
static

◆ lo_writer_NavElementToolBoxController_get_implementation()

SAL_DLLPUBLIC_EXPORT css::uno::XInterface * lo_writer_NavElementToolBoxController_get_implementation ( css::uno::XComponentContext *  rxContext,
css::uno::Sequence< css::uno::Any > const &   
)

Definition at line 782 of file workctrl.cxx.

◆ lo_writer_NextScrollToolboxController_get_implementation()

SAL_DLLPUBLIC_EXPORT css::uno::XInterface * lo_writer_NextScrollToolboxController_get_implementation ( css::uno::XComponentContext *  context,
css::uno::Sequence< css::uno::Any > const &   
)

Definition at line 889 of file workctrl.cxx.

◆ lo_writer_PreviousScrollToolboxController_get_implementation()

SAL_DLLPUBLIC_EXPORT css::uno::XInterface * lo_writer_PreviousScrollToolboxController_get_implementation ( css::uno::XComponentContext *  context,
css::uno::Sequence< css::uno::Any > const &   
)

Definition at line 881 of file workctrl.cxx.

◆ SFX_IMPL_TOOLBOX_CONTROL() [1/3]

SFX_IMPL_TOOLBOX_CONTROL ( SwJumpToSpecificPageControl  ,
SfxUInt16Item   
)

◆ SFX_IMPL_TOOLBOX_CONTROL() [2/3]

SFX_IMPL_TOOLBOX_CONTROL ( SwPreviewZoomControl  ,
SfxUInt16Item   
)

◆ SFX_IMPL_TOOLBOX_CONTROL() [3/3]

SFX_IMPL_TOOLBOX_CONTROL ( SwTbxAutoTextCtrl  ,
SfxVoidItem   
)

Variable Documentation

◆ aNavigationImgIds

rtl::OUStringConstExpr constexpr aNavigationImgIds[NAVI_ENTRIES]
constexpr
Initial value:
=
{
RID_BMP_RIBBAR_TBL,
RID_BMP_RIBBAR_FRM,
RID_BMP_RIBBAR_GRF,
RID_BMP_RIBBAR_OLE,
RID_BMP_RIBBAR_PGE,
RID_BMP_RIBBAR_OUTL,
RID_BMP_RIBBAR_MARK,
RID_BMP_RIBBAR_DRW,
RID_BMP_RIBBAR_CTRL,
RID_BMP_RIBBAR_REG,
RID_BMP_RIBBAR_BKM,
RID_BMP_RIBBAR_SEL,
RID_BMP_RIBBAR_FTN,
RID_BMP_RIBBAR_POSTIT,
RID_BMP_RIBBAR_REP,
RID_BMP_RIBBAR_ENTRY,
RID_BMP_RIBBAR_FORMULA,
RID_BMP_RIBBAR_ERROR,
RID_BMP_RIBBAR_RECENCY,
RID_BMP_RIBBAR_FIELD,
RID_BMP_RIBBAR_FIELD_BYTYPE
}

Definition at line 184 of file workctrl.cxx.

Referenced by NavElementBox_Base::NavElementBox_Base().

◆ aNavigationInsertIds

sal_uInt16 aNavigationInsertIds[NAVI_ENTRIES]
static
Initial value:
=
{
}
#define NID_SEL
Definition: workctrl.hxx:45
#define NID_TABLE_FORMULA
Definition: workctrl.hxx:51
#define NID_MARK
Definition: workctrl.hxx:47
#define NID_POSTIT
Definition: workctrl.hxx:48
#define NID_TABLE_FORMULA_ERROR
Definition: workctrl.hxx:52
#define NID_OUTL
Definition: workctrl.hxx:44
#define NID_BKM
Definition: workctrl.hxx:41
#define NID_CTRL
Definition: workctrl.hxx:39
#define NID_FIELD_BYTYPE
Definition: workctrl.hxx:55
#define NID_TBL
Definition: workctrl.hxx:35
#define NID_GRF
Definition: workctrl.hxx:42
#define NID_REG
Definition: workctrl.hxx:40
#define NID_DRW
Definition: workctrl.hxx:38
#define NID_PGE
Definition: workctrl.hxx:37
#define NID_FTN
Definition: workctrl.hxx:46
#define NID_RECENCY
Definition: workctrl.hxx:53
#define NID_OLE
Definition: workctrl.hxx:43
#define NID_FRM
Definition: workctrl.hxx:36
#define NID_INDEX_ENTRY
Definition: workctrl.hxx:50
#define NID_FIELD
Definition: workctrl.hxx:54
#define NID_SRCH_REP
Definition: workctrl.hxx:49

Definition at line 159 of file workctrl.cxx.

Referenced by NavElementBox_Base::NavElementBox_Base(), and NavElementBox_Base::UpdateBox().

◆ aNavigationStrIds

const TranslateId aNavigationStrIds[NAVI_ENTRIES]
Initial value:
=
{
STR_CONTENT_TYPE_TABLE,
STR_CONTENT_TYPE_FRAME,
STR_CONTENT_TYPE_GRAPHIC,
STR_CONTENT_TYPE_OLE,
ST_PGE,
STR_CONTENT_TYPE_OUTLINE,
ST_MARK,
STR_CONTENT_TYPE_DRAWOBJECT,
ST_CTRL,
STR_CONTENT_TYPE_REGION,
STR_CONTENT_TYPE_BOOKMARK,
ST_SEL,
STR_CONTENT_TYPE_FOOTNOTE,
STR_CONTENT_TYPE_POSTIT,
ST_SRCH_REP,
STR_CONTENT_TYPE_INDEX,
ST_TABLE_FORMULA,
ST_TABLE_FORMULA_ERROR,
ST_RECENCY,
STR_CONTENT_TYPE_TEXTFIELD,
ST_FIELD_BYTYPE
}

Definition at line 209 of file workctrl.cxx.

Referenced by NavElementBox_Base::NavElementBox_Base(), and NavElementBox_Base::UpdateBox().

◆ STR_IMGBTN_ARY

const TranslateId STR_IMGBTN_ARY[]

Definition at line 235 of file workctrl.cxx.

Referenced by lcl_GetScrollToolTip().