25#include <com/sun/star/accessibility/AccessibleRelationType.hpp>
26#include <com/sun/star/awt/XWindow.hpp>
27#include <com/sun/star/awt/XVclWindowPeer.hpp>
31#include <officecfg/Office/Common.hxx>
78#include <bitmaps.hlst>
116 OUStringBuffer
aBuffer(4 * 5 + 5);
133 return aBuffer.makeStringAndClear();
137 : m_pYieldMutex(
std::move(pMutex))
190 auto& rCache = pSVData->maGDIData.maScaleCache;
193 return rKeyValuePair.first.mpBitmap ==
this;
266 constexpr int FlashesWanted = 1;
359 , m_bTakeOwnership(bTakeOwnership)
360 , m_bEventListener(false)
361 , m_bKeyEventListener(false)
362 , m_bMouseEventListener(false)
499 pOldLabel->SetAccessibleRelationLabelFor(
nullptr);
584 m_aStyleUpdatedHdl.Call(*
this);
673 return rLabel.replaceFirst(
"~",
"");
694css::uno::Reference<css::datatransfer::clipboard::XClipboard>
823 HandleEventListener(rEvent);
828 return HandleKeyEventListener(rEvent);
833 HandleMouseEventListener(rEvent);
838 return m_aMnemonicActivateHdl.Call(*
this);
843Image createImage(
const OUString& rImage)
845 if (rImage.isEmpty())
847 if (rImage.lastIndexOf(
'.') != rImage.getLength() - 4)
849 assert((rImage ==
"dialog-warning" || rImage ==
"dialog-error"
850 || rImage ==
"dialog-information")
851 &&
"unknown stock image");
852 if (rImage ==
"dialog-warning")
854 else if (rImage ==
"dialog-error")
856 else if (rImage ==
"dialog-information")
867sal_uInt16 insert_to_menu(sal_uInt16 nLastId,
PopupMenu* pMenu,
int pos,
const OUString& rId,
868 const OUString& rStr,
const OUString* pIconName,
870 const css::uno::Reference<css::graphic::XGraphic>& rImage,
873 const sal_uInt16 nNewid = nLastId + 1;
876 if (eCheckRadioFalse == TRISTATE_TRUE)
878 else if (eCheckRadioFalse == TRISTATE_FALSE)
888 else if (pImageSurface)
890 pMenu->
SetItemImage(nNewid, createImage(*pImageSurface));
902 , m_bTakeOwnership(bTakeOwnership)
952 const css::uno::Reference<css::graphic::XGraphic>& rImage,
989 signal_activate(m_xMenu->GetCurItemIdent());
1002 bool bTakeOwnership)
1004 , m_xToolBox(pToolBox)
1075 pPopup->EndExecute();
1095 auto aPopup =
m_aMenus.find(nItemId);
1186 const css::uno::Reference<css::graphic::XGraphic>& rIcon)
1200 const css::uno::Reference<css::graphic::XGraphic>& rIcon)
1263 signal_clicked(m_xToolBox->GetItemCommand(nItemId));
1269 set_menu_item_active(m_xToolBox->GetItemCommand(nItemId),
true);
1276 for (
const auto& rFloat : m_aFloats)
1278 if (rEvent.GetWindow() == rFloat.second)
1281 signal_toggle_menu(m_xToolBox->GetItemCommand(nItemId));
1293 std::shared_ptr<VclSizeGroup> m_xGroup;
1296 SalInstanceSizeGroup()
1303 assert(pVclWidget && pVclWidget->
getWidget());
1328 bool bTakeOwnership)
1339 assert(!pNewParent || pNewVclParent);
1347 SAL_WARN(
"vcl",
"ignoring move because new parent is already disposed");
1360 pFirstChild->ImplControlFocus();
1366 xPage->set_expand(
true);
1368 return css::uno::Reference<css::awt::XWindow>(xPage->GetComponentInterface(),
1369 css::uno::UNO_QUERY);
1377 return std::make_unique<SalInstanceContainer>(pParent,
m_pBuilder,
false);
1416 xOutput->
DrawOutDev(
Point(), aTempLogicSize, rRenderLogicPos, aRenderLogicSize,
1440 rOutput.
DrawOutDev(rRenderLogicPos, aRenderLogicSize,
Point(), aTempLogicSize,
1445 rOutput.
DrawBitmapEx(rRenderLogicPos, aRenderLogicSize,
1460 if (!pChild->IsVisible())
1465 if (bHasMirroredGraphics)
1467 - pChild->GetOutDev()->GetOutputWidthPixel();
1472 Point aPos(rRenderLogicPos);
1473 aPos +=
Point(nDeltaX, nDeltaY);
1482 bool bChangeSize = aOrigSize != rSizePixel;
1493 bool bTakeOwnership)
1495 , m_xBox(pContainer)
1518 rTopLeft.
getY() + aCurrentPos.Y());
1521 aCurrentTopLeft +
basegfx::B2IPoint(aCurrentSize.Width(), aCurrentSize.Height()));
1523 if (!aCurrentRange.isEmpty())
1525 rControlDataCollection.emplace_back(rCurrent.
GetHelpId(), aCurrentRange);
1531 if (
nullptr != pChild)
1533 CollectChildren(*pChild, aCurrentTopLeft, rControlDataCollection);
1556 bool bTakeOwnership)
1558 , m_xWindow(pWindow)
1573 css::uno::UNO_QUERY);
1583 pSysWin->setOptimalLayoutSize(
true);
1588 pDockWin->setOptimalLayoutSize();
1591 assert(
false &&
"must be system or docking window");
1616 Size aParentGeometry(pParent->GetSizePixel());
1618 auto nX = (aParentGeometry.
Width() - aGeometry.
Width()) / 2;
1619 auto nY = (aParentGeometry.
Height() - aGeometry.
Height()) / 2;
1666 pWidgetOld->
set_property(
"has-default", OUString::boolean(
false));
1670 pWidgetNew->
set_property(
"has-default", OUString::boolean(
true));
1711 CollectChildren(*
m_xWindow, aTopLeft, aRet);
1745 if (!pChild->IsVisible())
1747 if (rVisibleWidgets.find(pChild) == rVisibleWidgets.end())
1749 rWasVisibleWidgets.emplace_back(pChild);
1754 hideUnless(pChild, rVisibleWidgets, rWasVisibleWidgets);
1761 bool bTakeOwnership)
1764 , m_nOldEditWidthReq(0)
1765 , m_nOldBorderWidth(0)
1767 const bool bScreenshotMode(officecfg::Office::Common::Misc::ScreenshotMode::get());
1768 if (bScreenshotMode)
1775 const std::function<
void(sal_Int32)>& rEndDialogFn)
1783 return m_xDialog->StartExecuteAsync(aCtx);
1787 const std::function<
void(sal_Int32)>& rEndDialogFn)
1789 assert(rxSelf.get() ==
this);
1798 return m_xDialog->StartExecuteAsync(aCtx);
1819 pCandidate && (pCandidate != pContentArea && pCandidate->
IsVisible());
1822 aVisibleWidgets.insert(pCandidate);
1827 pCandidate && (pCandidate != pContentArea && pCandidate->
IsVisible());
1830 if (aVisibleWidgets.insert(pCandidate).second)
1843 pActionArea->Hide();
1861 pActionArea->Show();
1868 m_xDialog->SetInstallLOKNotifierHdl(rLink);
1895 xButton->
set_id(
"close");
1898 xButton->
set_id(
"cancel");
1909 m_xDialog->add_button(xButton, nResponse,
true);
1923 m_xDialog->set_default_response(nResponse);
1935 const Point aMenuPos(rCEvt.GetMousePosPixel());
1937 sal_uInt16 nLocalID(1);
1939 aMenu->InsertItem(nLocalID,
VclResId(SV_BUTTONTEXT_SCREENSHOT));
1940 aMenu->SetHelpText(nLocalID,
VclResId(SV_HELPTEXT_SCREENSHOT));
1941 aMenu->SetHelpId(nLocalID,
"InteractiveScreenshotMode");
1942 aMenu->EnableItem(nLocalID);
1944 const sal_uInt16
nId(aMenu->Execute(
m_xDialog, aMenuPos));
1975 bool bTakeOwnership)
1977 , m_xMessageDialog(pDialog)
2018 for (
size_t i = 0;
i <
m_aIds.size(); ++
i)
2029 , m_xWizard(pDialog)
2030 , m_aUpdateRoadmapIdle(
"SalInstanceAssistant m_aUpdateRoadmapIdle")
2089 if (nOldIndex == -1)
2092 if (nOldIndex == nNewIndex)
2114 xPage->set_id(rIdent);
2116 xGrid->set_hexpand(
true);
2117 xGrid->set_vexpand(
true);
2180 rGrid.disposeAndClear();
2182 rPage.disposeAndClear();
2187 if (notify_events_disabled())
2189 auto nCurItemId = m_xWizard->GetCurrentRoadmapItemID();
2190 int nPageIndex(find_id(nCurItemId));
2191 if (!signal_jump_page(get_page_ident(nPageIndex)) && nCurItemId != m_xWizard->GetCurLevel())
2192 m_xWizard->SelectRoadmapItemByID(m_xWizard->GetCurLevel());
2197 disable_notify_events();
2199 m_xWizard->DeleteRoadmapItems();
2202 for (
size_t i = 0;
i < m_aAddedPages.size(); ++
i)
2204 const OUString& rLabel = m_aAddedPages[
i]->GetText();
2205 bool bSensitive = m_aAddedPages[
i]->IsEnabled();
2206 if (rLabel.isEmpty())
2208 m_xWizard->InsertRoadmapItem(
nPos++, rLabel, m_aIds[
i], bSensitive);
2211 m_xWizard->SelectRoadmapItemByID(m_aIds[get_current_page()],
false);
2213 m_xWizard->ShowRoadmap(
nPos != 0);
2215 enable_notify_events();
2219 bool bTakeOwnership)
2243 virtual void set_position(
int nPos)
override { m_xPaned->set_position(nPos); }
2245 virtual int get_position()
const override {
return m_xPaned->get_position(); }
2250 const Color& rButtonTextColor,
2251 const Color& rBackgroundColor,
2252 const Color& rShadowColor,
2253 const Color& rFaceColor)
2268 bool bTakeOwnership,
2269 bool bUserManagedScrolling)
2271 , m_xScrolledWindow(pScrolledWindow)
2272 , m_bUserManagedScrolling(bUserManagedScrolling)
2284 int step_increment,
int page_increment,
2368 int step_increment,
int page_increment,
2477 const Color& rShadowColor,
2478 const Color& rFaceColor)
2496 signal_vadjustment_changed();
2497 if (!m_bUserManagedScrolling)
2498 m_aOrigVScrollHdl.Call(pScrollBar);
2503 signal_hadjustment_changed();
2504 if (!m_bUserManagedScrolling)
2505 m_aOrigHScrollHdl.Call(&m_xScrolledWindow->getHorzScrollBar());
2520 , m_xScrollBar(pScrollbar)
2527 int page_increment,
int page_size)
override
2595 bool bTakeOwnership)
2597 , m_xNotebook(pNotebook)
2630 if (nPageIndex == -1)
2635 if (
m_aPages.size() < nPageIndex + 1U)
2638 m_aPages[nPageIndex] = std::make_shared<SalInstanceContainer>(pChild,
m_pBuilder,
false);
2666 iter->second.second.disposeAndClear();
2667 iter->second.first.disposeAndClear();
2676 sal_uInt16 nNewPageId = nLastPageId + 1;
2683 xGrid->set_hexpand(
true);
2684 xGrid->set_vexpand(
true);
2692 unsigned int nPageIndex =
static_cast<unsigned int>(
nPos);
2719 rItem.second.second.disposeAndClear();
2720 rItem.second.first.disposeAndClear();
2728 return !m_aLeavePageHdl.IsSet() || m_aLeavePageHdl.Call(get_current_page_ident());
2733 m_aEnterPageHdl.Call(get_current_page_ident());
2742 mutable std::vector<std::unique_ptr<SalInstanceContainer>> m_aPages;
2749 bool bTakeOwnership)
2751 , m_xNotebook(pNotebook)
2755 LINK(
this, SalInstanceVerticalNotebook, DeactivatePageHdl));
2770 virtual int get_page_index(
const OUString& rIdent)
const override
2772 sal_uInt16 nPageIndex = m_xNotebook->
GetPagePos(rIdent);
2781 if (nPageIndex == -1)
2783 auto pChild = m_xNotebook->
GetPage(rIdent);
2784 if (m_aPages.size() < nPageIndex + 1U)
2785 m_aPages.resize(nPageIndex + 1U);
2786 if (!m_aPages[nPageIndex])
2788 return m_aPages[nPageIndex].get();
2801 virtual void remove_page(
const OUString& rIdent)
override
2803 sal_uInt16 nPageIndex = m_xNotebook->
GetPagePos(rIdent);
2807 if (nPageIndex < m_aPages.size())
2808 m_aPages.erase(m_aPages.begin() + nPageIndex);
2811 virtual void insert_page(
const OUString& rIdent,
const OUString& rLabel,
int nPos)
override
2814 xGrid->set_hexpand(
true);
2815 xGrid->set_vexpand(
true);
2820 unsigned int nPageIndex =
static_cast<unsigned int>(
nPos);
2821 if (nPageIndex < m_aPages.size())
2822 m_aPages.insert(m_aPages.begin() + nPageIndex,
nullptr);
2828 virtual void set_tab_label_text(
const OUString& rIdent,
const OUString& rText)
override
2841 assert(
false &&
"not implemented");
2844 virtual ~SalInstanceVerticalNotebook()
override
2854 return !m_aLeavePageHdl.IsSet() || m_aLeavePageHdl.Call(get_current_page_ident());
2859 m_aEnterPageHdl.Call(get_current_page_ident());
2863 bool bTakeOwnership)
2865 , m_xButton(pButton)
2866 , m_aOldClickHdl(pButton->GetClickHdl())
2877 m_xButton->SetModeImage(createImage(*pDevice));
2896 nBits &= ~WB_WORDBREAK;
2912 m_xButton->SetCustomButtonImage(createImage(*pDevice));
2927 if (!m_aClickHdl.IsSet())
2929 pButton->SetClickHdl(m_aOldClickHdl);
2948 else if (nResponse ==
RET_NO)
2950 else if (nResponse ==
RET_OK)
2962 bool bTakeOwnership)
2964 , m_xMenuButton(pButton)
3001 pImageSurface,
nullptr, eCheckRadioFalse);
3007 m_xMenuButton->GetPopupMenu()->InsertSeparator(rId, nInsertPos);
3066 signal_selected(m_xMenuButton->GetCurItemIdent());
3071 if (notify_events_disabled())
3086 bool bTakeOwnership)
3088 , m_xMenuToggleButton(pButton)
3090 m_xMenuToggleButton->SetDelayMenu(
true);
3094 virtual void set_active(
bool active)
override
3097 m_xMenuToggleButton->SetActive(active);
3101 virtual bool get_active()
const override {
return m_xMenuToggleButton->GetActive(); }
3107 bool bConsumed = signal_activate_link();
3109 m_aOrigClickHdl.Call(rButton);
3115 bool bTakeOwnership)
3117 , m_xRadioButton(pButton)
3170 if (notify_events_disabled())
3177 if (notify_events_disabled())
3184 bool bTakeOwnership)
3186 , m_xCheckButton(pButton)
3226 if (notify_events_disabled())
3228 m_xCheckButton->EnableTriState(
false);
3246 m_xScale->SetSlideHdl(
LINK(
this, SalInstanceScale, SlideHdl));
3249 virtual void set_value(
int value)
override { m_xScale->SetThumbPos(value); }
3251 virtual void set_range(
int min,
int max)
override
3253 m_xScale->SetRangeMin(min);
3254 m_xScale->SetRangeMax(max);
3257 virtual int get_value()
const override {
return m_xScale->GetThumbPos(); }
3261 m_xScale->SetLineSize(step);
3262 m_xScale->SetPageSize(page);
3267 step = m_xScale->GetLineSize();
3268 page = m_xScale->GetPageSize();
3285 SalInstanceSpinner(Throbber* pThrobber,
SalInstanceBuilder* pBuilder,
bool bTakeOwnership)
3287 , m_xThrobber(pThrobber)
3291 virtual void start()
override { m_xThrobber->start(); }
3293 virtual void stop()
override { m_xThrobber->stop(); }
3303 bool bTakeOwnership)
3305 , m_xProgressBar(pProgressBar)
3309 virtual void set_percentage(
int value)
override { m_xProgressBar->SetValue(value); }
3311 virtual OUString
get_text()
const override {
return m_xProgressBar->GetText(); }
3313 virtual void set_text(
const OUString& rText)
override { m_xProgressBar->SetText(rText); }
3319 if (notify_events_disabled())
3326 if (notify_events_disabled())
3332 bool bTakeOwnership)
3358 , m_rInsertTextHdl(rInsertTextHdl)
3366 OUString sText(rText);
3376 , m_aTextFilter(m_aInsertTextHdl)
3410 rStartPos = rSelection.
Min();
3411 rEndPos = rSelection.
Max();
3412 return rSelection.
Len();
3485 m_xEntry->SetControlForeground(rColor);
3497 m_xEntry->SetPlaceholderText(rText);
3556 if (notify_events_disabled())
3560 signal_cursor_position();
3573class UpdateGuardIfHidden
3578 bool m_bOrigEnableInvalidate;
3582 : m_rTreeView(rTreeView)
3586 , m_bOrigEnableInvalidate(!m_rTreeView.
IsVisible()
3591 if (m_bOrigEnableInvalidate)
3595 ~UpdateGuardIfHidden()
3597 if (m_bOrigEnableInvalidate)
3651 auto xCell = std::make_unique<SvLBoxString>(rStr);
3653 xCell->SetCustomRender();
3654 pEntry->
AddItem(std::move(xCell));
3658 const OUString* pId,
const OUString* pIconName,
3669 m_aUserData.emplace_back(std::make_unique<OUString>(*pId));
3673 pUserData =
nullptr;
3682 if (pIconName || pImageSurface)
3684 Image aImage(pIconName ? createImage(*pIconName) : createImage(*pImageSurface));
3685 pEntry->
AddItem(std::make_unique<SvLBoxContextBmp>(aImage, aImage,
false));
3690 pEntry->
AddItem(std::make_unique<SvLBoxContextBmp>(aDummy, aDummy,
false));
3700 pVclRetIter->
iter = pEntry;
3703 if (bChildrenOnDemand)
3807 pEntry->
AddItem(std::make_unique<SvLBoxButton>(
pData));
3821 return static_cast<SvLBoxString&
>(rItem).IsEmphasized();
3829 for (
size_t i = 0;
i < rWidths.size(); ++
i)
3830 pHeaderBar->SetItemSize(pHeaderBar->GetItemId(
i), rWidths[
i]);
3835 bool bTakeOwnership)
3837 , m_xTreeView(pTreeView)
3838 , m_aCheckButtonData(pTreeView, false)
3839 , m_aRadioButtonData(pTreeView, true)
3840 , m_bTogglesAsRadio(false)
3861 pHeaderBar->SetItemSize(pHeaderBar->GetItemId(pHeaderBar->GetItemCount() - 1),
3894 std::vector<tools::Long> aWidths;
3896 if (aWidths.size() > 2)
3898 std::vector<int> aColWidths;
3899 for (
size_t i = 1;
i < aWidths.size() - 1; ++
i)
3900 aColWidths.push_back(aWidths[
i] - aWidths[
i - 1]);
3929 std::vector<tools::Long> aTabPositions{ 0 };
3930 for (
size_t i = 0;
i < rWidths.size(); ++
i)
3931 aTabPositions.push_back(aTabPositions[
i] + rWidths[
i]);
3940 size_t nTabCount = rEditables.size();
3941 for (
size_t i = 0;
i < nTabCount; ++
i)
3954 return pHeaderBar->GetItemSize(pHeaderBar->GetItemId(nColumn));
3968 return pHeaderBar->GetItemText(pHeaderBar->GetItemId(nColumn));
3978 return pHeaderBar->SetItemText(pHeaderBar->GetItemId(nColumn), rTitle);
3984 assert(
n_children() == 0 &&
"tree must be empty");
4002 pHeaderBox->GetParent()->Show();
4009 pHeaderBox->GetParent()->Hide();
4014 const OUString* pId,
const OUString* pIconName,
4018 do_insert(pParent,
pos, pStr, pId, pIconName, pImageSurface, bChildrenOnDemand, pRet,
false);
4023 OUString sSep(
VclResId(STR_SEPARATOR));
4024 do_insert(
nullptr,
pos, &sSep,
nullptr,
nullptr,
nullptr,
false,
nullptr,
true);
4028 int nSourceCount,
const std::function<
void(
weld::TreeIter&,
int nSourceIndex)>& func,
4029 const weld::TreeIter* pParent,
const std::vector<int>* pFixedWidths)
4050 size_t nExtraCols = bHasAutoCheckButton ? 2 : 1;
4053 for (
int i = 0;
i < nSourceCount; ++
i)
4056 if (bHasAutoCheckButton)
4058 aVclIter.
iter->
AddItem(std::make_unique<SvLBoxContextBmp>(aDummy, aDummy,
false));
4065 size_t nFixedWidths = std::min(pFixedWidths->size(), aVclIter.
iter->
ItemCount());
4066 for (
size_t j = 0; j < nFixedWidths; ++j)
4070 pViewDataItem->
mnWidth = (*pFixedWidths)[j];
4113 const OUString* pId =
static_cast<const OUString*
>(pEntry->GetUserData());
4124 int min = std::min(pos1, pos2);
4125 int max = std::max(pos1, pos2);
4129 pModel->
Move(pEntry1, pEntry2);
4154 &&
"don't select when frozen, select after thaw. Note selection doesn't survive a "
4162 assert(pEntry &&
"bad pos?");
4193 &&
"don't select when frozen, select after thaw. Note selection doesn't survive a "
4210 &&
"don't select when frozen, select after thaw. Note selection doesn't survive a "
4225 std::vector<int> aRows;
4303 for (sal_uInt16 nCur = 0; nCur <
nCount; ++nCur)
4310 rItem.
Enable(bSensitive);
4321 rItem.
Enable(bSensitive);
4380 assert(
n_children() == 0 &&
"tree must be empty");
4504 pEntry->
AddItem(std::make_unique<SvLBoxContextBmp>(rImage, rImage,
false));
4527 const css::uno::Reference<css::graphic::XGraphic>& rImage,
4545 const css::uno::Reference<css::graphic::XGraphic>& rImage,
4561 return pEntry ?
static_cast<const OUString*
>(pEntry->
GetUserData()) :
nullptr;
4574 m_aUserData.emplace_back(std::make_unique<OUString>(rId));
4606 if (
const OUString* pStr =
static_cast<const OUString*
>(pEntry->GetUserData()))
4612std::unique_ptr<weld::TreeIter>
4615 return std::unique_ptr<weld::TreeIter>(
4631 pVclIter->
iter = pEntry;
4632 return pEntry !=
nullptr;
4640 pVclIter->
iter = pEntry;
4641 return pEntry !=
nullptr;
4656 return rVclIter.
iter !=
nullptr;
4663 return rVclIter.
iter !=
nullptr;
4670 return rVclIter.
iter !=
nullptr;
4677 return rVclIter.
iter !=
nullptr;
4686 return rVclIter.
iter !=
nullptr;
4695 return rVclIter.
iter !=
nullptr;
4702 bool bRet = rVclIter.
iter !=
nullptr;
4715 return rVclIter.
iter !=
nullptr;
4729 &&
"don't select when frozen, select after thaw. Note selection doesn't survive a "
4740 &&
"don't select when frozen, select after thaw. Note selection doesn't survive a "
4784 bool bChildrenOnDemand)
4792 if (bChildrenOnDemand && !pPlaceHolder)
4798 else if (!bChildrenOnDemand && pPlaceHolder)
4834 const OUString* pStr =
static_cast<const OUString*
>(rVclIter.
iter->
GetUserData());
4862 while (aVclIter.
iter)
4875 while (aVclIter.
iter)
4888 while (aVclIter.
iter)
4910 pSelected = pNextSelected;
4934 if (nAbsPosA < nAbsPosB)
4936 if (nAbsPosA > nAbsPosB)
4942 int nIndexInNewParent)
4956 sal_Int32 nLeftBorder(0), nTopBorder(0), nRightBorder(0), nBottomBorder(0);
4958 nHeight += nTopBorder + nBottomBorder;
4998 assert(
col >= 0 &&
"cannot sort on expander column");
5021 assert(
col >= 0 &&
"cannot sort on expander column");
5026 sal_uInt16 nTextId = pHeaderBar->GetItemId(
col);
5058 bool bDnDMode,
bool bAutoScroll)
5065 if (pTarget && pResult)
5068 rSalIter.
iter = pTarget;
5071 return pTarget !=
nullptr;
5141 if (pEntry && !notify_events_disabled())
5152 const OUString* pId =
static_cast<const OUString*
>(rEntry.
GetUserData());
5155 signal_custom_render(rRenderDevice, rRect, m_xTreeView->IsSelected(&rEntry), *pId);
5162 const OUString* pId =
static_cast<const OUString*
>(rEntry.
GetUserData());
5165 return signal_custom_get_size(rRenderDevice, *pId);
5172 assert(pLHS && pRHS);
5181 if (m_nSortColumn != -1)
5183 size_t col = to_internal_model(m_nSortColumn);
5185 if (col < pLHS->ItemCount())
5189 pLeftTextItem = &rLeftTextItem;
5192 pLeftTextItem =
nullptr;
5193 if (col < pRHS->ItemCount())
5197 pRightTextItem = &rRightTextItem;
5200 pRightTextItem =
nullptr;
5210 return m_xTreeView->DefaultCompare(pLeftTextItem, pRightTextItem);
5215 if (notify_events_disabled())
5217 signal_visible_range_changed();
5222 if (notify_events_disabled())
5224 signal_model_changed();
5229 bool bUnsetDragIcon(
false);
5230 if (m_aDragBeginHdl.Call(bUnsetDragIcon))
5248 if (!m_xTreeView->IsSelected(pEntry))
5250 m_xTreeView->SelectAll(
false);
5251 m_xTreeView->Select(pEntry,
true);
5255 m_xTreeView->pImpl->m_pCursor = pEntry;
5262 int nCol = to_external_model(
i);
5271 if (notify_events_disabled())
5278 if (notify_events_disabled())
5281 && !m_xTreeView->GetHoverSelection())
5288 if (notify_events_disabled())
5290 return !signal_row_activated();
5295 std::vector<tools::Long> aTabPositions{ 0 };
5296 for (
int i = 0;
i < pHeaderBar->GetItemCount() - 1; ++
i)
5297 aTabPositions.push_back(aTabPositions[
i]
5298 + pHeaderBar->GetItemSize(pHeaderBar->GetItemId(
i)));
5299 m_xTreeView->SetTabs(aTabPositions.size(), aTabPositions.data(), MapUnit::MapPixel);
5304 sal_uInt16
nId = pHeaderBar->GetCurItemId();
5307 signal_column_clicked(pHeaderBar->GetItemPos(
nId));
5315 if (m_xTreeView->IsExpanded(pEntry))
5318 return signal_collapsing(aIter);
5322 return ExpandRow(aIter);
5356 return m_aPopupMenuHdl.Call(rEvent);
5366 return signal_editing_done(
5371 bool bTakeOwnership)
5373 , m_xIconView(pIconView)
5416 m_aUserData.emplace_back(std::make_unique<OUString>(*pId));
5420 pUserData =
nullptr;
5425 Image aImage(createImage(*pIconName));
5426 pEntry->
AddItem(std::make_unique<SvLBoxContextBmp>(aImage, aImage,
false));
5431 pEntry->
AddItem(std::make_unique<SvLBoxContextBmp>(aDummy, aDummy,
false));
5434 pEntry->
AddItem(std::make_unique<SvLBoxString>(*pStr));
5441 pVclRetIter->
iter = pEntry;
5455 m_aUserData.emplace_back(std::make_unique<OUString>(*pId));
5459 pUserData =
nullptr;
5464 const Point aNull(0, 0);
5467 pEntry->
AddItem(std::make_unique<SvLBoxContextBmp>(aImage, aImage,
false));
5472 pEntry->
AddItem(std::make_unique<SvLBoxContextBmp>(aDummy, aDummy,
false));
5475 pEntry->
AddItem(std::make_unique<SvLBoxString>(*pStr));
5482 pVclRetIter->
iter = pEntry;
5491 const OUString sSep(
VclResId(STR_SEPARATOR));
5495 pEntry->
AddItem(std::make_unique<SvLBoxContextBmp>(aDummy, aDummy,
false));
5496 pEntry->
AddItem(std::make_unique<SvLBoxString>(sSep));
5505 if (pEntry && !notify_events_disabled())
5543 assert(
m_xIconView->IsUpdateMode() &&
"don't request selection when frozen");
5546 if (
const OUString* pStr =
static_cast<const OUString*
>(pEntry->GetUserData()))
5554 assert(
m_xIconView->IsUpdateMode() &&
"don't request selection when frozen");
5565 &&
"don't select when frozen, select after thaw. Note selection doesn't survive a "
5582 &&
"don't select when frozen, select after thaw. Note selection doesn't survive a "
5597 return m_xIconView->GetModel()->GetChildList(
nullptr).size();
5600std::unique_ptr<weld::TreeIter>
5603 return std::unique_ptr<weld::TreeIter>(
5612 pVclIter->
iter = pEntry;
5613 return pEntry !=
nullptr;
5621 pVclIter->
iter = pEntry;
5622 return pEntry !=
nullptr;
5637 return rVclIter.
iter !=
nullptr;
5643 &&
"don't select when frozen, select after thaw. Note selection doesn't survive a "
5654 while (aVclIter.
iter)
5665 const OUString* pStr =
static_cast<const OUString*
>(rVclIter.
iter->
GetUserData());
5694 if (notify_events_disabled())
5696 signal_selection_changed();
5701 if (notify_events_disabled())
5705 signal_selection_changed();
5710 if (notify_events_disabled())
5712 return !signal_item_activated();
5717 return m_aCommandHdl.Call(rEvent);
5728 return x == double(std::numeric_limits<sal_Int64>::max())
5729 ? std::numeric_limits<sal_Int64>::max()
5730 : sal_Int64(std::round(
x));
5734 bool bTakeOwnership)
5736 , m_xButton(pButton)
5737 , m_rFormatter(m_xButton->GetFormatter())
5808 signal_value_changed();
5809 return m_aActivateHdl.Call(*
this);
5821 TriState eRet = signal_input(&nResult);
5829 bool bTakeOwnership)
5831 , m_xButton(pButton)
5832 , m_pFormatter(nullptr)
5883 signal_value_changed();
5889 signal_value_changed();
5890 m_aLoseFocusHdl.Call(*
this);
5894 bool bTakeOwnership)
5907 assert(pLabel &&
"can't use set_mnemonic_widget on SelectableFixedText");
5957 return std::make_unique<SalInstanceLabel>(pLabel,
m_pBuilder,
false);
5961 bool bTakeOwnership)
5963 , m_xTextView(pTextView)
5990 rStartPos = rSelection.
Min();
5991 rEndPos = rSelection.
Max();
5992 return rSelection.
Len();
6114 signal_vadjustment_changed();
6115 m_aOrigVScrollHdl.Call(pScrollBar);
6122 if (notify_events_disabled())
6126 signal_cursor_position();
6130 bool bTakeOwnership)
6132 , m_xExpander(pExpander)
6185 void* pUserData,
bool bTakeOwnership)
6187 , m_xDrawingArea(pDrawingArea)
6245 int nExtTextInputWidth)
6257 return css::uno::Reference<css::accessibility::XAccessible>();
6268 if (pLabeledBy && pLabeledBy != pWindow)
6270 css::uno::Sequence<css::uno::Reference<css::uno::XInterface>> aSequence{
6273 pRelationSetHelper->AddRelation(css::accessibility::AccessibleRelation(
6274 css::accessibility::AccessibleRelationType::LABELED_BY, aSequence));
6277 if (pMemberOf && pMemberOf != pWindow)
6279 css::uno::Sequence<css::uno::Reference<css::uno::XInterface>> aSequence{
6282 pRelationSetHelper->AddRelation(css::accessibility::AccessibleRelation(
6283 css::accessibility::AccessibleRelationType::MEMBER_OF, aSequence));
6286 return pRelationSetHelper;
6319 Link<std::pair<vcl::RenderContext&, const tools::Rectangle&>,
void>());
6358 m_aDrawHdl.Call(aPayload);
6366 m_aSizeAllocateHdl.Call(rSize);
6371 return m_aMousePressHdl.Call(rEvent);
6376 return m_aMouseMotionHdl.Call(rEvent);
6381 return m_aMouseReleaseHdl.Call(rEvent);
6386 return m_aKeyPressHdl.Call(rEvent);
6391 return m_aKeyReleaseHdl.Call(rEvent);
6396 m_aStyleUpdatedHdl.Call(*
this);
6401 return m_aCommandHdl.Call(rEvent);
6406 return m_aGetSurroundingHdl.Call(rSurrounding);
6411 return m_aDeleteSurroundingHdl.Call(rSelection);
6416 return m_aQueryTooltipHdl.Call(rHelpArea);
6421 if (m_aDragBeginHdl.Call(*
this))
6428 bool bTakeOwnership)
6445 sal_Int32 nInsertedAt;
6446 if (!pIconName && !pImageSurface)
6454 m_aUserData.emplace_back(std::make_unique<OUString>(*pId));
6520 assert(
false &&
"not implemented");
6525 assert(
false &&
"not implemented");
6533 assert(
false &&
"not implemented");
6539 assert(
false &&
"not implemented");
6554 return signal_changed();
6559 bool bTakeOwnership)
6561 , m_aTextFilter(m_aEntryInsertTextHdl)
6562 , m_bInSelect(false)
6589 ::set_message_type(pEdit,
eType);
6600 sal_Int32 nInsertedAt;
6601 if (!pIconName && !pImageSurface)
6610 m_aUserData.emplace_back(std::make_unique<OUString>(*pId));
6665 rStartPos = rSelection.
Min();
6666 rEndPos = rSelection.
Max();
6667 return rSelection.
Len();
6708 double fRatio = nOldEntryHeight /
static_cast<double>(nNewEntryHeight);
6749 if (!m_xComboBox->IsSyntheticModify())
6757 m_bInSelect =
false;
6762 return m_aEntryActivateHdl.Call(*
this);
6767 call_signal_custom_render(pEvent);
6781 bool bTakeOwnership, std::unique_ptr<weld::Entry> xEntry,
6782 std::unique_ptr<weld::TreeView> xTreeView)
6806 assert(!bEnable &&
"not implemented yet");
6861 m_xEntry->connect_focus_out(rLink);
6870 assert(
false &&
"not implemented");
6878 assert(
false &&
"not implemented");
6882 virtual void set_mru_entries(
const OUString&)
override { assert(
false &&
"not implemented"); }
6886 assert(
false &&
"not implemented");
6891 assert(
false &&
"not implemented");
6918 m_pTreeView->disable_notify_events();
6919 auto& rListBox = m_pTreeView->getTreeView();
6920 if (!rListBox.FirstSelected())
6923 rListBox.Select(pEntry,
true);
6926 rListBox.KeyInput(rKeyEvent);
6927 m_xEntry->set_text(m_xTreeView->get_selected_text());
6928 m_xEntry->select_region(0, -1);
6929 m_pTreeView->enable_notify_events();
6930 m_bTreeChange =
true;
6931 m_pEntry->fire_signal_changed();
6932 m_bTreeChange =
false;
6939 OUString aFullText = rEdit.GetText();
6940 OUString aStartText = aFullText.copy(0,
static_cast<sal_Int32
>(aSel.
Max()));
6943 int nCount = m_xTreeView->n_children();
6946 if (m_xTreeView->get_text(
i).startsWithIgnoreAsciiCase(aStartText))
6953 m_xTreeView->select(
nPos);
6957 OUString aText = m_xTreeView->get_text(
nPos);
6958 Selection aSelection(aText.getLength(), aStartText.getLength());
6959 rEdit.SetText(aText, aSelection);
6964 bool bTakeOwnership)
6966 , m_xPopover(pPopover)
7031 const OUString& rUIFile,
7032 const css::uno::Reference<css::frame::XFrame>& rFrame)
7034 , m_xBuilder(new
VclBuilder(pParent, rUIRoot, rUIFile, {}, rFrame,
false))
7041 std::unique_ptr<weld::MessageDialog> pRet(
7055 std::unique_ptr<weld::Dialog> pRet(pDialog ?
new SalInstanceDialog(pDialog,
this,
false)
7087 std::unique_ptr<weld::Window> xRet(
new SalInstanceWindow(pWindow,
this,
false));
7100 xContentArea->Show();
7106 return std::unique_ptr<weld::Dialog>(
new SalInstanceDialog(xDialog,
this,
false));
7112 return pWidget ? std::make_unique<SalInstanceWidget>(pWidget,
this,
false) :
nullptr;
7118 return pContainer ? std::make_unique<SalInstanceContainer>(pContainer,
this,
false) :
nullptr;
7124 return pContainer ? std::make_unique<SalInstanceBox>(pContainer,
this,
false) :
nullptr;
7130 return pPaned ? std::make_unique<SalInstancePaned>(pPaned,
this,
false) :
nullptr;
7136 std::unique_ptr<weld::Frame> pRet(pFrame ?
new SalInstanceFrame(pFrame,
this,
false) :
nullptr);
7140std::unique_ptr<weld::ScrolledWindow>
7144 return pScrolledWindow ? std::make_unique<SalInstanceScrolledWindow>(
7145 pScrolledWindow,
this,
false, bUserManagedScrolling)
7155 return std::make_unique<SalInstanceNotebook>(
static_cast<TabControl*
>(pNotebook),
this,
7158 return std::make_unique<SalInstanceVerticalNotebook>(
7166 return pButton ? std::make_unique<SalInstanceButton>(pButton,
this,
false) :
nullptr;
7172 return pButton ? std::make_unique<SalInstanceMenuButton>(pButton,
this,
false) :
nullptr;
7175std::unique_ptr<weld::MenuToggleButton>
7179 return pButton ? std::make_unique<SalInstanceMenuToggleButton>(pButton,
this,
false) :
nullptr;
7184 FixedHyperlink* pButton =
m_xBuilder->get<FixedHyperlink>(id);
7185 return pButton ? std::make_unique<SalInstanceLinkButton>(pButton,
this,
false) :
nullptr;
7191 return pToggleButton ? std::make_unique<SalInstanceToggleButton>(pToggleButton,
this,
false)
7198 return pRadioButton ? std::make_unique<SalInstanceRadioButton>(pRadioButton,
this,
false)
7205 return pCheckButton ? std::make_unique<SalInstanceCheckButton>(pCheckButton,
this,
false)
7212 return pSlider ? std::make_unique<SalInstanceScale>(pSlider,
this,
false) :
nullptr;
7218 return pProgress ? std::make_unique<SalInstanceProgressBar>(pProgress,
this,
false) :
nullptr;
7223 Throbber* pThrobber =
m_xBuilder->get<Throbber>(id);
7224 return pThrobber ? std::make_unique<SalInstanceSpinner>(pThrobber,
this,
false) :
nullptr;
7230 return pImage ? std::make_unique<SalInstanceImage>(pImage,
this,
false) :
nullptr;
7236 return pCalendar ? std::make_unique<SalInstanceCalendar>(pCalendar,
this,
false) :
nullptr;
7242 return pEntry ? std::make_unique<SalInstanceEntry>(pEntry,
this,
false) :
nullptr;
7248 return pSpinButton ? std::make_unique<SalInstanceSpinButton>(pSpinButton,
this,
false)
7252std::unique_ptr<weld::MetricSpinButton>
7261 return std::make_unique<weld::MetricSpinButton>(std::move(xButton), eUnit);
7264std::unique_ptr<weld::FormattedSpinButton>
7268 return pSpinButton ? std::make_unique<SalInstanceFormattedSpinButton>(pSpinButton,
this,
false)
7277 return std::make_unique<SalInstanceComboBoxWithEdit>(pComboBox,
this,
false);
7279 return pListBox ? std::make_unique<SalInstanceComboBoxWithoutEdit>(pListBox,
this,
false)
7283std::unique_ptr<weld::EntryTreeView>
7285 const OUString& treeviewid)
7288 return pContainer ? std::make_unique<SalInstanceEntryTreeView>(pContainer,
this,
false,
7297 return pTreeView ? std::make_unique<SalInstanceTreeView>(pTreeView,
this,
false) :
nullptr;
7303 return pIconView ? std::make_unique<SalInstanceIconView>(pIconView,
this,
false) :
nullptr;
7309 return pLabel ? std::make_unique<SalInstanceLabel>(pLabel,
this,
false) :
nullptr;
7315 return pTextView ? std::make_unique<SalInstanceTextView>(pTextView,
this,
false) :
nullptr;
7321 return pExpander ? std::make_unique<SalInstanceExpander>(pExpander,
this,
false) :
nullptr;
7324std::unique_ptr<weld::DrawingArea>
7330 ? std::make_unique<SalInstanceDrawingArea>(pDrawingArea,
this, rA11yImpl,
7331 pUITestFactoryFunction, pUserData,
false)
7338 return pMenu ? std::make_unique<SalInstanceMenu>(pMenu,
true) :
nullptr;
7344 std::unique_ptr<weld::Popover> pRet(
7358 return pToolBox ? std::make_unique<SalInstanceToolbar>(pToolBox,
this,
false) :
nullptr;
7364 return pScrollbar ? std::make_unique<SalInstanceScrollbar>(pScrollbar,
this,
false) :
nullptr;
7369 return std::make_unique<SalInstanceSizeGroup>();
7397 if (VclBuilderContainer* pOwnedToplevel
7399 pOwnedToplevel->m_pUIBuilder = std::move(
m_xBuilder);
7405std::unique_ptr<weld::Builder>
7410 return std::make_unique<SalInstanceBuilder>(pParentWidget, rUIRoot, rUIFile);
7414 const OUString& rUIRoot,
7415 const OUString& rUIFile,
bool,
7418 return std::make_unique<SalInstanceBuilder>(pParent, rUIRoot, rUIFile);
7429 OUString sHelpId = pWidget->
GetHelpId();
7430 while (sHelpId.isEmpty())
7437 std::unique_ptr<weld::Widget> xTemp(
7455 if (!sPageId.isEmpty())
7463 pContentArea = pDialog->get_content_area();
7472 pHelp->
Start(sHelpId, pSource);
7480 while ((pParent = pParent->
GetParent()))
7490 const OUString& rPrimaryMessage)
7525 sal_Int32 nCursorIndex,
int nOffset,
int nChars)
7529 if (nCursorIndex == -1)
7534 while (nOffset && nCursorIndex < rSurroundingText.getLength())
7536 rSurroundingText.iterateCodePoints(&nCursorIndex, 1);
7540 else if (nOffset < 0)
7542 while (nOffset && nCursorIndex > 0)
7544 rSurroundingText.iterateCodePoints(&nCursorIndex, -1);
7552 "SalFrame::CalcDeleteSurroundingSelection, unable to move to offset: " << nOffset);
7556 sal_Int32 nCursorEndIndex(nCursorIndex);
7558 while (
nCount < nChars && nCursorEndIndex < rSurroundingText.getLength())
7560 rSurroundingText.iterateCodePoints(&nCursorEndIndex, 1);
7566 SAL_WARN(
"vcl",
"SalFrame::CalcDeleteSurroundingSelection, unable to select: "
7567 << nChars <<
" characters");
7571 return Selection(nCursorIndex, nCursorEndIndex);
css::uno::Reference< css::lang::XComponent > m_xFrame
Reference< XExecutableDialog > m_xDialog
const StyleSettings & GetStyleSettings() const
void SetStyleSettings(const StyleSettings &rSet)
static bool IsOnSystemEventLoop()
Returns true, if the VCL plugin runs on the system event loop.
static OutputDevice * GetDefaultDevice()
Get the default "device" (in this case the default window).
static const AllSettings & GetSettings()
Gets the application's settings.
static void RemoveKeyListener(const Link< VclWindowEvent &, bool > &rKeyListener)
Remove a keypress listener from the application.
static Help * GetHelp()
Gets the application's help.
static void AddKeyListener(const Link< VclWindowEvent &, bool > &rKeyListener)
Add a keypress listener to the application.
void SetToggleHdl(const Link< CheckBox &, void > &rLink)
void EnableTriState(bool bTriState=true)
void Check(bool bCheck=true)
void SetState(TriState eState)
TriState GetState() const
A widget used to choose from a list of items and which has an entry.
sal_Int32 InsertEntryWithImage(const OUString &rStr, const Image &rImage, sal_Int32 nPos=COMBOBOX_APPEND)
void SetEntryActivateHdl(const Link< Edit &, bool > &rLink)
virtual void SetText(const OUString &rStr) override
void RemoveEntryAt(sal_Int32 nPos)
bool IsTravelSelect() const
void SetMaxMRUCount(sal_Int32 n)
OUString GetMRUEntries() const
void SetUserDrawHdl(const Link< UserDrawEvent *, void > &rLink)
void SetEntryData(sal_Int32 nPos, void *pNewData)
void SetUserItemSize(const Size &rSz)
void EnableAutocomplete(bool bEnable, bool bMatchCase=false)
sal_Int32 GetEntryCount() const
sal_uInt16 GetDropDownLineCount() const
void SetWidthInChars(sal_Int32 nWidthInChars)
void EnableUserDraw(bool bUserDraw)
void AddSeparator(sal_Int32 n)
Adds a new separator at the given position n.
void SetDropDownLineCount(sal_uInt16 nLines)
void SetSelectHdl(const Link< ComboBox &, void > &rLink)
bool IsUserDrawEnabled() const
sal_Int32 InsertEntry(const OUString &rStr, sal_Int32 nPos=COMBOBOX_APPEND)
tools::Long GetDropDownEntryHeight() const
bool IsModifyByKeyboard() const
void SetMRUEntries(std::u16string_view rEntries)
sal_Int32 GetMaxMRUCount() const
void SetLoseFocusHdl(const Link< Control &, void > &rLink)
virtual void SetText(const OUString &rStr) override
bool IsInPopupMode(const vcl::Window *pWin)
void EndPopupMode(const vcl::Window *pWin)
void SetPosSizePixel(vcl::Window const *pWin, tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, PosSizeFlags nFlags)
tools::Rectangle GetPosSizePixel(const vcl::Window *pWin)
void StartPopupMode(const vcl::Window *pWin, const tools::Rectangle &rRect, FloatWinPopupFlags nPopupModeFlags)
void SetPopupModeEndHdl(const vcl::Window *pWindow, const Link< FloatingWindow *, void > &rLink)
void SetTextFilter(TextFilter *pFilter)
void SetPlaceholderText(const OUString &rStr)
virtual const Selection & GetSelection() const
virtual void SetMaxTextLen(sal_Int32 nMaxLen)
void SetActivateHdl(const Link< Edit &, bool > &rLink)
Edit * GetSubEdit() const
virtual void SetSelection(const Selection &rSelection)
void SetAutocompleteHdl(const Link< Edit &, void > &rLink)
virtual void SetModifyHdl(const Link< Edit &, void > &rLink)
virtual void SetReadOnly(bool bReadOnly=true)
void SetForceControlBackground(bool b)
virtual OUString GetText() const override
void SetImage(const Image &rImage)
void set_mnemonic_widget(vcl::Window *pWindow)
virtual bool Start(const OUString &rHelpId, weld::Widget *pWidget=nullptr)
virtual void Start(bool bStartTimer=true) override
Schedules the task for execution.
const vcl::KeyCode & GetKeyCode() const
void SetEndDragHdl(const Link< SvTreeListBox *, void > &rLink)
SvTreeListEntry * GetTargetAtPoint(const Point &rPos, bool bHighLightTarget, bool bScroll=true)
void SetEditedEntryHdl(const Link< std::pair< SvTreeListEntry *, OUString >, bool > &rLink)
void SetEditingEntryHdl(const Link< SvTreeListEntry *, bool > &rLink)
void SetStartDragHdl(const Link< SvTreeListBox *, bool > &rLink)
void SetModelChangedHdl(const Link< SvTreeListBox *, void > &rLink)
A widget used to choose from a list of items and which has no entry.
sal_Int32 GetEntryCount() const
void RemoveEntry(sal_Int32 nPos)
void AddSeparator(sal_Int32 n)
Adds a new separator at the given position n.
void SetEntryData(sal_Int32 nPos, void *pNewData)
void SetSelectHdl(const Link< ListBox &, void > &rLink)
OUString GetSelectedEntry(sal_Int32 nSelIndex=0) const
sal_Int32 InsertEntry(const OUString &rStr, sal_Int32 nPos=LISTBOX_APPEND)
void SetScaleY(const Fraction &rScaleY)
const Fraction & GetScaleX() const
MapUnit GetMapUnit() const
void SetMapUnit(MapUnit eUnit)
const Fraction & GetScaleY() const
void SetScaleX(const Fraction &rScaleX)
MouseEventModifiers GetMode() const
sal_uInt16 GetModifier() const
sal_uInt16 GetClicks() const
sal_uInt16 GetButtons() const
const Point & GetPosPixel() const
Some things multiple-inherit from VclAbstractDialog and OutputDevice, so we need to use virtual inher...
Size GetOutputSize() const
tools::Long GetOutOffYPixel() const
void DrawBitmapEx(const Point &rDestPt, const BitmapEx &rBitmapEx)
tools::Long GetOutputWidthPixel() const
SAL_WARN_UNUSED_RESULT Point PixelToLogic(const Point &rDevicePt) const
Size GetOutputSizePixel() const
const Wallpaper & GetBackground() const
virtual void DrawOutDev(const Point &rDestPt, const Size &rDestSize, const Point &rSrcPt, const Size &rSrcSize)
virtual bool HasMirroredGraphics() const
const MapMode & GetMapMode() const
void Push(vcl::PushFlags nFlags=vcl::PushFlags::ALL)
static vcl::Font GetDefaultFont(DefaultFontType nType, LanguageType eLang, GetDefaultFontFlags nFlags, const OutputDevice *pOutDev=nullptr)
OutDevType GetOutDevType() const
tools::Long GetOutOffXPixel() const
BitmapEx GetBitmapEx(const Point &rSrcPt, const Size &rSize) const
Query extended bitmap (with alpha channel, if available).
constexpr tools::Long Y() const
constexpr tools::Long X() const
bool m_bOrigControlBackground
VclPtr< vcl::Window > m_xWidget
SalFlashAttention(VclPtr< vcl::Window > xWidget)
Wallpaper m_aOrigBackground
Color m_aOrigControlBackground
DECL_LINK(FlashTimeout, Timer *, void)
A SalFrame is a system window (e.g. an X11 window).
VclPtr< vcl::Window > m_pWindow
virtual weld::Window * GetFrameWeld() const
virtual ~SalFrame() override
static OUString DumpSetPosSize(tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, sal_uInt16 nFlags)
virtual void SetModal(bool)
void SetCallback(vcl::Window *pWindow, SALFRAMEPROC pProc)
vcl::Window * GetWindow() const
std::unique_ptr< weld::Window > m_xFrameWeld
virtual void SetRepresentedURL(const OUString &)
static Selection CalcDeleteSurroundingSelection(const OUString &rSurroundingText, sal_Int32 nCursorIndex, int nOffset, int nChars)
virtual bool GetModal() const
virtual ~SalInfoPrinter()
virtual OUString get_page_title(const OUString &rIdent) const override
int find_id(int nId) const
VclPtr< vcl::RoadmapWizard > m_xWizard
virtual void set_page_side_image(const OUString &rImage) override
virtual OUString get_page_ident(int nPage) const override
virtual ~SalInstanceAssistant() override
virtual OUString get_current_page_ident() const override
virtual weld::Container * append_page(const OUString &rIdent) override
virtual void set_current_page(int nPage) override
Idle m_aUpdateRoadmapIdle
virtual void set_page_sensitive(const OUString &rIdent, bool bSensitive) override
std::vector< VclPtr< TabPage > > m_aAddedPages
std::vector< std::unique_ptr< SalInstanceContainer > > m_aPages
virtual void set_page_index(const OUString &rIdent, int nNewIndex) override
int find_page(std::u16string_view rIdent) const
std::vector< int > m_aIds
virtual void set_page_side_help_id(const OUString &rHelpId) override
std::vector< VclPtr< VclGrid > > m_aAddedGrids
virtual void set_page_title(const OUString &rIdent, const OUString &rTitle) override
weld::Button * weld_widget_for_response(int nResponse) override
SalInstanceAssistant(vcl::RoadmapWizard *pDialog, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
virtual int get_n_pages() const override
virtual int get_current_page() const override
virtual void reorder_child(weld::Widget *pWidget, int nNewPosition) override
SalInstanceBox(VclBox *pContainer, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
virtual void sort_native_button_order() override
virtual std::unique_ptr< weld::Dialog > weld_dialog(const OUString &id) override
virtual std::unique_ptr< weld::Image > weld_image(const OUString &id) override
virtual std::unique_ptr< weld::Toolbar > weld_toolbar(const OUString &id) override
virtual std::unique_ptr< weld::RadioButton > weld_radio_button(const OUString &id) override
virtual std::unique_ptr< weld::Popover > weld_popover(const OUString &id) override
virtual std::unique_ptr< weld::Expander > weld_expander(const OUString &id) override
virtual std::unique_ptr< weld::Scale > weld_scale(const OUString &id) override
virtual std::unique_ptr< weld::Paned > weld_paned(const OUString &id) override
virtual std::unique_ptr< weld::MetricSpinButton > weld_metric_spin_button(const OUString &id, FieldUnit eUnit) override
virtual std::unique_ptr< weld::ProgressBar > weld_progress_bar(const OUString &id) override
virtual std::unique_ptr< weld::Assistant > weld_assistant(const OUString &id) override
virtual std::unique_ptr< weld::LinkButton > weld_link_button(const OUString &id) override
virtual std::unique_ptr< weld::Widget > weld_widget(const OUString &id) override
SalInstanceBuilder(vcl::Window *pParent, const OUString &rUIRoot, const OUString &rUIFile, const css::uno::Reference< css::frame::XFrame > &rFrame=css::uno::Reference< css::frame::XFrame >())
virtual std::unique_ptr< weld::Container > weld_container(const OUString &id) override
virtual std::unique_ptr< weld::Button > weld_button(const OUString &id) override
virtual std::unique_ptr< weld::ToggleButton > weld_toggle_button(const OUString &id) override
virtual std::unique_ptr< weld::DrawingArea > weld_drawing_area(const OUString &id, const a11yref &rA11yImpl=nullptr, FactoryFunction pUITestFactoryFunction=nullptr, void *pUserData=nullptr) override
virtual std::unique_ptr< weld::MenuToggleButton > weld_menu_toggle_button(const OUString &id) override
virtual std::unique_ptr< weld::Scrollbar > weld_scrollbar(const OUString &id) override
virtual std::unique_ptr< weld::ScrolledWindow > weld_scrolled_window(const OUString &id, bool bUserManagedScrolling=false) override
virtual std::unique_ptr< weld::TreeView > weld_tree_view(const OUString &id) override
virtual ~SalInstanceBuilder() override
virtual std::unique_ptr< weld::Label > weld_label(const OUString &id) override
OUString get_current_page_help_id() const
virtual std::unique_ptr< weld::FormattedSpinButton > weld_formatted_spin_button(const OUString &id) override
VclPtr< vcl::Window > m_aOwnedToplevel
virtual std::unique_ptr< weld::Frame > weld_frame(const OUString &id) override
virtual std::unique_ptr< weld::TextView > weld_text_view(const OUString &id) override
virtual std::unique_ptr< weld::EntryTreeView > weld_entry_tree_view(const OUString &containerid, const OUString &entryid, const OUString &treeviewid) override
virtual std::unique_ptr< weld::IconView > weld_icon_view(const OUString &id) override
virtual std::unique_ptr< weld::SpinButton > weld_spin_button(const OUString &id) override
virtual std::unique_ptr< weld::CheckButton > weld_check_button(const OUString &id) override
virtual std::unique_ptr< weld::Spinner > weld_spinner(const OUString &id) override
virtual std::unique_ptr< weld::Notebook > weld_notebook(const OUString &id) override
virtual std::unique_ptr< weld::Entry > weld_entry(const OUString &id) override
std::unique_ptr< VclBuilder > m_xBuilder
virtual std::unique_ptr< weld::SizeGroup > create_size_group() override
virtual std::unique_ptr< weld::Calendar > weld_calendar(const OUString &id) override
virtual std::unique_ptr< weld::Menu > weld_menu(const OUString &id) override
virtual std::unique_ptr< weld::MessageDialog > weld_message_dialog(const OUString &id) override
virtual std::unique_ptr< weld::Window > create_screenshot_window() override
virtual std::unique_ptr< weld::MenuButton > weld_menu_button(const OUString &id) override
virtual std::unique_ptr< weld::ComboBox > weld_combo_box(const OUString &id) override
virtual std::unique_ptr< weld::Box > weld_box(const OUString &id) override
virtual void insert_separator(int pos, const OUString &) override
virtual void set_entry_placeholder_text(const OUString &rText) override
virtual bool has_entry() const override
virtual void set_mru_entries(const OUString &rEntries) override
virtual bool changed_by_direct_pick() const override
virtual void set_entry_completion(bool bEnable, bool bCaseSensitive=false) override
virtual void set_entry_editable(bool bEditable) override
virtual void cut_entry_clipboard() override
virtual void set_entry_width_chars(int nChars) override
virtual void insert(int pos, const OUString &rStr, const OUString *pId, const OUString *pIconName, VirtualDevice *pImageSurface) override
virtual void set_entry_message_type(weld::EntryMessageType eType) override
virtual void call_attention_to() override
virtual void set_entry_max_length(int nChars) override
virtual void copy_entry_clipboard() override
virtual OUString get_mru_entries() const override
virtual vcl::Font get_entry_font() override
SalInstanceComboBoxWithEdit(::ComboBox *pComboBox, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
WeldTextFilter m_aTextFilter
virtual ~SalInstanceComboBoxWithEdit() override
virtual void HandleEventListener(VclWindowEvent &rEvent) override
virtual bool get_entry_selection_bounds(int &rStartPos, int &rEndPos) override
virtual void set_custom_renderer(bool bOn) override
virtual void paste_entry_clipboard() override
virtual void remove(int pos) override
virtual OUString get_active_text() const override
virtual void set_entry_text(const OUString &rText) override
virtual int get_max_mru_count() const override
virtual void set_font(const vcl::Font &rFont) override
virtual void set_entry_font(const vcl::Font &rFont) override
virtual void select_entry_region(int nStartPos, int nEndPos) override
virtual void set_max_mru_count(int nCount) override
virtual void copy_entry_clipboard() override
virtual void set_max_mru_count(int) override
virtual void select_entry_region(int, int) override
virtual vcl::Font get_entry_font() override
virtual void remove(int pos) override
virtual void set_mru_entries(const OUString &) override
virtual void set_entry_completion(bool, bool bCaseSensitive=false) override
virtual void insert_separator(int pos, const OUString &) override
virtual void set_entry_placeholder_text(const OUString &) override
virtual bool changed_by_direct_pick() const override
virtual int get_max_mru_count() const override
virtual void set_entry_editable(bool bEditable) override
virtual void insert(int pos, const OUString &rStr, const OUString *pId, const OUString *pIconName, VirtualDevice *pImageSurface) override
virtual void set_entry_message_type(weld::EntryMessageType) override
virtual OUString get_active_text() const override
virtual void paste_entry_clipboard() override
virtual void set_entry_text(const OUString &) override
virtual void set_entry_font(const vcl::Font &) override
SalInstanceComboBoxWithoutEdit(ListBox *pListBox, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
virtual void set_font(const vcl::Font &rFont) override
virtual OUString get_mru_entries() const override
virtual bool get_entry_selection_bounds(int &, int &) override
virtual ~SalInstanceComboBoxWithoutEdit() override
virtual void HandleEventListener(VclWindowEvent &rEvent) override
virtual void set_custom_renderer(bool bOn) override
virtual void cut_entry_clipboard() override
virtual void set_entry_width_chars(int) override
virtual void set_entry_max_length(int) override
virtual bool has_entry() const override
std::vector< std::shared_ptr< OUString > > m_aUserData
void CallHandleEventListener(VclWindowEvent &rEvent)
VclPtr< ListBox > m_xComboBox
virtual void connect_container_focus_changed(const Link< Container &, void > &rLink) override
virtual void child_grab_focus() override
virtual void HandleEventListener(VclWindowEvent &rEvent) override
SalInstanceContainer(vcl::Window *pContainer, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
virtual void move(weld::Widget *pWidget, weld::Container *pNewParent) override
VclPtr< vcl::Window > m_xContainer
virtual css::uno::Reference< css::awt::XWindow > CreateChildFrame() override
virtual bool runAsync(std::shared_ptr< weld::DialogController > aOwner, const std::function< void(sal_Int32)> &rEndDialogFn) override
virtual void SetInstallLOKNotifierHdl(const Link< void *, vcl::ILibreOfficeKitNotifier * > &rLink) override
tools::Long m_nOldEditWidthReq
virtual void collapse(weld::Widget *pEdit, weld::Widget *pButton) override
virtual void set_default_response(int nResponse) override
virtual bool get_modal() const override
virtual weld::Button * weld_widget_for_response(int nResponse) override
virtual void response(int nResponse) override
SalInstanceDialog(::Dialog *pDialog, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
VclPtr<::Dialog > m_xDialog
VclPtr< vcl::Window > m_xRefEdit
virtual void add_button(const OUString &rText, int nResponse, const OUString &rHelpId={}) override
virtual weld::Container * weld_content_area() override
virtual void set_modal(bool bModal) override
sal_Int32 m_nOldBorderWidth
virtual void undo_collapse() override
virtual int run() override
std::vector< VclPtr< vcl::Window > > m_aHiddenWidgets
SalInstanceDrawingArea(VclDrawingArea *pDrawingArea, SalInstanceBuilder *pBuilder, const a11yref &rAlly, FactoryFunction pUITestFactoryFunction, void *pUserData, bool bTakeOwnership)
virtual void dblclick(const Point &rPos) override
virtual void HandleEventListener(VclWindowEvent &rEvent) override
virtual bool HandleKeyEventListener(VclWindowEvent &) override
virtual a11yrelationset get_accessible_relation_set() override
virtual void mouse_up(const Point &rPos) override
virtual void enable_drag_source(rtl::Reference< TransferDataContainer > &rHelper, sal_uInt8 eDNDConstants) override
virtual ~SalInstanceDrawingArea() override
virtual void click(const Point &rPos) override
virtual OutputDevice & get_ref_device() override
virtual void connect_key_release(const Link< const KeyEvent &, bool > &rLink) override
virtual Point get_pointer_position() const override
virtual void HandleMouseEventListener(VclWindowEvent &rEvent) override
virtual void mouse_down(const Point &rPos) override
virtual void mouse_move(const Point &rPos) override
virtual void queue_draw_area(int x, int y, int width, int height) override
virtual void connect_size_allocate(const Link< const Size &, void > &rLink) override
virtual Point get_accessible_location_on_screen() override
virtual void queue_draw() override
virtual void set_input_context(const InputContext &rInputContext) override
virtual void im_context_set_cursor_location(const tools::Rectangle &rCursorRect, int nExtTextInputWidth) override
virtual void set_cursor(PointerStyle ePointerStyle) override
VclPtr< VclDrawingArea > m_xDrawingArea
virtual void connect_key_press(const Link< const KeyEvent &, bool > &rLink) override
virtual a11yref get_accessible_parent() override
virtual void connect_style_updated(const Link< Widget &, void > &rLink) override
virtual int get_max_mru_count() const override
virtual bool changed_by_direct_pick() const override
virtual void set_item_menu(const OUString &, weld::Menu *) override
virtual vcl::Font get_entry_font() override
virtual ~SalInstanceEntryTreeView() override
VclPtr< VirtualDevice > create_render_virtual_device() const override
int get_menu_button_width() const override
virtual void paste_entry_clipboard() override
SalInstanceEntryTreeView(vcl::Window *pContainer, SalInstanceBuilder *pBuilder, bool bTakeOwnership, std::unique_ptr< weld::Entry > xEntry, std::unique_ptr< weld::TreeView > xTreeView)
virtual void set_entry_completion(bool bEnable, bool) override
virtual void set_font(const vcl::Font &) override
virtual void insert_separator(int, const OUString &) override
DECL_LINK(AutocompleteHdl, Edit &, void)
virtual void copy_entry_clipboard() override
virtual void connect_focus_out(const Link< Widget &, void > &rLink) override
virtual OUString get_mru_entries() const override
virtual void set_custom_renderer(bool) override
virtual void connect_focus_in(const Link< Widget &, void > &rLink) override
virtual void set_max_mru_count(int) override
SalInstanceTreeView * m_pTreeView
virtual void set_mru_entries(const OUString &) override
virtual void make_sorted() override
virtual void set_entry_font(const vcl::Font &rFont) override
DECL_LINK(KeyPressListener, VclWindowEvent &, void)
virtual void set_entry_editable(bool bEditable) override
SalInstanceEntry * m_pEntry
virtual void set_entry_placeholder_text(const OUString &rText) override
virtual void grab_focus() override
virtual void cut_entry_clipboard() override
virtual void set_editable(bool bEditable) override
virtual void set_font(const vcl::Font &rFont) override
virtual void connect_cursor_position(const Link< Entry &, void > &rLink) override
WeldTextFilter m_aTextFilter
SalInstanceEntry(::Edit *pEntry, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
bool get_selection_bounds(int &rStartPos, int &rEndPos) override
virtual bool get_overwrite_mode() const override
void fire_signal_changed()
virtual bool get_editable() const override
virtual void cut_clipboard() override
virtual void copy_clipboard() override
virtual void set_alignment(TxtAlign eXAlign) override
virtual void paste_clipboard() override
virtual OUString get_text() const override
virtual int get_width_chars() const override
virtual void set_position(int nCursorPos) override
virtual void set_placeholder_text(const OUString &rText) override
virtual void set_text(const OUString &rText) override
virtual ~SalInstanceEntry() override
virtual int get_position() const override
virtual void set_max_length(int nChars) override
virtual void set_width_chars(int nChars) override
virtual void replace_selection(const OUString &rText) override
virtual void select_region(int nStartPos, int nEndPos) override
virtual void set_message_type(weld::EntryMessageType eType) override
virtual void set_font_color(const Color &rColor) override
virtual void set_overwrite_mode(bool bOn) override
virtual void grab_focus() override
SalInstanceExpander(VclExpander *pExpander, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
virtual void set_expanded(bool bExpand) override
virtual OUString get_label() const override
virtual bool get_expanded() const override
VclPtr< VclExpander > m_xExpander
virtual ~SalInstanceExpander() override
virtual void set_label(const OUString &rText) override
virtual bool has_focus() const override
virtual void set_label(const OUString &rText) override
virtual std::unique_ptr< weld::Label > weld_label_widget() const override
SalInstanceFrame(VclFrame *pFrame, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
virtual OUString get_label() const override
VclPtr< VclFrame > m_xFrame
virtual int count_selected_items() const override
virtual OUString get_selected_text() const override
virtual void unselect(int pos) override
virtual void selected_foreach(const std::function< bool(weld::TreeIter &)> &func) override
VclPtr<::IconView > m_xIconView
virtual int n_children() const override
virtual OUString get_selected_id() const override
virtual OUString get_id(const weld::TreeIter &rIter) const override
virtual void connect_get_property_tree_elem(const Link< const weld::json_prop_query &, bool > &rLink) override
virtual void select(int pos) override
virtual void set_cursor(const weld::TreeIter &rIter) override
virtual bool get_iter_first(weld::TreeIter &rIter) const override
virtual ~SalInstanceIconView() override
std::vector< std::unique_ptr< OUString > > m_aUserData
virtual void set_item_width(int width) override
virtual void clear() override
virtual std::unique_ptr< weld::TreeIter > make_iterator(const weld::TreeIter *pOrig=nullptr) const override
virtual void freeze() override
virtual void thaw() override
virtual OUString get_text(const weld::TreeIter &rIter) const override
virtual int get_item_width() const override
virtual void scroll_to_item(const weld::TreeIter &rIter) override
virtual void connect_query_tooltip(const Link< const weld::TreeIter &, OUString > &rLink) override
virtual void insert_separator(int pos, const OUString *pId) override
virtual bool get_selected(weld::TreeIter *pIter) const override
SalInstanceIconView(::IconView *pIconView, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
virtual bool get_cursor(weld::TreeIter *pIter) const override
virtual void insert(int pos, const OUString *pStr, const OUString *pId, const OUString *pIconName, weld::TreeIter *pRet) override
VclPtr< FixedImage > m_xImage
virtual void set_from_icon_name(const OUString &rIconName) override
SalInstanceImage(FixedImage *pImage, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
virtual void set_image(VirtualDevice *pDevice) override
VclPtr< Control > m_xLabel
virtual void set_mnemonic_widget(Widget *pTarget) override
SalInstanceLabel(Control *pLabel, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
virtual void set_font_color(const Color &rColor) override
virtual void set_label_type(weld::LabelType eType) override
virtual void set_font(const vcl::Font &rFont) override
virtual void set_label(const OUString &rText) override
virtual OUString get_label() const override
virtual OUString get_secondary_text() const override
virtual weld::Container * weld_message_area() override
virtual void set_secondary_text(const OUString &rText) override
virtual OUString get_primary_text() const override
virtual void set_primary_text(const OUString &rText) override
VclPtr<::MessageDialog > m_xMessageDialog
SalInstanceMessageDialog(::MessageDialog *pDialog, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
virtual OUString get_tab_label_text(const OUString &rIdent) const override
virtual void set_tab_label_text(const OUString &rIdent, const OUString &rText) override
virtual int get_page_index(const OUString &rIdent) const override
virtual void set_show_tabs(bool bShow) override
virtual OUString get_page_ident(int nPage) const override
std::vector< std::shared_ptr< SalInstanceContainer > > m_aPages
virtual void set_current_page(int nPage) override
virtual ~SalInstanceNotebook() override
virtual void remove_page(const OUString &rIdent) override
VclPtr< TabControl > m_xNotebook
virtual int get_current_page() const override
virtual OUString get_current_page_ident() const override
virtual weld::Container * get_page(const OUString &rIdent) const override
virtual int get_n_pages() const override
std::map< OUString, std::pair< VclPtr< TabPage >, VclPtr< VclGrid > > > m_aAddedPages
virtual void insert_page(const OUString &rIdent, const OUString &rLabel, int nPos) override
SalInstanceNotebook(TabControl *pNotebook, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
SalInstancePopover(DockingWindow *pPopover, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
virtual void popup_at_rect(weld::Widget *pParent, const tools::Rectangle &rRect, weld::Placement ePlace=weld::Placement::Under) override
virtual void resize_to_request() override
virtual void popdown() override
VclPtr< DockingWindow > m_xPopover
virtual OUString get_text() const override
virtual void set_font_color(const Color &rColor) override
virtual bool can_move_cursor_with_up() const override
virtual int vadjustment_get_upper() const override
VclPtr< VclMultiLineEdit > m_xTextView
virtual void set_alignment(TxtAlign eXAlign) override
virtual void select_region(int nStartPos, int nEndPos) override
virtual bool has_focus() const override
virtual ~SalInstanceTextView() override
virtual void cut_clipboard() override
SalInstanceTextView(VclMultiLineEdit *pTextView, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
virtual void copy_clipboard() override
virtual int vadjustment_get_page_size() const override
Link< ScrollBar *, void > m_aOrigVScrollHdl
virtual void set_text(const OUString &rText) override
bool get_selection_bounds(int &rStartPos, int &rEndPos) override
virtual void set_max_length(int nChars) override
virtual int vadjustment_get_value() const override
virtual void paste_clipboard() override
virtual void set_monospace(bool bMonospace) override
virtual void set_font(const vcl::Font &rFont) override
virtual int vadjustment_get_lower() const override
virtual void vadjustment_set_value(int value) override
virtual void set_editable(bool bEditable) override
virtual void connect_cursor_position(const Link< TextView &, void > &rLink) override
virtual bool get_editable() const override
virtual bool can_move_cursor_with_down() const override
virtual void replace_selection(const OUString &rText) override
virtual void queue_draw() override
virtual void connect_visible_range_changed(const Link< weld::TreeView &, void > &rLink) override
virtual void copy_iterator(const weld::TreeIter &rSource, weld::TreeIter &rDest) const override
virtual void unset_drag_dest_row() override
SvTabListBox & getTreeView()
virtual void remove_selection() override
virtual void move_subtree(weld::TreeIter &rNode, const weld::TreeIter *pNewParent, int nIndexInNewParent) override
virtual void visible_foreach(const std::function< bool(weld::TreeIter &)> &func) override
void set_image(SvTreeListEntry *pEntry, const Image &rImage, int col)
virtual void set_sort_column(int nColumn) override
virtual int find_id(const OUString &rId) const override
void set_toggle(SvTreeListEntry *pEntry, TriState eState, int col)
void InvalidateModelEntry(SvTreeListEntry *pEntry)
virtual void show() override
virtual void columns_autosize() override
virtual void set_children_on_demand(const weld::TreeIter &rIter, bool bChildrenOnDemand) override
virtual void end_editing() override
virtual void enable_toggle_buttons(weld::ColumnToggleType eType) override
virtual void remove(int pos) override
virtual void scroll_to_row(int pos) override
virtual std::unique_ptr< weld::TreeIter > make_iterator(const weld::TreeIter *pOrig=nullptr) const override
SalInstanceTreeView(SvTabListBox *pTreeView, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
void AddStringItem(SvTreeListEntry *pEntry, const OUString &rStr, int nCol)
virtual int get_height_rows(int nRows) const override
virtual OUString get_column_title(int nColumn) const override
virtual bool get_children_on_demand(const weld::TreeIter &rIter) const override
virtual int n_children() const override
virtual bool iter_has_child(const weld::TreeIter &rIter) const override
virtual TreeView * get_drag_source() const override
void set_header_item_width(const std::vector< int > &rWidths)
virtual bool get_iter_abs_pos(weld::TreeIter &rIter, int nPos) const
static TriState do_get_toggle(SvTreeListEntry *pEntry, int col)
virtual bool is_selected(int pos) const override
virtual void start_editing(const weld::TreeIter &rIter) override
void do_set_toggle(SvTreeListEntry *pEntry, TriState eState, int col)
SvLBoxButtonData m_aCheckButtonData
void set_text_align(SvTreeListEntry *pEntry, double fAlign, int col)
virtual OUString get_selected_id() const override
void set_id(SvTreeListEntry *pEntry, const OUString &rId)
virtual void insert_separator(int pos, const OUString &) override
virtual void set_column_title(int nColumn, const OUString &rTitle) override
virtual void freeze() override
virtual bool iter_previous(weld::TreeIter &rIter) const override
virtual void set_clicks_to_toggle(int nToggleBehavior) override
virtual int get_selected_index() const override
virtual bool iter_previous_sibling(weld::TreeIter &rIter) const override
virtual bool changed_by_hover() const override
TriState get_toggle(SvTreeListEntry *pEntry, int col) const
virtual void swap(int pos1, int pos2) override
virtual bool iter_next_sibling(weld::TreeIter &rIter) const override
virtual bool get_selected(weld::TreeIter *pIter) const override
virtual void make_unsorted() override
virtual void connect_query_tooltip(const Link< const weld::TreeIter &, OUString > &rLink) override
virtual int vadjustment_get_value() const override
virtual void all_foreach(const std::function< bool(weld::TreeIter &)> &func) override
virtual void set_selection_mode(SelectionMode eMode) override
SvLBoxButtonData m_aRadioButtonData
virtual int find_text(const OUString &rText) const override
virtual void unselect(int pos) override
virtual int iter_compare(const weld::TreeIter &a, const weld::TreeIter &b) const override
SvTreeListEntry * GetPlaceHolderChild(SvTreeListEntry *pEntry) const
VclPtr< SvTabListBox > m_xTreeView
virtual int get_sort_column() const override
void set_text(SvTreeListEntry *pEntry, const OUString &rText, int col)
virtual void set_sort_order(bool bAscending) override
virtual void select(int pos) override
virtual void enable_drag_source(rtl::Reference< TransferDataContainer > &rHelper, sal_uInt8 eDNDConstants) override
virtual ~SalInstanceTreeView() override
virtual bool iter_children(weld::TreeIter &rIter) const override
static bool do_get_sensitive(SvTreeListEntry *pEntry, int col)
static void set_font_color(SvTreeListEntry *pEntry, const Color &rColor)
int to_external_model(int col) const
virtual int get_iter_index_in_parent(const weld::TreeIter &rIter) const override
virtual int count_selected_rows() const override
virtual int get_column_width(int nColumn) const override
o3tl::sorted_vector< SvTreeListEntry * > m_aExpandingPlaceHolderParents
virtual bool iter_next(weld::TreeIter &rIter) const override
virtual void set_cursor(int pos) override
virtual OUString get_selected_text() const override
std::vector< std::unique_ptr< OUString > > m_aUserData
virtual void set_sort_indicator(TriState eState, int col) override
OUString get_text(SvTreeListEntry *pEntry, int col) const
virtual void set_column_custom_renderer(int nColumn, bool bEnable) override
virtual void clear() override
virtual void insert(const weld::TreeIter *pParent, int pos, const OUString *pStr, const OUString *pId, const OUString *pIconName, VirtualDevice *pImageSurface, bool bChildrenOnDemand, weld::TreeIter *pRet) override
virtual TriState get_sort_indicator(int col) const override
virtual bool get_sensitive() const override
bool IsDummyEntry(SvTreeListEntry *pEntry) const
virtual bool get_sort_order() const override
virtual void set_column_editables(const std::vector< bool > &rEditables) override
virtual bool iter_parent(weld::TreeIter &rIter) const override
virtual void expand_row(const weld::TreeIter &rIter) override
void set_text_emphasis(SvTreeListEntry *pEntry, bool bOn, int col=-1)
o3tl::sorted_vector< int > m_aCustomRenders
virtual int get_iter_depth(const weld::TreeIter &rIter) const override
const OUString * getEntryData(int index) const
virtual void thaw() override
virtual void set_centered_column(int nCol) override
virtual void connect_editing(const Link< const weld::TreeIter &, bool > &rStartLink, const Link< const iter_string &, bool > &rEndLink) override
virtual void set_extra_row_indent(const weld::TreeIter &rIter, int nIndentLevel) override
virtual bool get_row_expanded(const weld::TreeIter &rIter) const override
virtual bool get_iter_first(weld::TreeIter &rIter) const override
bool ExpandRow(const SalInstanceTreeIter &rIter)
virtual int iter_n_children(const weld::TreeIter &rIter) const override
int to_internal_model(int col) const
void set_sensitive(SvTreeListEntry *pEntry, bool bSensitive, int col)
virtual int get_cursor_index() const override
virtual tools::Rectangle get_row_area(const weld::TreeIter &rIter) const override
virtual OUString get_id(int pos) const override
virtual void bulk_insert_for_each(int nSourceCount, const std::function< void(weld::TreeIter &, int nSourceIndex)> &func, const weld::TreeIter *pParent=nullptr, const std::vector< int > *pFixedWidths=nullptr) override
virtual void make_sorted() override
virtual bool get_cursor(weld::TreeIter *pIter) const override
virtual void set_show_expanders(bool bShow) override
virtual std::vector< int > get_selected_rows() const override
virtual void vadjustment_set_value(int nValue) override
virtual void collapse_row(const weld::TreeIter &rIter) override
void update_checkbutton_column_width(SvTreeListEntry *pEntry)
virtual void hide() override
void do_insert(const weld::TreeIter *pParent, int pos, const OUString *pStr, const OUString *pId, const OUString *pIconName, const VirtualDevice *pImageSurface, bool bChildrenOnDemand, weld::TreeIter *pRet, bool bIsSeparator)
virtual bool get_dest_row_at_pos(const Point &rPos, weld::TreeIter *pResult, bool bDnDMode, bool bAutoScroll=true) override
bool get_text_emphasis(SvTreeListEntry *pEntry, int col) const
virtual void selected_foreach(const std::function< bool(weld::TreeIter &)> &func) override
virtual void set_column_fixed_widths(const std::vector< int > &rWidths) override
virtual void set_sort_func(const std::function< int(const weld::TreeIter &, const weld::TreeIter &)> &func) override
virtual bool has_toplevel_focus() const override
virtual VclPtr< VirtualDevice > screenshot() override
virtual Point get_position() const override
void clear_child_help(vcl::Window *pParent)
virtual void present() override
virtual void set_window_state(const OUString &rStr) override
virtual void set_modal(bool bModal) override
virtual css::uno::Reference< css::awt::XWindow > GetXWindow() override
virtual void set_centered_on_parent(bool) override
VclPtr< vcl::Window > m_xWindow
virtual void resize_to_request() override
virtual void change_default_widget(weld::Widget *pOld, weld::Widget *pNew) override
SalInstanceWindow(vcl::Window *pWindow, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
virtual SystemEnvData get_system_data() const override
virtual bool get_modal() const override
virtual OUString get_window_state(vcl::WindowDataMask nMask) const override
virtual bool is_default_widget(const weld::Widget *pCandidate) const override
virtual OUString get_title() const override
virtual bool get_resizable() const override
virtual weld::ScreenShotCollection collect_screenshot_data() override
void recursively_unset_default_buttons()
virtual void window_move(int x, int y) override
virtual ~SalInstanceWindow() override
virtual void set_title(const OUString &rTitle) override
void override_child_help(vcl::Window *pParent)
virtual const vcl::ILibreOfficeKitNotifier * GetLOKNotifier() override
virtual tools::Rectangle get_monitor_workarea() const override
void implResetDefault(const vcl::Window *_pWindow)
virtual Size get_size() const override
virtual std::unique_ptr< weld::Builder > CreateBuilder(weld::Widget *pParent, const OUString &rUIRoot, const OUString &rUIFile)
virtual weld::MessageDialog * CreateMessageDialog(weld::Widget *pParent, VclMessageType eMessageType, VclButtonsType eButtonType, const OUString &rPrimaryMessage)
SalInstance(std::unique_ptr< comphelper::SolarMutex > pMutex)
rtl::Reference< vcl::DisplayConnectionDispatch > m_pEventInst
bool CallEventCallback(void const *pEvent, int nBytes)
virtual std::unique_ptr< SalMenuItem > CreateMenuItem(const SalItemParams &pItemData)
virtual std::unique_ptr< weld::Builder > CreateInterimBuilder(vcl::Window *pParent, const OUString &rUIRoot, const OUString &rUIFile, bool bAllowCycleFocusOut, sal_uInt64 nLOKWindowId=0)
virtual weld::Window * GetFrameWeld(const css::uno::Reference< css::awt::XWindow > &rWindow)
void AcquireYieldMutex(sal_uInt32 nCount=1)
virtual OpenGLContext * CreateOpenGLContext()
sal_uInt32 ReleaseYieldMutexAll()
virtual bool DoExecute(int &nExitCode)
virtual std::unique_ptr< SalMenu > CreateMenu(bool bMenuBar, Menu *pMenu)
virtual std::unique_ptr< SalSession > CreateSalSession()
comphelper::SolarMutex * GetYieldMutex()
const std::unique_ptr< comphelper::SolarMutex > m_pYieldMutex
virtual bool StartJob(const OUString *pFileName, const OUString &rJobName, const OUString &rAppName, sal_uInt32 nCopies, bool bCollate, bool bDirect, ImplJobSetup *pSetupData)=0
virtual ~SalTimer() COVERITY_NOEXCEPT_FALSE
virtual ~SalVirtualDevice() override
A construction helper for ScopedVclPtr.
constexpr tools::Long Height() const
void setWidth(tools::Long nWidth)
void setHeight(tools::Long nHeight)
constexpr tools::Long Width() const
void SetDownHdl(const Link< SpinField &, void > &rLink)
void SetUpHdl(const Link< SpinField &, void > &rLink)
void SetFaceColor(const Color &rColor)
const Color & GetWindowColor() const
void SetShadowColor(const Color &rColor)
const Color & GetShadowColor() const
const vcl::Font & GetFieldFont() const
void SetCheckedColor(const Color &rColor)
const Color & GetLightColor() const
void SetButtonTextColor(const Color &rColor)
const Color & GetHighlightColor() const
const Color & GetWarningColor() const
virtual SvLBoxItemType GetType() const =0
void Enable(bool bEnabled)
bool IsSelected(const SvTreeListEntry *pEntry) const
SvTreeListEntry * GetEntryAtAbsPos(sal_uInt32 nAbsPos) const
sal_uInt32 GetSelectionCount() const
SvTreeListEntry * NextSelected(SvTreeListEntry *pEntry) const
SvTreeListEntry * FirstSelected() const
sal_uInt32 GetAbsPos(SvTreeListEntry const *pEntry) const
bool IsExpanded(SvTreeListEntry *pEntry) const
tools::Long GetLogicTab(sal_uInt16 nTab)
virtual OUString GetEntryText(SvTreeListEntry *pEntry) const override
virtual void SetTabs() override
void SetTabJustify(sal_uInt16 nTab, SvTabJustify)
virtual SvTreeListEntry * InsertEntry(const OUString &rText, SvTreeListEntry *pParent=nullptr, bool bChildrenOnDemand=false, sal_uInt32 nPos=TREELIST_APPEND, void *pUserData=nullptr) override
void SetEntryText(SvTreeListEntry *, const OUString &)
void SetTabEditable(sal_uInt16 nTab, bool bEditable)
SvTreeListEntry * Prev(SvTreeListEntry *pEntry) const
void ScrollToAbsPos(tools::Long nPos)
VCL_DLLPRIVATE void CheckBoxInserted(SvTreeListEntry *pEntry)
virtual void Resize() override
virtual bool set_property(const OUString &rKey, const OUString &rValue) override
SvTreeListEntry * GetNextEntryInView(SvTreeListEntry *) const
void RemoveEntry(SvTreeListEntry const *pEntry)
Removes the entry along with all of its descendants.
void SetDeselectHdl(const Link< SvTreeListBox *, void > &rNewHdl)
SvTreeListEntry * FirstChild(SvTreeListEntry *pParent) const
void SetScrolledHdl(const Link< SvTreeListBox *, void > &rLink)
tools::Long getPreferredDimensions(std::vector< tools::Long > &rWidths) const
void SetDoubleClickHdl(const Link< SvTreeListBox *, bool > &rNewHdl)
void EnableInplaceEditing(bool bEnable)
void SetClicksToToggle(sal_Int8 nCount)
bool IsSelectDueToHover() const
void SetTooltipHdl(const Link< SvTreeListEntry *, OUString > &rLink)
void MakeVisible(SvTreeListEntry *pEntry)
SvTreeListEntry * Next(SvTreeListEntry *pEntry) const
tools::Rectangle GetBoundingRect(const SvTreeListEntry *pEntry)
Calculate and return the bounding rectangle of an entry.
SvTreeListEntry * GetEntry(SvTreeListEntry *pParent, sal_uInt32 nPos) const
void SetCollapsedEntryBmp(SvTreeListEntry *_pEntry, const Image &_rImage)
bool Collapse(SvTreeListEntry *pParent)
bool Select(SvTreeListEntry *pEntry, bool bSelect=true)
void SetExpandedEntryBmp(SvTreeListEntry *_pEntry, const Image &_rImage)
SvViewDataItem * GetViewDataItem(SvTreeListEntry const *, SvLBoxItem const *)
void SetCustomRenderHdl(const Link< svtree_render_args, void > &rLink)
virtual void CalcEntryHeight(SvTreeListEntry const *pEntry)
void SetForceMakeVisible(bool bEnable)
void ModelHasEntryInvalidated(SvTreeListEntry *pEntry) override
short GetEntryHeight() const
SvTreeListEntry * GetFirstEntryInView() const
void EditEntry(SvTreeListEntry *pEntry)
void SetSelectionMode(SelectionMode)
SvTreeListEntry * GetCurEntry() const
void SetNodeDefaultImages()
Sets default bitmaps for collapsed and expanded nodes.
SvViewDataEntry * GetViewDataEntry(SvTreeListEntry const *pEntry) const
void EnableCheckButton(SvLBoxButtonData *)
void SetCustomMeasureHdl(const Link< svtree_measure_args, Size > &rLink)
void SetCurEntry(SvTreeListEntry *_pEntry)
void EndEditing(bool bCancel=false)
virtual SvTreeListEntry * GetDropTarget(const Point &)
SvTreeListEntry * First() const
void SetDragHelper(const rtl::Reference< TransferDataContainer > &rHelper, sal_uInt8 eDNDConstants)
void SetSelectHdl(const Link< SvTreeListBox *, void > &rNewHdl)
void SetPopupMenuHdl(const Link< const CommandEvent &, bool > &rLink)
static OUString SearchEntryTextWithHeadTitle(SvTreeListEntry *pEntry)
void SetExpandingHdl(const Link< SvTreeListBox *, bool > &rNewHdl)
void SelectAll(bool bSelect)
virtual void InitViewData(SvViewDataEntry *, SvTreeListEntry *pEntry) override
virtual sal_uInt32 Insert(SvTreeListEntry *pEnt, SvTreeListEntry *pPar, sal_uInt32 nPos=TREELIST_APPEND)
SvTreeListEntry * GetParent(SvTreeListEntry *pEntry) const
SvTreeList * GetModel() const
bool Expand(SvTreeListEntry *pParent)
SvTreeListEntry * PrevSibling() const
SvTreeListEntry * NextSibling() const
const SvLBoxItem * GetFirstItem(SvLBoxItemType eType) const
void * GetUserData() const
void SetExtraIndent(sal_uInt32 nExtraIndent)
SvTLEntryFlags GetFlags() const
const SvLBoxItem & GetItem(size_t nPos) const
void ReplaceItem(std::unique_ptr< SvLBoxItem > pNewItem, size_t nPos)
void SetFlags(SvTLEntryFlags nFlags)
void AddItem(std::unique_ptr< SvLBoxItem > pItem)
void SetTextColor(std::optional< Color > xColor)
void SetUserData(void *pPtr)
void Move(SvTreeListEntry *pSource, SvTreeListEntry *pTarget)
sal_uInt32 GetAbsPos(const SvTreeListEntry *pEntry) const
void SetSortMode(SvSortMode eMode)
SvTreeListEntry * GetEntry(SvTreeListEntry *pParent, sal_uInt32 nPos) const
static sal_uInt32 GetRelPos(const SvTreeListEntry *pChild)
SvSortMode GetSortMode() const
const SvTreeListEntries & GetChildList(SvTreeListEntry *pParent) const
void SetCompareHdl(const Link< const SvSortData &, sal_Int32 > &rLink)
void EnableInvalidate(bool bEnable)
sal_uInt16 GetDepth(const SvTreeListEntry *pEntry) const
bool IsEnableInvalidate() const
void InvalidateEntry(SvTreeListEntry *)
View-dependent data for a tree list entry created in the virtual function SvTreeListBox::CreateViewDa...
void SetSelectable(bool bSelectable)
VclPtr< VirtualDevice > createScreenshot()
void SetWindowState(const vcl::WindowData &rData)
OUString GetWindowState(vcl::WindowDataMask nMask=vcl::WindowDataMask::All) const
void SetDeactivatePageHdl(const Link< TabControl *, bool > &rLink)
sal_uInt16 GetPageCount() const
void SetTabPage(sal_uInt16 nPageId, TabPage *pPage)
virtual bool set_property(const OUString &rKey, const OUString &rValue) override
sal_uInt16 GetPagePos(sal_uInt16 nPageId) const
OUString GetPageName(sal_uInt16 nPageId) const
void SetPageName(sal_uInt16 nPageId, const OUString &rName) const
TabPage * GetTabPage(sal_uInt16 nPageId) const
void SetCurPageId(sal_uInt16 nPageId)
void InsertPage(sal_uInt16 nPageId, const OUString &rText, sal_uInt16 nPos=TAB_APPEND)
sal_uInt16 GetCurPageId() const
OUString const & GetPageText(sal_uInt16 nPageId) const
sal_uInt16 GetPageId(sal_uInt16 nPos) const
void SetPageText(sal_uInt16 nPageId, const OUString &rText)
void SetActivatePageHdl(const Link< TabControl *, void > &rLink)
void RemovePage(sal_uInt16 nPageId)
void SetPriority(TaskPriority ePriority)
void SetTimeout(sal_uInt64 nTimeoutMs)
void SetInvokeHandler(const Link< Timer *, void > &rLink)
virtual void Start(bool bStartTimer=true) override
Schedules the task for execution.
static UnoWrapperBase * GetUnoWrapper(bool bCreateIfNotExists=true)
Get the application's UNO wrapper object.
virtual VclPtr< vcl::Window > GetWindow(const css::uno::Reference< css::awt::XWindow > &rxWindow)=0
Event to pass information for UserDraw() handling eg. in comboboxes.
virtual VclPtr< AbstractScreenshotAnnotationDlg > CreateScreenshotAnnotationDlg(weld::Dialog &rParentDialog)=0
static VclAbstractDialogFactory * Create()
Creates a hierarchy of vcl::Windows (widgets) from a .ui file for dialogs, sidebar,...
void SetStyleUpdatedHdl(const Link< VclDrawingArea &, void > &rLink)
void SetCommandHdl(const Link< const CommandEvent &, bool > &rLink)
void SetMouseMoveHdl(const Link< const MouseEvent &, bool > &rLink)
virtual void MouseButtonUp(const MouseEvent &rMEvt) override
void SetDeleteSurroundingHdl(const Link< const Selection &, bool > &rLink)
void SetQueryTooltipHdl(const Link< tools::Rectangle &, OUString > &rLink)
void SetMouseReleaseHdl(const Link< const MouseEvent &, bool > &rLink)
void SetMousePressHdl(const Link< const MouseEvent &, bool > &rLink)
virtual void MouseMove(const MouseEvent &rMEvt) override
void SetResizeHdl(const Link< const Size &, void > &rLink)
void SetDragHelper(const rtl::Reference< TransferDataContainer > &rHelper, sal_uInt8 eDNDConstants)
void SetStartDragHdl(const Link< VclDrawingArea *, bool > &rLink)
void SetUITestFactory(FactoryFunction pFactoryFunction, void *pUserData)
void SetPaintHdl(const Link< std::pair< vcl::RenderContext &, const tools::Rectangle & >, void > &rLink)
void SetKeyReleaseHdl(const Link< const KeyEvent &, bool > &rLink)
virtual void MouseButtonDown(const MouseEvent &rMEvt) override
void SetGetSurroundingHdl(const Link< OUString &, int > &rLink)
void SetKeyPressHdl(const Link< const KeyEvent &, bool > &rLink)
OUString get_label() const
bool get_expanded() const
void SetExpandedHdl(const Link< VclExpander &, void > &rLink)
vcl::Window * get_label_widget()
void set_expanded(bool bExpanded)
void set_label(const OUString &rLabel)
void set_label(const OUString &rLabel)
vcl::Window * get_label_widget()
OUString get_label() const
ScrollBar & GetVScrollBar() const
void SetModifyHdl(const Link< Edit &, void > &rLink) override
virtual const Selection & GetSelection() const override
virtual void SetSelection(const Selection &rSelection) override
OUString GetText() const override
virtual void Cut() override
virtual void Paste() override
virtual void SetText(const OUString &rStr) override
virtual bool IsReadOnly() const override
virtual void SetReadOnly(bool bReadOnly=true) override
virtual void SetMaxTextLen(sal_Int32 nMaxLen) override
virtual void Copy() override
virtual void ReplaceSelected(const OUString &rStr) override
A construction helper for a temporary VclPtr.
void set(reference_type *pBody)
void reset(reference_type *pBody)
reference_type * get() const
Get the body.
static VclPtr< reference_type > Create(Arg &&... arg)
A construction helper for VclPtr.
vcl::Window * GetWindow() const
void RemovePage(std::u16string_view rPageId)
void SetCurPageId(const OUString &rId)
sal_uInt16 GetPagePos(std::u16string_view rPageId) const
const OUString & GetCurPageId() const
void SetActivatePageHdl(const Link< VerticalTabControl *, void > &rLink)
OUString GetPageText(std::u16string_view rPageId) const
VclPtr< vcl::Window > GetPage(std::u16string_view rPageId) const
sal_uInt16 GetPageCount() const
void SetDeactivatePageHdl(const Link< VerticalTabControl *, bool > &rLink)
const OUString & GetPageId(sal_uInt16 nIndex) const
vcl::Window * GetPageParent()
void InsertPage(const OUString &rPageId, const OUString &rLabel, const Image &rImage, const OUString &rTooltip, VclPtr< vcl::Window > xPage, int nPos=-1)
void SetPageText(std::u16string_view rPageId, const OUString &rText)
bool SetOutputSizePixel(const Size &rNewSize, bool bErase=true, bool bAlphaMaskTransparent=false)
WeldTextFilter(Link< OUString &, bool > &rInsertTextHdl)
virtual OUString filter(const OUString &rText) override
Link< OUString &, bool > & m_rInsertTextHdl
std::unique_ptr< weld::Label > m_xLabel
std::pair< Key, Value > key_value_pair_t
size_type count(const Value &v) const
size_type erase(const Value &x)
std::pair< const_iterator, bool > insert(Value &&x)
static OUString getProductName()
tools::Long GetFontHeight() const
void SetFontHeight(tools::Long nHeight)
sal_uInt16 GetCode() const
VclPtr< OKButton > m_pFinish
bool ShowPage(sal_uInt16 nLevel)
sal_uInt16 GetCurLevel() const
void SetRoadmapHelpId(const OUString &_rId)
void SetItemSelectHdl(const Link< LinkParamNone *, void > &_rHdl)
void AddPage(TabPage *pPage)
const Size & GetPageSizePixel() const
VclPtr< CancelButton > m_pCancel
void SetRoadmapBitmap(const BitmapEx &maBitmap)
void SetPage(sal_uInt16 nLevel, TabPage *pPage)
void SetPageSizePixel(const Size &rSize)
VclPtr< PushButton > m_pNextPage
VclPtr< PushButton > m_pPrevPage
VclPtr< HelpButton > m_pHelp
TabPage * GetPage(sal_uInt16 nLevel) const
Point OutputToScreenPixel(const Point &rPos) const
tools::Long GetTextWidth(const OUString &rStr, sal_Int32 nIndex=0, sal_Int32 nLen=-1, vcl::text::TextLayoutCache const *=nullptr, SalLayoutGlyphs const *const pLayoutCache=nullptr) const
Width of the text.
void SetStyle(WinBits nStyle)
void SetFont(const vcl::Font &rNewFont)
void SetCursorRect(const tools::Rectangle *pRect=nullptr, tools::Long nExtTextInputWidth=0)
void SetUpdateMode(bool bUpdate)
void SetInputContext(const InputContext &rInputContext)
bool IsReallyVisible() const
vcl::Window * GetParent() const
void SetMnemonicActivateHdl(const Link< vcl::Window &, bool > &rLink)
SAL_DLLPRIVATE vcl::Window * ImplGetDlgWindow(sal_uInt16 n, GetDlgWindowType nType, sal_uInt16 nStart=0, sal_uInt16 nEnd=0xFFFF, sal_uInt16 *pIndex=nullptr)
bool IsMouseCaptured() const
void RemoveEventListener(const Link< VclWindowEvent &, void > &rEventListener)
void SetControlForeground()
bool HasChildPathFocus(bool bSystemWindow=false) const
tools::Rectangle GetDesktopRectPixel() const
VclPtr< vcl::Window > GetFocusedWindow() const
const OUString & get_id() const
Get the ID of the window.
sal_uInt16 GetChildCount() const
WindowType GetType() const
float approximate_digit_width() const
virtual void SetSizePixel(const Size &rNewSize)
static DockingManager * GetDockingManager()
void GetBorder(sal_Int32 &rLeftBorder, sal_Int32 &rTopBorder, sal_Int32 &rRightBorder, sal_Int32 &rBottomBorder) const
Size get_preferred_size() const
vcl::Window * GetWindow(GetWindowType nType) const
void SetCursor(vcl::Cursor *pCursor)
void set_grid_left_attach(sal_Int32 nAttach)
SAL_DLLPRIVATE bool ImplIsChild(const vcl::Window *pWindow, bool bSystemWindow=false) const
void set_height_request(sal_Int32 nHeightRequest)
virtual void queue_resize(StateChangedType eReason=StateChangedType::Layout)
void SetAccessible(const css::uno::Reference< css::accessibility::XAccessible > &)
void set_margin_bottom(sal_Int32 nWidth)
void set_id(const OUString &rID)
Sets an ID.
void SetControlBackground()
bool IsUpdateMode() const
void set_margin_end(sal_Int32 nWidth)
sal_Int32 get_margin_end() const
void SetHelpHdl(const Link< vcl::Window &, bool > &rLink)
void reorderWithinParent(sal_uInt16 nNewPosition)
void set_hexpand(bool bExpand)
virtual Point GetPosPixel() const
void SetParent(vcl::Window *pNewParent)
virtual void EnableRTL(bool bEnable=true)
tools::Long GetTextHeight() const
Height where any character of the current font fits; in logic coordinates.
void Enable(bool bEnable=true, bool bChild=true)
void SetAccessibleDescription(const OUString &rDescr)
bool IsMapModeEnabled() const
const AllSettings & GetSettings() const
void Show(bool bVisible=true, ShowFlags nFlags=ShowFlags::NONE)
vcl::Window * GetAccessibleRelationLabeledBy() const
virtual void Paint(vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect)
const OUString & GetHelpId() const
vcl::Font GetControlFont() const
vcl::Font GetPointFont(vcl::RenderContext const &rRenderContext) const
const MapMode & GetMapMode() const
void ToTop(ToTopFlags nFlags=ToTopFlags::NONE)
::OutputDevice const * GetOutDev() const
void SetAccessibleName(const OUString &rName)
const vcl::ILibreOfficeKitNotifier * GetLOKNotifier() const
sal_Int32 get_margin_top() const
SystemWindow * GetSystemWindow() const
sal_Int32 get_margin_start() const
SAL_DLLPRIVATE WindowImpl * ImplGetWindowImpl() const
void SetSettings(const AllSettings &rSettings)
void AddEventListener(const Link< VclWindowEvent &, void > &rEventListener)
void set_margin_top(sal_Int32 nWidth)
sal_Int32 get_height_request() const
virtual css::uno::Reference< css::awt::XVclWindowPeer > GetComponentInterface(bool bCreate=true)
void add_to_size_group(const std::shared_ptr< VclSizeGroup > &xGroup)
SalFrame * ImplGetFrame() const
void AddChildEventListener(const Link< VclWindowEvent &, void > &rEventListener)
sal_Int32 get_grid_left_attach() const
sal_Int32 get_grid_top_attach() const
void set_width_request(sal_Int32 nWidthRequest)
virtual void DumpAsPropertyTree(tools::JsonWriter &)
Dumps itself and potentially its children to a property tree, to be written easily to JSON.
bool IsRTLEnabled() const
Point PixelToLogic(const Point &rDevicePt) const
css::uno::Reference< css::accessibility::XAccessible > GetAccessible(bool bCreate=true)
virtual Size GetSizePixel() const
bool IsControlBackground() const
Point GetPointerPosPixel()
const Color & GetControlBackground() const
virtual void SetPointer(PointerStyle)
vcl::Window * GetAccessibleRelationMemberOf() const
OUString GetAccessibleName() const
sal_Int32 get_width_request() const
virtual void ApplySettings(vcl::RenderContext &rRenderContext)
void set_margin_start(sal_Int32 nWidth)
sal_Int32 get_margin_bottom() const
void SetPaintTransparent(bool bTransparent)
void EnableDocking(bool bEnable=true)
void Invalidate(InvalidateFlags nFlags=InvalidateFlags::NONE)
virtual void SetPosPixel(const Point &rNewPos)
weld::Window * GetFrameWeld() const
void set_grid_top_attach(sal_Int32 nAttach)
void SetQuickHelpText(const OUString &rHelpText)
Point OutputToAbsoluteScreenPixel(const Point &rPos) const
virtual void SetText(const OUString &rStr)
virtual OUString GetText() const
void SetAccessibleRelationLabelFor(vcl::Window *pLabelFor)
css::uno::Reference< css::datatransfer::clipboard::XClipboard > GetClipboard()
vcl::Window * GetFrameWindow() const
void EnableMapMode(bool bEnable=true)
css::uno::Reference< css::datatransfer::dnd::XDropTarget > GetDropTarget()
virtual bool set_property(const OUString &rKey, const OUString &rValue)
Point ScreenToOutputPixel(const Point &rPos) const
void set_vexpand(bool bExpand)
void RemoveChildEventListener(const Link< VclWindowEvent &, void > &rEventListener)
void EnableNativeWidget(bool bEnable=true)
void set_grid_width(sal_Int32 nCols)
const OUString & GetQuickHelpText() const
tools::Rectangle GetWindowExtentsRelative(const vcl::Window &rRelativeWindow) const
void SetAccessibleRelationLabeledBy(vcl::Window *pLabeledBy)
vcl::Window * GetChild(sal_uInt16 nChild) const
void SetDumpAsPropertyTreeHdl(const Link< tools::JsonWriter &, void > &rLink)
OUString GetAccessibleDescription() const
virtual const SystemEnvData * GetSystemData() const
void SetHelpId(const OUString &)
Size signal_custom_get_size(vcl::RenderContext &rDevice)
virtual void connect_container_focus_changed(const Link< Container &, void > &rLink)
void signal_container_focus_changed()
void connect_focus_out(const Link< weld::Widget &, void > &rLink)
void connect_changed(const Link< weld::Entry &, void > &rLink)
std::unique_ptr< Entry > m_xEntry
EntryTreeView(std::unique_ptr< Entry > xEntry, std::unique_ptr< TreeView > xTreeView)
std::unique_ptr< TreeView > m_xTreeView
Link< Entry &, void > m_aCursorPositionHdl
virtual void connect_cursor_position(const Link< Entry &, void > &rLink)
virtual void connect_changed(const Link< Entry &, void > &rLink)
virtual void connect_query_tooltip(const Link< const TreeIter &, OUString > &rLink)
virtual void connect_get_property_tree_elem(const Link< const json_prop_query &, bool > &rLink)
virtual void insert_page(const OUString &rIdent, const OUString &rLabel, int nPos)=0
virtual void set_tab_label_text(const OUString &rIdent, const OUString &rLabel)=0
virtual OUString get_current_page_ident() const =0
virtual int get_n_pages() const =0
virtual OUString get_page_ident(int nPage) const =0
virtual int get_page_index(const OUString &rIdent) const =0
virtual weld::Container * get_page(const OUString &rIdent) const =0
virtual void set_current_page(int nPage)=0
virtual void set_show_tabs(bool bShow)=0
virtual OUString get_tab_label_text(const OUString &rIdent) const =0
virtual void remove_page(const OUString &rIdent)=0
virtual int get_current_page() const =0
virtual void set_position(int nPos)=0
virtual int get_position() const =0
virtual void set_text(const OUString &rText)=0
virtual void set_percentage(int value)=0
virtual OUString get_text() const =0
virtual void set_range(int min, int max)=0
virtual void set_increments(int step, int page)=0
virtual int get_value() const =0
virtual void get_increments(int &step, int &page) const =0
virtual void set_value(int value)=0
virtual void set_mode(VclSizeGroupMode eMode)=0
virtual void add_widget(weld::Widget *pWidget)=0
virtual void connect_cursor_position(const Link< TextView &, void > &rLink)
Link< TextView &, void > m_aCursorPositionHdl
bool signal_collapsing(const TreeIter &rIter)
virtual void connect_editing(const Link< const TreeIter &, bool > &rStartLink, const Link< const iter_string &, bool > &rEndLink)
virtual void connect_visible_range_changed(const Link< TreeView &, void > &rLink)
virtual void set_sort_func(const std::function< int(const weld::TreeIter &, const weld::TreeIter &)> &func)
bool signal_expanding(const TreeIter &rIter)
virtual void connect_query_tooltip(const Link< const TreeIter &, OUString > &rLink)
Link< Widget &, bool > m_aHelpRequestHdl
constexpr ::Color COL_AUTO(ColorTransparency, 0xFF, 0xFF, 0xFF, 0xFF)
virtual void SetText(const OUString &rStr) override
#define HEADERBAR_FULLSIZE
std::function< std::unique_ptr< UIObject >(vcl::Window *)> FactoryFunction
constexpr sal_uInt16 KEY_PAGEDOWN
constexpr sal_uInt16 KEY_UP
constexpr sal_uInt16 KEY_DOWN
constexpr sal_uInt16 KEY_PAGEUP
#define LANGUAGE_DONTKNOW
void sort_native_button_order(const VclBox &rContainer)
bool isContainerWindow(const vcl::Window &rWindow)
#define LINK(Instance, Class, Member)
#define SAL_WARN(area, stream)
#define SAL_N_ELEMENTS(arr)
std::unique_ptr< sal_Int32[]> pData
RttiCompleteObjectLocator col
constexpr std::enable_if_t< std::is_signed_v< T >, std::make_unsigned_t< T > > make_unsigned(T value)
std::shared_ptr< T > make_shared(Args &&... args)
std::basic_string_view< charT, traits > trim(std::basic_string_view< charT, traits > str)
css::uno::Reference< css::linguistic2::XProofreadingIterator > get(css::uno::Reference< css::uno::XComponentContext > const &context)
BitmapEx GetBitmapEx(BitmapEx const &rBitmapEx, DrawModeFlags nDrawMode)
std::tuple< tools::JsonWriter &, const TreeIter &, std::string_view > json_prop_query
std::vector< ScreenShotEntry > ScreenShotCollection
SwNodeOffset min(const SwNodeOffset &a, const SwNodeOffset &b)
Reference< XNameAccess > m_xContainer
#define SAL_FRAME_POSSIZE_X
#define SAL_FRAME_POSSIZE_HEIGHT
#define SAL_FRAME_POSSIZE_WIDTH
#define SAL_FRAME_POSSIZE_Y
static SalInstanceTreeView * g_DragSource
std::set< VclPtr< vcl::Window > > winset
IMPL_LINK_NOARG(SalFlashAttention, FlashTimeout, Timer *, void)
IMPL_STATIC_LINK_NOARG(SalInstanceTreeView, FinishDragHdl, SvTreeListBox *, void)
static void set_label_wrap(Control &rWidget, bool wrap)
IMPL_LINK(SalInstanceWidget, SettingsChangedHdl, VclWindowEvent &, rEvent, void)
bool(* SALFRAMEPROC)(vcl::Window *pInst, SalEvent nEvent, const void *pEvent)
ImplSVWinData * mpWinData
VclPtr< vcl::Window > mpFocusWin
std::function< void(sal_Int32)> maEndDialogFn
std::shared_ptr< weld::Dialog > mxOwnerSelf
std::shared_ptr< weld::DialogController > mxOwnerDialogController
ImplSVData * ImplGetSVData()
vcl::Window * ImplGetDefaultWindow()
Returns either the application window, or the default GL context window.
OUString VclResId(TranslateId aId)
#define TAB_PAGE_NOTFOUND
@ HIGHEST
These events should run very fast!
std::tuple< vcl::RenderContext &, const tools::Rectangle &, const SvTreeListEntry & > svtree_render_args
std::pair< vcl::RenderContext &, const SvTreeListEntry & > svtree_measure_args
css::uno::Reference< css::accessibility::XAccessibleRelationSet > a11yrelationset
css::uno::Reference< css::accessibility::XAccessible > a11yref
void InvertFocusRect(vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect)
WinBits const WB_CLOSEABLE
WinBits const WB_STDDIALOG
WinBits const WB_DIALOGCONTROL
WinBits const WB_SIZEABLE
WinBits const WB_NOTABSTOP
WinBits const WB_AUTOVSCROLL
WinBits const WB_AUTOHSCROLL
WinBits const WB_WORDBREAK
WinBits const WB_DEFBUTTON
WinBits const WB_CLIPCHILDREN
std::unique_ptr< char[]> aBuffer