/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
/*
 * This file is part of the LibreOffice project.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * 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/.
 */

module com {  module sun {  module star {  module sheet {

/** Describes how numbers inside text are handled in text comparisons.

    <p>The constants correspond to the ODF attribute
    table:embedded-number-behavior (19.628, part 3 ODF 1.4).</p>

    @since LibreOffice 26.2
 */
published constants SortNumberBehavior
{
    /** Digits inside text are compared alphanumerically.

        <p>"K10" &lt; "K2" &lt; "K3", for example.</p>
      */
    const long ALPHA_NUMERIC = 0;

    /** Comparison of text uses natural sort with decimal numbers.

        <p>Example: "K2" &lt; "K3" &lt; "K10".<br/>
        The number parts inside the text may be decimal numbers.
        Which character is considered a decimal separator, depends on
        the locale. Read ODF standard for details.<br/>
        Example with dot as decimal separator: "K2.40" &lt; "K2.5"</p>
      */
    const long DOUBLE = 1;

    /** Comparison of text uses natural sort with integer numbers.

        <p>Any decimal separator is treated as ordinary character.
        A fractional part is handled as separate number.<br/>
        Example: "K2.5" &lt; "K2.40", because 5 &lt; 40.</p>
      */
    const long INTEGER = 2;
};

}; }; }; };

/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */