summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Bateman <george.bateman16@gmail.com>2020-09-13 11:59:43 +0000
committerJulien Nabet <serval2412@yahoo.fr>2020-09-13 15:32:59 +0200
commitf93f4c10e6e976009606ecc7bb3b8a02afd80fb0 (patch)
treee9fdaaf7dfc93401554140cdf9db14d01e2598ef
parent0743a75a9fd3ef60489154e4ffc706f9dae82399 (diff)
tdf#124176 Use #pragma once in cui
This commit was carried out by a Python script, source of which is at https://bugs.documentfoundation.org/show_bug.cgi?id=124176#c97. Change-Id: Ia0099ecd621f008e497260f26e5754d55d0f09aa Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102549 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
-rw-r--r--cui/inc/bitmaps.hlst5
-rw-r--r--cui/inc/numcategories.hrc5
-rw-r--r--cui/inc/strings.hrc4
-rw-r--r--cui/inc/strings.hxx5
-rw-r--r--cui/inc/tipoftheday.hrc5
-rw-r--r--cui/inc/treeopt.hrc5
-rw-r--r--cui/inc/twolines.hrc5
-rw-r--r--cui/source/factory/dlgfact.hxx5
-rw-r--r--cui/source/inc/DiagramDialog.hxx5
-rw-r--r--cui/source/inc/FontFeaturesDialog.hxx5
-rw-r--r--cui/source/inc/QrCodeGenDialog.hxx5
-rw-r--r--cui/source/inc/SignSignatureLineDialog.hxx5
-rw-r--r--cui/source/inc/SignatureLineDialog.hxx5
-rw-r--r--cui/source/inc/SignatureLineDialogBase.hxx5
-rw-r--r--cui/source/inc/SpellDialog.hxx5
-rw-r--r--cui/source/inc/about.hxx5
-rw-r--r--cui/source/inc/align.hxx5
-rw-r--r--cui/source/inc/autocdlg.hxx5
-rw-r--r--cui/source/inc/backgrnd.hxx5
-rw-r--r--cui/source/inc/bbdlg.hxx5
-rw-r--r--cui/source/inc/border.hxx5
-rw-r--r--cui/source/inc/cfgutil.hxx5
-rw-r--r--cui/source/inc/chardlg.hxx5
-rw-r--r--cui/source/inc/connect.hxx5
-rw-r--r--cui/source/inc/cuifmsearch.hxx5
-rw-r--r--cui/source/inc/cuigaldlg.hxx5
-rw-r--r--cui/source/inc/cuigrfflt.hxx5
-rw-r--r--cui/source/inc/cuihyperdlg.hxx5
-rw-r--r--cui/source/inc/cuiimapwnd.hxx5
-rw-r--r--cui/source/inc/cuioptgenrl.hxx5
-rw-r--r--cui/source/inc/cuisrchdlg.hxx5
-rw-r--r--cui/source/inc/cuitabarea.hxx5
-rw-r--r--cui/source/inc/cuitabline.hxx5
-rw-r--r--cui/source/inc/cuitbxform.hxx5
-rw-r--r--cui/source/inc/dbregister.hxx5
-rw-r--r--cui/source/inc/defdlgname.hxx5
-rw-r--r--cui/source/inc/dlgname.hxx5
-rw-r--r--cui/source/inc/dstribut.hxx5
-rw-r--r--cui/source/inc/grfpage.hxx5
-rw-r--r--cui/source/inc/hangulhanjadlg.hxx5
-rw-r--r--cui/source/inc/headertablistbox.hxx5
-rw-r--r--cui/source/inc/helpids.h5
-rw-r--r--cui/source/inc/hldocntp.hxx5
-rw-r--r--cui/source/inc/hldoctp.hxx5
-rw-r--r--cui/source/inc/hlinettp.hxx5
-rw-r--r--cui/source/inc/hlmailtp.hxx5
-rw-r--r--cui/source/inc/hlmarkwn.hxx5
-rw-r--r--cui/source/inc/hlmarkwn_def.hxx5
-rw-r--r--cui/source/inc/hltpbase.hxx5
-rw-r--r--cui/source/inc/hyphen.hxx5
-rw-r--r--cui/source/inc/iconcdlg.hxx5
-rw-r--r--cui/source/inc/insdlg.hxx5
-rw-r--r--cui/source/inc/insrc.hxx5
-rw-r--r--cui/source/inc/labdlg.hxx5
-rw-r--r--cui/source/inc/linkdlg.hxx5
-rw-r--r--cui/source/inc/macroass.hxx5
-rw-r--r--cui/source/inc/macropg.hxx5
-rw-r--r--cui/source/inc/measure.hxx5
-rw-r--r--cui/source/inc/multipat.hxx5
-rw-r--r--cui/source/inc/newtabledlg.hxx5
-rw-r--r--cui/source/inc/numfmt.hxx5
-rw-r--r--cui/source/inc/numpages.hxx5
-rw-r--r--cui/source/inc/optasian.hxx5
-rw-r--r--cui/source/inc/optdict.hxx5
-rw-r--r--cui/source/inc/optlingu.hxx5
-rw-r--r--cui/source/inc/optpath.hxx5
-rw-r--r--cui/source/inc/page.hxx5
-rw-r--r--cui/source/inc/paragrph.hxx5
-rw-r--r--cui/source/inc/passwdomdlg.hxx5
-rw-r--r--cui/source/inc/pastedlg.hxx5
-rw-r--r--cui/source/inc/postdlg.hxx5
-rw-r--r--cui/source/inc/screenshotannotationdlg.hxx5
-rw-r--r--cui/source/inc/scriptdlg.hxx5
-rw-r--r--cui/source/inc/sdrcelldlg.hxx5
-rw-r--r--cui/source/inc/showcols.hxx5
-rw-r--r--cui/source/inc/splitcelldlg.hxx5
-rw-r--r--cui/source/inc/srchxtra.hxx5
-rw-r--r--cui/source/inc/swpossizetabpage.hxx5
-rw-r--r--cui/source/inc/tabstpge.hxx5
-rw-r--r--cui/source/inc/textanim.hxx5
-rw-r--r--cui/source/inc/textattr.hxx5
-rw-r--r--cui/source/inc/thesdlg.hxx5
-rw-r--r--cui/source/inc/tipofthedaydlg.hxx5
-rw-r--r--cui/source/inc/transfrm.hxx5
-rw-r--r--cui/source/inc/treeopt.hxx5
-rw-r--r--cui/source/inc/zoom.hxx5
-rw-r--r--cui/source/options/optbasic.hxx5
-rw-r--r--cui/source/options/optchart.hxx5
-rw-r--r--cui/source/options/optctl.hxx5
-rw-r--r--cui/source/options/optfltr.hxx5
-rw-r--r--cui/source/options/optgdlg.hxx5
-rw-r--r--cui/source/options/opthtml.hxx5
-rw-r--r--cui/source/options/optinet2.hxx5
-rw-r--r--cui/source/options/optupdt.hxx5
-rw-r--r--cui/source/options/personalization.hxx5
-rw-r--r--cui/source/options/tsaurls.hxx5
-rw-r--r--cui/source/options/webconninfo.hxx5
-rw-r--r--cui/source/tabpages/chardlg.h5
98 files changed, 98 insertions, 391 deletions
diff --git a/cui/inc/bitmaps.hlst b/cui/inc/bitmaps.hlst
index 94d6227acb82..3c0faced780b 100644
--- a/cui/inc/bitmaps.hlst
+++ b/cui/inc/bitmaps.hlst
@@ -7,8 +7,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
-#ifndef INCLUDED_CUI_INC_BITMAPS_HRC
-#define INCLUDED_CUI_INC_BITMAPS_HRC
+#pragma once
#define RID_SVXBMP_CELL_NONE "svx/res/pr01.png"
#define RID_SVXBMP_CELL_NONE_32 "svx/res/border_cell_none_32.png"
@@ -78,6 +77,4 @@
#define RID_SVXBMP_COMPONENT "res/component_16.png"
#define RID_SVXBMP_MACRO "svx/res/id018.png"
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
diff --git a/cui/inc/numcategories.hrc b/cui/inc/numcategories.hrc
index be72fce77ff1..73d25da4f079 100644
--- a/cui/inc/numcategories.hrc
+++ b/cui/inc/numcategories.hrc
@@ -7,8 +7,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
-#ifndef INCLUDED_CUI_INC_NUM_CATEGORIES_HRC
-#define INCLUDED_CUI_INC_NUM_CATEGORIES_HRC
+#pragma once
#define NC_(Context, String) reinterpret_cast<char const *>(Context "\004" u8##String)
@@ -27,6 +26,4 @@ const char* NUM_CATEGORIES[] =
NC_("numberingformatpage|liststore1", "Text")
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
diff --git a/cui/inc/strings.hrc b/cui/inc/strings.hrc
index 92f5b665c7ee..fb43379f1d8b 100644
--- a/cui/inc/strings.hrc
+++ b/cui/inc/strings.hrc
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_INC_STRINGS_HRC
-#define INCLUDED_CUI_INC_STRINGS_HRC
+#pragma once
#define NC_(Context, String) reinterpret_cast<char const *>(Context "\004" u8##String)
@@ -400,6 +399,5 @@
#define RID_SVXSTR_ADDITIONS_SEARCHING NC_("RID_SVXSTR_ADDITIONS_SEARCHING", "Searching...")
#define RID_SVXSTR_ADDITIONS_LOADING NC_("RID_SVXSTR_ADDITIONS_LOADING", "Loading...")
#define RID_SVXSTR_ADDITIONS_DIALOG_TITLE_PREFIX NC_("RID_SVXSTR_ADDITIONS_DIALOG_TITLE_PREFIX", "Extensions")
-#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/inc/strings.hxx b/cui/inc/strings.hxx
index 76d7f06fa0b3..616a5daa6bcb 100644
--- a/cui/inc/strings.hxx
+++ b/cui/inc/strings.hxx
@@ -7,11 +7,8 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
-#ifndef INCLUDED_CUI_INC_STRINGS_HXX
-#define INCLUDED_CUI_INC_STRINGS_HXX
+#pragma once
#define RID_SVXSTR_KEY_BASIC_PATH "BASIC"
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
diff --git a/cui/inc/tipoftheday.hrc b/cui/inc/tipoftheday.hrc
index 15c23a398908..74de677d2b32 100644
--- a/cui/inc/tipoftheday.hrc
+++ b/cui/inc/tipoftheday.hrc
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_INC_TIPOFTHEDAY_HRC
-#define INCLUDED_CUI_INC_TIPOFTHEDAY_HRC
+#pragma once
#define NC_(Context, String) reinterpret_cast<char const *>(Context "\004" u8##String)
@@ -278,6 +277,4 @@ const std::tuple<const char*, OUString, OUString> TIPOFTHEDAY_STRINGARRAY[] =
#define STR_Option NC_("STR_CTRL", "⌥ Opt") //use narrow no-break space U+202F here
-#endif //INCLUDED_CUI_INC_TIPOFTHEDAY_HRC
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/inc/treeopt.hrc b/cui/inc/treeopt.hrc
index ffbfaa5e5e4b..64894a91a5da 100644
--- a/cui/inc/treeopt.hrc
+++ b/cui/inc/treeopt.hrc
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_INC_TREEOPT_HRC
-#define INCLUDED_CUI_INC_TREEOPT_HRC
+#pragma once
#include <sal/types.h>
#include <sfx2/pageids.hxx>
@@ -156,6 +155,4 @@ const std::pair<const char*, sal_uInt16> SID_SB_STARBASEOPTIONS_RES[] =
{ NC_("SID_SB_STARBASEOPTIONS_RES", "Databases"), SID_SB_DBREGISTEROPTIONS }
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/inc/twolines.hrc b/cui/inc/twolines.hrc
index 2e63227d25cf..609e05e267d6 100644
--- a/cui/inc/twolines.hrc
+++ b/cui/inc/twolines.hrc
@@ -7,8 +7,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
-#ifndef INCLUDED_CUI_INC_TWO_LINES_HRC
-#define INCLUDED_CUI_INC_TWO_LINES_HRC
+#pragma once
#include <sal/types.h>
@@ -43,6 +42,4 @@ const std::pair<const char*, sal_uInt16> TWOLINE_CLOSE[] =
{ NC_("twolinespage|liststore2", "Other Characters..."), CHRDLG_ENCLOSE_SPECIAL_CHAR }
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
diff --git a/cui/source/factory/dlgfact.hxx b/cui/source/factory/dlgfact.hxx
index f7e2ffc31b90..d0072f6349c9 100644
--- a/cui/source/factory/dlgfact.hxx
+++ b/cui/source/factory/dlgfact.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_FACTORY_DLGFACT_HXX
-#define INCLUDED_CUI_SOURCE_FACTORY_DLGFACT_HXX
+#pragma once
#include <svx/svxdlg.hxx>
#include <svx/zoom_def.hxx>
@@ -965,6 +964,4 @@ public:
std::shared_ptr<DiagramDataInterface> pDiagramData) override;
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/DiagramDialog.hxx b/cui/source/inc/DiagramDialog.hxx
index e97144050a0e..adc8328969a8 100644
--- a/cui/source/inc/DiagramDialog.hxx
+++ b/cui/source/inc/DiagramDialog.hxx
@@ -7,8 +7,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_DIAGRAMDIALOG_HXX
-#define INCLUDED_CUI_SOURCE_INC_DIAGRAMDIALOG_HXX
+#pragma once
#include <tools/link.hxx>
#include <vcl/weld.hxx>
@@ -37,6 +36,4 @@ private:
void populateTree(const weld::TreeIter* pParent, const OUString& rParentId);
};
-#endif // INCLUDED_CUI_SOURCE_INC_DIAGRAMDIALOG_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/FontFeaturesDialog.hxx b/cui/source/inc/FontFeaturesDialog.hxx
index 93e5f7c4a76e..6fd8b9de037e 100644
--- a/cui/source/inc/FontFeaturesDialog.hxx
+++ b/cui/source/inc/FontFeaturesDialog.hxx
@@ -8,8 +8,7 @@
*
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_FONTFEATURESDIALOG_HXX
-#define INCLUDED_CUI_SOURCE_INC_FONTFEATURESDIALOG_HXX
+#pragma once
#include <vcl/svapp.hxx>
#include <vcl/weld.hxx>
@@ -73,6 +72,4 @@ public:
} // end svx namespaces
-#endif // INCLUDED_CUI_SOURCE_INC_FONTFEATURESDIALOG_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/QrCodeGenDialog.hxx b/cui/source/inc/QrCodeGenDialog.hxx
index 563182d7a043..af4a3a86a87e 100644
--- a/cui/source/inc/QrCodeGenDialog.hxx
+++ b/cui/source/inc/QrCodeGenDialog.hxx
@@ -6,8 +6,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
-#ifndef INCLUDED_CUI_INC_QRCODEGENDIALOG_HXX
-#define INCLUDED_CUI_INC_QRCODEGENDIALOG_HXX
+#pragma once
#include <vcl/weld.hxx>
@@ -41,6 +40,4 @@ private:
static OUString GenerateQRCode(OUString aQrText, long aQrECC, int aQrBorder);
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
diff --git a/cui/source/inc/SignSignatureLineDialog.hxx b/cui/source/inc/SignSignatureLineDialog.hxx
index 6bd08ff4baef..5abe1969e32c 100644
--- a/cui/source/inc/SignSignatureLineDialog.hxx
+++ b/cui/source/inc/SignSignatureLineDialog.hxx
@@ -6,8 +6,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
-#ifndef INCLUDED_CUI_INC_SIGNSIGNATURELINEDIALOG_HXX
-#define INCLUDED_CUI_INC_SIGNSIGNATURELINEDIALOG_HXX
+#pragma once
#include "SignatureLineDialogBase.hxx"
@@ -51,6 +50,4 @@ private:
DECL_LINK(entryChanged, weld::Entry&, void);
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
diff --git a/cui/source/inc/SignatureLineDialog.hxx b/cui/source/inc/SignatureLineDialog.hxx
index fd671acd51fd..73b093f601a5 100644
--- a/cui/source/inc/SignatureLineDialog.hxx
+++ b/cui/source/inc/SignatureLineDialog.hxx
@@ -6,8 +6,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
-#ifndef INCLUDED_CUI_INC_SIGNATURELINEDIALOG_HXX
-#define INCLUDED_CUI_INC_SIGNATURELINEDIALOG_HXX
+#pragma once
#include "SignatureLineDialogBase.hxx"
@@ -34,6 +33,4 @@ private:
virtual void Apply() override;
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
diff --git a/cui/source/inc/SignatureLineDialogBase.hxx b/cui/source/inc/SignatureLineDialogBase.hxx
index 3b065fe87838..2fe0e95d1fec 100644
--- a/cui/source/inc/SignatureLineDialogBase.hxx
+++ b/cui/source/inc/SignatureLineDialogBase.hxx
@@ -6,8 +6,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
-#ifndef INCLUDED_CUI_INC_SIGNATURELINEDIALOGBASE_HXX
-#define INCLUDED_CUI_INC_SIGNATURELINEDIALOGBASE_HXX
+#pragma once
#include <vcl/weld.hxx>
@@ -28,6 +27,4 @@ protected:
static OUString getCDataString(const OUString& rString);
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
diff --git a/cui/source/inc/SpellDialog.hxx b/cui/source/inc/SpellDialog.hxx
index cb23f1004400..0276f3a3a723 100644
--- a/cui/source/inc/SpellDialog.hxx
+++ b/cui/source/inc/SpellDialog.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_SPELLDIALOG_HXX
-#define INCLUDED_CUI_SOURCE_INC_SPELLDIALOG_HXX
+#pragma once
#include <sfx2/basedlgs.hxx>
#include <com/sun/star/uno/Reference.hxx>
@@ -226,6 +225,4 @@ public:
} //namespace svx
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/about.hxx b/cui/source/inc/about.hxx
index df689fdb12ef..27d07ce0d722 100644
--- a/cui/source/inc/about.hxx
+++ b/cui/source/inc/about.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_ABOUT_HXX
-#define INCLUDED_CUI_SOURCE_INC_ABOUT_HXX
+#pragma once
#include <vcl/bitmapex.hxx>
#include <vcl/weld.hxx>
@@ -57,6 +56,4 @@ public:
virtual ~AboutDialog() override;
};
-#endif // INCLUDED_CUI_SOURCE_INC_ABOUT_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/align.hxx b/cui/source/inc/align.hxx
index 43c2fe0ee9eb..d88fc28dce29 100644
--- a/cui/source/inc/align.hxx
+++ b/cui/source/inc/align.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_ALIGN_HXX
-#define INCLUDED_CUI_SOURCE_INC_ALIGN_HXX
+#pragma once
// list box indexes
#define ALIGNDLG_HORALIGN_STD 0
@@ -117,6 +116,4 @@ private:
}
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/autocdlg.hxx b/cui/source/inc/autocdlg.hxx
index e0c780fe831e..17616cf945f8 100644
--- a/cui/source/inc/autocdlg.hxx
+++ b/cui/source/inc/autocdlg.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_AUTOCDLG_HXX
-#define INCLUDED_CUI_SOURCE_INC_AUTOCDLG_HXX
+#pragma once
#include <sfx2/tabdlg.hxx>
#include <svx/langbox.hxx>
@@ -412,6 +411,4 @@ public:
virtual void ActivatePage( const SfxItemSet& ) override;
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/backgrnd.hxx b/cui/source/inc/backgrnd.hxx
index 14d30703e745..5673b2f6067b 100644
--- a/cui/source/inc/backgrnd.hxx
+++ b/cui/source/inc/backgrnd.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_BACKGRND_HXX
-#define INCLUDED_CUI_SOURCE_INC_BACKGRND_HXX
+#pragma once
#include <memory>
@@ -64,7 +63,5 @@ public:
virtual void Reset( const SfxItemSet * ) override;
};
-#endif // INCLUDED_CUI_SOURCE_INC_BACKGRND_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/bbdlg.hxx b/cui/source/inc/bbdlg.hxx
index b25b7cc098da..1c7a289723a6 100644
--- a/cui/source/inc/bbdlg.hxx
+++ b/cui/source/inc/bbdlg.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_BBDLG_HXX
-#define INCLUDED_CUI_SOURCE_INC_BBDLG_HXX
+#pragma once
#include <sfx2/tabdlg.hxx>
@@ -39,6 +38,4 @@ private:
bool mbEnableBackgroundSelector : 1; ///< for Border/Background
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/border.hxx b/cui/source/inc/border.hxx
index 7af464924259..81c0216376e5 100644
--- a/cui/source/inc/border.hxx
+++ b/cui/source/inc/border.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_BORDER_HXX
-#define INCLUDED_CUI_SOURCE_INC_BORDER_HXX
+#pragma once
#include <editeng/shaditem.hxx>
#include <svtools/ctrlbox.hxx>
@@ -189,6 +188,4 @@ private:
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/cfgutil.hxx b/cui/source/inc/cfgutil.hxx
index eac3bf0d9171..b9ee13450422 100644
--- a/cui/source/inc/cfgutil.hxx
+++ b/cui/source/inc/cfgutil.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_CFGUTIL_HXX
-#define INCLUDED_CUI_SOURCE_INC_CFGUTIL_HXX
+#pragma once
#include <vector>
#include <memory>
@@ -258,6 +257,4 @@ public:
void SetRunLabel();
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/chardlg.hxx b/cui/source/inc/chardlg.hxx
index fe8255c34d17..7f94c31ee4ce 100644
--- a/cui/source/inc/chardlg.hxx
+++ b/cui/source/inc/chardlg.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_CHARDLG_HXX
-#define INCLUDED_CUI_SOURCE_INC_CHARDLG_HXX
+#pragma once
#include <svtools/ctrlbox.hxx>
#include <sfx2/tabdlg.hxx>
@@ -337,6 +336,4 @@ public:
virtual void PageCreated(const SfxAllItemSet& aSet) override;
};
-#endif // INCLUDED_CUI_SOURCE_INC_CHARDLG_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/connect.hxx b/cui/source/inc/connect.hxx
index 1b41851476a1..ea97a266c882 100644
--- a/cui/source/inc/connect.hxx
+++ b/cui/source/inc/connect.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_CONNECT_HXX
-#define INCLUDED_CUI_SOURCE_INC_CONNECT_HXX
+#pragma once
#include <svx/connctrl.hxx>
#include <sfx2/tabdlg.hxx>
@@ -81,6 +80,4 @@ public:
const SdrView* pView);
};
-#endif // INCLUDED_CUI_SOURCE_INC_CONNECT_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/cuifmsearch.hxx b/cui/source/inc/cuifmsearch.hxx
index 42183e6278b4..41c4da9f0ddb 100644
--- a/cui/source/inc/cuifmsearch.hxx
+++ b/cui/source/inc/cuifmsearch.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_CUIFMSEARCH_HXX
-#define INCLUDED_CUI_SOURCE_INC_CUIFMSEARCH_HXX
+#pragma once
#include <com/sun/star/sdbc/XResultSet.hpp>
@@ -168,6 +167,4 @@ inline void FmSearchDialog::SetActiveField(const OUString& strField)
OnFieldSelected(*m_plbField);
}
-#endif // INCLUDED_CUI_SOURCE_INC_CUIFMSEARCH_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/cuigaldlg.hxx b/cui/source/inc/cuigaldlg.hxx
index 0ad85b65401d..c89acbfc1294 100644
--- a/cui/source/inc/cuigaldlg.hxx
+++ b/cui/source/inc/cuigaldlg.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_CUIGALDLG_HXX
-#define INCLUDED_CUI_SOURCE_INC_CUIGALDLG_HXX
+#pragma once
#include <sal/config.h>
@@ -272,6 +271,4 @@ public:
static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rSet);
};
-#endif // INCLUDED_CUI_SOURCE_INC_CUIGALDLG_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/cuigrfflt.hxx b/cui/source/inc/cuigrfflt.hxx
index b5280467334d..05cc36292882 100644
--- a/cui/source/inc/cuigrfflt.hxx
+++ b/cui/source/inc/cuigrfflt.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_CUIGRFFLT_HXX
-#define INCLUDED_CUI_SOURCE_INC_CUIGRFFLT_HXX
+#pragma once
#include <vcl/timer.hxx>
#include <svx/dlgctrl.hxx>
@@ -178,6 +177,4 @@ public:
virtual Graphic GetFilteredGraphic(const Graphic& rGraphic, double fScaleX, double fScaleY) override;
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/cuihyperdlg.hxx b/cui/source/inc/cuihyperdlg.hxx
index 70d28c820f1d..cbdc11492719 100644
--- a/cui/source/inc/cuihyperdlg.hxx
+++ b/cui/source/inc/cuihyperdlg.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_CUIHYPERDLG_HXX
-#define INCLUDED_CUI_SOURCE_INC_CUIHYPERDLG_HXX
+#pragma once
#include <sal/config.h>
@@ -136,6 +135,4 @@ public:
};
-#endif // INCLUDED_CUI_SOURCE_INC_CUIHYPERDLG_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/cuiimapwnd.hxx b/cui/source/inc/cuiimapwnd.hxx
index b8fcf1053f2c..ccb65bd487eb 100644
--- a/cui/source/inc/cuiimapwnd.hxx
+++ b/cui/source/inc/cuiimapwnd.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_CUIIMAPWND_HXX
-#define INCLUDED_CUI_SOURCE_INC_CUIIMAPWND_HXX
+#pragma once
#include <vcl/weld.hxx>
#include <sfx2/frame.hxx>
@@ -45,6 +44,4 @@ public:
OUString GetName() const { return m_xEdtName->get_text(); }
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/cuioptgenrl.hxx b/cui/source/inc/cuioptgenrl.hxx
index fa2310d1729d..42cdbbec3aa9 100644
--- a/cui/source/inc/cuioptgenrl.hxx
+++ b/cui/source/inc/cuioptgenrl.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_CUIOPTGENRL_HXX
-#define INCLUDED_CUI_SOURCE_INC_CUIOPTGENRL_HXX
+#pragma once
// include ---------------------------------------------------------------
@@ -69,7 +68,5 @@ public:
virtual void Reset( const SfxItemSet* rSet ) override;
};
-#endif // INCLUDED_CUI_SOURCE_INC_CUIOPTGENRL_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/cuisrchdlg.hxx b/cui/source/inc/cuisrchdlg.hxx
index fc16a4a10d51..b22b3410296b 100644
--- a/cui/source/inc/cuisrchdlg.hxx
+++ b/cui/source/inc/cuisrchdlg.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_CUISRCHDLG_HXX
-#define INCLUDED_CUI_SOURCE_INC_CUISRCHDLG_HXX
+#pragma once
#include <i18nutil/transliteration.hxx>
#include <sfx2/basedlgs.hxx>
@@ -39,6 +38,4 @@ public:
TransliterationFlags GetTransliterationFlags() const;
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/cuitabarea.hxx b/cui/source/inc/cuitabarea.hxx
index 09b9b8becdba..a1927624f20d 100644
--- a/cui/source/inc/cuitabarea.hxx
+++ b/cui/source/inc/cuitabarea.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_CUITABAREA_HXX
-#define INCLUDED_CUI_SOURCE_INC_CUITABAREA_HXX
+#pragma once
#include <svtools/valueset.hxx>
#include <svx/dlgctrl.hxx>
@@ -734,6 +733,4 @@ public:
virtual void FillUserData() override;
};
-#endif // INCLUDED_CUI_SOURCE_INC_CUITABAREA_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/cuitabline.hxx b/cui/source/inc/cuitabline.hxx
index 87ae008da36e..74980bbd5911 100644
--- a/cui/source/inc/cuitabline.hxx
+++ b/cui/source/inc/cuitabline.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_CUITABLINE_HXX
-#define INCLUDED_CUI_SOURCE_INC_CUITABLINE_HXX
+#pragma once
#include <vector>
#include <editeng/brushitem.hxx>
@@ -373,6 +372,4 @@ public:
void SetLineEndChgd( ChangeType* pIn ) { pnLineEndListState = pIn; }
};
-#endif // INCLUDED_CUI_SOURCE_INC_CUITABLINE_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/cuitbxform.hxx b/cui/source/inc/cuitbxform.hxx
index f6e52b094633..f5546f1cdb44 100644
--- a/cui/source/inc/cuitbxform.hxx
+++ b/cui/source/inc/cuitbxform.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_CUITBXFORM_HXX
-#define INCLUDED_CUI_SOURCE_INC_CUITBXFORM_HXX
+#pragma once
#include <vcl/weld.hxx>
@@ -33,6 +32,4 @@ public:
int GetValue() const { return m_xRecordNo->get_value(); }
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/dbregister.hxx b/cui/source/inc/dbregister.hxx
index e1bc2f6b1a28..3e8b592228bb 100644
--- a/cui/source/inc/dbregister.hxx
+++ b/cui/source/inc/dbregister.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_DBREGISTER_HXX
-#define INCLUDED_CUI_SOURCE_INC_DBREGISTER_HXX
+#pragma once
#include <rtl/ustring.hxx>
#include <sfx2/basedlgs.hxx>
@@ -106,7 +105,5 @@ namespace svx
};
}
-#endif // INCLUDED_CUI_SOURCE_INC_DBREGISTER_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/defdlgname.hxx b/cui/source/inc/defdlgname.hxx
index 08aa4249754b..1927e0a7f319 100644
--- a/cui/source/inc/defdlgname.hxx
+++ b/cui/source/inc/defdlgname.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_DEFDLGNAME_HXX
-#define INCLUDED_CUI_SOURCE_INC_DEFDLGNAME_HXX
+#pragma once
// const -----------------------------------------------------------------
@@ -25,6 +24,4 @@
const short RET_BTN_1 = 100;
const short RET_BTN_2 = 101;
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/dlgname.hxx b/cui/source/inc/dlgname.hxx
index 8fd754990885..d305875837c5 100644
--- a/cui/source/inc/dlgname.hxx
+++ b/cui/source/inc/dlgname.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_DLGNAME_HXX
-#define INCLUDED_CUI_SOURCE_INC_DLGNAME_HXX
+#pragma once
#include <vcl/weld.hxx>
@@ -120,6 +119,4 @@ public:
OUString GetDescription() const { return m_xEdtDescription->get_text(); }
};
-#endif // INCLUDED_CUI_SOURCE_INC_DLGNAME_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/dstribut.hxx b/cui/source/inc/dstribut.hxx
index 3d3c99de1c00..847f36ba74a2 100644
--- a/cui/source/inc/dstribut.hxx
+++ b/cui/source/inc/dstribut.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_DSTRIBUT_HXX
-#define INCLUDED_CUI_SOURCE_INC_DSTRIBUT_HXX
+#pragma once
#include <sfx2/tabdlg.hxx>
#include <svx/dstribut_enum.hxx>
@@ -67,6 +66,4 @@ public:
};
-#endif // INCLUDED_CUI_SOURCE_INC_DSTRIBUT_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/grfpage.hxx b/cui/source/inc/grfpage.hxx
index afdc7cb6ba6f..d905622c2faa 100644
--- a/cui/source/inc/grfpage.hxx
+++ b/cui/source/inc/grfpage.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_GRFPAGE_HXX
-#define INCLUDED_CUI_SOURCE_INC_GRFPAGE_HXX
+#pragma once
#include <vcl/customweld.hxx>
#include <vcl/graph.hxx>
@@ -104,6 +103,4 @@ public:
virtual DeactivateRC DeactivatePage( SfxItemSet *pSet ) override;
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/hangulhanjadlg.hxx b/cui/source/inc/hangulhanjadlg.hxx
index 35c62650fec0..61d7f6317246 100644
--- a/cui/source/inc/hangulhanjadlg.hxx
+++ b/cui/source/inc/hangulhanjadlg.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_HANGULHANJADLG_HXX
-#define INCLUDED_CUI_SOURCE_INC_HANGULHANJADLG_HXX
+#pragma once
#include <vcl/customweld.hxx>
#include <vcl/event.hxx>
@@ -299,6 +298,4 @@ namespace svx
};
}
-#endif // SVX_HANGUL_HANJA_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/headertablistbox.hxx b/cui/source/inc/headertablistbox.hxx
index c4c65feacce0..c39f0cb7dfeb 100644
--- a/cui/source/inc/headertablistbox.hxx
+++ b/cui/source/inc/headertablistbox.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_HEADERTABLISTBOX_HXX
-#define INCLUDED_CUI_SOURCE_INC_HEADERTABLISTBOX_HXX
+#pragma once
#include <vcl/weld.hxx>
@@ -37,6 +36,4 @@ public:
}
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/helpids.h b/cui/source/inc/helpids.h
index 3ae4404c138f..437552504d95 100644
--- a/cui/source/inc/helpids.h
+++ b/cui/source/inc/helpids.h
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_HELPID_HRC
-#define INCLUDED_CUI_SOURCE_INC_HELPID_HRC
+#pragma once
#define HID_OPTIONS_COLORCONFIG_SAVE_SCHEME "CUI_HID_OPTIONS_COLORCONFIG_SAVE_SCHEME"
#define HID_OFA_FONT_SUBST_CLB "CUI_HID_OFA_FONT_SUBST_CLB"
@@ -41,6 +40,4 @@
#define HID_SVX_DESCFIELD "CUI_HID_SVX_DESCFIELD"
#define HID_MACRO_HEADERTABLISTBOX "CUI_HID_MACRO_HEADERTABLISTBOX"
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/hldocntp.hxx b/cui/source/inc/hldocntp.hxx
index 719968853643..95a11dd9f1fc 100644
--- a/cui/source/inc/hldocntp.hxx
+++ b/cui/source/inc/hldocntp.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_HLDOCNTP_HXX
-#define INCLUDED_CUI_SOURCE_INC_HLDOCNTP_HXX
+#pragma once
#include "hltpbase.hxx"
@@ -59,6 +58,4 @@ public:
virtual void SetInitFocus() override;
};
-#endif // INCLUDED_CUI_SOURCE_INC_HLDOCNTP_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/hldoctp.hxx b/cui/source/inc/hldoctp.hxx
index 9f5f8395f3c1..73f6218eabc5 100644
--- a/cui/source/inc/hldoctp.hxx
+++ b/cui/source/inc/hldoctp.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_HLDOCTP_HXX
-#define INCLUDED_CUI_SOURCE_INC_HLDOCTP_HXX
+#pragma once
#include "hltpbase.hxx"
@@ -71,6 +70,4 @@ public:
virtual void SetInitFocus() override;
};
-#endif // INCLUDED_CUI_SOURCE_INC_HLDOCTP_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/hlinettp.hxx b/cui/source/inc/hlinettp.hxx
index 115e1e428a47..528a54594fcb 100644
--- a/cui/source/inc/hlinettp.hxx
+++ b/cui/source/inc/hlinettp.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_HLINETTP_HXX
-#define INCLUDED_CUI_SOURCE_INC_HLINETTP_HXX
+#pragma once
#include "cuihyperdlg.hxx"
#include "hltpbase.hxx"
@@ -86,6 +85,4 @@ public:
};
-#endif // INCLUDED_CUI_SOURCE_INC_HLINETTP_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/hlmailtp.hxx b/cui/source/inc/hlmailtp.hxx
index c137a3cf1cfa..12600f32e890 100644
--- a/cui/source/inc/hlmailtp.hxx
+++ b/cui/source/inc/hlmailtp.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_HLMAILTP_HXX
-#define INCLUDED_CUI_SOURCE_INC_HLMAILTP_HXX
+#pragma once
#include "hltpbase.hxx"
@@ -60,6 +59,4 @@ public:
};
-#endif // INCLUDED_CUI_SOURCE_INC_HLMAILTP_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/hlmarkwn.hxx b/cui/source/inc/hlmarkwn.hxx
index 9dd566a74a6c..ee7924e3aa03 100644
--- a/cui/source/inc/hlmarkwn.hxx
+++ b/cui/source/inc/hlmarkwn.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_HLMARKWN_HXX
-#define INCLUDED_CUI_SOURCE_INC_HLMARKWN_HXX
+#pragma once
#include <com/sun/star/container/XNameAccess.hpp>
#include <vcl/weld.hxx>
@@ -67,6 +66,4 @@ public:
sal_uInt16 SetError( sal_uInt16 nError);
};
-#endif // INCLUDED_CUI_SOURCE_INC_HLMARKWN_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/hlmarkwn_def.hxx b/cui/source/inc/hlmarkwn_def.hxx
index 6caa0c510dd8..ab8fd86d5a3b 100644
--- a/cui/source/inc/hlmarkwn_def.hxx
+++ b/cui/source/inc/hlmarkwn_def.hxx
@@ -17,13 +17,10 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_HLMARKWN_DEF_HXX
-#define INCLUDED_CUI_SOURCE_INC_HLMARKWN_DEF_HXX
+#pragma once
#define LERR_NOERROR 0
#define LERR_NOENTRIES 1
#define LERR_DOCNOTOPEN 2
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/hltpbase.hxx b/cui/source/inc/hltpbase.hxx
index 0860fff0e2fc..00cda67f9d02 100644
--- a/cui/source/inc/hltpbase.hxx
+++ b/cui/source/inc/hltpbase.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_HLTPBASE_HXX
-#define INCLUDED_CUI_SOURCE_INC_HLTPBASE_HXX
+#pragma once
#include <sfx2/tabdlg.hxx>
#include <vcl/transfer.hxx>
@@ -133,6 +132,4 @@ protected:
SvxMacroTableDtor* GetMacroTable();
};
-#endif // INCLUDED_CUI_SOURCE_INC_HLTPBASE_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/hyphen.hxx b/cui/source/inc/hyphen.hxx
index fdf65cd4b201..4625d2491e18 100644
--- a/cui/source/inc/hyphen.hxx
+++ b/cui/source/inc/hyphen.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_HYPHEN_HXX
-#define INCLUDED_CUI_SOURCE_INC_HYPHEN_HXX
+#pragma once
#include <memory>
@@ -83,6 +82,4 @@ public:
bool SelRight();
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/iconcdlg.hxx b/cui/source/inc/iconcdlg.hxx
index 230c22be74c2..5cf1ab54f6d7 100644
--- a/cui/source/inc/iconcdlg.hxx
+++ b/cui/source/inc/iconcdlg.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_ICONCDLG_HXX
-#define INCLUDED_CUI_SOURCE_INC_ICONCDLG_HXX
+#pragma once
#include <rtl/ustring.hxx>
#include <sfx2/tabdlg.hxx>
@@ -79,6 +78,4 @@ public:
virtual bool QueryClose();
};
-#endif // INCLUDED_CUI_SOURCE_INC_ICONCDLG_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/insdlg.hxx b/cui/source/inc/insdlg.hxx
index 7c17022edcde..d6bd30ed395d 100644
--- a/cui/source/inc/insdlg.hxx
+++ b/cui/source/inc/insdlg.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_INSDLG_HXX
-#define INCLUDED_CUI_SOURCE_INC_INSDLG_HXX
+#pragma once
#include <com/sun/star/uno/Reference.h>
#include <com/sun/star/embed/XEmbeddedObject.hpp>
@@ -112,6 +111,4 @@ public:
virtual short run() override;
};
-#endif // INCLUDED_CUI_SOURCE_INC_INSDLG_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/insrc.hxx b/cui/source/inc/insrc.hxx
index ea6428eb3a67..e003795383dc 100644
--- a/cui/source/inc/insrc.hxx
+++ b/cui/source/inc/insrc.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_INSRC_HXX
-#define INCLUDED_CUI_SOURCE_INC_INSRC_HXX
+#pragma once
#include <rtl/string.hxx>
#include <svx/svxdlg.hxx>
@@ -39,6 +38,4 @@ public:
virtual sal_uInt16 getInsertCount() const override;
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/labdlg.hxx b/cui/source/inc/labdlg.hxx
index d759df2e6e06..d55c8b8d44ec 100644
--- a/cui/source/inc/labdlg.hxx
+++ b/cui/source/inc/labdlg.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_LABDLG_HXX
-#define INCLUDED_CUI_SOURCE_INC_LABDLG_HXX
+#pragma once
#include <svtools/valueset.hxx>
#include <sfx2/tabdlg.hxx>
@@ -114,6 +113,4 @@ public:
};
-#endif // INCLUDED_CUI_SOURCE_INC_LABDLG_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/linkdlg.hxx b/cui/source/inc/linkdlg.hxx
index 90d51aba828e..e91aa0f2f6d8 100644
--- a/cui/source/inc/linkdlg.hxx
+++ b/cui/source/inc/linkdlg.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_LINKDLG_HXX
-#define INCLUDED_CUI_SOURCE_INC_LINKDLG_HXX
+#pragma once
#include <vcl/idle.hxx>
#include <vcl/virdev.hxx>
@@ -80,6 +79,4 @@ public:
void SetActLink( sfx2::SvBaseLink const * pLink );
};
-#endif // INCLUDED_CUI_SOURCE_INC_LINKDLG_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/macroass.hxx b/cui/source/inc/macroass.hxx
index d4403686c237..ea365b225747 100644
--- a/cui/source/inc/macroass.hxx
+++ b/cui/source/inc/macroass.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_MACROASS_HXX
-#define INCLUDED_CUI_SOURCE_INC_MACROASS_HXX
+#pragma once
#include <sal/config.h>
@@ -87,6 +86,4 @@ public:
}
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/macropg.hxx b/cui/source/inc/macropg.hxx
index 26ea92f65ad5..2c1bd1a1259a 100644
--- a/cui/source/inc/macropg.hxx
+++ b/cui/source/inc/macropg.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_MACROPG_HXX
-#define INCLUDED_CUI_SOURCE_INC_MACROPG_HXX
+#pragma once
#include <sfx2/basedlgs.hxx>
#include <sfx2/tabdlg.hxx>
@@ -125,6 +124,4 @@ public:
);
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/measure.hxx b/cui/source/inc/measure.hxx
index 7915fcc381ea..8f8836d0b8ed 100644
--- a/cui/source/inc/measure.hxx
+++ b/cui/source/inc/measure.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_MEASURE_HXX
-#define INCLUDED_CUI_SOURCE_INC_MEASURE_HXX
+#pragma once
#include <sfx2/basedlgs.hxx>
#include <svx/dlgctrl.hxx>
@@ -93,6 +92,4 @@ public:
const SdrView* pView);
};
-#endif // INCLUDED_CUI_SOURCE_INC_MEASURE_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/multipat.hxx b/cui/source/inc/multipat.hxx
index fcc60bb08693..3f747f21aadd 100644
--- a/cui/source/inc/multipat.hxx
+++ b/cui/source/inc/multipat.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_MULTIPAT_HXX
-#define INCLUDED_CUI_SOURCE_INC_MULTIPAT_HXX
+#pragma once
#include <vcl/weld.hxx>
@@ -74,6 +73,4 @@ public:
void SetTitle(const OUString& rTitle) { m_xDialog->set_title(rTitle); }
};
-#endif // INCLUDED_CUI_SOURCE_INC_MULTIPAT_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/newtabledlg.hxx b/cui/source/inc/newtabledlg.hxx
index d0e21293ca52..b62e1199e44d 100644
--- a/cui/source/inc/newtabledlg.hxx
+++ b/cui/source/inc/newtabledlg.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_NEWTABLEDLG_HXX
-#define INCLUDED_CUI_SOURCE_INC_NEWTABLEDLG_HXX
+#pragma once
#include <svx/svxdlg.hxx>
#include <vcl/weld.hxx>
@@ -70,6 +69,4 @@ public:
}
};
-#endif // INCLUDED_CUI_SOURCE_INC_NEWTABLEDLG_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/numfmt.hxx b/cui/source/inc/numfmt.hxx
index 23e6806d3a2c..a3368003859d 100644
--- a/cui/source/inc/numfmt.hxx
+++ b/cui/source/inc/numfmt.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_NUMFMT_HXX
-#define INCLUDED_CUI_SOURCE_INC_NUMFMT_HXX
+#pragma once
#include <rtl/ustring.hxx>
@@ -151,6 +150,4 @@ private:
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/numpages.hxx b/cui/source/inc/numpages.hxx
index 26ec055e249b..14b713cf95c3 100644
--- a/cui/source/inc/numpages.hxx
+++ b/cui/source/inc/numpages.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_NUMPAGES_HXX
-#define INCLUDED_CUI_SOURCE_INC_NUMPAGES_HXX
+#pragma once
#include <vector>
#include <memory>
@@ -382,6 +381,4 @@ public:
virtual void PageCreated(const SfxAllItemSet& aSet) override;
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/optasian.hxx b/cui/source/inc/optasian.hxx
index d8febfb7bb60..32015f5f8b98 100644
--- a/cui/source/inc/optasian.hxx
+++ b/cui/source/inc/optasian.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_OPTASIAN_HXX
-#define INCLUDED_CUI_SOURCE_INC_OPTASIAN_HXX
+#pragma once
#include <memory>
#include <sfx2/tabdlg.hxx>
@@ -56,6 +55,4 @@ public:
virtual void Reset( const SfxItemSet* rSet ) override;
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/optdict.hxx b/cui/source/inc/optdict.hxx
index 7d8ffd522c82..2465613322af 100644
--- a/cui/source/inc/optdict.hxx
+++ b/cui/source/inc/optdict.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_OPTDICT_HXX
-#define INCLUDED_CUI_SOURCE_INC_OPTDICT_HXX
+#pragma once
#include <vcl/weld.hxx>
#include <com/sun/star/uno/Reference.hxx>
@@ -107,6 +106,4 @@ public:
virtual ~SvxEditDictionaryDialog() override;
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/optlingu.hxx b/cui/source/inc/optlingu.hxx
index 7b9ac01cd6d9..6edc093cb169 100644
--- a/cui/source/inc/optlingu.hxx
+++ b/cui/source/inc/optlingu.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_OPTLINGU_HXX
-#define INCLUDED_CUI_SOURCE_INC_OPTLINGU_HXX
+#pragma once
#include <sfx2/tabdlg.hxx>
#include <svx/langbox.hxx>
@@ -144,6 +143,4 @@ public:
void HideGroups( sal_uInt16 nGrp );
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/optpath.hxx b/cui/source/inc/optpath.hxx
index cc3d67b42a05..4447c98425b9 100644
--- a/cui/source/inc/optpath.hxx
+++ b/cui/source/inc/optpath.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_OPTPATH_HXX
-#define INCLUDED_CUI_SOURCE_INC_OPTPATH_HXX
+#pragma once
#include <memory>
#include <sfx2/tabdlg.hxx>
@@ -66,6 +65,4 @@ public:
virtual void Reset( const SfxItemSet* rSet ) override;
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/page.hxx b/cui/source/inc/page.hxx
index 1019a9fbc214..d16b8adaf297 100644
--- a/cui/source/inc/page.hxx
+++ b/cui/source/inc/page.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_PAGE_HXX
-#define INCLUDED_CUI_SOURCE_INC_PAGE_HXX
+#pragma once
#include <sfx2/tabdlg.hxx>
#include <svx/pagectrl.hxx>
@@ -180,6 +179,4 @@ public:
virtual void PageCreated(const SfxAllItemSet& aSet) override;
};
-#endif // INCLUDED_CUI_SOURCE_INC_PAGE_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/paragrph.hxx b/cui/source/inc/paragrph.hxx
index b57199d91551..47c4e888c2d7 100644
--- a/cui/source/inc/paragrph.hxx
+++ b/cui/source/inc/paragrph.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_PARAGRPH_HXX
-#define INCLUDED_CUI_SOURCE_INC_PARAGRPH_HXX
+#pragma once
#include <sfx2/tabdlg.hxx>
#include <svx/relfld.hxx>
@@ -298,7 +297,5 @@ public:
virtual void ChangesApplied() override;
};
-#endif // INCLUDED_CUI_SOURCE_INC_PARAGRPH_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/passwdomdlg.hxx b/cui/source/inc/passwdomdlg.hxx
index 0f25fa27df18..62f2ba036771 100644
--- a/cui/source/inc/passwdomdlg.hxx
+++ b/cui/source/inc/passwdomdlg.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_PASSWDOMDLG_HXX
-#define INCLUDED_CUI_SOURCE_INC_PASSWDOMDLG_HXX
+#pragma once
#include <sfx2/basedlgs.hxx>
#include <memory>
@@ -65,6 +64,4 @@ public:
bool IsRecommendToOpenReadonly() const;
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/pastedlg.hxx b/cui/source/inc/pastedlg.hxx
index a9a691b4f8f8..72f7911f2c77 100644
--- a/cui/source/inc/pastedlg.hxx
+++ b/cui/source/inc/pastedlg.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_PASTEDLG_HXX
-#define INCLUDED_CUI_SOURCE_INC_PASTEDLG_HXX
+#pragma once
#include <map>
#include <sot/formats.hxx>
@@ -71,6 +70,4 @@ public:
SotClipboardFormatId GetFormat( const TransferableDataHelper& aHelper);
};
-#endif // INCLUDED_CUI_SOURCE_INC_PASTEDLG_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/postdlg.hxx b/cui/source/inc/postdlg.hxx
index 62a3379b9289..206dbdb181bf 100644
--- a/cui/source/inc/postdlg.hxx
+++ b/cui/source/inc/postdlg.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_POSTDLG_HXX
-#define INCLUDED_CUI_SOURCE_INC_POSTDLG_HXX
+#pragma once
#include <sfx2/basedlgs.hxx>
@@ -98,6 +97,4 @@ private:
DECL_LINK(NextHdl, weld::Button&, void);
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/screenshotannotationdlg.hxx b/cui/source/inc/screenshotannotationdlg.hxx
index 94972219dc9f..f82bbeacb392 100644
--- a/cui/source/inc/screenshotannotationdlg.hxx
+++ b/cui/source/inc/screenshotannotationdlg.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_SCREENSHANNDLG_HXX
-#define INCLUDED_CUI_SOURCE_INC_SCREENSHANNDLG_HXX
+#pragma once
#include <vcl/weld.hxx>
#include <memory>
@@ -37,6 +36,4 @@ public:
virtual ~ScreenshotAnnotationDlg() override;
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/scriptdlg.hxx b/cui/source/inc/scriptdlg.hxx
index 8e66fed69a04..846e4a23e3f9 100644
--- a/cui/source/inc/scriptdlg.hxx
+++ b/cui/source/inc/scriptdlg.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_SCRIPTDLG_HXX
-#define INCLUDED_CUI_SOURCE_INC_SCRIPTDLG_HXX
+#pragma once
#include <memory>
#include <sfx2/basedlgs.hxx>
@@ -165,6 +164,4 @@ public:
static void ShowAsyncErrorDialog( weld::Window* pParent, css::uno::Any const & aException );
};
-#endif // INCLUDED_CUI_SOURCE_INC_SCRIPTDLG_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/sdrcelldlg.hxx b/cui/source/inc/sdrcelldlg.hxx
index 50ab4b39ac70..a9f6183bd1d1 100644
--- a/cui/source/inc/sdrcelldlg.hxx
+++ b/cui/source/inc/sdrcelldlg.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_SDRCELLDLG_HXX
-#define INCLUDED_CUI_SOURCE_INC_SDRCELLDLG_HXX
+#pragma once
#include <sfx2/tabdlg.hxx>
@@ -43,7 +42,5 @@ public:
};
-#endif // INCLUDED_CUI_SOURCE_INC_SDRCELLDLG_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/showcols.hxx b/cui/source/inc/showcols.hxx
index 3b15abfd33bb..e378c5e197ec 100644
--- a/cui/source/inc/showcols.hxx
+++ b/cui/source/inc/showcols.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_SHOWCOLS_HXX
-#define INCLUDED_CUI_SOURCE_INC_SHOWCOLS_HXX
+#pragma once
#include <com/sun/star/uno/Reference.hxx>
#include <com/sun/star/container/XIndexContainer.hpp>
@@ -43,6 +42,4 @@ private:
DECL_LINK(OnClickedOk, weld::Button&, void);
};
-#endif // INCLUDED_CUI_SOURCE_INC_SHOWCOLS_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/splitcelldlg.hxx b/cui/source/inc/splitcelldlg.hxx
index b0c2fddae3c7..3b0275acebc4 100644
--- a/cui/source/inc/splitcelldlg.hxx
+++ b/cui/source/inc/splitcelldlg.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_SPLITCELLDLG_HXX
-#define INCLUDED_CUI_SOURCE_INC_SPLITCELLDLG_HXX
+#pragma once
#include <svx/svxdlg.hxx>
#include <vcl/weld.hxx>
@@ -46,6 +45,4 @@ public:
virtual void SetSplitVerticalByDefault() override;
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/srchxtra.hxx b/cui/source/inc/srchxtra.hxx
index 5513ae236a46..4da71f3c9601 100644
--- a/cui/source/inc/srchxtra.hxx
+++ b/cui/source/inc/srchxtra.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_SRCHXTRA_HXX
-#define INCLUDED_CUI_SOURCE_INC_SRCHXTRA_HXX
+#pragma once
#include <sfx2/tabdlg.hxx>
#include <svtools/ctrltool.hxx>
@@ -79,6 +78,4 @@ public:
bool IsRelaxed() const { return m_xRelaxBox->get_active(); }
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/swpossizetabpage.hxx b/cui/source/inc/swpossizetabpage.hxx
index 1fe926566073..03d536512240 100644
--- a/cui/source/inc/swpossizetabpage.hxx
+++ b/cui/source/inc/swpossizetabpage.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_SWPOSSIZETABPAGE_HXX
-#define INCLUDED_CUI_SOURCE_INC_SWPOSSIZETABPAGE_HXX
+#pragma once
#include <sfx2/tabdlg.hxx>
#include <svx/swframeexample.hxx>
@@ -128,6 +127,4 @@ public:
void SetView( const SdrView* pSdrView );
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/tabstpge.hxx b/cui/source/inc/tabstpge.hxx
index 6c9e63b109b8..394c8a44cf18 100644
--- a/cui/source/inc/tabstpge.hxx
+++ b/cui/source/inc/tabstpge.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_TABSTPGE_HXX
-#define INCLUDED_CUI_SOURCE_INC_TABSTPGE_HXX
+#pragma once
#include <vcl/customweld.hxx>
#include <vcl/weld.hxx>
@@ -144,6 +143,4 @@ private:
virtual void PageCreated(const SfxAllItemSet& aSet) override;
};
-#endif // INCLUDED_CUI_SOURCE_INC_TABSTPGE_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/textanim.hxx b/cui/source/inc/textanim.hxx
index 3ae2452b0c0f..04306a7b69db 100644
--- a/cui/source/inc/textanim.hxx
+++ b/cui/source/inc/textanim.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_TEXTANIM_HXX
-#define INCLUDED_CUI_SOURCE_INC_TEXTANIM_HXX
+#pragma once
#include <sfx2/tabdlg.hxx>
#include <svx/sdtakitm.hxx>
@@ -103,6 +102,4 @@ public:
SvxTextTabDialog(weld::Window* pParent, const SfxItemSet* pAttr, const SdrView* pView);
};
-#endif // INCLUDED_CUI_SOURCE_INC_TEXTANIM_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/textattr.hxx b/cui/source/inc/textattr.hxx
index 392794de9543..c2abee744b40 100644
--- a/cui/source/inc/textattr.hxx
+++ b/cui/source/inc/textattr.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_TEXTATTR_HXX
-#define INCLUDED_CUI_SOURCE_INC_TEXTATTR_HXX
+#pragma once
#include <svx/dlgctrl.hxx>
#include <svx/svdobj.hxx>
@@ -90,6 +89,4 @@ public:
virtual void PageCreated(const SfxAllItemSet& aSet) override;
};
-#endif // INCLUDED_CUI_SOURCE_INC_TEXTATTR_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/thesdlg.hxx b/cui/source/inc/thesdlg.hxx
index 65c4050cc4d3..9953b6b30014 100644
--- a/cui/source/inc/thesdlg.hxx
+++ b/cui/source/inc/thesdlg.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_THESDLG_HXX
-#define INCLUDED_CUI_SOURCE_INC_THESDLG_HXX
+#pragma once
#include <com/sun/star/linguistic2/XThesaurus.hpp>
@@ -77,6 +76,4 @@ public:
OUString GetWord() const;
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/tipofthedaydlg.hxx b/cui/source/inc/tipofthedaydlg.hxx
index 425805af6fad..62a8033e3e8c 100644
--- a/cui/source/inc/tipofthedaydlg.hxx
+++ b/cui/source/inc/tipofthedaydlg.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_TIPOFTHEDAYDLG_HXX
-#define INCLUDED_CUI_SOURCE_INC_TIPOFTHEDAYDLG_HXX
+#pragma once
#include <vcl/weld.hxx>
@@ -43,6 +42,4 @@ public:
virtual ~TipOfTheDayDialog() override;
};
-#endif // INCLUDED_CUI_SOURCE_INC_TIPOFTHEDAYDLG_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/transfrm.hxx b/cui/source/inc/transfrm.hxx
index 2c27a19fb69b..33d984ff8b26 100644
--- a/cui/source/inc/transfrm.hxx
+++ b/cui/source/inc/transfrm.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_TRANSFRM_HXX
-#define INCLUDED_CUI_SOURCE_INC_TRANSFRM_HXX
+#pragma once
#include <svx/dlgctrl.hxx>
#include <svx/dialcontrol.hxx>
@@ -246,6 +245,4 @@ public:
};
-#endif // INCLUDED_CUI_SOURCE_INC_TRANSFRM_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/treeopt.hxx b/cui/source/inc/treeopt.hxx
index c2aac20ee6f6..e0ec4eb42354 100644
--- a/cui/source/inc/treeopt.hxx
+++ b/cui/source/inc/treeopt.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_TREEOPT_HXX
-#define INCLUDED_CUI_SOURCE_INC_TREEOPT_HXX
+#pragma once
#include <sal/config.h>
@@ -233,6 +232,4 @@ public:
void SavePage();
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/zoom.hxx b/cui/source/inc/zoom.hxx
index f35a7bfba16a..f338e313305d 100644
--- a/cui/source/inc/zoom.hxx
+++ b/cui/source/inc/zoom.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_INC_ZOOM_HXX
-#define INCLUDED_CUI_SOURCE_INC_ZOOM_HXX
+#pragma once
#include <memory>
#include <sfx2/basedlgs.hxx>
@@ -65,6 +64,4 @@ public:
void SetLimits(sal_uInt16 nMin, sal_uInt16 nMax);
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/options/optbasic.hxx b/cui/source/options/optbasic.hxx
index 5510fc12994c..990b54d4e3bb 100644
--- a/cui/source/options/optbasic.hxx
+++ b/cui/source/options/optbasic.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_OPTIONS_OPTBASIC_HXX
-#define INCLUDED_CUI_SOURCE_OPTIONS_OPTBASIC_HXX
+#pragma once
#include <sfx2/tabdlg.hxx>
@@ -45,6 +44,4 @@ public:
};
-#endif // INCLUDED_CUI_SOURCE_OPTIONS_OPTBASIC_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/options/optchart.hxx b/cui/source/options/optchart.hxx
index eb9b1983b8c3..11221617a9d1 100644
--- a/cui/source/options/optchart.hxx
+++ b/cui/source/options/optchart.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_OPTIONS_OPTCHART_HXX
-#define INCLUDED_CUI_SOURCE_OPTIONS_OPTCHART_HXX
+#pragma once
#include <sfx2/tabdlg.hxx>
#include <svtools/valueset.hxx>
@@ -77,6 +76,4 @@ public:
void SaveChartOptions();
};
-#endif // INCLUDED_CUI_SOURCE_OPTIONS_OPTCHART_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/options/optctl.hxx b/cui/source/options/optctl.hxx
index 5f8e807b1cec..e81d24beaa19 100644
--- a/cui/source/options/optctl.hxx
+++ b/cui/source/options/optctl.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_OPTIONS_OPTCTL_HXX
-#define INCLUDED_CUI_SOURCE_OPTIONS_OPTCTL_HXX
+#pragma once
#include <sfx2/tabdlg.hxx>
@@ -43,6 +42,4 @@ public:
virtual void Reset( const SfxItemSet* rSet ) override;
};
-#endif // INCLUDED_CUI_SOURCE_OPTIONS_OPTCTL_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/options/optfltr.hxx b/cui/source/options/optfltr.hxx
index efc95684328a..061636295848 100644
--- a/cui/source/options/optfltr.hxx
+++ b/cui/source/options/optfltr.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_OPTIONS_OPTFLTR_HXX
-#define INCLUDED_CUI_SOURCE_OPTIONS_OPTFLTR_HXX
+#pragma once
#include <sfx2/tabdlg.hxx>
@@ -77,7 +76,5 @@ public:
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/options/optgdlg.hxx b/cui/source/options/optgdlg.hxx
index 8ddec9631087..5c4177b1f1ba 100644
--- a/cui/source/options/optgdlg.hxx
+++ b/cui/source/options/optgdlg.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_OPTIONS_OPTGDLG_HXX
-#define INCLUDED_CUI_SOURCE_OPTIONS_OPTGDLG_HXX
+#pragma once
#include <memory>
#include <sfx2/tabdlg.hxx>
#include <svx/langbox.hxx>
@@ -182,6 +181,4 @@ public:
virtual void Reset( const SfxItemSet* rSet ) override;
};
-#endif // INCLUDED_CUI_SOURCE_OPTIONS_OPTGDLG_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/options/opthtml.hxx b/cui/source/options/opthtml.hxx
index 0468518f1638..9915c3f0c2a9 100644
--- a/cui/source/options/opthtml.hxx
+++ b/cui/source/options/opthtml.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_OPTIONS_OPTHTML_HXX
-#define INCLUDED_CUI_SOURCE_OPTIONS_OPTHTML_HXX
+#pragma once
#include <sfx2/tabdlg.hxx>
#include <svx/txencbox.hxx>
@@ -57,7 +56,5 @@ public:
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/options/optinet2.hxx b/cui/source/options/optinet2.hxx
index 4d434ce8d03d..25facb94f76f 100644
--- a/cui/source/options/optinet2.hxx
+++ b/cui/source/options/optinet2.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_OPTIONS_OPTINET2_HXX
-#define INCLUDED_CUI_SOURCE_OPTIONS_OPTINET2_HXX
+#pragma once
#include <memory>
#include <sfx2/tabdlg.hxx>
@@ -158,6 +157,4 @@ public:
virtual void Reset( const SfxItemSet* rSet ) override;
};
-#endif // INCLUDED_CUI_SOURCE_OPTIONS_OPTINET2_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/options/optupdt.hxx b/cui/source/options/optupdt.hxx
index bd418991ce5e..3f189a336e18 100644
--- a/cui/source/options/optupdt.hxx
+++ b/cui/source/options/optupdt.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_OPTIONS_OPTUPDT_HXX
-#define INCLUDED_CUI_SOURCE_OPTIONS_OPTUPDT_HXX
+#pragma once
#include <sfx2/tabdlg.hxx>
#include <com/sun/star/container/XNameReplace.hpp>
@@ -67,6 +66,4 @@ public:
virtual void FillUserData() override;
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/options/personalization.hxx b/cui/source/options/personalization.hxx
index 072a89b8135f..671f194c244b 100644
--- a/cui/source/options/personalization.hxx
+++ b/cui/source/options/personalization.hxx
@@ -7,8 +7,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
-#ifndef INCLUDED_CUI_SOURCE_OPTIONS_PERSONALIZATION_HXX
-#define INCLUDED_CUI_SOURCE_OPTIONS_PERSONALIZATION_HXX
+#pragma once
#include <sfx2/tabdlg.hxx>
#include <vector>
@@ -60,6 +59,4 @@ private:
DECL_LINK(DefaultPersona, weld::Button&, void);
};
-#endif // INCLUDED_CUI_SOURCE_OPTIONS_PERSONALIZATION_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/options/tsaurls.hxx b/cui/source/options/tsaurls.hxx
index ddec756bdda4..8fb1d049072b 100644
--- a/cui/source/options/tsaurls.hxx
+++ b/cui/source/options/tsaurls.hxx
@@ -7,8 +7,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
-#ifndef INCLUDED_CUI_SOURCE_OPTIONS_TSAURLS_HXX
-#define INCLUDED_CUI_SOURCE_OPTIONS_TSAURLS_HXX
+#pragma once
#include <vcl/weld.hxx>
@@ -39,6 +38,4 @@ public:
virtual ~TSAURLsDialog() override;
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/options/webconninfo.hxx b/cui/source/options/webconninfo.hxx
index 95d524c8a3bc..6c52d2163100 100644
--- a/cui/source/options/webconninfo.hxx
+++ b/cui/source/options/webconninfo.hxx
@@ -15,8 +15,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_OPTIONS_WEBCONNINFO_HXX
-#define INCLUDED_CUI_SOURCE_OPTIONS_WEBCONNINFO_HXX
+#pragma once
#include <vcl/weld.hxx>
@@ -49,6 +48,4 @@ namespace svx
}
-#endif // INCLUDED_CUI_SOURCE_OPTIONS_WEBCONNINFO_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/tabpages/chardlg.h b/cui/source/tabpages/chardlg.h
index b72beae2e8fc..4a52cb24b4b7 100644
--- a/cui/source/tabpages/chardlg.h
+++ b/cui/source/tabpages/chardlg.h
@@ -16,14 +16,11 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CUI_SOURCE_TABPAGES_CHARDLG_H
-#define INCLUDED_CUI_SOURCE_TABPAGES_CHARDLG_H
+#pragma once
// define ----------------------------------------------------------------
#define CHRDLG_POSITION_OVER 0
#define CHRDLG_POSITION_UNDER 1
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */