LibreOffice Module sw (master)
1
|
#include <swtypes.hxx>
#include <hintids.hxx>
#include <com/sun/star/accessibility/XAccessible.hpp>
#include <comphelper/string.hxx>
#include <com/sun/star/i18n/XBreakIterator.hpp>
#include <com/sun/star/i18n/ScriptType.hpp>
#include <com/sun/star/i18n/InputSequenceCheckMode.hpp>
#include <com/sun/star/i18n/XExtendedInputSequenceChecker.hpp>
#include <com/sun/star/i18n/UnicodeScript.hpp>
#include <com/sun/star/ui/ContextMenuExecuteEvent.hpp>
#include <vcl/inputctx.hxx>
#include <vcl/help.hxx>
#include <vcl/weld.hxx>
#include <vcl/ptrstyle.hxx>
#include <svl/macitem.hxx>
#include <unotools/securityoptions.hxx>
#include <basic/sbxvar.hxx>
#include <svl/ctloptions.hxx>
#include <basic/sbx.hxx>
#include <svl/eitem.hxx>
#include <svl/stritem.hxx>
#include <sfx2/ipclient.hxx>
#include <sfx2/viewfrm.hxx>
#include <sfx2/request.hxx>
#include <sfx2/bindings.hxx>
#include <sfx2/dispatch.hxx>
#include <svl/ptitem.hxx>
#include <editeng/sizeitem.hxx>
#include <editeng/langitem.hxx>
#include <svx/svdview.hxx>
#include <svx/svdhdl.hxx>
#include <svx/svdoutl.hxx>
#include <editeng/editeng.hxx>
#include <editeng/editview.hxx>
#include <editeng/svxacorr.hxx>
#include <editeng/flditem.hxx>
#include <editeng/colritem.hxx>
#include <unotools/charclass.hxx>
#include <unotools/datetime.hxx>
#include <comphelper/lok.hxx>
#include <sfx2/lokhelper.hxx>
#include <editeng/acorrcfg.hxx>
#include <SwSmartTagMgr.hxx>
#include <edtdd.hxx>
#include <edtwin.hxx>
#include <view.hxx>
#include <wrtsh.hxx>
#include <IDocumentDrawModelAccess.hxx>
#include <IDocumentUndoRedo.hxx>
#include <textboxhelper.hxx>
#include <dcontact.hxx>
#include <fldbas.hxx>
#include <swmodule.hxx>
#include <docsh.hxx>
#include <viewopt.hxx>
#include <drawbase.hxx>
#include <dselect.hxx>
#include <textsh.hxx>
#include <shdwcrsr.hxx>
#include <txatbase.hxx>
#include <fmtanchr.hxx>
#include <fmtornt.hxx>
#include <fmthdft.hxx>
#include <frmfmt.hxx>
#include <modcfg.hxx>
#include <fmtcol.hxx>
#include <wview.hxx>
#include <gloslst.hxx>
#include <inputwin.hxx>
#include <gloshdl.hxx>
#include <swundo.hxx>
#include <drwtxtsh.hxx>
#include <fchrfmt.hxx>
#include "romenu.hxx"
#include <initui.hxx>
#include <frmatr.hxx>
#include <extinput.hxx>
#include <acmplwrd.hxx>
#include <swcalwrp.hxx>
#include <swdtflvr.hxx>
#include <breakit.hxx>
#include <checkit.hxx>
#include <pagefrm.hxx>
#include <helpids.h>
#include <cmdid.h>
#include <uitool.hxx>
#include <fmtfollowtextflow.hxx>
#include <toolkit/helper/vclunohelper.hxx>
#include <charfmt.hxx>
#include <numrule.hxx>
#include <pagedesc.hxx>
#include <svtools/ruler.hxx>
#include <formatclipboard.hxx>
#include <vcl/svapp.hxx>
#include <wordcountdialog.hxx>
#include <fmtfld.hxx>
#include <IMark.hxx>
#include <doc.hxx>
#include <xmloff/odffields.hxx>
#include <PostItMgr.hxx>
#include <FrameControlsManager.hxx>
#include <AnnotationWin.hxx>
#include <algorithm>
#include <vector>
#include <rootfrm.hxx>
#include <unotools/syslocaleoptions.hxx>
#include <i18nlangtag/mslangid.hxx>
#include <salhelper/singletonref.hxx>
#include <sfx2/event.hxx>
#include <memory>
#include <IDocumentOutlineNodes.hxx>
#include <ndtxt.hxx>
#include <cntfrm.hxx>
#include <txtfrm.hxx>
#include <strings.hrc>
Go to the source code of this file.
Classes | |
class | SwAnchorMarker |
struct | QuickHelpData |
Assists with auto-completion of AutoComplete words and AutoText names. More... | |
Macros | |
#define | HIT_PIX 2 /* hit tolerance in pixel */ |
Avoid minimal movement shiver. More... | |
#define | MIN_MOVE 4 |
#define | MOVE_LEFT_SMALL 0 |
#define | MOVE_UP_SMALL 1 |
#define | MOVE_RIGHT_BIG 2 |
#define | MOVE_DOWN_BIG 3 |
#define | MOVE_LEFT_BIG 4 |
#define | MOVE_UP_BIG 5 |
#define | MOVE_RIGHT_SMALL 6 |
#define | MOVE_DOWN_SMALL 7 |
#define | MOVE_LEFT_HUGE 8 |
#define | MOVE_UP_HUGE 9 |
#define | MOVE_RIGHT_HUGE 10 |
#define | MOVE_DOWN_HUGE 11 |
Functions | |
static SfxShell * | lcl_GetTextShellFromDispatcher (SwView const &rView) |
static bool | lcl_goIntoTextBox (SwEditWin &rEditWin, SwWrtShell &rSh) |
Check if the selected shape has a TextBox: if so, go into that instead. More... | |
static bool | IsMinMove (const Point &rStartPos, const Point &rLPt) |
static bool | IsDrawObjSelectable (const SwWrtShell &rSh, const Point &rPt) |
For MouseButtonDown - determine whether a DrawObject a NO SwgFrame was hit! Shift/Ctrl should only result in selecting, with DrawObjects; at SwgFlys to trigger hyperlinks if applicable (Download/NewWindow!) More... | |
IMPL_LINK_NOARG (SwEditWin, TimerHandler, Timer *, void) | |
Increase timer for selection. More... | |
static sal_uInt16 | lcl_isNonDefaultLanguage (LanguageType eBufferLanguage, SwView const &rView, const OUString &rInBuffer) |
static bool | lcl_urlOverBackground (SwWrtShell &rSh, const Point &rDocPos) |
Determines if the current position has a clickable url over a background frame. More... | |
IMPL_LINK_NOARG (SwEditWin, KeyInputFlushHandler, Timer *, void) | |
IMPL_LINK_NOARG (SwEditWin, TemplateTimerHdl, Timer *, void) | |
Variables | |
static bool | g_bInputLanguageSwitched = false |
Globals. More... | |
static bool | g_bHoldSelection = false |
bool | g_bFrameDrag = false |
static bool | g_bValidCursorPos = false |
static bool | g_bModePushed = false |
bool | g_bDDTimerStarted = false |
bool | g_bFlushCharBuffer = false |
bool | g_bDDINetAttr = false |
static SdrHdlKind | g_eSdrMoveHdl = SdrHdlKind::User |
#define HIT_PIX 2 /* hit tolerance in pixel */ |
Avoid minimal movement shiver.
Definition at line 298 of file edtwin.cxx.
Referenced by SwEditWin::UpdatePointer().
#define MIN_MOVE 4 |
Definition at line 299 of file edtwin.cxx.
Referenced by IsMinMove(), and SwEditWin::SetGraphicTwipPosition().
#define MOVE_DOWN_BIG 3 |
Definition at line 1010 of file edtwin.cxx.
Referenced by SwEditWin::ChangeDrawing(), SwEditWin::ChangeFly(), and SwEditWin::KeyInput().
#define MOVE_DOWN_HUGE 11 |
Definition at line 1020 of file edtwin.cxx.
Referenced by SwEditWin::ChangeDrawing(), SwEditWin::ChangeFly(), and SwEditWin::KeyInput().
#define MOVE_DOWN_SMALL 7 |
Definition at line 1014 of file edtwin.cxx.
Referenced by SwEditWin::ChangeDrawing(), SwEditWin::ChangeFly(), and SwEditWin::KeyInput().
#define MOVE_LEFT_BIG 4 |
Definition at line 1011 of file edtwin.cxx.
Referenced by SwEditWin::ChangeDrawing(), SwEditWin::ChangeFly(), and SwEditWin::KeyInput().
#define MOVE_LEFT_HUGE 8 |
Definition at line 1017 of file edtwin.cxx.
Referenced by SwEditWin::ChangeDrawing(), SwEditWin::ChangeFly(), and SwEditWin::KeyInput().
#define MOVE_LEFT_SMALL 0 |
Definition at line 1007 of file edtwin.cxx.
Referenced by SwEditWin::ChangeDrawing(), SwEditWin::ChangeFly(), and SwEditWin::KeyInput().
#define MOVE_RIGHT_BIG 2 |
Definition at line 1009 of file edtwin.cxx.
Referenced by SwEditWin::ChangeDrawing(), SwEditWin::ChangeFly(), and SwEditWin::KeyInput().
#define MOVE_RIGHT_HUGE 10 |
Definition at line 1019 of file edtwin.cxx.
Referenced by SwEditWin::ChangeDrawing(), SwEditWin::ChangeFly(), and SwEditWin::KeyInput().
#define MOVE_RIGHT_SMALL 6 |
Definition at line 1013 of file edtwin.cxx.
Referenced by SwEditWin::ChangeDrawing(), SwEditWin::ChangeFly(), and SwEditWin::KeyInput().
#define MOVE_UP_BIG 5 |
Definition at line 1012 of file edtwin.cxx.
Referenced by SwEditWin::ChangeDrawing(), SwEditWin::ChangeFly(), and SwEditWin::KeyInput().
#define MOVE_UP_HUGE 9 |
Definition at line 1018 of file edtwin.cxx.
Referenced by SwEditWin::ChangeDrawing(), SwEditWin::ChangeFly(), and SwEditWin::KeyInput().
#define MOVE_UP_SMALL 1 |
Definition at line 1008 of file edtwin.cxx.
Referenced by SwEditWin::ChangeDrawing(), SwEditWin::ChangeFly(), and SwEditWin::KeyInput().
Increase timer for selection.
Definition at line 634 of file edtwin.cxx.
References SwRect::Bottom(), SwWrtShell::CallSetCursor(), SwWrtShell::Down(), SwWrtShell::Drag(), g_bFrameDrag, SwFEShell::GetContentPos(), SwRect::Height(), SwCursorShell::IsEndOfDoc(), SwRect::IsInside(), SwCursorShell::IsStartOfDoc(), Point, SwRect::Pos(), SwWrtShell::SelectTableRowCol(), SwRect::Top(), SwWrtShell::Up(), and SwViewShell::VisArea().
Definition at line 6001 of file edtwin.cxx.
Definition at line 6023 of file edtwin.cxx.
|
static |
For MouseButtonDown - determine whether a DrawObject a NO SwgFrame was hit! Shift/Ctrl should only result in selecting, with DrawObjects; at SwgFlys to trigger hyperlinks if applicable (Download/NewWindow!)
Definition at line 313 of file edtwin.cxx.
References SwFEShell::GetObjCntType(), OBJCNT_FLY, OBJCNT_GRF, OBJCNT_NONE, and OBJCNT_OLE.
Referenced by SwEditWin::MouseButtonDown().
|
static |
Definition at line 301 of file edtwin.cxx.
References MIN_MOVE.
Referenced by SwEditWin::MouseMove().
Definition at line 5987 of file edtwin.cxx.
References SfxViewFrame::GetDispatcher(), SfxDispatcher::GetShell(), SfxViewShell::GetViewFrame(), and i.
Referenced by SwEditWin::Command(), SwEditWin::FlushInBuffer(), and SwEditWin::MouseButtonUp().
|
static |
Check if the selected shape has a TextBox: if so, go into that instead.
Definition at line 178 of file edtwin.cxx.
References FindFrameFormat(), SwViewShell::GetDrawView(), SdrMarkList::GetMark(), SdrMarkView::GetMarkedObjectList(), SdrMark::GetMarkedSdrObj(), SwTextBoxHelper::getOtherTextBoxFormat(), Point, RES_DRAWFRMFMT(), SwFEShell::SelectObj(), SwEditWin::StopInsFrame(), SW_ALLOW_TEXTBOX, and SdrMarkView::UnmarkAllObj().
Referenced by SwEditWin::KeyInput().
|
static |
Definition at line 780 of file edtwin.cxx.
References eType, g_bInputLanguageSwitched, GetAppCharClass(), SwEditShell::GetCurAttr(), SvtLanguageOptions::GetI18NScriptTypeOfLanguage(), SwLangHelper::GetLanguage(), SfxShell::GetPool(), CharClass::getScript(), SwView::GetWrtShell(), INVALID_HINT(), SvtSysLocaleOptions::IsIgnoreLanguageChange(), MsLangId::isNonLatinWestern(), LANGUAGE_DONTKNOW, RES_CHRATR_CJK_LANGUAGE(), RES_CHRATR_CTL_LANGUAGE(), and RES_CHRATR_LANGUAGE().
Referenced by SwEditWin::FlushInBuffer(), and QuickHelpData::Start().
|
static |
Determines if the current position has a clickable url over a background frame.
In that case, ctrl-click should select the url, not the frame.
Definition at line 2761 of file edtwin.cxx.
References SwCursorShell::GetContentAtPos(), SwViewShell::GetDoc(), IDocumentDrawModelAccess::GetHellId(), SwDoc::getIDocumentDrawModelAccess(), SdrObject::GetLayer(), SwFEShell::GetObjAt(), and InetAttr.
Referenced by SwEditWin::MouseButtonDown().
bool g_bDDINetAttr = false |
Definition at line 167 of file edtwin.cxx.
Referenced by SwEditWin::MouseMove(), and SwTransferable::PrivateDrop().
bool g_bDDTimerStarted = false |
Definition at line 165 of file edtwin.cxx.
Referenced by IMPL_LINK_NOARG(), SwEditWin::MouseButtonUp(), SwEditWin::MouseMove(), SwEditWin::StartDDTimer(), and SwEditWin::StopDDTimer().
bool g_bFlushCharBuffer = false |
Definition at line 166 of file edtwin.cxx.
Referenced by SwView::Deactivate(), SwEditWin::FlushInBuffer(), and SwEditWin::KeyInput().
bool g_bFrameDrag = false |
Definition at line 162 of file edtwin.cxx.
Referenced by SwEditWin::EnterDrawMode(), IMPL_LINK_NOARG(), SwEditWin::MouseButtonDown(), SwEditWin::MouseButtonUp(), SwEditWin::MouseMove(), SwTransferable::PrivateDrop(), SwEditWin::SelectMenuPosition(), SwTransferable::SetSelInShell(), and SwEditWin::StartDrag().
|
static |
Definition at line 160 of file edtwin.cxx.
Referenced by SwEditWin::MouseButtonDown(), and SwEditWin::MouseButtonUp().
|
static |
Globals.
Definition at line 153 of file edtwin.cxx.
Referenced by SwEditWin::Command(), and lcl_isNonDefaultLanguage().
|
static |
Definition at line 164 of file edtwin.cxx.
Referenced by SwEditWin::MouseButtonDown(), and SwEditWin::MouseButtonUp().
|
static |
Definition at line 163 of file edtwin.cxx.
Referenced by SwEditWin::MouseButtonDown(), SwEditWin::MouseButtonUp(), SwEditWin::MouseMove(), SwEditWin::MoveCursor(), and SwEditWin::SelectMenuPosition().
|
static |
Definition at line 168 of file edtwin.cxx.
Referenced by SwEditWin::MouseButtonUp(), and SwEditWin::MouseMove().