20 #include <config_feature_desktop.h>
38 #include <globals.hrc>
63 #define ShellClass_SwWebView
64 #define ShellClass_Text
65 #include <swslots.hxx>
76 GetStaticInterface()->RegisterChildWindow(SvxSearchDialogWrapper::GetChildWindowId());
77 GetStaticInterface()->RegisterChildWindow(SfxInfoBarContainerChild::GetChildWindowId());
79 GetStaticInterface()->RegisterObjectBar(
SFX_OBJECTBAR_TOOLS, SfxVisibilityFlags::Standard|SfxVisibilityFlags::Server,
80 ToolbarId::Webtools_Toolbox);
95 #if HAVE_FEATURE_DESKTOP
97 bool bUpdateTable =
false;
109 if ( nNewSelectionType == _nSelectionType )
128 if (eId != ToolbarId::None)
133 for ( i = 0;
true; ++i )
135 pSfxShell = rDispatcher.
GetShell( i );
136 if ( !( dynamic_cast< const SwBaseShell *>( pSfxShell ) !=
nullptr ||
137 dynamic_cast< const SwDrawTextShell *>( pSfxShell ) || dynamic_cast< const SwAnnotationShell *>( pSfxShell ) !=
nullptr ) )
142 pSfxShell = rDispatcher.
GetShell( --i );
143 OSL_ENSURE( pSfxShell,
"My Shell is lost in space" );
144 rDispatcher.
Pop( *pSfxShell, SfxDispatcherPopFlags::POP_UNTIL | SfxDispatcherPopFlags::POP_DELETE);
148 bool bInitFormShell =
false;
151 bInitFormShell =
true;
156 bool bSetExtInpCntxt =
false;
157 _nSelectionType = nNewSelectionType;
173 if(_nSelectionType & SelectionType::Graphic )
227 bSetExtInpCntxt =
true;
250 if( bSetExtInpCntxt &&
GetWrtShell().HasReadonlySel() )
251 bSetExtInpCntxt =
false;
256 ( InputContextFlags::Text |
257 InputContextFlags::ExtText ))
259 InputContextFlags( InputContextFlags::Text |
260 InputContextFlags::ExtText )) );
283 if (
GetDocShell()->GetDoc()->IsOLEPrtNotifyPending() )
void SetOptions(InputContextFlags nOptions)
SfxViewFrame * GetViewFrame() const
Point GetPointerPosPixel()
SwXTextView * GetUNOObject_Impl()
SFX_IMPL_NAMED_VIEWFACTORY(SwWebView,"Default")
#define SFX_IMPL_INTERFACE(Class, SuperClass)
void Pop(SfxShell &rShell, SfxDispatcherPopFlags nMode=SfxDispatcherPopFlags::NONE)
void ImpSetVerb(SelectionType nSelType)
SfxDispatcher * GetDispatcher()
virtual ~SwWebView() override
void SetSelectionType(SelectionType nSet)
SwView_Impl * GetViewImpl()
SwWrtShell & GetWrtShell() const
SfxShell * GetShell(sal_uInt16 nIdx) const
constexpr OUStringLiteral IsReadOnly(u"IsReadOnly")
void PrtOLENotify(bool bAll)
const SwFrameFormat * GetLastTableFrameFormat() const
void SetShellMode(ShellMode eSet)
SwDoc * GetDoc()
returns Doc. But be careful!
virtual FmFormShell * GetFormShell() override
virtual void SelectShell() override
void SetInputContext(const InputContext &rInputContext)
void SetShell(SfxShell *pS)
SfxBindings & GetBindings()
SfxShell subclass that is used while interacting with the editeng-based text of a shape...
void SetFormShell(FmFormShell *pSh)
Point PixelToLogic(const Point &rDevicePt) const
#define SFX_VIEW_REGISTRATION(DocClass)
InputContextFlags GetOptions() const
void UpdateTable()
update fields of a listing
SwDocShell * GetDocShell()
SwFrameFormat * GetTableFormat()
#define SFX_OBJECTBAR_OBJECT
#define SFX_OBJECTBAR_TOOLS
void UpdatePointer(const Point &, sal_uInt16 nButtons=0)
void SetLastTableFrameFormat(const SwFrameFormat *pSet)
void Push(SfxShell &rShell)
void InvalidateAll(bool bWithMsg)
SelectionType GetSelectionType() const
virtual SdrView * GetDrawView() const override
SelectionType GetSelectionType() const
ToolbarId GetObjectBarId(sal_uInt16 nPos) const
SwWebView(SfxViewFrame *pFrame, SfxViewShell *)