LibreOffice Module starmath (master) 1
|
#include <view.hxx>
Public Member Functions | |
SmViewShell (SfxViewFrame &rFrame, SfxViewShell *pOldSh) | |
virtual | ~SmViewShell () override |
SmDocShell * | GetDoc () const |
SmEditWindow * | GetEditWindow () |
SmGraphicWidget & | GetGraphicWidget () |
const SmGraphicWidget & | GetGraphicWidget () const |
SmGraphicWindow & | GetGraphicWindow () |
void | SetStatusText (const OUString &rText) |
void | ShowError (const SmErrorDesc *pErrorDesc) |
void | NextError () |
void | PrevError () |
SFX_DECL_VIEWFACTORY (SmViewShell) | |
void | SendCaretToLOK () const |
void | Execute (SfxRequest &rReq) |
void | GetState (SfxItemSet &) |
void | Impl_Print (OutputDevice &rOutDev, const SmPrintUIOptions &rPrintUIOptions, tools::Rectangle aOutRect) |
void | SetInsertIntoEditWindow (bool bEditWindowHadFocusLast) |
Set bInsertIntoEditWindow so we know where to insert. More... | |
void | StartMainHelp () |
Public Member Functions inherited from SfxViewShell | |
SfxViewShell (SfxViewFrame &rFrame, SfxViewShellFlags nFlags) | |
virtual | ~SfxViewShell () override |
SfxInPlaceClient * | GetIPClient () const |
SfxInPlaceClient * | GetUIActiveClient () const |
SfxInPlaceClient * | FindIPClient (const css::uno::Reference< css::embed::XEmbeddedObject > &xObj, vcl::Window *pObjParentWin) const |
virtual ErrCode | DoVerb (sal_Int32 nVerb) |
void | OutplaceActivated (bool bActive) |
virtual void | UIActivating (SfxInPlaceClient *pClient) |
virtual void | UIDeactivated (SfxInPlaceClient *pClient) |
void | JumpToMark (const OUString &rMark) |
void | VisAreaChanged () |
virtual bool | PrepareClose (bool bUI=true) |
virtual OUString | GetSelectionText (bool bCompleteWords=false, bool bOnlyASample=false) |
virtual bool | HasSelection (bool bText=true) const |
virtual SdrView * | GetDrawView () const |
void | AddSubShell (SfxShell &rShell) |
void | RemoveSubShell (SfxShell *pShell=nullptr) |
SfxShell * | GetSubShell (sal_uInt16) |
virtual SfxShell * | GetFormShell () |
virtual const SfxShell * | GetFormShell () const |
virtual void | notifyWindow (vcl::LOKWindowId nLOKWindowId, const OUString &rAction, const std::vector< vcl::LOKPayloadItem > &rPayload=std::vector< vcl::LOKPayloadItem >()) const override |
virtual void | ShowCursor (bool bOn=true) |
virtual bool | KeyInput (const KeyEvent &rKeyEvent) |
bool | Escape () |
vcl::Window * | GetWindow () const |
weld::Window * | GetFrameWeld () const |
void | SetWindow (vcl::Window *pViewPort) |
const SvBorder & | GetBorderPixel () const |
void | SetBorderPixel (const SvBorder &rBorder) |
void | InvalidateBorder () |
SfxViewFrame & | GetViewFrame () const |
virtual SfxPrinter * | GetPrinter (bool bCreate=false) |
virtual sal_uInt16 | SetPrinter (SfxPrinter *pNewPrinter, SfxPrinterChangeFlags nDiffFlags=SFX_PRINTER_ALL) |
virtual bool | HasPrintOptionsPage () const |
virtual std::unique_ptr< SfxTabPage > | CreatePrintOptionsPage (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rOptions) |
Printer * | GetActivePrinter () const |
virtual void | WriteUserData (OUString &, bool bBrowse=false) |
virtual void | ReadUserData (const OUString &, bool bBrowse=false) |
virtual void | WriteUserDataSequence (css::uno::Sequence< css::beans::PropertyValue > &) |
virtual void | ReadUserDataSequence (const css::uno::Sequence< css::beans::PropertyValue > &) |
virtual void | QueryObjAreaPixel (tools::Rectangle &rRect) const |
virtual SfxObjectShell * | GetObjectShell () override |
virtual css::uno::Reference< css::frame::XModel > | GetCurrentDocument () const |
void | SetCurrentDocument () const |
virtual css::uno::Reference< css::view::XRenderable > | GetRenderable () |
virtual void | MarginChanged () |
const Size & | GetMargin () const |
void | SetMargin (const Size &) |
void | DisconnectAllClients () |
bool | NewWindowAllowed () const |
void | SetNewWindowAllowed (bool bSet) |
void | SetController (SfxBaseController *pController) |
css::uno::Reference< css::frame::XController > | GetController () const |
bool | TryContextMenuInterception (const rtl::Reference< VCLXPopupMenu > &rIn, const OUString &rMenuIdentifier, rtl::Reference< VCLXPopupMenu > &rOut, css::ui::ContextMenuExecuteEvent aEvent) |
bool | TryContextMenuInterception (const rtl::Reference< VCLXPopupMenu > &, const OUString &rMenuIdentifier, css::ui::ContextMenuExecuteEvent aEvent) |
void | ExecPrint (const css::uno::Sequence< css::beans::PropertyValue > &, bool, bool) |
void | StartPrint (const css::uno::Sequence< css::beans::PropertyValue > &, bool, bool) |
const std::shared_ptr< vcl::PrinterController > & | GetPrinterController () const |
void | AddRemoveClipboardListener (const css::uno::Reference< css::datatransfer::clipboard::XClipboardListener > &, bool) |
css::uno::Reference< css::datatransfer::clipboard::XClipboardNotifier > | GetClipboardNotifier () const |
SAL_DLLPRIVATE SfxInPlaceClient * | GetUIActiveIPClient_Impl () const |
SAL_DLLPRIVATE void | AddContextMenuInterceptor_Impl (const css::uno::Reference< css::ui::XContextMenuInterceptor > &xInterceptor) |
SAL_DLLPRIVATE void | RemoveContextMenuInterceptor_Impl (const css::uno::Reference< css::ui::XContextMenuInterceptor > &xInterceptor) |
SAL_DLLPRIVATE bool | GlobalKeyInput_Impl (const KeyEvent &rKeyEvent) |
SAL_DLLPRIVATE void | NewIPClient_Impl (SfxInPlaceClient *pIPClient) |
SAL_DLLPRIVATE void | IPClientGone_Impl (SfxInPlaceClient const *pIPClient) |
SAL_DLLPRIVATE void | ResetAllClients_Impl (SfxInPlaceClient const *pIP) |
SAL_DLLPRIVATE void | SetPrinter_Impl (VclPtr< SfxPrinter > &pNewPrinter) |
SAL_DLLPRIVATE bool | HandleNotifyEvent_Impl (NotifyEvent const &rEvent) |
SAL_DLLPRIVATE bool | HasKeyListeners_Impl () const |
SAL_DLLPRIVATE bool | HasMouseClickListeners_Impl () const |
SAL_DLLPRIVATE SfxBaseController * | GetBaseController_Impl () const |
SAL_DLLPRIVATE void | ExecPrint_Impl (SfxRequest &) |
SAL_DLLPRIVATE void | ExecMisc_Impl (SfxRequest &) |
SAL_DLLPRIVATE void | GetState_Impl (SfxItemSet &) |
SAL_DLLPRIVATE void | CheckIPClient_Impl (SfxInPlaceClient const *, const tools::Rectangle &) |
SAL_DLLPRIVATE void | PushSubShells_Impl (bool bPush=true) |
SAL_DLLPRIVATE void | PopSubShells_Impl () |
SAL_DLLPRIVATE bool | ExecKey_Impl (const KeyEvent &aKey) |
void | setLibreOfficeKitViewCallback (SfxLokCallbackInterface *pCallback) |
SfxLokCallbackInterface * | getLibreOfficeKitViewCallback () const |
void | dumpLibreOfficeKitViewState (rtl::OStringBuffer &rState) |
virtual void | libreOfficeKitViewCallback (int nType, const OString &pPayload) const override |
virtual void | libreOfficeKitViewCallbackWithViewId (int nType, const OString &pPayload, int nViewId) const override |
virtual void | libreOfficeKitViewInvalidateTilesCallback (const tools::Rectangle *pRect, int nPart, int nMode) const override |
virtual void | libreOfficeKitViewUpdatedCallback (int nType) const override |
virtual void | libreOfficeKitViewUpdatedCallbackPerViewId (int nType, int nViewId, int nSourceViewId) const override |
virtual void | flushPendingLOKInvalidateTiles () |
virtual void | libreOfficeKitViewAddPendingInvalidateTiles () override |
virtual std::optional< OString > | getLOKPayload (int nType, int nViewId) const |
void | setTiledSearching (bool bTiledSearching) |
virtual int | getPart () const |
virtual int | getEditMode () const |
virtual void | dumpAsXml (xmlTextWriterPtr pWriter) const |
ViewShellId | GetViewShellId () const override |
ViewShellDocId | GetDocId () const override |
virtual void | notifyInvalidation (tools::Rectangle const *) const override |
void | NotifyOtherViews (int nType, const OString &rKey, const OString &rPayload) override |
void | NotifyOtherView (OutlinerViewShell *pOtherShell, int nType, const OString &rKey, const OString &rPayload) override |
virtual void | NotifyCursor (SfxViewShell *) const |
virtual void | afterCallbackRegistered () |
virtual vcl::Window * | GetEditWindowForActiveOLEObj () const override |
virtual ::Color | GetColorConfigColor (svtools::ColorConfigEntry nColorType) const |
virtual OUString | GetColorConfigName () const |
void | SetLOKLanguageTag (const OUString &rBcp47LanguageTag) |
const LanguageTag & | GetLOKLanguageTag () const |
void | SetLOKAccessibilityState (bool bEnabled) |
std::pair< bool, OUString > | GetLOKTimezone () const |
void | SetLOKTimezone (bool isSet, const OUString &rTimezone) |
void | SetLOKLocale (const OUString &rBcp47LanguageTag) |
const LanguageTag & | GetLOKLocale () const |
LOKDeviceFormFactor | GetLOKDeviceFormFactor () const |
bool | isLOKDesktop () const |
bool | isLOKTablet () const |
bool | isLOKMobilePhone () const |
virtual tools::Rectangle | getLOKVisibleArea () const |
void | setBlockedCommandList (const char *blockedCommandList) |
bool | isBlockedCommand (OUString command) |
void | SetStoringHelper (std::shared_ptr< SfxStoringHelper > xHelper) |
StylesHighlighterColorMap & | GetStylesHighlighterParaColorMap () |
StylesHighlighterColorMap & | GetStylesHighlighterCharColorMap () |
OUString | getA11yFocusedParagraph () const |
int | getA11yCaretPosition () const |
Public Member Functions inherited from SfxShell | |
virtual | ~SfxShell () override |
virtual SfxInterface * | GetInterface () const |
void | SetName (const OUString &rName) |
const OUString & | GetName () const |
SfxViewShell * | GetViewShell () const |
const SfxPoolItem * | GetSlotState (sal_uInt16 nSlotId, const SfxInterface *pIF=nullptr, SfxItemSet *pStateSet=nullptr) |
const SfxPoolItem * | ExecuteSlot (SfxRequest &rReq, const SfxInterface *pIF=nullptr) |
void | ExecuteSlot (SfxRequest &rReq, bool bAsync) |
SfxItemPool & | GetPool () const |
void | SetPool (SfxItemPool *pNewPool) |
virtual SfxUndoManager * | GetUndoManager () |
void | SetUndoManager (SfxUndoManager *pNewUndoMgr) |
SfxRepeatTarget * | GetRepeatTarget () const |
void | SetRepeatTarget (SfxRepeatTarget *pTarget) |
virtual void | Invalidate (sal_uInt16 nId=0) |
virtual bool | IsDesignMode () const |
bool | IsActive () const |
virtual void | Activate (bool bMDI) |
virtual void | Deactivate (bool bMDI) |
SfxDispatcher * | GetDispatcher () const |
SfxViewFrame * | GetFrame () const |
virtual bool | HasUIFeature (SfxShellFeature nFeature) const |
void | UIFeatureChanged () |
const SfxPoolItem * | GetItem (sal_uInt16 nSlotId) const |
const T * | GetItem (TypedWhichId< T > nWhich) const |
void | PutItem (const SfxPoolItem &rItem) |
void | SetVerbs (const css::uno::Sequence< css::embed::VerbDescriptor > &aVerbs) |
const css::uno::Sequence< css::embed::VerbDescriptor > & | GetVerbs () const |
void | VerbExec (SfxRequest &) |
SAL_DLLPRIVATE const SfxSlot * | GetVerbSlot_Impl (sal_uInt16 nId) const |
virtual SfxObjectShell * | GetObjectShell () |
void | SetDisableFlags (SfxDisableFlags nFlags) |
SfxDisableFlags | GetDisableFlags () const |
virtual std::optional< SfxItemSet > | CreateItemSet (sal_uInt16 nId) |
virtual void | ApplyItemSet (sal_uInt16 nId, const SfxItemSet &rSet) |
void | SetContextName (const OUString &rsContextName) |
void | BroadcastContextForActivation (const bool bIsActivated) |
bool | SetContextBroadcasterEnabled (const bool bIsEnabled) |
SAL_DLLPRIVATE bool | CanExecuteSlot_Impl (const SfxSlot &rSlot) |
virtual bool | IsConditionalFastCall (const SfxRequest &rReq) |
SAL_DLLPRIVATE void | DoActivate_Impl (SfxViewFrame *pFrame, bool bMDI) |
SAL_DLLPRIVATE void | DoDeactivate_Impl (SfxViewFrame const *pFrame, bool bMDI) |
Static Public Member Functions | |
static bool | IsInlineEditEnabled () |
Static Public Member Functions inherited from SfxViewShell | |
static SAL_WARN_UNUSED_RESULT SfxViewShell * | GetFirst (bool bOnlyVisible=true, const std::function< bool(const SfxViewShell *)> &isViewShell=nullptr) |
static SAL_WARN_UNUSED_RESULT SfxViewShell * | GetNext (const SfxViewShell &rPrev, bool bOnlyVisible=true, const std::function< bool(const SfxViewShell *)> &isViewShell=nullptr) |
static SAL_WARN_UNUSED_RESULT SfxViewShell * | Current () |
static SAL_WARN_UNUSED_RESULT SfxViewShell * | Get (const css::uno::Reference< css::frame::XController > &i_rController) |
static void | SetCurrentDocId (ViewShellDocId nId) |
Static Public Member Functions inherited from SfxShell | |
static SfxInterface * | GetStaticInterface () |
static void | EmptyExecStub (SfxShell *pShell, SfxRequest &) |
static void | EmptyStateStub (SfxShell *pShell, SfxItemSet &) |
static void | VerbState (SfxItemSet &) |
Private Member Functions | |
DECL_LINK (DialogClosedHdl, sfx2::FileDialogHelper *, void) | |
virtual void | Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override |
virtual SfxPrinter * | GetPrinter (bool bCreate=false) override |
virtual sal_uInt16 | SetPrinter (SfxPrinter *pNewPrinter, SfxPrinterChangeFlags nDiffFlags=SFX_PRINTER_ALL) override |
void | Insert (SfxMedium &rMedium) |
void | InsertFrom (SfxMedium &rMedium) |
virtual bool | HasPrintOptionsPage () const override |
virtual std::unique_ptr< SfxTabPage > | CreatePrintOptionsPage (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rOptions) override |
virtual void | Deactivate (bool IsMDIActivate) override |
virtual void | Activate (bool IsMDIActivate) override |
virtual void | InnerResizePixel (const Point &rOfs, const Size &rSize, bool inplaceEditModeChange) override |
virtual void | OuterResizePixel (const Point &rOfs, const Size &rSize) override |
virtual void | QueryObjAreaPixel (tools::Rectangle &rRect) const override |
virtual void | SetZoomFactor (const Fraction &rX, const Fraction &rY) override |
virtual std::optional< OString > | getLOKPayload (int nType, int nViewId) const override |
void | ZoomByItemSet (const SfxItemSet *pSet) |
Static Private Member Functions | |
static Size | GetTextLineSize (OutputDevice const &rDevice, const OUString &rLine) |
static Size | GetTextSize (OutputDevice const &rDevice, std::u16string_view rText, tools::Long MaxWidth) |
static void | DrawTextLine (OutputDevice &rDevice, const Point &rPosition, const OUString &rLine) |
static void | DrawText (OutputDevice &rDevice, const Point &rPosition, std::u16string_view rText, sal_uInt16 MaxWidth) |
static void | InitInterface_Impl () |
SfxInterface initializer. More... | |
Private Attributes | |
std::unique_ptr< sfx2::DocumentInserter > | mpDocInserter |
std::unique_ptr< SfxRequest > | mpRequest |
VclPtr< SmGraphicWindow > | mxGraphicWindow |
SmGraphicController | maGraphicController |
OUString | maStatusText |
bool | mbPasteState |
bool | mbInsertIntoEditWindow |
Used to determine whether insertions using SID_INSERTSPECIAL and SID_INSERTCOMMANDTEXT should be inserted into SmEditWindow or directly into the SmDocShell as done if the visual editor was last to have focus. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from SfxViewShell | |
virtual void | Activate (bool IsMDIActivate) override |
virtual void | Deactivate (bool IsMDIActivate) override |
virtual void | InnerResizePixel (const Point &rOfs, const Size &rSize, bool inplaceEditModeChange) |
virtual void | OuterResizePixel (const Point &rOfs, const Size &rSize) |
virtual void | SetZoomFactor (const Fraction &rZoomX, const Fraction &rZoomY) |
virtual void | Move () |
virtual void | Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override |
Protected Member Functions inherited from SfxShell | |
SfxShell () | |
SfxShell (SfxViewShell *pViewSh) | |
void | SetViewShell_Impl (SfxViewShell *pView) |
SAL_DLLPRIVATE void | Invalidate_Impl (SfxBindings &rBindings, sal_uInt16 nId) |
Static Protected Member Functions inherited from SfxShell | |
static void | HandleOpenXmlFilterSettings (SfxRequest &) |
SmViewShell::SmViewShell | ( | SfxViewFrame & | rFrame, |
SfxViewShell * | pOldSh | ||
) |
Definition at line 2235 of file view.cxx.
References Create(), VclPtr< class reference_type >::get(), GetBindings(), GetDoc(), SfxShell::GetUndoManager(), HAS_PRINTOPTIONS, mxGraphicWindow, SfxViewShell::SetController(), SfxShell::SetName(), SetStatusText(), SfxShell::SetUndoManager(), and SfxViewShell::SetWindow().
|
overridevirtual |
! this view shell is not active anymore !!
Definition at line 2249 of file view.cxx.
References VclPtr< class reference_type >::disposeAndClear(), GetEditWindow(), and mxGraphicWindow.
|
overrideprivatevirtual |
Since there is no way to be informed if a "drag and drop" event has taken place, we call SetText here in order to synchronize the GraphicWindow display with the text in the EditEngine.
Reimplemented from SfxViewShell.
Definition at line 2267 of file view.cxx.
References SfxViewShell::Activate(), GetDoc(), SmDocShell::GetEditEngine(), GetEditWindow(), GetGraphicWidget(), EditEngine::GetText(), weld::CustomWidgetController::GrabFocus(), comphelper::LibreOfficeKit::isActive(), and SmDocShell::SetText().
|
overrideprivatevirtual |
Reimplemented from SfxViewShell.
Definition at line 1545 of file view.cxx.
References SmPrintOptionsTabPage::Create().
|
overrideprivatevirtual |
Reimplemented from SfxViewShell.
Definition at line 2259 of file view.cxx.
References SfxViewShell::Deactivate(), and GetEditWindow().
|
private |
|
staticprivate |
Definition at line 1306 of file view.cxx.
References Point::AdjustY(), DrawTextLine(), GetTextLineSize(), o3tl::getToken(), Size::Height(), m, n, nPos, comphelper::string::stripStart(), u, Width, and Size::Width().
Referenced by Impl_Print().
|
staticprivate |
Definition at line 1283 of file view.cxx.
References Point::AdjustX(), OutputDevice::approximate_digit_width(), OutputDevice::DrawText(), OutputDevice::GetTextWidth(), nPos, Point::setX(), and Point::X().
Referenced by DrawText().
void SmViewShell::Execute | ( | SfxRequest & | rReq | ) |
Definition at line 1671 of file view.cxx.
References aData, ToggleUnicodeCodepoint::AllowMoreInput(), SmEditWindow::Copy(), SvxAbstractDialogFactory::Create(), TransferableDataHelper::CreateFromClipboard(), SvxAbstractDialogFactory::CreateSvxZoomDialog(), SmEditWindow::Cut(), SmEditWindow::Delete(), SfxRequest::Done(), EDITUNDO_REPLACEALL, SfxDispatcher::ExecuteList(), SmEditWindow::Flush(), SfxItemSet::Get(), SfxRequest::GetArgs(), SfxViewFrame::GetBindings(), SmEditWindow::GetClipboard(), SmModule::GetConfig(), SmDocShell::GetCursor(), SfxViewFrame::GetDispatcher(), GetDoc(), SmEditWindow::GetEditEngine(), GetEditWindow(), GetFactory(), SfxFilter::GetFilterByName(), OutputDevice::GetFontFaceCollectionCount(), SfxShell::GetFrame(), SfxViewShell::GetFrameWeld(), SmEditWindow::GetFrameWeld(), GetGraphicWidget(), TransferableDataHelper::GetInputStream(), SfxMedium::GetItemSet(), SfxItemSet::GetItemState(), SmDocShell::GetPool(), SmDocShell::GetPrinter(), SmEditWindow::GetSelection(), SfxRequest::GetSlot(), comphelper::OStorageHelper::GetStorageFromInputStream(), TransferableDataHelper::GetString(), EditView::GetSurroundingText(), SmModule::GetSymbolManager(), SmEditWindow::GetText(), TransferableDataHelper::GetTransferable(), CntUnencodedStringItem::GetValue(), GetValue, EditEngine::GetView(), SfxViewShell::GetViewFrame(), SfxViewShell::GetWindow(), weld::CustomWidgetController::GrabFocus(), SmEditWindow::GrabFocus(), TransferableDataHelper::HasFormat(), SfxRequest::Ignore(), Insert(), SmCursor::InsertCommandText(), InsertFrom(), SmCursor::InsertSpecial(), EditView::InsertText(), SmEditWindow::InsertText(), SfxBindings::Invalidate(), SmEditWindow::IsAllSelected(), IsInlineEditEnabled(), SmMathConfig::IsShowFormulaCursor(), LINK, MATHML_XML, MAXZOOM, mbInsertIntoEditWindow, MINZOOM, mpDocInserter, mpRequest, mxGraphicWindow, ESelection::nEndPos, NextError(), nId, ESelection::nStartPos, SmEditWindow::Paste(), PrevError(), SfxItemSet::Put(), SmDocShell::Repaint(), ToggleUnicodeCodepoint::ReplacementString(), RET_CANCEL, weld::DialogController::run(), SAL_WARN, SAL_WARN_IF, SmEditWindow::SelectAll(), SmEditWindow::SelNextMark(), SmEditWindow::SelPrevMark(), SfxMedium::SetFilter(), EditView::SetSelection(), SmEditWindow::SetSelection(), SmMathConfig::SetShowFormulaCursor(), SetStatusText(), SfxMedium::setStreamToLoadFrom(), SmDocShell::SetText(), SfxViewFrame::ShowChildWindow(), SmGraphicWidget::ShowCursor(), ShowError(), SM_MOD, ToggleUnicodeCodepoint::StringToReplace(), sfx2::sidebar::Sidebar::TogglePanel(), u, EditEngine::UndoActionEnd(), EditEngine::UndoActionStart(), SmDocShell::UpdateText(), and ZoomByItemSet().
|
inline |
Definition at line 297 of file view.hxx.
References SfxViewFrame::GetObjectShell(), and SfxViewShell::GetViewFrame().
Referenced by Activate(), Execute(), SmGraphicAccessible::getCharacterBounds(), SmEditWindow::GetDoc(), SmGraphicWidget::GetDoc(), SmGraphicAccessible::GetDoc_Impl(), SmGraphicAccessible::getIndexAtPoint(), getLOKPayload(), GetPrinter(), IMPL_LINK_NOARG(), Impl_Print(), Insert(), InsertFrom(), NextError(), OuterResizePixel(), PrevError(), SetPrinter(), ShowError(), SmViewShell(), and ZoomByItemSet().
SmEditWindow * SmViewShell::GetEditWindow | ( | ) |
Definition at line 1551 of file view.cxx.
References SfxViewFrame::GetChildWindow(), SmCmdBoxWrapper::GetEditWindow(), and SfxViewShell::GetViewFrame().
Referenced by Activate(), Deactivate(), Execute(), GetState(), Insert(), InsertFrom(), SmGraphicWidget::MouseButtonDown(), ShowError(), and ~SmViewShell().
|
inline |
Definition at line 304 of file view.hxx.
References mxGraphicWindow.
Referenced by Activate(), Execute(), getLOKPayload(), sm::sidebar::SmElementsPanel::GetView(), InnerResizePixel(), SmEditTextWindow::KeyInput(), SmDocShell::SetText(), and SmGetActiveView().
|
inline |
Definition at line 308 of file view.hxx.
References mxGraphicWindow.
|
inline |
Definition at line 313 of file view.hxx.
References mxGraphicWindow.
|
overrideprivatevirtual |
Reimplemented from SfxViewShell.
Definition at line 2381 of file view.cxx.
References SfxViewShell::Current(), SmCursor::GetCaretRectangle(), SmDocShell::GetCursor(), GetDoc(), GetGraphicWidget(), SfxViewShell::getLOKPayload(), SmCursor::GetSelectionRectangle(), SmGraphicWidget::IsCursorVisible(), tools::Rectangle::IsEmpty(), tools::Rectangle::Left(), SfxLokHelper::makeVisCursorInvalidation(), tools::Rectangle::Move(), nType, tools::Rectangle::Top(), tools::Rectangle::toString(), Point::X(), and Point::Y().
Referenced by SendCaretToLOK().
|
overrideprivatevirtual |
Reimplemented from SfxViewShell.
Definition at line 1515 of file view.cxx.
References GetDoc(), SmDocShell::GetPrinter(), and SmDocShell::HasPrinter().
Referenced by ZoomByItemSet().
void SmViewShell::GetState | ( | SfxItemSet & | rSet | ) |
Definition at line 2076 of file view.cxx.
References SvxZoomSliderItem::AddSnappingPoint(), TransferableDataHelper::CreateFromClipboard(), SfxItemSet::DisableItem(), SfxWhichIter::FirstWhich(), SmEditWindow::GetClipboard(), SmModule::GetConfig(), GetEditWindow(), SfxShell::GetFrame(), SfxViewFrame::GetFrame(), TransferableDataHelper::GetTransferable(), SfxViewShell::GetViewFrame(), TransferableDataHelper::HasFormat(), SmEditWindow::IsEmpty(), SfxFrame::IsInPlace(), sfx2::sidebar::Sidebar::IsPanelVisible(), SmEditWindow::IsSelected(), SmMathConfig::IsShowFormulaCursor(), maStatusText, MAXZOOM, mbPasteState, MINZOOM, mxGraphicWindow, SfxWhichIter::NextWhich(), SfxItemSet::Put(), rSet, SM_MOD, and u.
|
staticprivate |
Definition at line 1201 of file view.cxx.
References Size::AdjustWidth(), OutputDevice::approximate_digit_width(), OutputDevice::GetTextHeight(), OutputDevice::GetTextWidth(), nPos, Size::setWidth(), and Size::Width().
Referenced by DrawText(), and GetTextSize().
|
staticprivate |
Definition at line 1224 of file view.cxx.
References Size::AdjustHeight(), GetTextLineSize(), o3tl::getToken(), Size::Height(), m, n, nPos, Size::setWidth(), comphelper::string::stripStart(), u, Width, and Size::Width().
Referenced by Impl_Print().
|
overrideprivatevirtual |
Reimplemented from SfxViewShell.
void SmViewShell::Impl_Print | ( | OutputDevice & | rOutDev, |
const SmPrintUIOptions & | rPrintUIOptions, | ||
tools::Rectangle | aOutRect | ||
) |
Definition at line 1368 of file view.cxx.
References tools::Rectangle::AdjustBottom(), tools::Rectangle::AdjustLeft(), tools::Rectangle::AdjustRight(), tools::Rectangle::AdjustTop(), ALIGN_TOP, tools::Rectangle::Bottom(), tools::Rectangle::BottomLeft(), COL_BLACK(), o3tl::convert(), SmDocShell::DrawFormula(), OutputDevice::DrawRect(), DrawText(), FAMILY_DONTKNOW, vcl::PrinterOptionsHelper::getBoolValue(), GetDoc(), tools::Rectangle::GetHeight(), vcl::PrinterOptionsHelper::getIntValue(), tools::Rectangle::GetSize(), GetTextSize(), GetTitle(), tools::Rectangle::GetWidth(), Size::Height(), Size::IsEmpty(), tools::Rectangle::Left(), OutputDevice::LogicToPixel(), MINZOOM, OutputDevice::PixelToLogic(), OutputDevice::Pop(), PRINT_SIZE_NORMAL, PRINT_SIZE_SCALED, PRINT_SIZE_ZOOMED, PRTUIOPT_BORDER, PRTUIOPT_FORMULA_TEXT, PRTUIOPT_PRINT_FORMAT, PRTUIOPT_PRINT_SCALE, PRTUIOPT_TITLE_ROW, OutputDevice::Push(), vcl::Font::SetAlignment(), OutputDevice::SetClipRegion(), vcl::Font::SetColor(), OutputDevice::SetFont(), vcl::Font::SetFontSize(), OutputDevice::SetLineColor(), OutputDevice::SetMapMode(), vcl::Font::SetWeight(), Point::setX(), Point::setY(), SmMapUnit(), tools::Rectangle::Top(), tools::Rectangle::TopLeft(), WEIGHT_BOLD, WEIGHT_NORMAL, and Size::Width().
Referenced by SmModel::render().
|
staticprivate |
|
overrideprivatevirtual |
Reimplemented from SfxViewShell.
Definition at line 1160 of file view.cxx.
References aMap, GetGraphicWidget(), SfxViewShell::GetObjectShell(), tools::Rectangle::GetSize(), SfxObjectShell::GetVisArea(), SfxViewShell::GetWindow(), Size::Height(), Size::IsEmpty(), mxGraphicWindow, vcl::Window::PixelToLogic(), SfxViewShell::SetBorderPixel(), SmGraphicWidget::SetTotalSize(), SmMapUnit(), and Size::Width().
|
private |
! modifies the result of pDoc->GetText() !!
Definition at line 1601 of file view.cxx.
References ERRCODE_NONE, SfxViewFrame::GetBindings(), GetDoc(), GetEditWindow(), SfxObjectShell::GetModel(), SfxMedium::GetStorage(), SmDocShell::GetText(), SfxViewShell::GetViewFrame(), SmXMLImportWrapper::Import(), SfxBindings::Invalidate(), SmDocShell::Parse(), SAL_WARN, SmDocShell::SetModified(), and xModel.
Referenced by Execute().
|
private |
! modifies the result of pDoc->GetText() !!
Definition at line 1637 of file view.cxx.
References ERRCODE_NONE, SfxViewFrame::GetBindings(), GetDoc(), GetEditWindow(), SfxMedium::GetFilter(), SfxMedium::GetInStream(), SfxObjectShell::GetModel(), SmDocShell::GetText(), SfxViewShell::GetViewFrame(), SmXMLImportWrapper::Import(), SfxBindings::Invalidate(), MATHML_XML, SmDocShell::Parse(), SAL_WARN, SmDocShell::SetModified(), and xModel.
Referenced by Execute().
|
static |
Definition at line 2333 of file view.cxx.
References comphelper::LibreOfficeKit::isActive().
Referenced by SmGraphicWidget::CaretBlinkStart(), SmGraphicWidget::CaretBlinkStop(), Execute(), SmEditTextWindow::GetFocus(), SmGraphicWidget::GetFocus(), SmGraphicWidget::KeyInput(), SmGraphicWidget::LoseFocus(), SmGraphicWidget::MouseButtonDown(), SmEditTextWindow::MouseButtonUp(), SmGraphicWidget::MouseMove(), SmGraphicWidget::Paint(), SmGraphicWidget::SetCursor(), SmGraphicWidget::SetCursorPos(), SmGraphicWidget::ShowCursor(), SmGraphicWidget::ShowLine(), SmEditTextWindow::SmEditTextWindow(), and SmEditTextWindow::StartCursorMove().
void SmViewShell::NextError | ( | ) |
Definition at line 1583 of file view.cxx.
References GetDoc(), SmDocShell::GetParser(), AbstractSmParser::NextError(), and ShowError().
Referenced by Execute().
|
overrideprivatevirtual |
Reimplemented from SfxViewShell.
Definition at line 2320 of file view.cxx.
References SfxViewFrame::GetBindings(), SfxHint::GetId(), SfxViewShell::GetViewFrame(), and SfxBindings::InvalidateAll().
|
overrideprivatevirtual |
Reimplemented from SfxViewShell.
Definition at line 1179 of file view.cxx.
References GetDoc(), and mxGraphicWindow.
void SmViewShell::PrevError | ( | ) |
Definition at line 1592 of file view.cxx.
References GetDoc(), SmDocShell::GetParser(), AbstractSmParser::PrevError(), and ShowError().
Referenced by Execute().
|
overrideprivatevirtual |
Reimplemented from SfxViewShell.
Definition at line 1186 of file view.cxx.
References mxGraphicWindow, and tools::Rectangle::SetSize().
void SmViewShell::SendCaretToLOK | ( | ) | const |
Definition at line 2432 of file view.cxx.
References getLOKPayload(), SfxViewShell::GetViewShellId(), SfxViewShell::libreOfficeKitViewCallback(), and SfxViewShell::libreOfficeKitViewCallbackWithViewId().
Referenced by SmGraphicWidget::SetIsCursorVisible().
|
inline |
Set bInsertIntoEditWindow so we know where to insert.
This method is called whenever SmGraphicWidget or SmEditWindow gets focus, so that when text is inserted from catalog or elsewhere we know whether to insert for the visual editor, or the text editor.
Definition at line 346 of file view.hxx.
References mbInsertIntoEditWindow.
Referenced by SmEditTextWindow::GetFocus(), and SmGraphicWidget::GetFocus().
|
overrideprivatevirtual |
Reimplemented from SfxViewShell.
Definition at line 1523 of file view.cxx.
References SmModule::GetConfig(), GetDoc(), SfxPrinter::GetOptions(), SmDocShell::GetPrinter(), SmMathConfig::ItemSetToConfig(), SmDocShell::SetPrinter(), SFX_PRINTERROR_BUSY, and SM_MOD.
void SmViewShell::SetStatusText | ( | const OUString & | rText | ) |
Definition at line 1565 of file view.cxx.
References SfxViewFrame::GetBindings(), SfxViewShell::GetViewFrame(), SfxBindings::Invalidate(), and maStatusText.
Referenced by Execute(), ShowError(), and SmViewShell().
Reimplemented from SfxViewShell.
Definition at line 1191 of file view.cxx.
References mxGraphicWindow, and SfxViewShell::SetZoomFactor().
SmViewShell::SFX_DECL_VIEWFACTORY | ( | SmViewShell | ) |
void SmViewShell::ShowError | ( | const SmErrorDesc * | pErrorDesc | ) |
Definition at line 1571 of file view.cxx.
References SmNode::GetColumn(), GetDoc(), GetEditWindow(), GetError(), SmNode::GetRow(), SmErrorDesc::m_aText, SmErrorDesc::m_pNode, and SetStatusText().
Referenced by Execute(), NextError(), and PrevError().
void SmViewShell::StartMainHelp | ( | ) |
Definition at line 2339 of file view.cxx.
References SfxViewShell::GetFrameWeld(), Application::GetHelp(), SfxViewShell::GetViewFrame(), HID_SMA_MAIN_HELP, and Help::Start().
Referenced by SmGraphicWidget::KeyInput(), and SmEditTextWindow::KeyInput().
|
private |
Definition at line 2346 of file view.cxx.
References aMap, o3tl::convert(), SfxItemSet::Get(), GetDoc(), tools::Rectangle::GetHeight(), GetPrinter(), SvxZoomItem::GetType(), tools::Rectangle::GetWidth(), Size::Height(), mxGraphicWindow, SmMapUnit(), and Size::Width().
Referenced by Execute().
|
private |
|
private |
Definition at line 250 of file view.hxx.
Referenced by GetState(), and SetStatusText().
|
private |
Used to determine whether insertions using SID_INSERTSPECIAL and SID_INSERTCOMMANDTEXT should be inserted into SmEditWindow or directly into the SmDocShell as done if the visual editor was last to have focus.
Definition at line 256 of file view.hxx.
Referenced by Execute(), and SetInsertIntoEditWindow().
|
private |
Definition at line 251 of file view.hxx.
Referenced by GetState().
|
private |
|
private |
|
private |
Definition at line 248 of file view.hxx.
Referenced by Execute(), GetGraphicWidget(), GetGraphicWindow(), GetState(), InnerResizePixel(), OuterResizePixel(), QueryObjAreaPixel(), SetZoomFactor(), SmViewShell(), ZoomByItemSet(), and ~SmViewShell().