20#include <svx/dialogs.hrc>
38#include <svx/svxids.hrc>
48 const OUString& sResType,
50 const OUString& sDefPage,
54 sResType, &rCoreSet, pStr != nullptr)
58 , m_sDlgType(sResType)
59 , m_pWrtShell(static_cast<
SwView*>(rViewFrame.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")
Reference< XExecutableDialog > m_xDialog
virtual sal_Int32 getImagePreferredDPI()=0
virtual GetTabPageRanges GetTabPageRangesFunc(sal_uInt16 nId)=0
static SfxAbstractDialogFactory * Create()
virtual CreateTabPage GetTabPageCreatorFunc(sal_uInt16 nId)=0
const css::uno::Reference< css::frame::XFrame > & GetFrameInterface() const
SfxItemPool * GetPool() const
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
const SfxPoolItem & Get(sal_uInt16 nWhich, bool bSrchInParent=true) const
void SetCurPageId(const OUString &rName)
void AddTabPage(const OUString &rName, CreateTabPage pCreateFunc, GetTabPageRanges pRangesFunc)
void RemoveTabPage(const OUString &rName)
SfxItemSet * GetInputSetImpl()
virtual void PageCreated(const SfxAllItemSet &aSet)
std::unordered_map< OUString, css::uno::Any > & getAdditionalProperties()
void SetFrame(const css::uno::Reference< css::frame::XFrame > &xFrame)
SfxFrame & GetFrame() const
SfxViewFrame & GetViewFrame() const
tools::Long GetWidth() const
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rSet)
IDocumentSettingAccess const & getIDocumentSettingAccess() const
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rSet)
virtual void PageCreated(const OUString &rId, SfxTabPage &rPage) override
virtual ~SwFrameDlg() override
const SfxItemSet & m_rSet
SwFrameDlg(const SfxViewFrame &rFrame, weld::Window *pParent, const SfxItemSet &rCoreSet, bool bNewFrame, const OUString &sResType, bool bFormat, const OUString &sDefPage={}, const OUString *pFormatStr=nullptr)
This is the Position & Size tab page of the Insert -> Frame -> Frame dialog.
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)
static SfxEventNamesItem AddEvents(DlgEventType eType)
SwDocShell * GetDocShell()
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rSet)
const SwView & GetView() const
constexpr TypedWhichId< SwFormatFrameSize > RES_FRM_SIZE(89)
void SetShell(SwViewShell *pSh)
OUString SwResId(TranslateId aId)
sal_uInt16 GetHtmlMode(const SwDocShell *pShell)