Hi, While removing the limit of 3 sort criteria in Calc, I more or less intentionally left out fixing the saving of state.
The state is set here: http://opengrok.libreoffice.org/xref/core/sc/source/ui/view/cellsh2.cxx#507 and retrived here: http://opengrok.libreoffice.org/xref/core/sc/source/ui/view/cellsh2.cxx#429 As can be seen in the code above the state is only saved for 3 sort criteria. The state is kept by six RIDs FN_PARAM_1 to FN_PARAM_6, one integer to keep record of the position in the dropdown list, and one boolean to hold the sort order for each criteria. How do I solve this now when the there can be an arbitary number of sort criteria? Is it possible to save the state as two vectors one integer vector, and one bool vector? Vectors with arbitrary lengths. Thanks for your help. /Albert _______________________________________________ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice