23#include <com/sun/star/util/URL.hpp>
24#include <com/sun/star/beans/PropertyValue.hpp>
30using namespace ::
dbaui;
48 SetSizePixel(LogicToPixel(
Size(40, 12),
MapMode(MapUnit::MapAppFont)));
67 BrowserMode const nMode = BrowserMode::COLUMNSELECTION | BrowserMode::MULTISELECTION | BrowserMode::KEEPHIGHLIGHT |
68 BrowserMode::HLINES | BrowserMode::VLINES | BrowserMode::AUTOSIZE_LASTCOL;
87 aUrl.Complete =
".uno:DSBEditDoc";
99 case CommandEventId::ContextMenu:
115 std::unique_ptr<weld::Menu> xContextMenu(xBuilder->weld_menu(
"menu"));
117 xContextMenu->set_sensitive(
"cut", nSelectRowCount != 0);
118 xContextMenu->set_sensitive(
"copy", nSelectRowCount != 0);
119 OUString sIdent = xContextMenu->popup_at_rect(pPopupParent, aRect);
122 else if (sIdent ==
"copy")
124 else if (sIdent ==
"insert")
156 OSL_FAIL(
"OTableRowView::Paste : (pseudo-) abstract method called !");
static std::unique_ptr< weld::Builder > CreateBuilder(weld::Widget *pParent, const OUString &rUIFile, bool bMobile=false, sal_uInt64 nLOKWindowId=0)
sal_uInt16 GetColumnId(sal_uInt16 nPos) const
virtual void Command(const CommandEvent &rEvt) override
BrowserDataWin & GetDataWindow() const
bool GoToRow(sal_Int32 nRow)
sal_Int32 GetRowAtYPosPixel(tools::Long nY, bool bRelToBrowser=true) const
void InsertHandleColumn(sal_uLong nWidth)
void SetFont(const vcl::Font &rNewFont)
void SetMode(BrowserMode nMode)
sal_Int32 GetSelectRowCount() const
const vcl::Font & GetFont() const
sal_uInt16 GetColumnAtXPosPixel(tools::Long nX) const
virtual void SetNoSelection() override
CommandEventId GetCommand() const
const Point & GetMousePosPixel() const
bool IsMouseEvent() const
const vcl::KeyCode & GetKeyCode() const
constexpr tools::Long Y() const
constexpr tools::Long X() const
OTableController & getController() const
void Paste(sal_Int32 nRow)
virtual void cut() override
virtual bool IsDeleteAllowed()=0
virtual void CopyRows()=0
tools::Long m_nDataPos
currently needed row
virtual OTableDesignView * GetView() const =0
virtual void copy() override
virtual void InsertNewRows(sal_Int32 nRow)=0
virtual void Command(const CommandEvent &rEvt) override
virtual void paste() override
virtual void KeyInput(const KeyEvent &rEvt) override
virtual RowStatus GetRowStatus(sal_Int32 nRow) const override
virtual void DeleteRows()=0
virtual void Init() override
virtual void InsertRows(sal_Int32 nRow)=0
virtual void KeyInput(const KeyEvent &rEvt) override
virtual bool SeekRow(sal_Int32 nRow) override
void SetWeight(FontWeight)
sal_uInt16 GetCode() const
virtual void SetHelpId(const OUString &) override
constexpr OUStringLiteral HID_TABDESIGN_BACKGROUND
constexpr sal_uInt16 KEY_F2
constexpr sal_uInt16 KEY_DELETE
weld::Window * GetPopupParent(vcl::Window &rOutWin, tools::Rectangle &rRect)