LibreOffice Module sfx2 (master) 1
|
#include <ipclient.hxx>
Public Member Functions | |
SfxInPlaceClient (SfxViewShell *pViewShell, vcl::Window *pDraw, sal_Int64 nAspect) | |
virtual | ~SfxInPlaceClient () |
SfxInPlaceClient (const SfxInPlaceClient &)=delete | |
SfxInPlaceClient & | operator= (const SfxInPlaceClient &)=delete |
SfxViewShell * | GetViewShell () const |
vcl::Window * | GetEditWin () const |
const css::uno::Reference< css::embed::XEmbeddedObject > & | GetObject () const |
void | SetObject (const css::uno::Reference< css::embed::XEmbeddedObject > &rObject) |
void | SetObjectState (sal_Int32) |
bool | IsObjectUIActive () const |
bool | IsObjectInPlaceActive () const |
void | DeactivateObject () |
bool | SetObjArea (const tools::Rectangle &) |
const tools::Rectangle & | GetObjArea () const |
tools::Rectangle | GetScaledObjArea () const |
void | SetSizeScale (const Fraction &rScaleWidth, const Fraction &rScaleHeight) |
void | SetObjAreaAndScale (const tools::Rectangle &, const Fraction &, const Fraction &) |
const Fraction & | GetScaleWidth () const |
const Fraction & | GetScaleHeight () const |
void | Invalidate () |
sal_Int64 | GetAspect () const |
sal_Int64 | GetObjectMiscStatus () const |
ErrCode | DoVerb (sal_Int32 nVerb) |
void | VisAreaChanged () |
void | ResetObject () |
bool | IsUIActive () const |
void | SetNegativeX (bool bSet) |
To indicate that negated document X coordinates are used. More... | |
bool | IsNegativeX () const |
virtual void | FormatChanged () |
virtual bool | IsProtected () const |
Static Public Member Functions | |
static SfxInPlaceClient * | GetClient (SfxObjectShell const *pDoc, const css::uno::Reference< css::embed::XEmbeddedObject > &xObject) |
Private Member Functions | |
virtual SAL_DLLPRIVATE void | ObjectAreaChanged () |
virtual SAL_DLLPRIVATE void | RequestNewObjectArea (tools::Rectangle &) |
virtual SAL_DLLPRIVATE void | ViewChanged () |
Private Attributes | |
rtl::Reference< SfxInPlaceClient_Impl > | m_xImp |
SfxViewShell * | m_pViewSh |
VclPtr< vcl::Window > | m_pEditWin |
Friends | |
class | SfxInPlaceClient_Impl |
Definition at line 42 of file ipclient.hxx.
SfxInPlaceClient::SfxInPlaceClient | ( | SfxViewShell * | pViewShell, |
vcl::Window * | pDraw, | ||
sal_Int64 | nAspect | ||
) |
Definition at line 637 of file ipclient.cxx.
References LINK, m_xImp, SfxViewShell::NewIPClient_Impl(), and SFX_CLIENTACTIVATE_TIMEOUT.
|
virtual |
Definition at line 651 of file ipclient.cxx.
References SfxViewShell::IPClientGone_Impl(), m_pViewSh, m_xImp, and SetObject().
|
delete |
void SfxInPlaceClient::DeactivateObject | ( | ) |
Definition at line 1062 of file ipclient.cxx.
References SfxViewFrame::GetFrame(), GetObject(), SfxViewShell::GetViewFrame(), SfxViewShell::GetWindow(), VCLUnoHelper::GetWindow(), vcl::Window::GrabFocus(), SfxFrame::LockResize_Impl(), m_pViewSh, m_xImp, SfxFrame::Resize(), SfxViewFrame::SetViewFrame(), xController, and xModel.
Referenced by SfxViewFrame::ExecView_Impl().
ErrCode SfxInPlaceClient::DoVerb | ( | sal_Int32 | nVerb | ) |
Definition at line 897 of file ipclient.cxx.
References aHelper, vcl::Window::EnableMapMode(), ERRCODE_IO_GENERAL, ERRCODE_NONE, ERRCODE_SO_CANNOT_DOVERB_NOW, ERRCODE_SO_GENERALERROR, ERRCTX_SO_DOVERB, GetEditWin(), SfxViewFrame::GetFrame(), SfxViewShell::GetFrameWeld(), tools::Rectangle::GetHeight(), GetMapUnit(), GetScaledObjArea(), SfxViewShell::GetViewFrame(), tools::Rectangle::GetWidth(), ErrorHandler::HandleError(), Size::Height(), comphelper::LibreOfficeKit::isActive(), vcl::Window::IsMapModeEnabled(), SfxFrame::LockResize_Impl(), vcl::Window::LogicToLogic(), m_pViewSh, m_xImp, comphelper::makePropertyValue(), NOSIGNATURES, SfxFrame::Resize(), RID_SO_ERRCTX, TOOLS_WARN_EXCEPTION, svt::EmbeddedObjectRef::TryRunningState(), u, VCLUnoHelper::UnoEmbed2VCLMapUnit(), and Size::Width().
|
virtual |
Definition at line 1055 of file ipclient.cxx.
Referenced by SfxInPlaceClient_Impl::notifyEvent().
sal_Int64 SfxInPlaceClient::GetAspect | ( | ) | const |
Definition at line 892 of file ipclient.cxx.
References m_xImp.
|
static |
Definition at line 877 of file ipclient.cxx.
References SfxViewShell::FindIPClient(), SfxViewFrame::GetFirst(), SfxViewFrame::GetNext(), and GetViewShell().
|
inline |
Definition at line 67 of file ipclient.hxx.
Referenced by SfxInPlaceClient_Impl::activatingInplace(), SfxInPlaceClient_Impl::changedPlacement(), DoVerb(), LokChartHelper::GetChartBoundingBox(), SfxInPlaceClient_Impl::getClipRectangle(), SfxViewShell::GetEditWindowForActiveOLEObj(), SfxInPlaceClient_Impl::getPlacement(), SfxInPlaceClient_Impl::getWindow(), and SfxInPlaceClient_Impl::SizeHasChanged().
const tools::Rectangle & SfxInPlaceClient::GetObjArea | ( | ) | const |
Definition at line 772 of file ipclient.cxx.
References m_xImp.
Referenced by SfxInPlaceClient_Impl::activatingInplace(), SfxViewShell::CheckIPClient_Impl(), and LokStarMathHelper::GetBoundingBox().
const uno::Reference< embed::XEmbeddedObject > & SfxInPlaceClient::GetObject | ( | ) | const |
Definition at line 700 of file ipclient.cxx.
References m_xImp.
Referenced by SfxViewShell::CheckIPClient_Impl(), DeactivateObject(), GetObjectMiscStatus(), LokChartHelper::GetXController(), ResetObject(), SfxFrame::Resize(), SetObject(), and SetObjectState().
sal_Int64 SfxInPlaceClient::GetObjectMiscStatus | ( | ) | const |
Definition at line 692 of file ipclient.cxx.
References GetObject(), and m_xImp.
Referenced by SfxViewShell::CheckIPClient_Impl().
tools::Rectangle SfxInPlaceClient::GetScaledObjArea | ( | ) | const |
Definition at line 777 of file ipclient.cxx.
References tools::Rectangle::GetHeight(), tools::Rectangle::GetWidth(), m_xImp, and tools::Rectangle::SetSize().
Referenced by SfxInPlaceClient_Impl::changedPlacement(), and DoVerb().
const Fraction & SfxInPlaceClient::GetScaleHeight | ( | ) | const |
Definition at line 823 of file ipclient.cxx.
References m_xImp.
const Fraction & SfxInPlaceClient::GetScaleWidth | ( | ) | const |
Definition at line 817 of file ipclient.cxx.
References m_xImp.
|
inline |
Definition at line 66 of file ipclient.hxx.
Referenced by SfxInPlaceClient_Impl::activatingInplace(), SfxInPlaceClient_Impl::activatingUI(), SfxInPlaceClient_Impl::changedPlacement(), SfxInPlaceClient_Impl::deactivatedInplace(), SfxInPlaceClient_Impl::deactivatedUI(), GetClient(), SfxInPlaceClient_Impl::getClipRectangle(), SfxInPlaceClient_Impl::getComponent(), SfxInPlaceClient_Impl::GetFrame(), SfxInPlaceClient_Impl::getPlacement(), SfxInPlaceClient_Impl::saveObject(), SfxInPlaceClient_Impl::scrollObject(), SfxInPlaceClient_Impl::SizeHasChanged(), SfxInPlaceClient_Impl::stateChanged(), SfxInPlaceClient_Impl::translateAccelerators(), and SfxInPlaceClient_Impl::visibilityChanged().
void SfxInPlaceClient::Invalidate | ( | ) |
Definition at line 829 of file ipclient.cxx.
References tools::Rectangle::GetHeight(), tools::Rectangle::GetWidth(), IsNegativeX(), m_pEditWin, m_xImp, tools::Rectangle::SetSize(), and ViewChanged().
Referenced by SfxInPlaceClient_Impl::notifyEvent(), SetObjArea(), SetObjAreaAndScale(), and SfxInPlaceClient_Impl::visibilityChanged().
bool SfxInPlaceClient::IsNegativeX | ( | ) | const |
bool SfxInPlaceClient::IsObjectInPlaceActive | ( | ) | const |
Definition at line 856 of file ipclient.cxx.
References m_xImp.
Referenced by SfxViewShell::CheckIPClient_Impl().
bool SfxInPlaceClient::IsObjectUIActive | ( | ) | const |
Definition at line 844 of file ipclient.cxx.
References m_xImp.
Referenced by SfxViewFrame::MakeActive_Impl(), and SfxDispatcher::Update_Impl().
|
virtual |
Definition at line 1060 of file ipclient.cxx.
Referenced by SfxInPlaceClient_Impl::saveObject().
bool SfxInPlaceClient::IsUIActive | ( | ) | const |
Definition at line 1133 of file ipclient.cxx.
References m_xImp.
|
privatevirtual |
Definition at line 1040 of file ipclient.cxx.
Referenced by SfxInPlaceClient_Impl::changedPlacement().
|
delete |
|
privatevirtual |
Definition at line 1045 of file ipclient.cxx.
Referenced by SfxInPlaceClient_Impl::changedPlacement().
void SfxInPlaceClient::ResetObject | ( | ) |
Definition at line 1109 of file ipclient.cxx.
References GetObject(), and m_xImp.
void SfxInPlaceClient::SetNegativeX | ( | bool | bSet | ) |
To indicate that negated document X coordinates are used.
Definition at line 1138 of file ipclient.cxx.
References m_xImp.
bool SfxInPlaceClient::SetObjArea | ( | const tools::Rectangle & | rArea | ) |
Definition at line 757 of file ipclient.cxx.
References Invalidate(), and m_xImp.
void SfxInPlaceClient::SetObjAreaAndScale | ( | const tools::Rectangle & | rArea, |
const Fraction & | rScaleWidth, | ||
const Fraction & | rScaleHeight | ||
) |
Definition at line 802 of file ipclient.cxx.
References Invalidate(), and m_xImp.
void SfxInPlaceClient::SetObject | ( | const css::uno::Reference< css::embed::XEmbeddedObject > & | rObject | ) |
Definition at line 706 of file ipclient.cxx.
References DBG_ASSERT, SfxViewFrame::GetFrame(), GetObject(), SfxViewShell::GetViewFrame(), SfxFrame::IsClosing_Impl(), m_pViewSh, m_xImp, and SetObjectState().
Referenced by ~SfxInPlaceClient().
void SfxInPlaceClient::SetObjectState | ( | sal_Int32 | nState | ) |
Definition at line 671 of file ipclient.cxx.
References GetObject(), m_xImp, and nState.
Referenced by SetObject().
Definition at line 786 of file ipclient.cxx.
References m_xImp.
|
privatevirtual |
Definition at line 1050 of file ipclient.cxx.
Referenced by Invalidate(), and SfxInPlaceClient_Impl::notifyEvent().
void SfxInPlaceClient::VisAreaChanged | ( | ) |
Definition at line 1033 of file ipclient.cxx.
References m_xImp.
|
friend |
Definition at line 44 of file ipclient.hxx.
|
private |
Definition at line 48 of file ipclient.hxx.
Referenced by Invalidate().
|
private |
Definition at line 47 of file ipclient.hxx.
Referenced by DeactivateObject(), DoVerb(), SetObject(), and ~SfxInPlaceClient().
|
private |
Definition at line 46 of file ipclient.hxx.
Referenced by DeactivateObject(), DoVerb(), GetAspect(), GetObjArea(), GetObject(), GetObjectMiscStatus(), GetScaledObjArea(), GetScaleHeight(), GetScaleWidth(), Invalidate(), IsNegativeX(), IsObjectInPlaceActive(), IsObjectUIActive(), IsUIActive(), ResetObject(), SetNegativeX(), SetObjArea(), SetObjAreaAndScale(), SetObject(), SetObjectState(), SetSizeScale(), SfxInPlaceClient(), VisAreaChanged(), and ~SfxInPlaceClient().