i hope that you add the right to left brochure printing option like in Writer
Steps: 0. Tools > Options > Languages and Locales > General > Default languages for documents > tick "Complex Text Layout" 1. In Writer: File > Print > Page Layout > Brochure: dropdown allows changing between LTR and RTL. Feature is inherited from OOo, and Asian language suppo 2. In Draw: File > Print > Page Layout > Brochure Result: no dropdown to switch between LTR and RTL brochures. Would make perfect sense to make it available, especially since Draw can be used for creating communication materials suited for single- or multi-sheet brochure printing. This was also requested in bug 102074, using the use case of printing Manga, usually in RTL direction. However, that report was marked as fixed only for the availability of the dropdown when Asian language support is turned on - still only for Writer. Version: 24.2.3.2 (X86_64) / LibreOffice Community Build ID: 433d9c2ded56988e8a90e6b2e771ee4e6a5ab2ba CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: gtk3 Locale: en-AU (en_AU.UTF-8); UI: en-US Calc: CL threaded Hossein, wondering if this could be an easyHack?
(In reply to Stéphane Guillou (stragu) from comment #1) > Hossein, wondering if this could be an easyHack? Yes, I think so. Code pointers: Searching for the string "brochure" leads to the constant STR_PRINTOPTUI_BROCHURE: $ git grep -i brochure *.hrc This constant is used in sw/source/core/view/printdata.cxx, which provides such an option in Writer. This part of code is relevant: // check if either CJK or CTL is enabled bool bRTL = SvtCJKOptions::IsCJKFontEnabled() || SvtCTLOptions::IsCTLFontEnabled(); ... if (bRTL) { // create a bool option for brochure RTL dependent on brochure uno::Sequence< OUString > aBRTLChoices{ SwResId( STR_PRINTOPTUI_LEFT_SCRIPT), SwResId( STR_PRINTOPTUI_RIGHT_SCRIPT) }; vcl::PrinterOptionsHelper::UIControlOptions aBrochureRTLOpt( aBrochurePropertyName, -1, true ); uno::Sequence<OUString> aBRTLHelpIds { ".HelpID:vcl:PrintDialog:PrintProspectRTL:ListBox" }; aBrochureRTLOpt.maGroupHint = "LayoutPage"; // RTL brochure choices // 0 : left-to-right // 1 : right-to-left const sal_Int16 nBRTLChoice = rDefaultPrintData.IsPrintProspectRTL() ? 1 : 0; m_aUIProperties[ nIdx++ ].Value = setChoiceListControlOpt("scriptdirection", OUString(), aBRTLHelpIds, "PrintProspectRTL", aBRTLChoices, nBRTLChoice, uno::Sequence< sal_Bool >(), aBrochureRTLOpt); } On the other hand, there is not such thing for LTR/RTL selection in sd/ module, which is relevant here. One can find things related to brochure in sd/ with: $ git grep -i brochure sd/ Most of the things related to preparing the print dialog is done in sd/source/ui/view/DocumentRenderer.cxx in a method named ProcessResource(). Similar code should be added to the last parts of this function. The way brochure direction is used in Writer (sw/) can be a blueprint for implementing the same thing in Draw/Impress (sd/).