19#ifndef INCLUDED_SW_INC_SWMODULE_HXX
20#define INCLUDED_SW_INC_SWMODULE_HXX
60namespace tools {
class JsonWriter; }
72namespace ooo::vba {
class XSinkCaller; }
79 std::unique_ptr<SwModuleOptions, o3tl::default_delete<SwModuleOptions>>
m_pModuleConfig;
80 std::unique_ptr<SwMasterUsrPref, o3tl::default_delete<SwMasterUsrPref>>
m_pUsrPref;
81 std::unique_ptr<SwMasterUsrPref, o3tl::default_delete<SwMasterUsrPref>>
m_pWebUsrPref;
158 void ApplyUserMetric(
FieldUnit eMetric,
bool bWeb );
159 void ApplyRulerMetric(
FieldUnit eMetric,
bool bHorizontal,
bool bWeb );
161 void ApplyLinkMode(sal_Int32 nNewLinkMode);
164 void ApplyDefaultPageMode(
bool bIsSquaredPageMode);
166 void ApplyUserCharUnit(
bool bApplyChar,
bool bWeb);
181 static SwView* GetFirstView();
187 static void ShowDBObj(
SwView const & rView,
const SwDBData& rData);
190 bool IsInsTableFormatNum(
bool bHTML)
const;
191 bool IsInsTableChangeNumFormat(
bool bHTML)
const;
192 bool IsInsTableAlignNum(
bool bHTML)
const;
193 bool IsSplitVerticalByDefault(
bool bHTML)
const;
194 void SetSplitVerticalByDefault(
bool bHTML,
bool value);
197 std::size_t GetRedlineAuthor();
198 OUString
const & GetRedlineAuthor(std::size_t nPos);
199 void ClearRedlineAuthors();
202 std::size_t InsertRedlineAuthor(
const OUString& rAuthor);
203 void SetRedlineAuthor(
const OUString& rAuthor);
205 void GetInsertAuthorAttr(std::size_t nAuthor,
SfxItemSet &rSet);
206 void GetDeletedAuthorAttr(std::size_t nAuthor,
SfxItemSet &rSet);
207 void GetFormatAuthorAttr(std::size_t nAuthor,
SfxItemSet &rSet);
209 sal_uInt16 GetRedlineMarkPos()
const;
210 const Color& GetRedlineMarkColor()
const;
213 bool IsUseRsid()
const;
214 bool IsIgnorePieces()
const;
215 sal_uInt16 GetPieceLen()
const;
218 OUString
const & GetDocStatWordDelim()
const;
224 sal_uInt16 GetLinkUpdMode()
const;
228 virtual std::optional<SfxItemSet>
CreateItemSet( sal_uInt16 nId )
override;
236 void RemoveAttrPool();
239 static void CheckSpellChanges(
bool bOnlineSpelling,
240 bool bIsSpellWrongAgain,
bool bIsSpellAllAgain,
bool bSmartTags );
242 css::uno::Reference< css::scanner::XScannerManager2 >
const &
245 css::uno::Reference< css::linguistic2::XLanguageGuessing >
const &
246 GetLanguageGuesser();
248 void RegisterAutomationApplicationEventsCaller(css::uno::Reference< ooo::vba::XSinkCaller >
const& xCaller);
249 void CallAutomationApplicationEventSinks(
const OUString& Method, css::uno::Sequence< css::uno::Any >& Arguments);
254#define SW_MOD() ( static_cast<SwModule*>(SfxApplication::GetModule(SfxToolsModule::Writer)))
static void InitInterface_Impl()
virtual std::optional< SfxStyleFamilies > CreateStyleFamilies()
virtual std::unique_ptr< SfxTabPage > CreateTabPage(sal_uInt16 nId, weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
virtual void ApplyItemSet(sal_uInt16 nId, const SfxItemSet &rSet)
virtual std::optional< SfxItemSet > CreateItemSet(sal_uInt16 nId)
css::uno::Reference< css::linguistic2::XLinguServiceEventListener > m_xLinguServiceEventListener
std::unique_ptr< SwStdFontConfig > m_pStdFontConfig
std::unique_ptr< SwPrintOptions > m_pWebPrintOptions
SwModuleOptions * GetModuleConfig()
std::unique_ptr< SvtUserOptions > m_pUserOptions
std::unique_ptr< SvtCTLOptions > m_pCTLOptions
std::unique_ptr< SwNavigationConfig > m_pNavigationConfig
bool IsEmbeddedLoadSave() const
css::uno::Reference< css::scanner::XScannerManager2 > m_xScannerManager
std::unique_ptr< SwToolbarConfigItem > m_pToolbarConfig
css::uno::Reference< ooo::vba::XSinkCaller > mxAutomationApplicationEventsCaller
std::unique_ptr< SwToolbarConfigItem > m_pWebToolbarConfig
std::unique_ptr< SfxErrorHandler > m_pErrorHandler
std::unique_ptr< SwMasterUsrPref, o3tl::default_delete< SwMasterUsrPref > > m_pWebUsrPref
bool m_bAuthorInitialised
SwStdFontConfig * GetStdFontConfig()
std::unique_ptr< SvtAccessibilityOptions > m_pAccessibilityOptions
std::vector< OUString > m_pAuthorNames
std::unique_ptr< SwDBConfig > m_pDBConfig
void SetView(SwView *pVw)
std::unique_ptr< SwMasterUsrPref, o3tl::default_delete< SwMasterUsrPref > > m_pUsrPref
css::uno::Reference< css::linguistic2::XLanguageGuessing > m_xLanguageGuesser
std::unique_ptr< SwModuleOptions, o3tl::default_delete< SwModuleOptions > > m_pModuleConfig
SwToolbarConfigItem * GetWebToolbarConfig()
std::unique_ptr< SwPrintOptions > m_pPrintOptions
SwTransferable * m_pDragDrop
rtl::Reference< SwAttrPool > m_pAttrPool
void SetEmbeddedLoadSave(bool bFlag)
std::unique_ptr< svtools::ColorConfig > m_pColorConfig
SwToolbarConfigItem * GetToolbarConfig()
std::unique_ptr< SwChapterNumRules > m_pChapterNumRules
Used by the UI to modify the document model.
virtual void ConfigurationChanged(ConfigurationBroadcaster *p, ConfigurationHints nHint)=0
Dialog to specify the properties of date form field.
Color * GetActiveRetoucheColor()
#define SFX_DECL_INTERFACE(nId)
#define SW_INTERFACE_MODULE
SW_DLLPUBLIC SwView * GetActiveView()
SW_DLLPUBLIC SwWrtShell * GetActiveWrtShell()