Ignore:
Timestamp:
Jun 30, 2006, 3:46:31 PM (15 years ago)
Author:
Eugene Romanenko
Message:

rotation and text selection in rotated mode fully works

Location:
trunk/Lucide/SOURCE/plugins
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/Lucide/SOURCE/plugins/ludoc/ludoc.cpp

    r35 r59  
    167167                                                                    Environment *ev,
    168168                                                                   long pagenum,
    169                                                                    double scale,
    170169                                                                   LuRectangle* selection)
    171170{
  • trunk/Lucide/SOURCE/plugins/ludoc/ludoc.idl

    r27 r59  
    150150     * getSelectionRectangles
    151151     * pagenum: page number
    152      * scale: scale specified as pixels per point
    153152     * selection: start and end point of selection as a rectangle
    154153     *
     
    164163     **/
    165164    LuRectSequence *getSelectionRectangles( in long pagenum,
    166                                in double scale, in LuRectangle selection );
     165                                           in LuRectangle selection );
    167166
    168167
  • trunk/Lucide/SOURCE/plugins/ludoc/ludoc.xh

    r27 r59  
    232232typedef LuDocument_LuRectSequence*   SOMLINK somTP_LuDocument_getSelectionRectangles(LuDocument *somSelf, Environment *ev,
    233233                long pagenum,
    234                 double scale,
    235234                LuRectangle* selection);
    236235typedef somTP_LuDocument_getSelectionRectangles *somTD_LuDocument_getSelectionRectangles;
     
    590589LuDocument_LuRectSequence*   getSelectionRectangles(Environment *ev,
    591590                long pagenum,
    592                 double scale,
    593591                LuRectangle* selection)
    594592{
    595593   return SOM_ResolveD(this,LuDocument,LuDocument,getSelectionRectangles)
    596         (this, ev,pagenum,scale,selection);
     594        (this, ev,pagenum,selection);
    597595}
    598596
  • trunk/Lucide/SOURCE/plugins/ludoc/ludoc.xih

    r27 r59  
    357357SOM_Scope LuDocument_LuRectSequence*  SOMLINK getSelectionRectangles(LuDocument *somSelf, Environment *ev,
    358358                long pagenum,
    359                 double scale,
    360359                LuRectangle* selection);
    361360#ifndef somMN_getSelectionRectangles_defined
     
    369368static somId somDI_getSelectionRectangles = &somDS_getSelectionRectangles;
    370369#endif  /* somDS_getSelectionRectangles_defined */
    371 
    372 static somFloatMap getSelectionRectanglesFloatMap = {
    373 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, };
    374 
    375 static somMethodInfo getSelectionRectanglesMethodInfo = {1, 24, &getSelectionRectanglesFloatMap};
    376 
    377 static somApRdInfo getSelectionRectanglesStubs = {0, 0, &getSelectionRectanglesMethodInfo};
     370#define getSelectionRectangles_somApRdDefault
    378371
    379372/*
  • trunk/Lucide/SOURCE/plugins/lupoppler/lupoppler.cpp

    r50 r59  
    425425                                                                    Environment *ev,
    426426                                                                   long pagenum,
    427                                                                    double scale,
    428427                                                                   LuRectangle* selection)
    429428{
     
    442441    poppler_selection.y2 = selection->y2;
    443442
    444     GooList *list = text_dev->getSelectionRegion( &poppler_selection, scale );
     443    GooList *list = text_dev->getSelectionRegion( &poppler_selection, 1.0 );
    445444    int len = list->getLength();
    446445
  • trunk/Lucide/SOURCE/plugins/lupoppler/lupoppler.xh

    r27 r59  
    114114typedef LuDocument_LuRectSequence*   SOMLINK somTP_LuPopplerDocument_getSelectionRectangles(LuPopplerDocument *somSelf, Environment *ev,
    115115                long pagenum,
    116                 double scale,
    117116                LuRectangle* selection);
    118117typedef somTP_LuPopplerDocument_getSelectionRectangles *somTD_LuPopplerDocument_getSelectionRectangles;
     
    472471LuDocument_LuRectSequence*   getSelectionRectangles(Environment *ev,
    473472                long pagenum,
    474                 double scale,
    475473                LuRectangle* selection)
    476474{
    477475   return SOM_ResolveD(this,LuPopplerDocument,LuDocument,getSelectionRectangles)
    478         (this, ev,pagenum,scale,selection);
     476        (this, ev,pagenum,selection);
    479477}
    480478
  • trunk/Lucide/SOURCE/plugins/lupoppler/lupoppler.xih

    r27 r59  
    585585SOM_Scope LuDocument_LuRectSequence*  SOMLINK getSelectionRectangles(LuPopplerDocument *somSelf, Environment *ev,
    586586                long pagenum,
    587                 double scale,
    588587                LuRectangle* selection);
    589588static char *somMN_LuPopplerDocumentgetSelectionRectangles = "LuDocument::getSelectionRectangles";
     
    596595typedef LuDocument_LuRectSequence*   SOMLINK somTP_xih_LuPopplerDocument_getSelectionRectangles(LuPopplerDocument *somSelf, Environment *ev,
    597596                long pagenum,
    598                 double scale,
    599597                LuRectangle* selection);
    600598typedef somTP_xih_LuPopplerDocument_getSelectionRectangles *somTD_xih_LuPopplerDocument_getSelectionRectangles;
    601599/* define the parent method call macro */
    602600static somMethodProc* LuPopplerDocument_parent_LuDocument_getSelectionRectangles_resolved;
    603 #define LuPopplerDocument_parent_LuDocument_getSelectionRectangles(somSelf,ev,pagenum,scale,selection) \
     601#define LuPopplerDocument_parent_LuDocument_getSelectionRectangles(somSelf,ev,pagenum,selection) \
    604602  ((( somTD_xih_LuPopplerDocument_getSelectionRectangles ) \
    605603      LuPopplerDocument_parent_LuDocument_getSelectionRectangles_resolved) \
    606         (somSelf,ev,pagenum,scale,selection))
     604        (somSelf,ev,pagenum,selection))
    607605/* define a variety of (possibly ambiguous) short forms */
    608606#ifndef SOMGD_pmc_parent_getSelectionRectangles
     
    622620  #endif
    623621#endif
    624 #define LuPopplerDocument_parents_getSelectionRectangles(somSelf,ev,pagenum,scale,selection) (\
    625    LuPopplerDocument_parent_LuDocument_getSelectionRectangles(somSelf,ev,pagenum,scale,selection))
     622#define LuPopplerDocument_parents_getSelectionRectangles(somSelf,ev,pagenum,selection) (\
     623   LuPopplerDocument_parent_LuDocument_getSelectionRectangles(somSelf,ev,pagenum,selection))
    626624
    627625/*
Note: See TracChangeset for help on using the changeset viewer.