51 if (
pMgr && rHint.
GetId() == SfxHintId::Dying) {
70 if (
m_xImpl->aWinState.isEmpty())
103 m_xImpl->StartListening( *pBindinx );
124 m_xImpl->pMgr->Activate_Impl();
164 auto aHoldSelf = shared_from_this();
204 const OUString& rDialogId)
205 : GenericDialogController(pParent, rUIFile, rDialogId,
226 const OUString& rUIXMLDescription,
const OUString& rID)
230 , m_xOKBtn(m_xBuilder->weld_button(
"ok"))
231 , m_xHelpBtn(m_xBuilder->weld_button(
"help"))
237 const OUString& rContainerId,
const OUString& rUIXMLDescription,
const OUString& rID)
240 ,
m_xContainer(m_xBuilder->weld_container(rContainerId))
241 , m_xOKBtn(m_xBuilder->weld_button(
"ok"))
242 , m_xHelpBtn(m_xBuilder->weld_button(
"help"))
264 OUString sConfigId =
m_xSfxPage->GetConfigId();
268 aUserItem >>= sUserData;
276 if (!sTitle.isEmpty())
281 if (!sHelpId.isEmpty())
291 const SfxItemSet* pInputSet = GetInputItemSet();
301 CreateOutputItemSet(*pInputSet);
304 bool bModified =
false;
306 if (m_xSfxPage->HasExchangeSupport())
308 DeactivateRC nRet = m_xSfxPage->DeactivatePage(m_xOutputSet.get());
312 bModified = m_xOutputSet->Count() > 0;
315 bModified = m_xSfxPage->FillItemSet(m_xOutputSet.get());
320 m_xSfxPage->FillUserData();
321 OUString sData(m_xSfxPage->GetUserData());
323 OUString sConfigId = m_xSfxPage->GetConfigId();
334 assert(!
m_xOutputSet &&
"Double creation of OutputSet!");
Reference< XExecutableDialog > m_xDialog
IMPL_STATIC_LINK_NOARG(SfxDialogController, InstallLOKNotifierHdl, void *, vcl::ILibreOfficeKitNotifier *)
IMPL_LINK_NOARG(SfxDialogController, FocusChangeHdl, weld::Container &, void)
constexpr OUStringLiteral USERITEM_NAME
static bool IsContextHelpEnabled()
SAL_DLLPRIVATE SfxWorkWindow * GetWorkWindow_Impl() const
SAL_DLLPRIVATE SfxDispatcher * GetDispatcher_Impl()
css::uno::Reference< css::frame::XFrame > GetActiveFrame() const
void SetActiveFrame(const css::uno::Reference< css::frame::XFrame > &rFrame)
virtual void EndDialog(int nResponse)
SfxDialogController(weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId)
const SfxPoolItem * ExecuteList(sal_uInt16 nSlot, SfxCallMode nCall, std::initializer_list< SfxPoolItem const * > args, std::initializer_list< SfxPoolItem const * > internalargs=std::initializer_list< SfxPoolItem const * >())
Method to execute a <SfxSlot>s over the Slot-Id.
virtual void Deactivate() override
virtual void EndDialog(int nResponse) override
virtual void Close() override
void Init(SfxBindings *pBindinx, SfxChildWindow *pCW)
virtual void FillInfo(SfxChildWinInfo &) const
SfxBindings * m_pBindings
virtual ~SfxModelessDialogController() override
SfxBindings & GetBindings() const
void Initialize(SfxChildWinInfo const *pInfo)
SfxModelessDialogController(SfxModelessDialogController &)=delete
std::unique_ptr< SfxModelessDialog_Impl > m_xImpl
virtual void ChildWinDispose() override
virtual void Activate() override
void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
std::unique_ptr< weld::Button > m_xHelpBtn
void SetTabPage(std::unique_ptr< SfxTabPage > xTabPage)
virtual ~SfxSingleTabDialogController() override
std::unique_ptr< SfxTabPage > m_xSfxPage
void CreateOutputItemSet(const SfxItemSet &rInput)
SfxSingleTabDialogController(weld::Widget *pParent, const SfxItemSet *pOptionsSet, const OUString &rUIXMLDescription=OUString("sfx/ui/singletabdialog.ui"), const OUString &rID=OUString("SingleTabDialog"))
std::unique_ptr< weld::Button > m_xOKBtn
std::unique_ptr< SfxItemSet > m_xOutputSet
const SfxItemSet * GetInputItemSet() const
One SfxViewShell more or less represents one edit window for a document, there can be multiple ones f...
static SAL_WARN_UNUSED_RESULT SfxViewShell * Current()
void ConfigChild_Impl(SfxChildIdentifier, SfxDockingConfig, sal_uInt16)
css::uno::Any GetUserItem(const OUString &sName) const
void SetUserItem(const OUString &sName, const css::uno::Any &aValue)
void response(int nResponse)
std::shared_ptr< weld::Dialog > m_xDialog
virtual const SfxItemSet * GetOutputItemSet() const override
#define LINK(Instance, Class, Member)
Reference< XNameAccess > m_xContainer
Reference< XFrame > xFrame