summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/app/AppIconControl.cxx
diff options
context:
space:
mode:
authorPhilipp Hofer <philipp.hofer@protonmail.com>2020-11-12 12:54:01 +0100
committerChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2020-11-19 10:43:56 +0100
commit02d65d7a19981d342d9ef3996b296b4efda905a4 (patch)
tree159c522f783bb13f39a12b57379bed0ec4bff85e /dbaccess/source/ui/app/AppIconControl.cxx
parent39821e7d24deffa72bd9254414d4b58f22be2fca (diff)
tdf#123936 Formatting files in module dbaccess with clang-format
Change-Id: I7056dc36b68021bdf16cc6c496645a2797958ab8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105660 Tested-by: Jenkins Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Diffstat (limited to 'dbaccess/source/ui/app/AppIconControl.cxx')
-rw-r--r--dbaccess/source/ui/app/AppIconControl.cxx22
1 files changed, 9 insertions, 13 deletions
diff --git a/dbaccess/source/ui/app/AppIconControl.cxx b/dbaccess/source/ui/app/AppIconControl.cxx
index d481077bdd49..0ae6f1eff01b 100644
--- a/dbaccess/source/ui/app/AppIconControl.cxx
+++ b/dbaccess/source/ui/app/AppIconControl.cxx
@@ -33,7 +33,6 @@
namespace dbaui
{
-
class OApplicationIconControlDropTarget final : public DropTargetHelper
{
private:
@@ -75,17 +74,16 @@ void OApplicationIconControl::Fill()
const char* pLabelResId;
ElementType eType;
const char* aImageResId;
- } aCategories[] = {
- { RID_STR_TABLES_CONTAINER, E_TABLE, BMP_TABLEFOLDER_TREE_L },
- { RID_STR_QUERIES_CONTAINER, E_QUERY, BMP_QUERYFOLDER_TREE_L },
- { RID_STR_FORMS_CONTAINER, E_FORM, BMP_FORMFOLDER_TREE_L },
- { RID_STR_REPORTS_CONTAINER, E_REPORT, BMP_REPORTFOLDER_TREE_L }
- };
+ } aCategories[] = { { RID_STR_TABLES_CONTAINER, E_TABLE, BMP_TABLEFOLDER_TREE_L },
+ { RID_STR_QUERIES_CONTAINER, E_QUERY, BMP_QUERYFOLDER_TREE_L },
+ { RID_STR_FORMS_CONTAINER, E_FORM, BMP_FORMFOLDER_TREE_L },
+ { RID_STR_REPORTS_CONTAINER, E_REPORT, BMP_REPORTFOLDER_TREE_L } };
for (const CategoryDescriptor& aCategorie : aCategories)
{
// E_TABLE is 0, but 0 means void so use id of enum + 1
- std::unique_ptr<ThumbnailViewItem> xItem(new ThumbnailViewItem(*this, aCategorie.eType + 1));
+ std::unique_ptr<ThumbnailViewItem> xItem(
+ new ThumbnailViewItem(*this, aCategorie.eType + 1));
xItem->mbBorder = false;
xItem->maPreview1 = BitmapEx(OUString::createFromAscii(aCategorie.aImageResId));
const Size& rSize = xItem->maPreview1.GetSizePixel();
@@ -186,7 +184,8 @@ sal_Int8 OApplicationIconControl::AcceptDrop(const AcceptDropEvent& rEvt)
{
deselectItems();
SelectItem(nEntry);
- nDropOption = m_pActionListener->queryDrop(rEvt, m_xDropTarget->GetDataFlavorExVector());
+ nDropOption
+ = m_pActionListener->queryDrop(rEvt, m_xDropTarget->GetDataFlavorExVector());
}
}
return nDropOption;
@@ -199,9 +198,7 @@ sal_Int8 OApplicationIconControl::ExecuteDrop(const ExecuteDropEvent& rEvt)
return DND_ACTION_NONE;
}
-OApplicationIconControl::~OApplicationIconControl()
-{
-}
+OApplicationIconControl::~OApplicationIconControl() {}
void OApplicationIconControl::GetFocus()
{
@@ -236,7 +233,6 @@ tools::Rectangle OApplicationIconControl::GetFocusRect()
}
return tools::Rectangle();
}
-
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */