View | Details | Raw Unified | Return to issue 119621
Collapse All | Expand All

(-)source/dmapper/DomainMapper_Impl.cxx (-2 / +7 lines)
Lines 2014-2020 Link Here
2014
//                    {
2014
//                    {
2015
                            //todo: entries can only be included completely
2015
                            //todo: entries can only be included completely
2016
//                    }
2016
//                    }
2017
//                  \n Builds a table of contents or a range of entries, sucah as “1-9”, in a table of contents without page numbers
2017
//                  \n Builds a table of contents or a range of entries, sucah as ?-9? in a table of contents without page numbers
2018
//                    if( lcl_FindInCommand( rCommand, 'n', sValue ))
2018
//                    if( lcl_FindInCommand( rCommand, 'n', sValue ))
2019
//                    {
2019
//                    {
2020
                        //todo: what does the description mean?
2020
                        //todo: what does the description mean?
Lines 2721-2727 Link Here
2721
//                    {
2721
//                    {
2722
                            //todo: entries can only be included completely
2722
                            //todo: entries can only be included completely
2723
//                    }
2723
//                    }
2724
//                  \n Builds a table of contents or a range of entries, sucah as “1-9”, in a table of contents without page numbers
2724
//                  \n Builds a table of contents or a range of entries, sucah as ?-9? in a table of contents without page numbers
2725
//                    if( lcl_FindInCommand( pContext->GetCommand(), 'n', sValue ))
2725
//                    if( lcl_FindInCommand( pContext->GetCommand(), 'n', sValue ))
2726
//                    {
2726
//                    {
2727
                        //todo: what does the description mean?
2727
                        //todo: what does the description mean?
Lines 2731-2740 Link Here
2731
    {
2731
    {
2732
        bFromOutline = true;
2732
        bFromOutline = true;
2733
        UniString sParam( sValue );
2733
        UniString sParam( sValue );
2734
		if (!sParam.Len())
2735
			nMaxLevel = WW_OUTLINE_MAX;
2736
		else
2737
		{
2734
        xub_StrLen nIndex = 0;
2738
        xub_StrLen nIndex = 0;
2735
        sParam.GetToken( 0, '-', nIndex );
2739
        sParam.GetToken( 0, '-', nIndex );
2736
        nMaxLevel = sal_Int16( sParam.Copy( nIndex ).ToInt32( ) );
2740
        nMaxLevel = sal_Int16( sParam.Copy( nIndex ).ToInt32( ) );
2737
    }
2741
    }
2742
    }
2738
//                  \p Defines the separator between the table entry and its page number
2743
//                  \p Defines the separator between the table entry and its page number
2739
    if( lcl_FindInCommand( pContext->GetCommand(), 'p', sValue ))
2744
    if( lcl_FindInCommand( pContext->GetCommand(), 'p', sValue ))
2740
        {  }
2745
        {  }

Return to issue 119621