sanedlg.cxx (2a97ec55) | sanedlg.cxx (45fd3b9a) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 5 unchanged lines hidden (view full) --- 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 5 unchanged lines hidden (view full) --- 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 |
22 23 | |
24// MARKER(update_precomp.py): autogen include statement, do not remove 25#include "precompiled_extensions.hxx" 26 27#include <stdio.h> 28#include <stdlib.h> 29#include <tools/config.hxx> | 22// MARKER(update_precomp.py): autogen include statement, do not remove 23#include "precompiled_extensions.hxx" 24 25#include <stdio.h> 26#include <stdlib.h> 27#include <tools/config.hxx> |
30 | |
31#include <vcl/msgbox.hxx> 32#include <sanedlg.hxx> 33#include <sanedlg.hrc> 34#include <grid.hxx> 35#include <math.h> | 28#include <vcl/msgbox.hxx> 29#include <sanedlg.hxx> 30#include <sanedlg.hrc> 31#include <grid.hxx> 32#include <math.h> |
33#include <vcl/dibtools.hxx> |
|
36 37#define USE_SAVE_STATE 38#undef SAVE_ALL_STATES 39 40ResId SaneResId( sal_uInt32 nID ) 41{ 42 static ResMgr* pResMgr = ResMgr::CreateResMgr( "san" ); 43 return ResId( nID, *pResMgr ); --- 683 unchanged lines hidden (view full) --- 727 } 728 else 729 { 730#if OSL_DEBUG_LEVEL > 1 731 aTransporter.getStream().Seek( STREAM_SEEK_TO_END ); 732 fprintf( stderr, "Previewbitmapstream contains %d bytes\n", (int)aTransporter.getStream().Tell() ); 733#endif 734 aTransporter.getStream().Seek( STREAM_SEEK_TO_BEGIN ); | 34 35#define USE_SAVE_STATE 36#undef SAVE_ALL_STATES 37 38ResId SaneResId( sal_uInt32 nID ) 39{ 40 static ResMgr* pResMgr = ResMgr::CreateResMgr( "san" ); 41 return ResId( nID, *pResMgr ); --- 683 unchanged lines hidden (view full) --- 725 } 726 else 727 { 728#if OSL_DEBUG_LEVEL > 1 729 aTransporter.getStream().Seek( STREAM_SEEK_TO_END ); 730 fprintf( stderr, "Previewbitmapstream contains %d bytes\n", (int)aTransporter.getStream().Tell() ); 731#endif 732 aTransporter.getStream().Seek( STREAM_SEEK_TO_BEGIN ); |
735 maPreviewBitmap.Read( aTransporter.getStream(), sal_True ); | 733 ReadDIB(maPreviewBitmap, aTransporter.getStream(), true); |
736 } 737 738 SetAdjustedNumericalValue( "resolution", fResl ); 739 maReslBox.SetValue( (sal_uLong)fResl ); 740 741 if( mbDragEnable ) 742 maPreviewRect = Rectangle( maTopLeft, 743 Size( maBottomRight.X() - maTopLeft.X(), --- 684 unchanged lines hidden --- | 734 } 735 736 SetAdjustedNumericalValue( "resolution", fResl ); 737 maReslBox.SetValue( (sal_uLong)fResl ); 738 739 if( mbDragEnable ) 740 maPreviewRect = Rectangle( maTopLeft, 741 Size( maBottomRight.X() - maTopLeft.X(), --- 684 unchanged lines hidden --- |