summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibPDF/CommonNames.h
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibPDF/CommonNames.h')
-rw-r--r--Userland/Libraries/LibPDF/CommonNames.h64
1 files changed, 64 insertions, 0 deletions
diff --git a/Userland/Libraries/LibPDF/CommonNames.h b/Userland/Libraries/LibPDF/CommonNames.h
new file mode 100644
index 0000000000..7b338db8b9
--- /dev/null
+++ b/Userland/Libraries/LibPDF/CommonNames.h
@@ -0,0 +1,64 @@
+/*
+ * Copyright (c) 2021, Matthew Olsson <mattco@serenityos.org>
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
+
+#pragma once
+
+#include <AK/FlyString.h>
+
+#define ENUMERATE_COMMON_NAMES(V) \
+ V(ASCII85Decode) \
+ V(ASCIIHexDecode) \
+ V(BaseFont) \
+ V(C) \
+ V(CCITTFaxDecode) \
+ V(Contents) \
+ V(Count) \
+ V(CropBox) \
+ V(Crypt) \
+ V(DCTDecode) \
+ V(Dest) \
+ V(F) \
+ V(Filter) \
+ V(First) \
+ V(Fit) \
+ V(FitB) \
+ V(FitBH) \
+ V(FitBV) \
+ V(FitH) \
+ V(FitR) \
+ V(FitV) \
+ V(FlateDecode) \
+ V(Font) \
+ V(JBIG2Decode) \
+ V(JPXDecode) \
+ V(Kids) \
+ V(LZWDecode) \
+ V(Last) \
+ V(Length) \
+ V(MediaBox) \
+ V(Next) \
+ V(Outlines) \
+ V(Pages) \
+ V(Parent) \
+ V(Resources) \
+ V(Root) \
+ V(Rotate) \
+ V(RunLengthDecode) \
+ V(Title) \
+ V(Type) \
+ V(UserUnit) \
+ V(XYZ)
+
+namespace PDF {
+
+class CommonNames {
+public:
+#define ENUMERATE(name) static FlyString name;
+ ENUMERATE_COMMON_NAMES(ENUMERATE)
+#undef ENUMERATE
+};
+
+}