LibreOffice Module sw (master) 1
|
#include <unotxvw.hxx>
Public Member Functions | |
SwXTextView (SwView *pSwView) | |
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 () |
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 63 of file unotxvw.hxx.
|
overrideprivatevirtual |
Definition at line 96 of file unotxvw.cxx.
References Invalidate().
SwXTextView::SwXTextView | ( | SwView * | pSwView | ) |
Definition at line 87 of file unotxvw.cxx.
References m_aMutex.
|
overridevirtual |
Definition at line 754 of file unotxvw.cxx.
|
overridevirtual |
Definition at line 345 of file unotxvw.cxx.
References comphelper::OInterfaceContainerHelper3< class ListenerT >::addInterface(), and m_SelChangedListeners.
|
overridevirtual |
Definition at line 768 of file unotxvw.cxx.
SfxObjectShellLock SwXTextView::BuildTmpSelectionDoc | ( | ) |
Definition at line 604 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 432 of file unotxvw.cxx.
References SwXTextRange::CreateXTextRange(), SwFormat::GetAnchor(), SwFormatAnchor::GetContentAnchor(), SwCursorShell::GetCurrentShellCursor(), SwViewShell::GetDoc(), SwView::GetEditWin(), SwNode::GetFlyFormat(), SwViewShell::GetLayout(), SwRootFrame::GetModelPositionForViewPoint(), SwPosition::GetNode(), SwPaM::GetPoint(), SwView::GetWrtShell(), SwNode::IsGrfNode(), m_pView, and vcl::Window::PixelToLogic().
|
overridevirtual |
Definition at line 376 of file unotxvw.cxx.
References GetControl(), and xModel.
|
private |
Definition at line 359 of file unotxvw.cxx.
References SwView::GetDrawView(), FmFormShell::GetFormControl(), SwView::GetFormShell(), vcl::Window::GetOutDev(), GetView(), SwViewShell::GetWin(), SwView::GetWrtShell(), and xModel.
Referenced by getControl(), and select().
|
overridevirtual |
Definition at line 384 of file unotxvw.cxx.
References Form, SwView::GetDrawView(), FmFormShell::GetFormController(), SwView::GetFormShell(), vcl::Window::GetOutDev(), GetView(), SwViewShell::GetWin(), SwView::GetWrtShell(), and xController.
|
overridevirtual |
Definition at line 782 of file unotxvw.cxx.
|
overridevirtual |
Definition at line 666 of file unotxvw.cxx.
References SfxItemPropertySet::getPropertySetInfo(), and m_pPropSet.
|
overridevirtual |
Definition at line 707 of file unotxvw.cxx.
References Any, SwEditShell::CalcLayout(), SfxItemPropertyMap::getByName(), SwEditShell::GetLineCount(), SwViewShell::GetPageCount(), SfxItemPropertySet::getPropertyMap(), SwViewShell::GetViewOptions(), SwView::GetWrtShell(), SwViewOption::IsOnlineSpell(), m_pPropSet, m_pView, nCount, SfxItemPropertyMapEntry::nWID, WID_IS_CONSTANT_SPELLCHECK, WID_IS_HIDE_SPELL_MARKS, WID_LINE_COUNT, and WID_PAGE_COUNT.
|
overridevirtual |
Definition at line 486 of file unotxvw.cxx.
References ChrFmt, SwStyleNameMapper::FillProgName(), SwDoc::FillRubyList(), SwFormatRuby::GetAdjustment(), SwFormatRuby::GetCharFormatName(), SwCursorShell::GetCursor(), SwFormatRuby::GetPosition(), SwRubyListEntry::GetRubyAttr(), SwView::GetShellMode(), SwFormatRuby::GetText(), SwRubyListEntry::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 256 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 792 of file unotxvw.cxx.
|
overridevirtual |
Definition at line 1649 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 1627 of file unotxvw.cxx.
References SwDocShell::GetDoc(), SwView::GetDocShell(), GetView(), SwView::GetWrtShell(), SwViewShell::IsViewLocked(), SwViewShell::LockView(), m_pView, SwView::StopShellTimer(), and sw::XTextRangeToSwPaM().
|
inline |
Definition at line 138 of file unotxvw.hxx.
References m_pView.
Referenced by GetControl(), getFormController(), getRubyList(), getSelection(), getTransferable(), getTransferableForTextRange(), getViewCursor(), insertTransferable(), isFormDesignMode(), SwContentTree::Notify(), SwGlobalTree::Notify(), select(), setFormDesignMode(), and setRubyList().
|
overridevirtual |
Definition at line 417 of file unotxvw.cxx.
References GetView(), and mxTextViewCursor.
|
overridevirtual |
Definition at line 472 of file unotxvw.cxx.
References m_pView, and mxViewSettings.
Referenced by SwView::ReadUserDataSequence().
|
overridevirtual |
Definition at line 1673 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 101 of file unotxvw.cxx.
References aEvent, comphelper::OInterfaceContainerHelper3< class ListenerT >::disposeAndClear(), Invalidate(), m_pView, m_refCount, m_SelChangedListeners, mxTextViewCursor, and mxViewSettings.
Referenced by SwView_Impl::Invalidate(), Invalidate(), and ~SwXTextView().
|
overridevirtual |
Definition at line 400 of file unotxvw.cxx.
References SwView::GetFormShell(), GetView(), and FmFormShell::IsDesignMode().
void SwXTextView::NotifyDBChanged | ( | ) |
Definition at line 652 of file unotxvw.cxx.
References aURL, comphelper::OInterfaceContainerHelper3< class ListenerT >::forEach(), SwXDispatch::GetDBChangeURL(), m_SelChangedListeners, URL, and xDispatch.
Referenced by SwView::NotifyDBChanged().
void SwXTextView::NotifySelChanged | ( | ) |
Definition at line 640 of file unotxvw.cxx.
References aEvent, m_pView, m_SelChangedListeners, and comphelper::OInterfaceContainerHelper3< class ListenerT >::notifyEach().
Referenced by SwView::SelectShell(), and SwWebView::SelectShell().
|
overridevirtual |
Definition at line 761 of file unotxvw.cxx.
|
overridevirtual |
Definition at line 352 of file unotxvw.cxx.
References m_SelChangedListeners, and comphelper::OInterfaceContainerHelper3< class ListenerT >::removeInterface().
|
overridevirtual |
Definition at line 775 of file unotxvw.cxx.
|
overridevirtual |
Definition at line 129 of file unotxvw.cxx.
References SwWrtShell::EnterSelFrameMode(), SwWrtShell::EnterStdMode(), SdrObject::getChildrenOfSdrObject(), GetControl(), SwDocShell::GetDoc(), SwView::GetDocShell(), SwViewShell::GetDrawView(), SdrMarkList::GetMark(), SdrMarkList::GetMarkCount(), SdrMarkView::GetMarkedObjectList(), SdrMark::GetMarkedSdrObj(), SwPaM::GetNext(), SdrObjList::GetObjCount(), SdrPageView::GetPage(), 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().
|
overridevirtual |
Definition at line 408 of file unotxvw.cxx.
References SwView::GetFormShell(), GetView(), and FmFormShell::SetDesignMode().
|
overridevirtual |
Definition at line 673 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 532 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 787 of file unotxvw.cxx.
References cppu::supportsService().
|
private |
Definition at line 68 of file unotxvw.hxx.
Referenced by getPropertySetInfo(), getPropertyValue(), and setPropertyValue().
|
private |
Definition at line 67 of file unotxvw.hxx.
Referenced by BuildTmpSelectionDoc(), createTextRangeByPixelPosition(), getPropertyValue(), getRubyList(), getSelection(), getTransferableForTextRange(), GetView(), getViewSettings(), Invalidate(), NotifySelChanged(), setPropertyValue(), and setRubyList().
|
private |
Definition at line 65 of file unotxvw.hxx.
Referenced by addSelectionChangeListener(), Invalidate(), NotifyDBChanged(), NotifySelChanged(), and removeSelectionChangeListener().
|
private |
Definition at line 72 of file unotxvw.hxx.
Referenced by getViewCursor(), and Invalidate().
|
private |
Definition at line 71 of file unotxvw.hxx.
Referenced by getViewSettings(), and Invalidate().