summaryrefslogtreecommitdiff
path: root/fpicker
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-02-13 19:08:14 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-02-14 10:44:08 +0000
commit8c00536d87010b14a95e9c81f2f5f1d683e5fa70 (patch)
tree92ac779cef9c4f5adb1421f8eee51a301dc8ef61 /fpicker
parent5815ca4ef1126140e08f3a1d106bcadc41044505 (diff)
Convert WindowType to scoped enum
Change-Id: I85cfe02f28729e13f2c0dd3d91cd89e6f3e3b6a9 Reviewed-on: https://gerrit.libreoffice.org/34219 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'fpicker')
-rw-r--r--fpicker/source/office/OfficeControlAccess.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/fpicker/source/office/OfficeControlAccess.cxx b/fpicker/source/office/OfficeControlAccess.cxx
index a8ba8215e99e..74ba41a2b5e4 100644
--- a/fpicker/source/office/OfficeControlAccess.cxx
+++ b/fpicker/source/office/OfficeControlAccess.cxx
@@ -373,7 +373,7 @@ namespace svt
}
else
{
- DBG_ASSERT( WINDOW_LISTBOX == pControl->GetType(), "OControlAccess::SetValue: implGetControl returned nonsense!" );
+ DBG_ASSERT( WindowType::LISTBOX == pControl->GetType(), "OControlAccess::SetValue: implGetControl returned nonsense!" );
implDoListboxAction( static_cast< ListBox* >( pControl ), _nControlAction, _rValue );
}
break;
@@ -597,7 +597,7 @@ namespace svt
case PropFlags::ListItems:
{
- DBG_ASSERT( WINDOW_LISTBOX == _pControl->GetType(),
+ DBG_ASSERT( WindowType::LISTBOX == _pControl->GetType(),
"OControlAccess::implSetControlProperty: invalid control/property combination!" );
Sequence< OUString > aItems;
@@ -627,7 +627,7 @@ namespace svt
case PropFlags::SelectedItem:
{
- DBG_ASSERT( WINDOW_LISTBOX == _pControl->GetType(),
+ DBG_ASSERT( WindowType::LISTBOX == _pControl->GetType(),
"OControlAccess::implSetControlProperty: invalid control/property combination!" );
OUString sSelected;
@@ -644,7 +644,7 @@ namespace svt
case PropFlags::SelectedItemIndex:
{
- DBG_ASSERT( WINDOW_LISTBOX == _pControl->GetType(),
+ DBG_ASSERT( WindowType::LISTBOX == _pControl->GetType(),
"OControlAccess::implSetControlProperty: invalid control/property combination!" );
sal_Int32 nPos = 0;
@@ -661,7 +661,7 @@ namespace svt
case PropFlags::Checked:
{
- DBG_ASSERT( WINDOW_CHECKBOX == _pControl->GetType(),
+ DBG_ASSERT( WindowType::CHECKBOX == _pControl->GetType(),
"OControlAccess::implSetControlProperty: invalid control/property combination!" );
bool bChecked = false;
@@ -707,7 +707,7 @@ namespace svt
case PropFlags::ListItems:
{
- DBG_ASSERT( WINDOW_LISTBOX == _pControl->GetType(),
+ DBG_ASSERT( WindowType::LISTBOX == _pControl->GetType(),
"OControlAccess::implGetControlProperty: invalid control/property combination!" );
Sequence< OUString > aItems( static_cast< ListBox* >( _pControl )->GetEntryCount() );
@@ -721,7 +721,7 @@ namespace svt
case PropFlags::SelectedItem:
{
- DBG_ASSERT( WINDOW_LISTBOX == _pControl->GetType(),
+ DBG_ASSERT( WindowType::LISTBOX == _pControl->GetType(),
"OControlAccess::implGetControlProperty: invalid control/property combination!" );
sal_Int32 nSelected = static_cast< ListBox* >( _pControl )->GetSelectEntryPos();
@@ -734,7 +734,7 @@ namespace svt
case PropFlags::SelectedItemIndex:
{
- DBG_ASSERT( WINDOW_LISTBOX == _pControl->GetType(),
+ DBG_ASSERT( WindowType::LISTBOX == _pControl->GetType(),
"OControlAccess::implGetControlProperty: invalid control/property combination!" );
sal_Int32 nSelected = static_cast< ListBox* >( _pControl )->GetSelectEntryPos();
@@ -746,7 +746,7 @@ namespace svt
break;
case PropFlags::Checked:
- DBG_ASSERT( WINDOW_CHECKBOX == _pControl->GetType(),
+ DBG_ASSERT( WindowType::CHECKBOX == _pControl->GetType(),
"OControlAccess::implGetControlProperty: invalid control/property combination!" );
aReturn <<= static_cast< CheckBox* >( _pControl )->IsChecked( );