20 #include <svx/dialogs.hrc>
36 #include <strings.hrc>
38 #include <svx/svxids.hrc>
48 const OUString& sResType,
50 const OString& sDefPage,
54 sResType.toUtf8(), &rCoreSet, pStr != nullptr)
58 , m_sDlgType(sResType)
59 , m_pWrtShell(static_cast<
SwView*>(pViewFrame->GetViewShell())->GetWrtShellPtr())
118 if (!sDefPage.isEmpty())
135 else if (rId ==
"options")
142 else if (rId ==
"wrap")
148 else if (rId ==
"columns")
156 else if (rId ==
"macro")
165 else if (rId ==
"borders")
167 aSet.
Put (
SfxUInt16Item(SID_SWMODE_TYPE,static_cast<sal_uInt16>(SwBorderModes::FRAME)));
176 else if (rId ==
"area")
179 SID_OFFER_IMPORT, SID_OFFER_IMPORT>
189 else if (rId ==
"transparence")
193 else if (rId ==
"crop")
SfxViewFrame * GetViewFrame() const
tools::Long GetWidth() const
SwFrameDlg(SfxViewFrame const *pFrame, weld::Window *pParent, const SfxItemSet &rCoreSet, bool bNewFrame, const OUString &sResType, bool bFormat, const OString &sDefPage=OString(), const OUString *pFormatStr=nullptr)
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rSet)
virtual void PageCreated(const SfxAllItemSet &aSet)
static SfxAbstractDialogFactory * Create()
constexpr TypedWhichId< SwFormatFrameSize > RES_FRM_SIZE(89)
void SetShell(SwViewShell *pSh)
void RemoveTabPage(const OString &rName)
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rSet)
SfxItemSet * GetInputSetImpl()
virtual void PageCreated(const OString &rId, SfxTabPage &rPage) override
OUString SwResId(TranslateId aId)
const SwView & GetView() const
virtual CreateTabPage GetTabPageCreatorFunc(sal_uInt16 nId)=0
SfxFrame & GetFrame() const
const SfxItemSet & m_rSet
void SetFrame(const css::uno::Reference< css::frame::XFrame > &xFrame)
static SfxEventNamesItem AddEvents(DlgEventType eType)
virtual sal_Int32 getImagePreferredDPI()=0
sal_uInt16 GetHtmlMode(const SwDocShell *pShell)
std::unordered_map< OString, css::uno::Any > & getAdditionalProperties()
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rSet)
SfxItemPool * GetPool() const
SwDocShell * GetDocShell()
const css::uno::Reference< css::frame::XFrame > & GetFrameInterface() const
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
virtual GetTabPageRanges GetTabPageRangesFunc(sal_uInt16 nId)=0
const SfxPoolItem & Get(sal_uInt16 nWhich, bool bSrchInParent=true) const
IDocumentSettingAccess const & getIDocumentSettingAccess() const
void AddTabPage(const OString &rName, CreateTabPage pCreateFunc, GetTabPageRanges pRangesFunc)
Reference< XExecutableDialog > m_xDialog
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rSet)
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rSet)
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rSet)
virtual ~SwFrameDlg() override
void SetCurPageId(const OString &rName)