Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


On Wed, 2012-09-19 at 09:03 +0300, Sagar Srivastava wrote:
Dear All,

Greetings of the day !!!

In the following file : 

filter/source/pdf/impdialog.cxx

Check out the piece of code inside the following method : 


I want to change the macro "RB_RANGE" to another e.g.
RB_RANGE_IMPRESS  at runtime, if the source document is a presentation
document implying "if (mbIsPresentation)".

ImpPDFTabGeneralPage::ImpPDFTabGeneralPage( Window* pParent,
  const SfxItemSet& rCoreSet, bool bIsPresentation ) :
...
  maRbRange( this, 
    PDFFilterResId( bIsPresentation ? RB_RANGE : RB_RANGE_IMPRESS) )
...

would work.

Another option is...

ImpPDFTabGeneralPage::ImpPDFTabGeneralPage( Window* pParent,
  const SfxItemSet& rCoreSet) :
...
  maRbRange( this, PDFFilterResId( RB_RANGE ) )
  maImpressRbRange( this, PDFFilterResId( RB_RANGE_IMPRESS) )
...

if (mbIsPresentation)
   maRbRange.Hide();
else
   maImpressRbRange.Hide();

and change the .src file to have both RB_RANGE and RB_RANGE_IMPRESS
widgets of the same size and position.

C.



Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.