LibreOffice Module sw (master)
1
|
#include <unotxvw.hxx>
Public Member Functions | |
SwXTextView (SwView *pSwView) | |
virtual css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &aType) override |
virtual void SAL_CALL | acquire () noexcept override |
virtual void SAL_CALL | release () noexcept override |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () override |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getImplementationId () override |
virtual css::uno::Any SAL_CALL | getSelection () override |
virtual sal_Bool SAL_CALL | select (const css::uno::Any &rInterface) override |
virtual void SAL_CALL | addSelectionChangeListener (const css::uno::Reference< css::view::XSelectionChangeListener > &xListener) override |
virtual void SAL_CALL | removeSelectionChangeListener (const css::uno::Reference< css::view::XSelectionChangeListener > &xListener) override |
virtual css::uno::Reference< css::form::runtime::XFormController > SAL_CALL | getFormController (const css::uno::Reference< css::form::XForm > &Form) override |
virtual sal_Bool SAL_CALL | isFormDesignMode () override |
virtual void SAL_CALL | setFormDesignMode (sal_Bool DesignMode) override |
virtual css::uno::Reference< css::awt::XControl > SAL_CALL | getControl (const css::uno::Reference< css::awt::XControlModel > &Model) override |
virtual css::uno::Reference< css::text::XTextViewCursor > SAL_CALL | getViewCursor () override |
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL | createTextRangeByPixelPosition (const css::awt::Point &rPixelPosition) override |
virtual css::uno::Reference< css::beans::XPropertySet > SAL_CALL | getViewSettings () override |
virtual css::uno::Sequence< css::uno::Sequence< css::beans::PropertyValue > > SAL_CALL | getRubyList (sal_Bool bAutomatic) override |
virtual void SAL_CALL | setRubyList (const css::uno::Sequence< css::uno::Sequence< css::beans::PropertyValue > > &RubyList, sal_Bool bAutomatic) override |
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL | getPropertySetInfo () override |
virtual void SAL_CALL | setPropertyValue (const OUString &aPropertyName, const css::uno::Any &aValue) override |
virtual css::uno::Any SAL_CALL | getPropertyValue (const OUString &PropertyName) override |
virtual void SAL_CALL | addPropertyChangeListener (const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override |
virtual void SAL_CALL | removePropertyChangeListener (const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override |
virtual void SAL_CALL | addVetoableChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override |
virtual void SAL_CALL | removeVetoableChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override |
virtual OUString SAL_CALL | getImplementationName () override |
virtual sal_Bool SAL_CALL | supportsService (const OUString &ServiceName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
virtual css::uno::Reference< css::datatransfer::XTransferable > SAL_CALL | getTransferable () override |
virtual void SAL_CALL | insertTransferable (const css::uno::Reference< css::datatransfer::XTransferable > &xTrans) override |
virtual css::uno::Reference< css::datatransfer::XTransferable > SAL_CALL | getTransferableForTextRange (css::uno::Reference< css::text::XTextRange > const &xTextRange) override |
void | NotifySelChanged () |
void | NotifyDBChanged () |
SwView * | GetView () |
void | Invalidate () |
SfxObjectShellLock | BuildTmpSelectionDoc () |
![]() | |
SfxBaseController (SfxViewShell *pView) | |
virtual | ~SfxBaseController () override |
SAL_DLLPRIVATE void | ReleaseShell_Impl () |
SAL_DLLPRIVATE void | BorderWidthsChanged_Impl () |
css::uno::Reference< css::task::XStatusIndicator > SAL_CALL | getStatusIndicator () override |
virtual css::uno::Reference< css::awt::XWindow > SAL_CALL | getComponentWindow () override |
virtual OUString SAL_CALL | getViewControllerName () override |
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL | getCreationArguments () override |
virtual css::uno::Reference< css::ui::XSidebarProvider > SAL_CALL | getSidebar () override |
virtual void SAL_CALL | attachFrame (const css::uno::Reference< css::frame::XFrame > &xFrame) override |
virtual sal_Bool SAL_CALL | attachModel (const css::uno::Reference< css::frame::XModel > &xModel) override |
virtual sal_Bool SAL_CALL | suspend (sal_Bool bSuspend) override |
css::uno::Any SAL_CALL | getViewData () override |
void SAL_CALL | restoreViewData (const css::uno::Any &aValue) override |
css::uno::Reference< css::frame::XFrame > SAL_CALL | getFrame () override |
css::uno::Reference< css::frame::XModel > SAL_CALL | getModel () override |
virtual css::uno::Reference< css::frame::XDispatch > SAL_CALL | queryDispatch (const css::util::URL &aURL, const OUString &sTargetFrameName, sal_Int32 eSearchFlags) override |
virtual css::uno::Sequence< css::uno::Reference< css::frame::XDispatch > > SAL_CALL | queryDispatches (const css::uno::Sequence< css::frame::DispatchDescriptor > &seqDescriptor) override |
virtual css::frame::BorderWidths SAL_CALL | getBorder () override |
virtual void SAL_CALL | addBorderResizeListener (const css::uno::Reference< css::frame::XBorderResizeListener > &xListener) override |
virtual void SAL_CALL | removeBorderResizeListener (const css::uno::Reference< css::frame::XBorderResizeListener > &xListener) override |
virtual css::awt::Rectangle SAL_CALL | queryBorderedArea (const css::awt::Rectangle &aPreliminaryRectangle) override |
virtual void SAL_CALL | dispose () override |
virtual void SAL_CALL | addEventListener (const css::uno::Reference< css::lang::XEventListener > &aListener) override |
virtual void SAL_CALL | removeEventListener (const css::uno::Reference< css::lang::XEventListener > &aListener) override |
virtual void SAL_CALL | registerContextMenuInterceptor (const css::uno::Reference< css::ui::XContextMenuInterceptor > &xInterceptor) override |
virtual void SAL_CALL | releaseContextMenuInterceptor (const css::uno::Reference< css::ui::XContextMenuInterceptor > &xInterceptor) override |
virtual void SAL_CALL | addKeyHandler (const css::uno::Reference< css::awt::XKeyHandler > &xHandler) override |
virtual void SAL_CALL | removeKeyHandler (const css::uno::Reference< css::awt::XKeyHandler > &xHandler) override |
virtual void SAL_CALL | addMouseClickHandler (const css::uno::Reference< css::awt::XMouseClickHandler > &xHandler) override |
virtual void SAL_CALL | removeMouseClickHandler (const css::uno::Reference< css::awt::XMouseClickHandler > &xHandler) override |
virtual css::uno::Sequence< sal_Int16 > SAL_CALL | getSupportedCommandGroups () override |
virtual css::uno::Sequence< css::frame::DispatchInformation > SAL_CALL | getConfigurableDispatchInformation (sal_Int16 nCommandGroup) override |
virtual OUString SAL_CALL | getTitle () override |
virtual void SAL_CALL | setTitle (const OUString &sTitle) override |
virtual void SAL_CALL | addTitleChangeListener (const css::uno::Reference< css::frame::XTitleChangeListener > &xListener) override |
virtual void SAL_CALL | removeTitleChangeListener (const css::uno::Reference< css::frame::XTitleChangeListener > &xListener) override |
virtual void SAL_CALL | initialize (const css::uno::Sequence< css::uno::Any > &aArguments) override |
virtual void SAL_CALL | appendInfobar (const OUString &sId, const OUString &sPrimaryMessage, const OUString &sSecondaryMessage, sal_Int32 aInfobarType, const css::uno::Sequence< css::beans::StringPair > &actionButtons, sal_Bool bShowCloseButton) override |
virtual void SAL_CALL | updateInfobar (const OUString &sId, const OUString &sPrimaryMessage, const OUString &sSecondaryMessage, sal_Int32 aInfobarType) override |
virtual void SAL_CALL | removeInfobar (const OUString &sId) override |
virtual sal_Bool SAL_CALL | hasInfobar (const OUString &sId) override |
SfxViewShell * | GetViewShell_Impl () const |
SAL_DLLPRIVATE bool | HandleEvent_Impl (NotifyEvent const &rEvent) |
SAL_DLLPRIVATE bool | HasKeyListeners_Impl () const |
SAL_DLLPRIVATE bool | HasMouseClickListeners_Impl () const |
SAL_DLLPRIVATE void | SetCreationArguments_Impl (const css::uno::Sequence< css::beans::PropertyValue > &i_rCreationArgs) |
SAL_DLLPRIVATE css::uno::Reference< css::frame::XTitle > | impl_getTitleHelper () |
Private Member Functions | |
SdrObject * | GetControl (const css::uno::Reference< css::awt::XControlModel > &Model, css::uno::Reference< css::awt::XControl > &xToFill) |
virtual | ~SwXTextView () override |
Private Attributes | |
::comphelper::OInterfaceContainerHelper3< css::view::XSelectionChangeListener > | m_SelChangedListeners |
SwView * | m_pView |
const SfxItemPropertySet * | m_pPropSet |
css::uno::Reference< css::beans::XPropertySet > | mxViewSettings |
css::uno::Reference< css::text::XTextViewCursor > | mxTextViewCursor |
Definition at line 51 of file unotxvw.hxx.
|
overrideprivatevirtual |
Definition at line 95 of file unotxvw.cxx.
References Invalidate().
SwXTextView::SwXTextView | ( | SwView * | pSwView | ) |
Definition at line 86 of file unotxvw.cxx.
References m_aMutex.
|
overridevirtualnoexcept |
Definition at line 150 of file unotxvw.cxx.
|
overridevirtual |
Definition at line 822 of file unotxvw.cxx.
|
overridevirtual |
Definition at line 436 of file unotxvw.cxx.
References comphelper::OInterfaceContainerHelper3< class >::addInterface(), and m_SelChangedListeners.
|
overridevirtual |
Definition at line 836 of file unotxvw.cxx.
SfxObjectShellLock SwXTextView::BuildTmpSelectionDoc | ( | ) |
Definition at line 673 of file unotxvw.cxx.
References SfxObjectShell::DoInitNew(), SwViewShell::FillPrtDoc(), SwFEShell::GetCurPageDesc(), SwDocShell::GetDoc(), SwViewShell::getIDocumentDeviceAccess(), IDocumentDeviceAccess::getJobsetup(), SwPageDesc::GetMaster(), SwFEShell::GetPageDesc(), SwFormat::GetPaperBin(), IDocumentDeviceAccess::getPrinter(), SfxShell::GetViewShell(), SwView::GetWrtShell(), SwView::GetWrtShellPtr(), SfxViewFrame::LoadHiddenDocument(), m_pView, SwDoc::SetClipBoard(), IDocumentDeviceAccess::setJobsetup(), and SFX_INTERFACE_NONE.
Referenced by SwView::CreateTmpSelectionDoc().
|
overridevirtual |
Definition at line 523 of file unotxvw.cxx.
References SwXTextRange::CreateXTextRange(), SwCursorShell::GetCurrentShellCursor(), SwViewShell::GetDoc(), SwView::GetEditWin(), SwViewShell::GetLayout(), SwRootFrame::GetModelPositionForViewPoint(), SwPaM::GetPoint(), SwView::GetWrtShell(), m_pView, vcl::Window::PixelToLogic(), and Point.
|
private |
Definition at line 450 of file unotxvw.cxx.
References SwView::GetDrawView(), FmFormShell::GetFormControl(), SwView::GetFormShell(), vcl::Window::GetOutDev(), GetView(), SwViewShell::GetWin(), and SwView::GetWrtShell().
Referenced by getControl(), and select().
|
overridevirtual |
Definition at line 467 of file unotxvw.cxx.
References GetControl().
|
overridevirtual |
Definition at line 475 of file unotxvw.cxx.
References SwView::GetDrawView(), FmFormShell::GetFormController(), SwView::GetFormShell(), vcl::Window::GetOutDev(), GetView(), SwViewShell::GetWin(), SwView::GetWrtShell(), and xController.
Definition at line 145 of file unotxvw.cxx.
|
overridevirtual |
Definition at line 850 of file unotxvw.cxx.
|
overridevirtual |
Definition at line 734 of file unotxvw.cxx.
References SfxItemPropertySet::getPropertySetInfo(), and m_pPropSet.
|
overridevirtual |
Definition at line 775 of file unotxvw.cxx.
References Any, SwEditShell::CalcLayout(), SfxItemPropertyMap::getByName(), SwViewOption::GetCoreOptions(), SwEditShell::GetLineCount(), SwViewShell::GetPageCount(), SfxItemPropertySet::getPropertyMap(), SwViewShell::GetViewOptions(), SwView::GetWrtShell(), m_pPropSet, m_pView, nCount, SfxItemPropertyMapEntry::nWID, OnlineSpell, WID_IS_CONSTANT_SPELLCHECK, WID_IS_HIDE_SPELL_MARKS, WID_LINE_COUNT, and WID_PAGE_COUNT.
|
overridevirtual |
Definition at line 555 of file unotxvw.cxx.
References ChrFmt, SwStyleNameMapper::FillProgName(), SwDoc::FillRubyList(), SwFormatRuby::GetAdjustment(), SwFormatRuby::GetCharFormatName(), SwCursorShell::GetCursor(), SwFormatRuby::GetPosition(), SwRubyListEntry::GetRubyAttr(), SwView::GetShellMode(), SwRubyListEntry::GetText(), SwFormatRuby::GetText(), GetView(), SwView::GetWrtShell(), ListText, m_pView, n, nCount, pValues, TableListText, TableText, Text, UNO_NAME_RUBY_ADJUST, UNO_NAME_RUBY_BASE_TEXT, UNO_NAME_RUBY_CHAR_STYLE_NAME, UNO_NAME_RUBY_IS_ABOVE, UNO_NAME_RUBY_POSITION, and UNO_NAME_RUBY_TEXT.
|
overridevirtual |
Definition at line 347 of file unotxvw.cxx.
References Bezier, SwXTextRanges::Create(), SwXTextEmbeddedObject::CreateXTextEmbeddedObject(), SwXTextFrame::CreateXTextFrame(), SwXTextGraphicObject::CreateXTextGraphicObject(), Draw, DrawForm, DrawText, Frame, SwCursorShell::GetCursor(), SwFormat::GetDoc(), SwViewShell::GetDrawView(), SwFEShell::GetFlyFrameFormat(), SdrMarkList::GetMark(), SdrMarkList::GetMarkCount(), SdrMarkView::GetMarkedObjectList(), SdrMark::GetMarkedSdrObj(), comphelper::getProcessComponentContext(), SwFmDrawPage::GetShape(), SwView::GetShellMode(), SwCursorShell::GetTableCursor(), SwEditShell::GetTableFormat(), GetView(), SwView::GetWrtShell(), Graphic, i, ListText, m_pView, Object, SwView::StopShellTimer(), TableListText, TableText, and Text.
|
overridevirtual |
Definition at line 860 of file unotxvw.cxx.
|
overridevirtual |
Definition at line 1734 of file unotxvw.cxx.
References DrawText, SwViewShell::GetDrawView(), OutlinerView::GetEditView(), SdrObjEditView::GetTextEditOutlinerView(), EditView::GetTransferable(), GetView(), SwView::GetWrtShell(), SwViewShell::IsViewLocked(), SwViewShell::LockView(), and SwView::StopShellTimer().
|
overridevirtual |
Definition at line 1712 of file unotxvw.cxx.
References sw::AllowNonTextNode, SwDocShell::GetDoc(), SwView::GetDocShell(), GetView(), SwView::GetWrtShell(), SwViewShell::IsViewLocked(), SwViewShell::LockView(), m_pView, SwView::StopShellTimer(), and sw::XTextRangeToSwPaM().
Definition at line 128 of file unotxvw.cxx.
References cppu::OTypeCollection::getTypes().
|
inline |
Definition at line 145 of file unotxvw.hxx.
References m_pView.
Referenced by GetControl(), getFormController(), getRubyList(), getSelection(), getTransferable(), getTransferableForTextRange(), getViewCursor(), insertTransferable(), isFormDesignMode(), SwContentTree::Notify(), select(), setFormDesignMode(), and setRubyList().
|
overridevirtual |
Definition at line 508 of file unotxvw.cxx.
References GetView(), and mxTextViewCursor.
|
overridevirtual |
Definition at line 541 of file unotxvw.cxx.
References m_pView, and mxViewSettings.
Referenced by SwView::ReadUserDataSequence().
|
overridevirtual |
Definition at line 1758 of file unotxvw.cxx.
References DrawText, SwWrtShell::EnterSelFrameMode(), SwViewShell::GetDrawView(), OutlinerView::GetEditView(), SdrObjEditView::GetTextEditOutlinerView(), GetView(), SwView::GetWrtShell(), EditView::InsertText(), SwFEShell::IsFrameSelected(), SwFEShell::IsObjSelected(), SwTransferable::IsPaste(), SwTransferable::Paste(), and SwView::StopShellTimer().
void SwXTextView::Invalidate | ( | ) |
Definition at line 100 of file unotxvw.cxx.
References aEvent, comphelper::OInterfaceContainerHelper3< class >::disposeAndClear(), m_pView, m_refCount, m_SelChangedListeners, mxTextViewCursor, and mxViewSettings.
Referenced by SwView_Impl::Invalidate(), and ~SwXTextView().
|
overridevirtual |
Definition at line 491 of file unotxvw.cxx.
References SwView::GetFormShell(), GetView(), and FmFormShell::IsDesignMode().
void SwXTextView::NotifyDBChanged | ( | ) |
Definition at line 720 of file unotxvw.cxx.
References aURL, comphelper::OInterfaceContainerHelper3< class >::forEach(), SwXDispatch::GetDBChangeURL(), m_SelChangedListeners, URL, and xDispatch.
Referenced by SwView::NotifyDBChanged().
void SwXTextView::NotifySelChanged | ( | ) |
Definition at line 708 of file unotxvw.cxx.
References aEvent, m_pView, m_SelChangedListeners, and comphelper::OInterfaceContainerHelper3< class >::notifyEach().
Referenced by SwWebView::SelectShell(), and SwView::SelectShell().
|
overridevirtual |
Definition at line 160 of file unotxvw.cxx.
|
overridevirtualnoexcept |
Definition at line 155 of file unotxvw.cxx.
|
overridevirtual |
Definition at line 829 of file unotxvw.cxx.
|
overridevirtual |
Definition at line 443 of file unotxvw.cxx.
References m_SelChangedListeners, and comphelper::OInterfaceContainerHelper3< class >::removeInterface().
|
overridevirtual |
Definition at line 843 of file unotxvw.cxx.
|
overridevirtual |
Definition at line 223 of file unotxvw.cxx.
References SwWrtShell::EnterSelFrameMode(), SwWrtShell::EnterStdMode(), frame, SdrObject::getChildrenOfSdrObject(), GetControl(), SwDocShell::GetDoc(), SwView::GetDocShell(), SwViewShell::GetDrawView(), SdrMarkList::GetMark(), SdrMarkList::GetMarkCount(), SdrMarkView::GetMarkedObjectList(), SdrMark::GetMarkedSdrObj(), SwPaM::GetNext(), SdrObjList::GetObjCount(), SdrPageView::GetPage(), SdrObject::getParentSdrObjectFromSdrObject(), SdrPaintView::GetSdrPageView(), SwUnoCursorHelper::GetSelectableFromAny(), GetView(), SwView::GetWrtShell(), SwWrtShell::GotoFly(), SwWrtShell::GotoMark(), SwWrtShell::GotoTable(), SwCursorShell::HideCursor(), i, SdrObject::IsGroupObject(), SdrMarkView::MarkObj(), pObject, SdrObjEditView::SdrEndTextEdit(), SwCursorShell::SetSelection(), tableName, and SdrView::UnmarkAll().
Definition at line 499 of file unotxvw.cxx.
References SwView::GetFormShell(), GetView(), and FmFormShell::SetDesignMode().
|
overridevirtual |
Definition at line 741 of file unotxvw.cxx.
References SwWrtShell::ApplyViewOptions(), SfxItemPropertyMap::getByName(), SfxItemPropertySet::getPropertyMap(), SwViewShell::GetViewOptions(), SwView::GetWrtShell(), m_pPropSet, m_pView, SfxItemPropertyMapEntry::nFlags, SfxItemPropertyMapEntry::nWID, SwViewOption::SetOnlineSpell(), WID_IS_CONSTANT_SPELLCHECK, and WID_IS_HIDE_SPELL_MARKS.
|
overridevirtual |
Definition at line 601 of file unotxvw.cxx.
References ChrFmt, SwStyleNameMapper::FillUIName(), SwCursorShell::GetCursor(), SwDocShell::GetDoc(), SwView::GetDocShell(), SwStyleNameMapper::GetPoolIdFromUIName(), SwView::GetShellMode(), GetView(), SwView::GetWrtShell(), ListText, m_pView, SwDoc::SetRubyList(), sName, TableListText, TableText, Text, UNO_NAME_RUBY_ADJUST, UNO_NAME_RUBY_BASE_TEXT, UNO_NAME_RUBY_CHAR_STYLE_NAME, UNO_NAME_RUBY_IS_ABOVE, UNO_NAME_RUBY_POSITION, and UNO_NAME_RUBY_TEXT.
|
overridevirtual |
Definition at line 855 of file unotxvw.cxx.
References cppu::supportsService().
|
private |
Definition at line 67 of file unotxvw.hxx.
Referenced by getPropertySetInfo(), getPropertyValue(), and setPropertyValue().
|
private |
Definition at line 66 of file unotxvw.hxx.
Referenced by BuildTmpSelectionDoc(), createTextRangeByPixelPosition(), getPropertyValue(), getRubyList(), getSelection(), getTransferableForTextRange(), GetView(), getViewSettings(), Invalidate(), NotifySelChanged(), setPropertyValue(), and setRubyList().
|
private |
Definition at line 64 of file unotxvw.hxx.
Referenced by addSelectionChangeListener(), Invalidate(), NotifyDBChanged(), NotifySelChanged(), and removeSelectionChangeListener().
|
private |
Definition at line 71 of file unotxvw.hxx.
Referenced by getViewCursor(), and Invalidate().
|
private |
Definition at line 70 of file unotxvw.hxx.
Referenced by getViewSettings(), and Invalidate().