34#include <sfx2/sfxsids.hrc>
37#include <com/sun/star/lang/DisposedException.hpp>
38#include <com/sun/star/util/CloseVetoException.hpp>
39#include <com/sun/star/util/XCloseable.hpp>
40#include <com/sun/star/embed/VerbDescriptor.hpp>
42#include <osl/diagnose.h>
57 if ( nStateChange == StateChangedType::InitShow )
66 Window::StateChanged( nStateChange );
138 OUString aSbxName = pObjSh->SfxShell::GetName();
141 aSbxName +=
":" + OUString::number(
m_pImpl->nDocViewNo);
157 case SID_SHOWPOPUPS :
160 bool bShow = pShowItem ==
nullptr || pShowItem->
GetValue();
190 case SID_NEWDOCDIRECT :
195 aFactName = pFactoryItem->
GetValue();
196 else if ( !
m_pImpl->aFactoryName.isEmpty() )
197 aFactName =
m_pImpl->aFactoryName;
200 SAL_WARN(
"sfx.view",
"Missing argument!");
205 const OUString aFact(
"private:factory/" + aFactName);
219 Reference < XCloseable > xTask(
GetFrame().GetFrameInterface(), UNO_QUERY );
231 bOther = (pFrame !=
this);
234 bool bClosed =
false;
246 catch (css::lang::DisposedException &) {
249 catch( CloseVetoException& )
273 for (
auto const & pRange : pRanges )
275 for ( sal_uInt16 nWhich = pRange.first; nWhich <= pRange.second; ++nWhich )
279 case SID_NEWDOCDIRECT :
281 if ( !
m_pImpl->aFactoryName.isEmpty() )
295 Reference < XCloseable > xTask(
GetFrame().GetFrameInterface(), UNO_QUERY );
301 case SID_SHOWPOPUPS :
315 OSL_FAIL(
"invalid message-id" );
323 sal_uInt16 nSlotId = rRequest.
GetSlot();
326 case SID_BROWSE_FORWARD:
327 case SID_BROWSE_BACKWARD:
328 OSL_FAIL(
"SfxViewFrame::INetExecute_Impl: SID_BROWSE_FORWARD/BACKWARD are dead!" );
336 case SID_FOCUSURLBOX:
363 if ( !pDocSh || bEmbedded || !pDocSh->
HasName() )
SfxApplication * SfxGetpApp()
const OUString & GetValue() const
OUString getName(sal_Int32 nIndex=LAST_SEGMENT, bool bIgnoreFinalSlash=true, DecodeMechanism eMechanism=DecodeMechanism::ToIUri, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8) const
SAL_DLLPRIVATE SfxStateCache * GetAnyStateCache_Impl(sal_uInt16 nId)
void Invalidate(sal_uInt16 nId)
void HidePopups(bool bHide=true)
virtual void StateChangedAtToolBoxControl(sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem *pState)
SfxControllerItem * GetItemLink()
SAL_DLLPRIVATE void Update_Impl(bool bForce=false)
virtual void StateChanged(StateChangedType nStateChange) override
virtual void Resize() override
SAL_DLLPRIVATE SfxWorkWindow * GetWorkWindow_Impl() const
const WhichRangesContainer & GetRanges() const
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
void DisableItem(sal_uInt16 nWhich)
const OUString & GetName() const
const OUString & GetFactoryName() const
virtual bool PrepareClose(bool bUI=true)
virtual SfxObjectFactory & GetFactory() const =0
SfxMedium * GetMedium() const
SfxObjectCreateMode GetCreateMode() const
virtual void SetModified(bool bModified=true)
sal_uInt16 GetSlot() const
const SfxPoolItem * GetReturnValue() const
const T * GetArg(sal_uInt16 nSlotId) const
Templatized access to the individual parameters of the SfxRequest.
void AppendItem(const SfxPoolItem &)
void SetReturnValue(const SfxPoolItem &)
void Done(bool bRemove=false)
SfxItemPool & GetPool() const
Each Subclass of SfxShell must reference a pool.
const css::uno::Sequence< css::embed::VerbDescriptor > & GetVerbs() const
virtual void Invalidate(sal_uInt16 nId=0)
With this method can the slots of the subclasses be invalidated through the slot Id or alternatively ...
const SfxPoolItem * ExecuteSlot(SfxRequest &rReq, const SfxInterface *pIF=nullptr)
This method allows you to forward a <SfxRequest> to the specified base <SfxShell>.
SfxViewShell * GetViewShell() const
Returns the SfxViewShell in which they are located in the subshells.
friend class SfxObjectItem
void SetName(const OUString &rName)
Sets the name of the Shell object.
SfxControllerItem * GetItemLink() const
SfxViewFrame * GetFrame() const
virtual void Deactivate(bool bUI) override
Virtual method that is called when disabling the SfxShell instance, to give the Subclasses the opport...
SAL_DLLPRIVATE void Exec_Impl(SfxRequest &)
SAL_DLLPRIVATE void INetState_Impl(SfxItemSet &)
SAL_DLLPRIVATE void GetState_Impl(SfxItemSet &rSet)
SAL_DLLPRIVATE void INetExecute_Impl(SfxRequest &)
SfxBindings & GetBindings()
void Resize(bool bForce=false)
static SAL_WARN_UNUSED_RESULT SfxViewFrame * GetNext(const SfxViewFrame &rPrev, const SfxObjectShell *pDoc=nullptr, bool bOnlyVisible=true)
SfxDispatcher * GetDispatcher()
static SAL_WARN_UNUSED_RESULT SfxViewFrame * GetFirst(const SfxObjectShell *pDoc=nullptr, bool bOnlyVisible=true)
SfxFrame & GetFrame() const
virtual SfxObjectShell * GetObjectShell() override
virtual void Activate(bool bUI) override
Virtual method that is called when enabling the SfxShell instance, in order to give the Subclasses th...
SAL_DLLPRIVATE void MakeActive_Impl(bool bActivate)
std::unique_ptr< struct SfxViewFrame_Impl > m_pImpl
void HidePopups_Impl(bool bHide, sal_uInt16 nId=0)
void MakeChildrenVisible_Impl(bool bVis)
bool IsReallyVisible() const
bool IsReallyShown() const
Size GetOutputSizePixel() const
#define DBG_ASSERT(sCon, aError)
#define SAL_WARN(area, stream)
bool empty() const noexcept