20 #include <config_features.h>
45 #include <com/sun/star/scanner/ScannerManager.hpp>
46 #include <com/sun/star/linguistic2/LanguageGuessing.hpp>
47 #include <ooo/vba/XSinkCaller.hpp>
61 #include <mediash.hxx>
69 #include <drformsh.hxx>
75 #include <inputwin.hxx>
80 #include <tmplctrl.hxx>
83 #include <zoomctrl.hxx>
90 #include <fontcfg.hxx>
112 #include <strings.hrc>
113 #include <bitmaps.hlst>
123 #include <navicfg.hxx>
131 :
SfxModule(
"sw", {pWebFact, pFact, pGlobalFact}),
132 m_pAttrPool(
nullptr),
134 m_bAuthorInitialised(
false),
135 m_bEmbeddedLoadSave(
false ),
136 m_pDragDrop(
nullptr ),
137 m_pXSelection(
nullptr )
139 SetName(
"StarWriter" );
171 OUString
SwResId(
const char* pId,
int nCardinality)
176 uno::Reference< scanner::XScannerManager2 >
const &
197 css::uno::Sequence< css::uno::Any > aArgs;
210 #if HAVE_FEATURE_DESKTOP
224 SwModule::RegisterInterface( pMod );
225 SwDocShell::RegisterInterface( pMod );
226 SwWebDocShell::RegisterInterface( pMod );
227 SwGlosDocShell::RegisterInterface( pMod );
228 SwWebGlosDocShell::RegisterInterface( pMod );
229 SwView::RegisterInterface( pMod );
230 SwWebView::RegisterInterface( pMod );
231 SwPagePreview::RegisterInterface( pMod );
232 SwSrcView::RegisterInterface( pMod );
234 SwBaseShell::RegisterInterface(pMod);
235 SwTextShell::RegisterInterface(pMod);
236 SwTableShell::RegisterInterface(pMod);
237 SwListShell::RegisterInterface(pMod);
238 SwFrameShell::RegisterInterface(pMod);
239 SwDrawBaseShell::RegisterInterface(pMod);
240 SwDrawShell::RegisterInterface(pMod);
241 SwDrawFormShell::RegisterInterface(pMod);
242 SwDrawTextShell::RegisterInterface(pMod);
243 SwBezierShell::RegisterInterface(pMod);
244 SwGrfShell::RegisterInterface(pMod);
245 SwOleShell::RegisterInterface(pMod);
246 SwNavigationShell::RegisterInterface(pMod);
247 SwWebTextShell::RegisterInterface(pMod);
248 SwWebFrameShell::RegisterInterface(pMod);
249 SwWebGrfShell::RegisterInterface(pMod);
250 SwWebListShell::RegisterInterface(pMod);
251 SwWebTableShell::RegisterInterface(pMod);
252 SwWebDrawFormShell::RegisterInterface(pMod);
253 SwWebOleShell::RegisterInterface(pMod);
254 SwMediaShell::RegisterInterface(pMod);
255 SwAnnotationShell::RegisterInterface(pMod);
262 SvxTbxCtlDraw::RegisterControl(SID_INSERT_DRAW, pMod );
265 svx::ParaAboveSpacingControl::RegisterControl(SID_ATTR_PARA_ABOVESPACE, pMod);
266 svx::ParaBelowSpacingControl::RegisterControl(SID_ATTR_PARA_BELOWSPACE, pMod);
267 svx::ParaLeftSpacingControl::RegisterControl(SID_ATTR_PARA_LEFTSPACE, pMod);
268 svx::ParaRightSpacingControl::RegisterControl(SID_ATTR_PARA_RIGHTSPACE, pMod);
269 svx::ParaFirstLineSpacingControl::RegisterControl(SID_ATTR_PARA_FIRSTLINESPACE, pMod);
271 SvxClipBoardControl::RegisterControl(SID_PASTE, pMod );
272 svx::FormatPaintBrushToolBoxControl::RegisterControl(SID_FORMATPAINTBRUSH, pMod );
274 SvxFillToolBoxControl::RegisterControl(SID_ATTR_FILL_STYLE, pMod );
275 SvxLineWidthToolBoxControl::RegisterControl(SID_ATTR_LINE_WIDTH, pMod );
277 SwZoomControl::RegisterControl(SID_ATTR_ZOOM, pMod );
279 SvxPosSizeStatusBarControl::RegisterControl(0, pMod );
280 SvxInsertStatusBarControl::RegisterControl(SID_ATTR_INSERT, pMod );
282 XmlSecStatusBarControl::RegisterControl( SID_SIGNATURE, pMod );
285 SwBookmarkControl::RegisterControl(
FN_STAT_PAGE, pMod );
287 SwViewLayoutControl::RegisterControl( SID_ATTR_VIEWLAYOUT, pMod );
288 SvxModifyControl::RegisterControl( SID_DOC_MODIFIED, pMod );
289 SvxZoomSliderControl::RegisterControl( SID_ATTR_ZOOMSLIDER, pMod );
291 SvxIMapDlgChildWindow::RegisterChildWindow(
false, pMod );
292 SvxSearchDialogWrapper::RegisterChildWindow(
false, pMod );
293 SvxHlinkDlgWrapper::RegisterChildWindow(
false, pMod );
294 SvxFontWorkChildWindow::RegisterChildWindow(
false, pMod );
297 SvxContourDlgChildWindow::RegisterChildWindow(
false, pMod );
305 SvxRubyChildWindow::RegisterChildWindow(
false, pMod);
306 SwSpellDialogChildWindow::RegisterChildWindow(
308 : SfxChildWindowFlags::NONE);
311 SvxGrafRedToolBoxControl::RegisterControl( SID_ATTR_GRAF_RED, pMod );
312 SvxGrafGreenToolBoxControl::RegisterControl( SID_ATTR_GRAF_GREEN, pMod );
313 SvxGrafBlueToolBoxControl::RegisterControl( SID_ATTR_GRAF_BLUE, pMod );
314 SvxGrafLuminanceToolBoxControl::RegisterControl( SID_ATTR_GRAF_LUMINANCE, pMod );
315 SvxGrafContrastToolBoxControl::RegisterControl( SID_ATTR_GRAF_CONTRAST, pMod );
316 SvxGrafGammaToolBoxControl::RegisterControl( SID_ATTR_GRAF_GAMMA, pMod );
317 SvxGrafTransparenceToolBoxControl::RegisterControl( SID_ATTR_GRAF_TRANSPARENCE, pMod );
318 SvxGrafModeToolBoxControl::RegisterControl( SID_ATTR_GRAF_MODE, pMod );
320 #if HAVE_FEATURE_AVMEDIA
321 ::avmedia::MediaToolBoxControl::RegisterControl(SID_AVMEDIA_TOOLBOX, pMod);
322 ::avmedia::MediaPlayer::RegisterChildWindow(
false, pMod);
349 SwResId(STR_PARAGRAPHSTYLEFAMILY),
350 BMP_STYLES_FAMILY_PARA,
354 SwResId(STR_CHARACTERSTYLEFAMILY),
355 BMP_STYLES_FAMILY_CHAR,
360 BMP_STYLES_FAMILY_FRAME,
365 BMP_STYLES_FAMILY_PAGE,
370 BMP_STYLES_FAMILY_LIST,
375 BMP_STYLES_FAMILY_TABLE,
378 return pStyleFamilies;
css::uno::Reference< css::scanner::XScannerManager2 > const & GetScannerManager()
std::vector< SfxStyleFamilyItem > SfxStyleFamilies
std::locale GetResLocale() const
SwModule(SfxObjectFactory *pFact, SfxObjectFactory *pWebFact, SfxObjectFactory *pGlobalFact)
void CallAutomationApplicationEventSinks(const OUString &Method, css::uno::Sequence< css::uno::Any > &Arguments)
void RegisterAutomationApplicationEventsCaller(css::uno::Reference< ooo::vba::XSinkCaller > const &xCaller)
static void RegisterControls()
SfxApplication * SfxGetpApp()
css::uno::Reference< ooo::vba::XSinkCaller > mxAutomationApplicationEventsCaller
#define SID_JUMP_TO_SPECIFIC_PAGE
OUString nget(const char *pContextAndIds, int n, const std::locale &loc)
static void RegisterInterfaces()
constexpr auto SFX_INTERFACE_SFXMODULE
void SetPool(SfxItemPool *pNewPool)
static void RegisterChildWindow(SfxModule *, std::unique_ptr< SfxChildWinFactory >)
virtual ~SwModule() override
OUString SwResId(const char *pId)
#define FN_STAT_WORDCOUNT
constexpr auto SFX_INTERFACE_SFXDOCSH
virtual std::unique_ptr< SfxStyleFamilies > CreateStyleFamilies() override
css::uno::Reference< css::scanner::XScannerManager2 > m_xScannerManager
static void RegisterFactories()
static void Free(SfxItemPool *pPool)
static void RegisterChildWindowContext(SfxModule *pMod)
css::uno::Reference< css::linguistic2::XLanguageGuessing > const & GetLanguageGuesser()
EventListener that triggers spellchecking and hyphenation.
css::uno::Reference< css::linguistic2::XLanguageGuessing > m_xLanguageGuesser
void EndListening(SfxBroadcaster &rBroadcaster, bool bRemoveAllDuplicates=false)
Reference< XComponentContext > getProcessComponentContext()
#define SID_TRACK_CHANGES_BAR
OUString get(const char *pContextAndId, const std::locale &loc)
std::unique_ptr< SfxErrorHandler > m_pErrorHandler