41 class OTableConnection;
43 struct OJoinExchangeData;
44 class OJoinDesignView;
45 class OTableWindowData;
46 class OJoinDesignViewAccess;
58 virtual void Resize()
override;
63 virtual void dispose()
override;
77 public DropTargetHelper
112 virtual void dispose()
override;
120 virtual css::uno::Reference< css::accessibility::XAccessible >
CreateAccessible()
override;
136 virtual void AddTabWin(
const OUString& _rComposedName,
const OUString& rWinName,
bool bNewTable =
false);
263 ,
const OUString& _sTableName
264 ,
const OUString& _rWinName);
275 virtual void Resize()
override;
282 virtual std::shared_ptr<OTableWindowData>
CreateImpl(
const OUString& _rComposedName
283 ,
const OUString& _sTableName
284 ,
const OUString& _rWinName);
Point m_ptPrevDraggingPos
void InvalidateConnections()
void NotifyTitleClicked(OTableWindow *pTabWin, const Point &rMousePos)
virtual void dispose() override
void BeginChildMove(OTableWindow *pTabWin, const Point &rMousePos)
void TabWinMoved(OTableWindow *ptWhich, const Point &ptOldPosition)
Hook that is called after moving/resizing TabWins.
virtual void KeyInput(const KeyEvent &rEvt) override
virtual void LoseFocus() override
ScrollAdaptor & GetVScrollBar()
void ScrollWhileDragging()
virtual void Paint(vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override
rtl::Reference< OJoinDesignViewAccess > m_pAccessible
const std::vector< VclPtr< OTableConnection > > & getTableConnections() const
gives a read only access to the connection vector
void executePopup(const Point &_aPos, VclPtr< OTableConnection > &rSelConnection)
opens the context menu to delete a connection
virtual bool RemoveConnection(VclPtr< OTableConnection > &rConnection, bool bDelete)
RemoveConnection allows to remove connections from join table view.
const Point & GetScrollOffset() const
OTableWindow * GetTabWindow(const OUString &rName)
VclPtr< OTableWindow > m_pLastFocusTabWin
VclPtr< OTableWindow > m_pDragWin
void TabWinSized(OTableWindow *ptWhich, const Point &ptOldPosition, const Size &szOldSize)
sal_Int32 getConnectionCount(const OTableWindow *_pFromWin) const
how many connection belongs to single table
tools::Rectangle m_aSizingRect
void clearLayoutInformation()
clear the window map and connection vector without destroying it
virtual VclPtr< OTableWindow > createWindow(const TTableWindowData::value_type &_pData)=0
factory method to create table windows
DECL_LINK(VertScrollHdl, weld::Scrollbar &, void)
virtual void MouseButtonDown(const MouseEvent &rEvt) override
TTableWindowData::value_type createTableWindowData(const OUString &_rComposedName, const OUString &_sTableName, const OUString &_rWinName)
virtual ~OJoinTableView() override
virtual void EnsureVisible(const OTableWindow *_pWin)
virtual void Resize() override
virtual void Command(const CommandEvent &rEvt) override
VclPtr< OTableWindow > m_pSizingWin
bool ExistsAConn(const OTableWindow *pFromWin) const
std::map< OUString, VclPtr< OTableWindow > > OTableWindowMap
void BeginChildSizing(OTableWindow *pTabWin, PointerStyle nPointer)
virtual bool IsAddAllowed()
virtual void ClearAll()
Hard deletion.
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessible() override
VclPtr< OTableConnection > m_pSelectedConn
virtual bool allowQueries() const
determines whether the classes Init method should accept a query name, or only table names
void GrabTabWinFocus()
set the focus to that tab win which most recently had it (or to the first available one)
void SelectConn(OTableConnection *pConn)
virtual void DataChanged(const DataChangedEvent &rDCEvt) override
virtual void ReSync()
take all WinData and ConnData from the document and create the corresponding Wins and Conns
virtual bool suppressCrossNaturalJoin(const TTableConnectionData::value_type &_pData) const
virtual std::shared_ptr< OTableWindowData > CreateImpl(const OUString &_rComposedName, const OUString &_sTableName, const OUString &_rWinName)
OJoinDesignView * getDesignView() const
OTableWindowMap m_aTableMap
virtual void GetFocus() override
virtual void Tracking(const TrackingEvent &rTEvt) override
void DeselectConn(OTableConnection *pConn)
std::vector< VclPtr< OTableConnection > > m_vTableConnection
VclPtr< OJoinDesignView > m_pView
virtual void AddConnection(const OJoinExchangeData &jxdSource, const OJoinExchangeData &jxdDest)=0
bool ScrollPane(tools::Long nDelta, bool bHoriz, bool bPaintScrollBars)
virtual sal_Int8 ExecuteDrop(const ExecuteDropEvent &rEvt) override
virtual void ConnDoubleClicked(VclPtr< OTableConnection > &rConnection)
DECL_LINK(OnDragScrollTimer, Timer *, void)
const Size & getRealOutputSize() const
sal_Int64 GetTabWinCount() const
bool isMovementAllowed(const Point &_rPoint, const Size &_rSize)
check if the given window is visible.
VclPtr< OTableConnection > & GetSelectedConn()
virtual void RemoveTabWin(OTableWindow *pTabWin)
void SetDefaultTabWinPosSize(OTableWindow *pTabWin)
virtual bool PreNotify(NotifyEvent &rNEvt) override
virtual sal_Int8 AcceptDrop(const AcceptDropEvent &rEvt) override
tools::Rectangle m_aDragRect
void DrawConnections(vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect)
virtual void dragFinished() override
called when a drag operation done with a Transferable has been finished
ScrollAdaptor & GetHScrollBar()
void invalidateAndModify(std::unique_ptr< SfxUndoAction > _pAction)
invalidates this window without children and set the controller modified
OTableConnection * GetTabConn(const OTableWindow *pLhs, const OTableWindow *pRhs, bool _bSuppressCrossOrNaturalJoin=false) const
DECL_LINK(HorzScrollHdl, weld::Scrollbar &, void)
OJoinTableView(vcl::Window *pParent, OJoinDesignView *pView)
void addConnection(OTableConnection *_pConnection, bool _bAddData=true)
allows to add new connections to join table view
virtual void lookForUiActivities()
virtual void StateChanged(StateChangedType nStateChange) override
OTableWindowMap & GetTabWinMap()
virtual void AddTabWin(const OUString &_rComposedName, const OUString &rWinName, bool bNewTable=false)
virtual void onNoColumns_throw()
called when init fails at the tablewindowdata because the m_xTable object could not provide columns,...
virtual void MouseButtonUp(const MouseEvent &rEvt) override
vcl::Window * GetParent() const
virtual void Scroll(tools::Long nHorzScroll, tools::Long nVertScroll, ScrollFlags nFlags=ScrollFlags::NONE)