26#include <svx/svxids.hrc>
34#include <starmath.hrc>
39#define ShellClass_SmModule
55 aRes =
SmResId(RID_UI_SYMBOL_NAMES[
i]);
69 if (rUiName ==
SmResId(RID_UI_SYMBOL_NAMES[
i]))
71 const char *pKey = RID_UI_SYMBOL_NAMES[
i].mpId;
72 aRes = OUString(pKey, strlen(pKey), RTL_TEXTENCODING_UTF8);
88 aRes =
SmResId(RID_UI_SYMBOLSET_NAMES[
i]);
102 if (rUiName ==
SmResId(RID_UI_SYMBOLSET_NAMES[
i]))
104 const char *pKey = RID_UI_SYMBOLSET_NAMES[
i].mpId;
105 aRes = OUString(pKey, strlen(pKey), RTL_TEXTENCODING_UTF8);
117 GetStaticInterface()->RegisterStatusBar(StatusBarId::MathStatusBar);
125 SvxModifyControl::RegisterControl(SID_DOC_MODIFIED,
this);
156 if (
dynamic_cast<const SmViewShell *
>(pViewShell) !=
nullptr)
198 case SID_CONFIGEVENT :
206 std::optional<SfxItemSet> pRet;
207 if(
nId == SID_SM_EDITOPTIONS)
212 SID_PRINTTITLE, SID_PRINTZOOM,
213 SID_NO_RIGHT_SPACES, SID_SAVE_ONLY_USED_SYMBOLS,
214 SID_AUTO_CLOSE_BRACKETS, SID_SMEDITWINDOWZOOM>);
223 if(
nId == SID_SM_EDITOPTIONS)
231 std::unique_ptr<SfxTabPage> xRet;
232 if (
nId == SID_SM_TP_PRINTOPTIONS)
void DisableItem(sal_uInt16 nWhich)
SfxItemPool & GetPool() const
static SAL_WARN_UNUSED_RESULT SfxViewShell * GetNext(const SfxViewShell &rPrev, bool bOnlyVisible=true, const std::function< bool(const SfxViewShell *)> &isViewShell=nullptr)
static SAL_WARN_UNUSED_RESULT SfxViewShell * GetFirst(bool bOnlyVisible=true, const std::function< bool(const SfxViewShell *)> &isViewShell=nullptr)
vcl::Window * GetWindow() const
void ItemSetToConfig(const SfxItemSet &rSet)
void ConfigToItemSet(SfxItemSet &rSet) const
SmSymbolManager & GetSymbolManager()
virtual std::unique_ptr< SfxTabPage > CreateTabPage(sal_uInt16 nId, weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet) override
SmMathConfig * GetConfig()
virtual void ConfigurationChanged(utl::ConfigurationBroadcaster *, ConfigurationHints) override
VirtualDevice & GetDefaultVirtualDev()
SmModule(SfxObjectFactory *pObjFact)
virtual ~SmModule() override
virtual void ApplyItemSet(sal_uInt16 nId, const SfxItemSet &rSet) override
svtools::ColorConfig & GetColorConfig()
std::unique_ptr< SmMathConfig > mpConfig
virtual std::optional< SfxItemSet > CreateItemSet(sal_uInt16 nId) override
const SvtSysLocale & GetSysLocale()
std::optional< SvtSysLocale > moSysLocale
VclPtr< VirtualDevice > mpVirtualDev
SmSymbolManager & GetSymbolManager()
static void GetState(SfxItemSet &)
std::unique_ptr< svtools::ColorConfig > mpColorConfig
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
void reset(reference_type *pBody)
void Invalidate(InvalidateFlags nFlags=InvalidateFlags::NONE)
#define SAL_N_ELEMENTS(arr)
OUString GetExportSymbolSetName(std::u16string_view rUiName)
OUString GetExportSymbolName(std::u16string_view rUiName)
OUString GetUiSymbolName(std::u16string_view rExportName)
OUString GetUiSymbolSetName(std::u16string_view rExportName)
OUString get(TranslateId sContextAndId, const std::locale &loc)
bool equalsAscii(std::u16string_view s1, std::string_view s2)
static constexpr auto Items
#define SFX_IMPL_INTERFACE(Class, SuperClass)
OUString SmResId(TranslateId aId)