summaryrefslogtreecommitdiff
path: root/xfa/src/fxbarcode/BC_UtilRSS.h
blob: 076e2f263d8214b3be4e5701a00465aac2f6c06b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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:
    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