summaryrefslogtreecommitdiff
path: root/sw/source/core/inc/flyfrms.hxx
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>2012-08-30 22:15:58 +0200
committerCédric Bosdonnat <cedric.bosdonnat@free.fr>2012-09-04 12:59:52 +0200
commite598ab04476a32a08f18e8f0662fafa5f78f1a4a (patch)
treeb108dadf6159c35f7e616cb0b950ae9480edad05 /sw/source/core/inc/flyfrms.hxx
parentf28e2820fc4105cf1aa8b1daf075ef540c532572 (diff)
n#775270: clip pictures instead of scaling they don't fit
Word clips pictures that are bigger than a page instead of scaling them down. This patch introduces a new compatibility option to allow clipping a picture in Writer instead of scaling it down. Change-Id: I4defbee05be81e23ec28a2ed272eaf4e4cc6faf5
Diffstat (limited to 'sw/source/core/inc/flyfrms.hxx')
-rw-r--r--sw/source/core/inc/flyfrms.hxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/sw/source/core/inc/flyfrms.hxx b/sw/source/core/inc/flyfrms.hxx
index 13b3c05a2a40..2f10d0cc15b7 100644
--- a/sw/source/core/inc/flyfrms.hxx
+++ b/sw/source/core/inc/flyfrms.hxx
@@ -47,6 +47,8 @@ class SwFlyFreeFrm : public SwFlyFrm
// #i37068# - flag to prevent move in method <CheckClip(..)>
bool mbNoMoveOnCheckClip;
+ SwRect maUnclippedFrm;
+
void CheckClip( const SwFmtFrmSize &rSz ); //'Emergency' Clipping.
/** determines, if direct environment of fly frame has 'auto' size
@@ -106,6 +108,14 @@ public:
}
}
+ inline const SwRect& GetUnclippedFrm( ) const
+ {
+ if ( maUnclippedFrm.HasArea( ) )
+ return maUnclippedFrm;
+ else
+ return Frm();
+ }
+
/** method to determine, if a format on the Writer fly frame is possible
#i28701#