Kaydet (Commit) 33d165a9 authored tarafından Andrea Gelmini's avatar Andrea Gelmini Kaydeden (comit) Samuel Mehrbrodt

Fix typos

Change-Id: I8fd769ca61d1ec1a915a012c0c2244056dc5bcb8
Reviewed-on: https://gerrit.libreoffice.org/18992Reviewed-by: 's avatarSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: 's avatarSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
üst 28803c28
GDIMetaFile class
=================
The GDIMetaFile class reads, writes, manipulates and replays metafiles via the VCL module.
The GDIMetaFile class reads, writes, manipulates and replays metafiles via the VCL module.
A typical usecase is to intialize a new GDIMetaFile, open the actual stored metafile and
A typical use case is to intialize a new GDIMetaFile, open the actual stored metafile and
read it in via GDIMetaFile::Read( aIStream ). This reads in the metafile into the GDIMetafile
object - it can read in an old-style VCLMTF metafile (back in the days that Microsoft didn't
document the metafile format this was used), as well as EMF+ files - and adds them to a list
(vector) of MetaActions. You can also populate your own GDIMetaFile via AddAction(),
RemoveAction(), ReplaceAction(), etc.
RemoveAction(), ReplaceAction(), etc.
Once the GDIMetafile object is read to be used, you can "play" the metafile, pause it, wind
forward or rewind the metafile. The metafile can be moved, scaled, rotated and clipped, as
well have the colours adjusted or replaced, or even made monochrome.
well have the colours adjusted or replaced, or even made monochrome.
The GDIMetafile can be used to get an OutputDevice's metafile via the Linker() and Record()
functions.
functions.
Using GDIMetafile
......
......@@ -242,7 +242,7 @@ public class PersistentWindowTest
DocumentHandle docHandle = null;
try
{
// create component loaader
// create component loader
XComponentLoader xCompLoader = UnoRuntime.queryInterface(XComponentLoader.class, xMSF.createInstance("com.sun.star.frame.Desktop"));
XFramesSupplier xFrameSupp = UnoRuntime.queryInterface(XFramesSupplier.class, xCompLoader);
// close all existing frames
......
......@@ -7,7 +7,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/*
* Timers are evil beasties across platforms ...
* Timers are evil beasts across platforms...
*/
#include <test/bootstrapfixture.hxx>
......
......@@ -615,7 +615,7 @@ void QuartzSalBitmap::ConvertBitmapData( sal_uInt32 nWidth, sal_uInt32 nHeight,
if( !bConverted )
{
// TODO: this implementation is for clarety, not for speed
// TODO: this implementation is for clarity, not for speed
ImplPixelFormat* pD = ImplPixelFormat::GetFormat( nDestBits, rDestPalette );
ImplPixelFormat* pS = ImplPixelFormat::GetFormat( nSrcBits, rSrcPalette );
......
......@@ -400,7 +400,7 @@ void AquaSalGraphics::copyBits( const SalTwoRect& rPosAry, SalGraphics *pSrcGrap
if( (rPosAry.mnSrcWidth == rPosAry.mnDestWidth &&
rPosAry.mnSrcHeight == rPosAry.mnDestHeight) &&
(!mnBitmapDepth || (aDstPoint.x + pSrc->mnWidth) <= mnWidth)
&& pSrc->mxLayer ) // workaround a Quartz crasher
&& pSrc->mxLayer ) // workaround for a Quartz crash
{
// in XOR mode the drawing context is redirected to the XOR mask
// if source and target are identical then copyBits() paints onto the target context though
......
......@@ -120,7 +120,7 @@ IconThemeInfo::ThemeIdToDisplayName(const OUString& themeId)
throw std::runtime_error("IconThemeInfo::ThemeIdToDisplayName() called with invalid id.");
}
// sepcial cases
// special cases
if (themeId.equalsIgnoreAsciiCase(HIGH_CONTRAST_ID)) {
return HIGH_CONTRAST_DISPLAY_NAME;
}
......
......@@ -594,7 +594,7 @@ static void SAL_CALL MainWorkerFunction( void* pArgs )
void CreateMainLoopThread( oslWorkerFunction pWorker, void * pThreadData )
{
#ifdef WNT
// sal thread always call CoInitializeEx, so a sysdepen implementation is necessary
// sal thread always call CoInitializeEx, so a system dependent implementation is necessary
unsigned uThreadID;
hThreadID = (HANDLE)_beginthreadex(
......
......@@ -46,7 +46,7 @@ void MoreButton::ImplInit( vcl::Window* pParent, WinBits nStyle )
ShowState();
SetSymbolAlign(SymbolAlign::RIGHT);
SetImageAlign(ImageAlign::Right); //Resoves: fdo#31849 ensure button remains vertically centered
SetImageAlign(ImageAlign::Right); //Resolves: fdo#31849 ensure button remains vertically centered
SetSmallSymbol();
if ( ! ( nStyle & ( WB_RIGHT | WB_LEFT ) ) )
......
......@@ -1203,7 +1203,7 @@ void TabControl::ImplPaint(vcl::RenderContext& rRenderContext, const Rectangle&
size_t idx;
// Event though there is a tab overlap with GTK+, the first tab is not
// overlapped on the left side. Other tookits ignore this option.
// overlapped on the left side. Other toolkits ignore this option.
if (bDrawTabsRTL)
{
pFirstTab = &mpTabCtrlData->maItemList.front();
......@@ -1722,7 +1722,7 @@ void TabControl::RemovePage( sal_uInt16 nPageId )
if( ! mpTabCtrlData->maItemList.empty() )
{
// don't do this by simply setting mnCurPageId to pFirstItem->mnId
// this leaves a lot of stuff (such trivias as _showing_ the new current page) undone
// this leaves a lot of stuff (such trivia as _showing_ the new current page) undone
// instead, call SetCurPageId
// without this, the next (outside) call to SetCurPageId with the id of the first page
// will result in doing nothing (as we assume that nothing changed, then), and the page
......
......@@ -1728,7 +1728,7 @@ void TextView::ImpShowCursor( bool bGotoCursor, bool bForceVisCursor, bool bSpec
aEditCursor.Left() -= 1;
if ( bGotoCursor
// #i81283# protext maStartDocPos against initialization problems
// #i81283# protect maStartDocPos against initialization problems
&& aOutSz.Width() && aOutSz.Height()
)
{
......
......@@ -85,7 +85,7 @@ class GIFReader : public GraphicReader
bool bImGraphicReady;
bool bGlobalPalette;
sal_uInt8 nBackgroundColor; // backgroundcolour
sal_uInt8 nGCTransparentIndex; // pixelx of this index are transparant
sal_uInt8 nGCTransparentIndex; // pixels of this index are transparant
sal_uInt8 nGCDisposalMethod; // 'Disposal Method' (see GIF docs)
sal_uInt8 cTransIndex1;
sal_uInt8 cNonTransIndex1;
......
......@@ -252,7 +252,7 @@ ReadState XBMReader::ReadXBM( Graphic& rGraphic )
rIStm.ReadUChar( cDummy );
// if we cannot read all
// we returnn and wait for new data
// we return and wait for new data
if ( rIStm.GetError() != ERRCODE_IO_PENDING )
{
rIStm.Seek( nLastPos );
......
......@@ -207,7 +207,7 @@ ReadState XPMReader::ReadXPM( Graphic& rGraphic )
return eReadState;
}
// ImplGetColor returns variouls colour values,
// ImplGetColor returns various colour values,
// returns TRUE if various colours could be assigned
bool XPMReader::ImplGetColor( sal_uLong nNumb )
......
......@@ -277,7 +277,7 @@ sal_uInt16 ZyklTriDiagGS(bool rep, sal_uInt16 n, double* lower, double* diag,
/* ====== */
/* Predominantly for diagonal dominant cyclic tridiagonal- */
/* matrices as they occur in spline-interpolations. */
/* For diagonal dominant matices only a LU-decomposition exists. */
/* For diagonal dominant matrices only a LU-decomposition exists.*/
/* */
/*====================================================================*/
/* */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment