summaryrefslogtreecommitdiff
path: root/xfa/src/fxbarcode/BC_UtilRSS.h
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/src/fxbarcode/BC_UtilRSS.h')
-rw-r--r--xfa/src/fxbarcode/BC_UtilRSS.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/xfa/src/fxbarcode/BC_UtilRSS.h b/xfa/src/fxbarcode/BC_UtilRSS.h
new file mode 100644
index 0000000000..37834eaa76
--- /dev/null
+++ b/xfa/src/fxbarcode/BC_UtilRSS.h
@@ -0,0 +1,23 @@
+// Copyright 2014 PDFium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
+
+#ifndef _BC_UTILRESS_H_
+#define _BC_UTILRESS_H_
+class CBC_RssPair;
+class CBC_UtilRSS : public CFX_Object
+{
+public:
+ virtual ~CBC_UtilRSS();
+ static FX_INT32 GetRSSvalue(CFX_Int32Array &widths, FX_INT32 maxWidth, FX_BOOL noNarrow);
+
+protected:
+ static CFX_Int32Array *GetRssWidths(FX_INT32 val, FX_INT32 n, FX_INT32 elements, FX_INT32 maxWidth, FX_BOOL noNarrow);
+ static FX_INT32 Combins(FX_INT32 n, FX_INT32 r);
+ static CFX_Int32Array *Elements(CFX_Int32Array &eDist, FX_INT32 N, FX_INT32 K);
+private:
+ CBC_UtilRSS();
+};
+#endif