20#include <config_features.h>
44#include <com/sun/star/scanner/ScannerManager.hpp>
45#include <com/sun/star/linguistic2/LanguageGuessing.hpp>
46#include <ooo/vba/XSinkCaller.hpp>
68#include <drformsh.hxx>
74#include <inputwin.hxx>
79#include <tmplctrl.hxx>
82#include <zoomctrl.hxx>
112#include <strings.hrc>
113#include <bitmaps.hlst>
123#include <navicfg.hxx>
131 :
SfxModule(
"sw", {pWebFact, pFact, pGlobalFact}),
133 m_bAuthorInitialised(
false),
134 m_bEmbeddedLoadSave(
false ),
135 m_pDragDrop(
nullptr ),
136 m_pXSelection(
nullptr )
138 SetName(
"StarWriter" );
178uno::Reference< scanner::XScannerManager2 >
const &
181 static bool bTestScannerManager =
true;
188 bTestScannerManager =
false;
204 css::uno::Sequence< css::uno::Any > aArgs;
217#if HAVE_FEATURE_DESKTOP
231 SwModule::RegisterInterface( pMod );
232 SwDocShell::RegisterInterface( pMod );
233 SwWebDocShell::RegisterInterface( pMod );
234 SwGlosDocShell::RegisterInterface( pMod );
235 SwWebGlosDocShell::RegisterInterface( pMod );
236 SwView::RegisterInterface( pMod );
237 SwWebView::RegisterInterface( pMod );
238 SwPagePreview::RegisterInterface( pMod );
239 SwSrcView::RegisterInterface( pMod );
241 SwBaseShell::RegisterInterface(pMod);
242 SwTextShell::RegisterInterface(pMod);
243 SwTableShell::RegisterInterface(pMod);
244 SwListShell::RegisterInterface(pMod);
245 SwFrameShell::RegisterInterface(pMod);
246 SwDrawBaseShell::RegisterInterface(pMod);
247 SwDrawShell::RegisterInterface(pMod);
248 SwDrawFormShell::RegisterInterface(pMod);
249 SwDrawTextShell::RegisterInterface(pMod);
250 SwBezierShell::RegisterInterface(pMod);
251 SwGrfShell::RegisterInterface(pMod);
252 SwOleShell::RegisterInterface(pMod);
253 SwNavigationShell::RegisterInterface(pMod);
254 SwWebTextShell::RegisterInterface(pMod);
255 SwWebFrameShell::RegisterInterface(pMod);
256 SwWebGrfShell::RegisterInterface(pMod);
257 SwWebListShell::RegisterInterface(pMod);
258 SwWebTableShell::RegisterInterface(pMod);
259 SwWebDrawFormShell::RegisterInterface(pMod);
260 SwWebOleShell::RegisterInterface(pMod);
261 SwMediaShell::RegisterInterface(pMod);
262 SwAnnotationShell::RegisterInterface(pMod);
269 SvxTbxCtlDraw::RegisterControl(SID_INSERT_DRAW, pMod );
272 svx::ParaAboveSpacingControl::RegisterControl(SID_ATTR_PARA_ABOVESPACE, pMod);
273 svx::ParaBelowSpacingControl::RegisterControl(SID_ATTR_PARA_BELOWSPACE, pMod);
274 svx::ParaLeftSpacingControl::RegisterControl(SID_ATTR_PARA_LEFTSPACE, pMod);
275 svx::ParaRightSpacingControl::RegisterControl(SID_ATTR_PARA_RIGHTSPACE, pMod);
276 svx::ParaFirstLineSpacingControl::RegisterControl(SID_ATTR_PARA_FIRSTLINESPACE, pMod);
278 SvxClipBoardControl::RegisterControl(SID_PASTE, pMod );
279 svx::FormatPaintBrushToolBoxControl::RegisterControl(SID_FORMATPAINTBRUSH, pMod );
281 SvxFillToolBoxControl::RegisterControl(SID_ATTR_FILL_STYLE, pMod );
282 SvxLineWidthToolBoxControl::RegisterControl(SID_ATTR_LINE_WIDTH, pMod );
284 SwZoomControl::RegisterControl(SID_ATTR_ZOOM, pMod );
286 SvxPosSizeStatusBarControl::RegisterControl(0, pMod );
287 SvxInsertStatusBarControl::RegisterControl(SID_ATTR_INSERT, pMod );
289 XmlSecStatusBarControl::RegisterControl( SID_SIGNATURE, pMod );
293 SwBookmarkControl::RegisterControl(
FN_STAT_PAGE, pMod );
295 SwViewLayoutControl::RegisterControl( SID_ATTR_VIEWLAYOUT, pMod );
296 SvxModifyControl::RegisterControl( SID_DOC_MODIFIED, pMod );
297 SvxZoomSliderControl::RegisterControl( SID_ATTR_ZOOMSLIDER, pMod );
299 SvxIMapDlgChildWindow::RegisterChildWindow(
false, pMod );
300 SvxSearchDialogWrapper::RegisterChildWindow(
false, pMod );
301 SvxHlinkDlgWrapper::RegisterChildWindow(
false, pMod );
302 SvxFontWorkChildWindow::RegisterChildWindow(
false, pMod );
305 SvxContourDlgChildWindow::RegisterChildWindow(
false, pMod );
312 SvxRubyChildWindow::RegisterChildWindow(
false, pMod);
313 SwSpellDialogChildWindow::RegisterChildWindow(
315 : SfxChildWindowFlags::NONE);
318 SvxGrafRedToolBoxControl::RegisterControl( SID_ATTR_GRAF_RED, pMod );
319 SvxGrafGreenToolBoxControl::RegisterControl( SID_ATTR_GRAF_GREEN, pMod );
320 SvxGrafBlueToolBoxControl::RegisterControl( SID_ATTR_GRAF_BLUE, pMod );
321 SvxGrafLuminanceToolBoxControl::RegisterControl( SID_ATTR_GRAF_LUMINANCE, pMod );
322 SvxGrafContrastToolBoxControl::RegisterControl( SID_ATTR_GRAF_CONTRAST, pMod );
323 SvxGrafGammaToolBoxControl::RegisterControl( SID_ATTR_GRAF_GAMMA, pMod );
324 SvxGrafTransparenceToolBoxControl::RegisterControl( SID_ATTR_GRAF_TRANSPARENCE, pMod );
325 SvxGrafModeToolBoxControl::RegisterControl( SID_ATTR_GRAF_MODE, pMod );
327#if HAVE_FEATURE_AVMEDIA
328 ::avmedia::MediaToolBoxControl::RegisterControl(SID_AVMEDIA_TOOLBOX, pMod);
329 ::avmedia::MediaPlayer::RegisterChildWindow(
false, pMod);
357 aStyleFamilies.emplace_back(SfxStyleFamily::Para,
358 SwResId(STR_PARAGRAPHSTYLEFAMILY),
359 BMP_STYLES_FAMILY_PARA,
362 aStyleFamilies.emplace_back(SfxStyleFamily::Char,
363 SwResId(STR_CHARACTERSTYLEFAMILY),
364 BMP_STYLES_FAMILY_CHAR,
367 aStyleFamilies.emplace_back(SfxStyleFamily::Frame,
369 BMP_STYLES_FAMILY_FRAME,
372 aStyleFamilies.emplace_back(SfxStyleFamily::Page,
374 BMP_STYLES_FAMILY_PAGE,
377 aStyleFamilies.emplace_back(SfxStyleFamily::Pseudo,
379 BMP_STYLES_FAMILY_LIST,
382 aStyleFamilies.emplace_back(SfxStyleFamily::Table,
384 BMP_STYLES_FAMILY_TABLE,
387 return aStyleFamilies;
SfxApplication * SfxGetpApp()
static void RegisterChildWindow(SfxModule *, const SfxChildWinFactory &)
void EndListening(SfxBroadcaster &rBroadcaster, bool bRemoveAllDuplicates=false)
std::locale GetResLocale() const
void SetPool(SfxItemPool *pNewPool)
static void RegisterFactories()
static void RegisterControls()
static void RegisterInterfaces()
EventListener that triggers spellchecking and hyphenation.
void CallAutomationApplicationEventSinks(const OUString &Method, css::uno::Sequence< css::uno::Any > &Arguments)
virtual std::optional< SfxStyleFamilies > CreateStyleFamilies() override
css::uno::Reference< css::scanner::XScannerManager2 > m_xScannerManager
css::uno::Reference< ooo::vba::XSinkCaller > mxAutomationApplicationEventsCaller
std::unique_ptr< SfxErrorHandler > m_pErrorHandler
css::uno::Reference< css::linguistic2::XLanguageGuessing > const & GetLanguageGuesser()
css::uno::Reference< css::scanner::XScannerManager2 > const & GetScannerManager()
void RegisterAutomationApplicationEventsCaller(css::uno::Reference< ooo::vba::XSinkCaller > const &xCaller)
virtual ~SwModule() override
css::uno::Reference< css::linguistic2::XLanguageGuessing > m_xLanguageGuesser
rtl::Reference< SwAttrPool > m_pAttrPool
SwModule(SfxObjectFactory *pFact, SfxObjectFactory *pWebFact, SfxObjectFactory *pGlobalFact)
#define SID_JUMP_TO_SPECIFIC_PAGE
#define FN_STAT_WORDCOUNT
#define FN_STAT_ACCESSIBILITY_CHECK
#define SID_TRACK_CHANGES_BAR
OUString nget(TranslateNId aContextSingularPlural, int n, const std::locale &loc)
OUString get(TranslateId sContextAndId, const std::locale &loc)
Reference< XComponentContext > getProcessComponentContext()
constexpr auto SFX_INTERFACE_SFXMODULE
constexpr auto SFX_INTERFACE_SFXDOCSH
std::vector< SfxStyleFamilyItem > SfxStyleFamilies
OUString SwResId(TranslateId aId)