You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by ms...@apache.org on 2025/02/08 17:39:40 UTC
(openoffice) branch AOO42X updated (b34b7e0bda -> d1ac59dc18)
This is an automated email from the ASF dual-hosted git repository.
mseidel pushed a change to branch AOO42X
in repository https://gitbox.apache.org/repos/asf/openoffice.git
from b34b7e0bda Fix spelling (#271)
new f3f8b83fb3 Fix spelling
new d1ac59dc18 Fix typos (1nd, 3nd, abnove)
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../source/controller/main/ChartFrameloader.cxx | 2 +-
main/cli_ure/qa/climaker/climaker.cs | 2 +-
main/connectivity/source/cpool/ZPoolCollection.cxx | 18 ++-
main/dbaccess/source/ui/browser/brwctrlr.cxx | 2 +-
main/filter/inc/filter/msfilter/escherex.hxx | 2 +-
main/framework/inc/dispatch/basedispatcher.hxx | 2 +-
main/framework/source/fwe/dispatch/interaction.cxx | 2 +-
main/idlc/source/parser.y | 2 +-
.../examples/DevelopersGuide/Database/sdbcx.java | 95 +++++++-------
main/sal/inc/osl/socket_decl.hxx | 4 +-
main/sc/source/ui/vba/vbaapplication.cxx | 2 +-
.../source/ui/inc/AccessibleDrawDocumentView.hxx | 4 +-
main/svx/inc/svx/AccessibleShape.hxx | 2 +-
.../mediawiki/src/com/sun/star/wiki/Settings.java | 2 +-
main/vcl/source/gdi/print2.cxx | 138 +++++++++------------
main/xmloff/source/text/XMLChangeImportContext.hxx | 2 +-
16 files changed, 130 insertions(+), 151 deletions(-)
(openoffice) 01/02: Fix spelling
Posted by ms...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
mseidel pushed a commit to branch AOO42X
in repository https://gitbox.apache.org/repos/asf/openoffice.git
commit f3f8b83fb3db53c3cafcf89f803dfd104ee853a8
Author: John Bampton <jb...@gmail.com>
AuthorDate: Sun Feb 9 01:40:09 2025 +1000
Fix spelling
(cherry picked from commit bd9c95dee0d38ae08805745e70eba3992924d4f5)
---
main/chart2/source/controller/main/ChartFrameloader.cxx | 2 +-
main/cli_ure/qa/climaker/climaker.cs | 2 +-
main/dbaccess/source/ui/browser/brwctrlr.cxx | 2 +-
main/filter/inc/filter/msfilter/escherex.hxx | 2 +-
main/framework/inc/dispatch/basedispatcher.hxx | 2 +-
main/framework/source/fwe/dispatch/interaction.cxx | 2 +-
main/idlc/source/parser.y | 2 +-
main/sal/inc/osl/socket_decl.hxx | 4 ++--
main/sc/source/ui/vba/vbaapplication.cxx | 2 +-
main/sd/source/ui/inc/AccessibleDrawDocumentView.hxx | 4 ++--
main/svx/inc/svx/AccessibleShape.hxx | 2 +-
main/swext/mediawiki/src/com/sun/star/wiki/Settings.java | 2 +-
main/xmloff/source/text/XMLChangeImportContext.hxx | 2 +-
13 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/main/chart2/source/controller/main/ChartFrameloader.cxx b/main/chart2/source/controller/main/ChartFrameloader.cxx
index 592087d568..d9455f4cdc 100644
--- a/main/chart2/source/controller/main/ChartFrameloader.cxx
+++ b/main/chart2/source/controller/main/ChartFrameloader.cxx
@@ -123,7 +123,7 @@ APPHELPER_XSERVICEINFO_IMPL(ChartFrameLoader,CHART_FRAMELOADER_SERVICE_IMPLEMENT
, uno::UNO_QUERY );
//!!!it is a special characteristic of the example application
- //that the controller simultaniously provides the XWindow controller functionality
+ //that the controller simultaneously provides the XWindow controller functionality
xComponentWindow =
uno::Reference< awt::XWindow >( xController, uno::UNO_QUERY );
diff --git a/main/cli_ure/qa/climaker/climaker.cs b/main/cli_ure/qa/climaker/climaker.cs
index f5197355fd..10e68c21a8 100644
--- a/main/cli_ure/qa/climaker/climaker.cs
+++ b/main/cli_ure/qa/climaker/climaker.cs
@@ -1030,7 +1030,7 @@ public sealed class Test
l.assure(false);
}
- /** Case context fails to provide sigleton, a DeploymentException should be thrown.
+ /** Case context fails to provide singleton, a DeploymentException should be thrown.
*/
c = new Context(Context.test_kind.CREATION_FAILED);
try {
diff --git a/main/dbaccess/source/ui/browser/brwctrlr.cxx b/main/dbaccess/source/ui/browser/brwctrlr.cxx
index fde445eb7a..d53c183c08 100644
--- a/main/dbaccess/source/ui/browser/brwctrlr.cxx
+++ b/main/dbaccess/source/ui/browser/brwctrlr.cxx
@@ -2294,7 +2294,7 @@ void SbaXDataBrowserController::Execute(sal_uInt16 nId, const Sequence< Property
break;
sal_Bool bNeedPostReload = preReloadForm();
- // reset the filter and the sort property simutaneously so only _one_ new statement has to be
+ // reset the filter and the sort property simultaneously so only _one_ new statement has to be
// sent
Reference< XPropertySet > xSet(getRowSet(), UNO_QUERY);
if ( xSet.is() )
diff --git a/main/filter/inc/filter/msfilter/escherex.hxx b/main/filter/inc/filter/msfilter/escherex.hxx
index 010462c1f5..e0cc304780 100644
--- a/main/filter/inc/filter/msfilter/escherex.hxx
+++ b/main/filter/inc/filter/msfilter/escherex.hxx
@@ -1367,7 +1367,7 @@ public:
/** Creates and returns a new shape identifier, updates the internal shape
counters and registers the identifier in the DGG cluster table.
@param nDrawingId Drawing identifier has to be passed to be able to
- generate shape identifiers for multiple drawings simultaniously. */
+ generate shape identifiers for multiple drawings simultaneously. */
sal_uInt32 GenerateShapeId( sal_uInt32 nDrawingId, bool bIsInSpgr );
/** Returns the number of shapes in the current drawing, based on number of
calls to the GenerateShapeId() function. */
diff --git a/main/framework/inc/dispatch/basedispatcher.hxx b/main/framework/inc/dispatch/basedispatcher.hxx
index ad552193fc..afae343395 100644
--- a/main/framework/inc/dispatch/basedispatcher.hxx
+++ b/main/framework/inc/dispatch/basedispatcher.hxx
@@ -81,7 +81,7 @@ namespace framework{
//_________________________________________________________________________________________________________________
/*-************************************************************************************************************//**
- @descr We must support loading of different URLs with different handler or loader into different tasks simultaniously.
+ @descr We must support loading of different URLs with different handler or loader into different tasks simultaneously.
They call us back to return state of operation. We need some informations to distinguish
between these different "loading threads".
This is the reason to implement this dynamicly list.
diff --git a/main/framework/source/fwe/dispatch/interaction.cxx b/main/framework/source/fwe/dispatch/interaction.cxx
index 28d9494677..acdec5b8a8 100644
--- a/main/framework/source/fwe/dispatch/interaction.cxx
+++ b/main/framework/source/fwe/dispatch/interaction.cxx
@@ -44,7 +44,7 @@ namespace framework{
@attention This implementation could be used one times only. We don't support a resetable continuation yet!
Why? Normally interaction should show a filter selection dialog and ask user for his decision.
He can select any filter - then instances of these class will be called by handler ... or user
- close dialog without any selection. Then another continuation should be slected by handler to
+ close dialog without any selection. Then another continuation should be selected by handler to
abort continuations ... Retrying isn't very useful here ... I think.
@implements XInteractionFilterSelect
diff --git a/main/idlc/source/parser.y b/main/idlc/source/parser.y
index 0979410452..2de6d99e95 100644
--- a/main/idlc/source/parser.y
+++ b/main/idlc/source/parser.y
@@ -2058,7 +2058,7 @@ singleton_dcl :
}
singleton_dfn
{
- /* this singelton is finished, pop its scope from the stack */
+ /* this singleton is finished, pop its scope from the stack */
idlc()->scopes()->pop();
}
;
diff --git a/main/sal/inc/osl/socket_decl.hxx b/main/sal/inc/osl/socket_decl.hxx
index 4f7f9cd202..4dd2294570 100644
--- a/main/sal/inc/osl/socket_decl.hxx
+++ b/main/sal/inc/osl/socket_decl.hxx
@@ -100,12 +100,12 @@ namespace osl
inline sal_Int32 SAL_CALL getPort() const;
/** Sets the port number of the address.
- @return true if successfule.
+ @return true if successful.
*/
inline sal_Bool SAL_CALL setPort( sal_Int32 nPort );
/** Sets the address of the underlying socket address struct in network byte order.
- @return true on success, false signales falure.
+ @return true on success, false signals failure.
*/
inline sal_Bool SAL_CALL setAddr( const ::rtl::ByteSequence & address );
diff --git a/main/sc/source/ui/vba/vbaapplication.cxx b/main/sc/source/ui/vba/vbaapplication.cxx
index 513d45461b..c244e10cc1 100644
--- a/main/sc/source/ui/vba/vbaapplication.cxx
+++ b/main/sc/source/ui/vba/vbaapplication.cxx
@@ -561,7 +561,7 @@ ScVbaApplication::GoTo( const uno::Any& Reference, const uno::Any& Scroll ) thro
{
//maybe this should be a procedure name
//TODO for procedure name
- //browse::XBrowseNodeFactory is a singlton. OUString::createFromAscii( "/singletons/com.sun.star.script.browse.theBrowseNodeFactory")
+ //browse::XBrowseNodeFactory is a singleton. OUString::createFromAscii( "/singletons/com.sun.star.script.browse.theBrowseNodeFactory")
//and the createView( browse::BrowseNodeFactoryViewTypes::MACROSELECTOR ) to get a root browse::XBrowseNode.
//for query XInvocation interface.
//but how to directly get the XInvocation?
diff --git a/main/sd/source/ui/inc/AccessibleDrawDocumentView.hxx b/main/sd/source/ui/inc/AccessibleDrawDocumentView.hxx
index 488800c436..544fed0812 100644
--- a/main/sd/source/ui/inc/AccessibleDrawDocumentView.hxx
+++ b/main/sd/source/ui/inc/AccessibleDrawDocumentView.hxx
@@ -133,12 +133,12 @@ protected:
/** Select or deselect the specified child or all children if the given
index has the special value ACCESSIBLE_SELECTION_CHILD_ALL.
Selecting or deselecting a child sets or resets the
- <const>SELECTED</const> state and selects or deslects the UNO shape
+ <const>SELECTED</const> state and selects or deselects the UNO shape
being made accessible by the child.
@param nAccessibleChildIndex
Index of the child to select or deselect. If the parameter has
the value ACCESSIBLE_SELECTION_CHILD_ALL then all children are
- selected or deslected.
+ selected or deselected.
@param bSelect
Indicates whether to select or deselect the specified child
reps. children.
diff --git a/main/svx/inc/svx/AccessibleShape.hxx b/main/svx/inc/svx/AccessibleShape.hxx
index 2568a6d1a4..41a77db3a5 100644
--- a/main/svx/inc/svx/AccessibleShape.hxx
+++ b/main/svx/inc/svx/AccessibleShape.hxx
@@ -78,7 +78,7 @@ class IAccessibleParent;
<p>The children of a shape can stem from two sources which, in case of
SVX and SD shapes, are mutually exclusive. This implementation,
- however, handles both simultaniously to cope with future extensions or
+ however, handles both simultaneously to cope with future extensions or
shapes from other projects.
<ul>
<li>If this shape is a group shape, i.e. a
diff --git a/main/swext/mediawiki/src/com/sun/star/wiki/Settings.java b/main/swext/mediawiki/src/com/sun/star/wiki/Settings.java
index fe7900a23b..efb0791649 100644
--- a/main/swext/mediawiki/src/com/sun/star/wiki/Settings.java
+++ b/main/swext/mediawiki/src/com/sun/star/wiki/Settings.java
@@ -43,7 +43,7 @@ public class Settings
private int lastUsedWikiServer = 0;
- /* Singelton */
+ /* Singleton */
private static Settings m_instance;
diff --git a/main/xmloff/source/text/XMLChangeImportContext.hxx b/main/xmloff/source/text/XMLChangeImportContext.hxx
index 581df76960..e0d4dc746d 100644
--- a/main/xmloff/source/text/XMLChangeImportContext.hxx
+++ b/main/xmloff/source/text/XMLChangeImportContext.hxx
@@ -58,7 +58,7 @@ public:
* import a change mark
* (<text:change>, <text:change-start>, <text:change-end>)
* Note: a <text:change> mark denotes start and end of a change
- * simultaniously, so both bIsStart and bIsEnd parameters would
+ * simultaneously, so both bIsStart and bIsEnd parameters would
* be set true.
*/
XMLChangeImportContext(
(openoffice) 02/02: Fix typos (1nd, 3nd, abnove)
Posted by ms...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
mseidel pushed a commit to branch AOO42X
in repository https://gitbox.apache.org/repos/asf/openoffice.git
commit d1ac59dc184e4d009562acde272f9ccf1e0590ad
Author: mseidel <ms...@apache.org>
AuthorDate: Sat Feb 8 18:38:19 2025 +0100
Fix typos (1nd, 3nd, abnove)
(cherry picked from commit f7cce9f13b8d7bb1b4ee93730cd2ffcdcdb028b5)
---
main/connectivity/source/cpool/ZPoolCollection.cxx | 18 ++-
.../examples/DevelopersGuide/Database/sdbcx.java | 95 +++++++-------
main/vcl/source/gdi/print2.cxx | 138 +++++++++------------
3 files changed, 115 insertions(+), 136 deletions(-)
diff --git a/main/connectivity/source/cpool/ZPoolCollection.cxx b/main/connectivity/source/cpool/ZPoolCollection.cxx
index ac5b4ddb67..9a1b8662c9 100644
--- a/main/connectivity/source/cpool/ZPoolCollection.cxx
+++ b/main/connectivity/source/cpool/ZPoolCollection.cxx
@@ -1,5 +1,5 @@
/**************************************************************
- *
+ *
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
@@ -7,20 +7,18 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
- *
+ *
*************************************************************/
-
-
// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_connectivity.hxx"
#include "ZPoolCollection.hxx"
@@ -458,7 +456,7 @@ Any OPoolCollection::getNodeValue(const ::rtl::OUString& _rPath,const Reference<
if (xDirectAccess.is() && xDirectAccess->hasByName(_rPath) )
{
aReturn = xDirectAccess->getByName(_rPath);
- }
+ }
else if (xHierarchyAccess.is())
{
aReturn = xHierarchyAccess->getByHierarchicalName(_rPath);
@@ -466,7 +464,7 @@ Any OPoolCollection::getNodeValue(const ::rtl::OUString& _rPath,const Reference<
}
catch(NoSuchElementException& e)
{
- OSL_UNUSED( e ); // make compiler happy
+ OSL_UNUSED( e ); // make compiler happy
OSL_ENSURE(sal_False,
::rtl::OString("::getNodeValue: caught a NoSuchElementException while trying to open ")
+= ::rtl::OString(e.Message.getStr(), e.Message.getLength(), RTL_TEXTENCODING_ASCII_US)
@@ -541,7 +539,7 @@ void SAL_CALL OPoolCollection::propertyChange( const ::com::sun::star::beans::Pr
{
::rtl::OUString sThisDriverName;
getNodeValue(getDriverNameNodeName(),evt.Source) >>= sThisDriverName;
- // 1nd relase the driver
+ // First release the driver
// look if we already have a proxy for this driver
MapDriver2DriverRefIterator aLookup = m_aDriverProxies.begin();
while( aLookup != m_aDriverProxies.end())
@@ -574,4 +572,4 @@ m_xDesktop.clear();
}
// -----------------------------------------------------------------------------
-
+/* vim: set noet sw=4 ts=4: */
diff --git a/main/odk/examples/DevelopersGuide/Database/sdbcx.java b/main/odk/examples/DevelopersGuide/Database/sdbcx.java
index 9984ae0360..3b1382a34d 100644
--- a/main/odk/examples/DevelopersGuide/Database/sdbcx.java
+++ b/main/odk/examples/DevelopersGuide/Database/sdbcx.java
@@ -1,5 +1,5 @@
/**************************************************************
- *
+ *
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
@@ -7,20 +7,18 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
- *
+ *
*************************************************************/
-
-
import java.io.*;
import com.sun.star.lang.XComponent;
@@ -32,37 +30,37 @@ import com.sun.star.container.XIndexAccess;
import com.sun.star.sdbc.*;
import com.sun.star.sdbcx.*;
import com.sun.star.lang.XMultiServiceFactory;
-
+
public class sdbcx
{
private XMultiServiceFactory xORB;
private static XConnection con;
private XTablesSupplier xTabSup;
-
- public static XMultiServiceFactory rSmgr;
+
+ public static XMultiServiceFactory rSmgr;
public static void main(String argv[]) throws java.lang.Exception
{
try{
rSmgr = connect("socket,host=localhost,port=8100");
- sdbcx test = new sdbcx(rSmgr);
- test.createConnection();
- test.displayTableProperties();
- // now we dispose the connection to close it
- XComponent xComponent = (XComponent)UnoRuntime.queryInterface(XComponent.class,con);
- if(xComponent != null)
- {
- xComponent.dispose();
- System.out.println("Connection disposed!");
- }
- }
+ sdbcx test = new sdbcx(rSmgr);
+ test.createConnection();
+ test.displayTableProperties();
+ // now we dispose the connection to close it
+ XComponent xComponent = (XComponent)UnoRuntime.queryInterface(XComponent.class,con);
+ if(xComponent != null)
+ {
+ xComponent.dispose();
+ System.out.println("Connection disposed!");
+ }
+ }
catch(com.sun.star.uno.Exception e)
{
System.out.println(e);
e.printStackTrace();
}
System.exit(0);
- }
- public static XMultiServiceFactory connect( String connectStr )
+ }
+ public static XMultiServiceFactory connect( String connectStr )
throws com.sun.star.uno.Exception,
com.sun.star.uno.RuntimeException, java.lang.Exception
{
@@ -71,14 +69,14 @@ public class sdbcx
com.sun.star.comp.helper.Bootstrap.createSimpleServiceManager();
// create a connector, so that it can contact the office
- Object xUrlResolver = xLocalServiceManager.createInstance( "com.sun.star.bridge.UnoUrlResolver" );
+ Object xUrlResolver = xLocalServiceManager.createInstance( "com.sun.star.bridge.UnoUrlResolver" );
XUnoUrlResolver urlResolver = (XUnoUrlResolver)UnoRuntime.queryInterface(
- XUnoUrlResolver.class, xUrlResolver );
+ XUnoUrlResolver.class, xUrlResolver );
Object rInitialObject = urlResolver.resolve( "uno:" + connectStr + ";urp;StarOffice.NamingService" );
XNamingService rName = (XNamingService)UnoRuntime.queryInterface(
- XNamingService.class, rInitialObject );
+ XNamingService.class, rInitialObject );
XMultiServiceFactory xMSF = null;
if( rName != null ) {
@@ -97,7 +95,7 @@ public class sdbcx
{
xORB = rSmgr;
}
-
+
public void createConnection() throws com.sun.star.uno.Exception
{
// create the Driver with the implementation name
@@ -107,7 +105,7 @@ public class sdbcx
xDriver = (XDriver)UnoRuntime.queryInterface(XDriver.class,aDriver);
if(xDriver != null)
{
- // first create the needed url
+ // first create the needed URL
String adabasURL = "sdbc:adabas::MYDB0";
// second create the necessary properties
com.sun.star.beans.PropertyValue [] adabasProps = new com.sun.star.beans.PropertyValue[]
@@ -115,9 +113,8 @@ public class sdbcx
new com.sun.star.beans.PropertyValue("user",0,"test1",com.sun.star.beans.PropertyState.DIRECT_VALUE),
new com.sun.star.beans.PropertyValue("password",0,"test1",com.sun.star.beans.PropertyState.DIRECT_VALUE)
};
- //
-
- // now create a connection to adabas
+
+ // now create a connection to Adabas
con = xDriver.connect(adabasURL,adabasProps);
if(con != null)
{
@@ -165,7 +162,7 @@ public class sdbcx
}
//###########################################################
- // 15. example
+ // 15. example
// print all columns of a XColumnsSupplier
//###########################################################
public static void printColumns(XColumnsSupplier xColumnsSup) throws com.sun.star.uno.Exception,SQLException
@@ -179,7 +176,7 @@ public class sdbcx
System.out.println(" " + aColumnNames[i]);
}
//###########################################################
- // 16. example
+ // 16. example
// print all keys inclusive the columns of a key
//###########################################################
public static void printKeys(XColumnsSupplier xColumnsSup) throws com.sun.star.uno.Exception,SQLException
@@ -196,12 +193,12 @@ public class sdbcx
XPropertySet xProp = (XPropertySet)UnoRuntime.queryInterface(XPropertySet.class,key);
System.out.println(" " + xProp.getPropertyValue("Name"));
XColumnsSupplier xKeyColumnsSup = ( XColumnsSupplier ) UnoRuntime.queryInterface(XColumnsSupplier.class,xProp);
- printColumns(xKeyColumnsSup);
+ printColumns(xKeyColumnsSup);
}
}
}
//###########################################################
- // 17. example
+ // 17. example
// print all keys inclusive the columns of a key
//###########################################################
public static void printIndexes(XColumnsSupplier xColumnsSup) throws com.sun.star.uno.Exception,SQLException
@@ -218,16 +215,16 @@ public class sdbcx
System.out.println(" " + aIndexNames[i]);
Object index = xIndexs.getByName(aIndexNames[i]);
XColumnsSupplier xIndexColumnsSup = (XColumnsSupplier)UnoRuntime.queryInterface(XColumnsSupplier.class,index);
- printColumns(xIndexColumnsSup);
+ printColumns(xIndexColumnsSup);
}
}
}
//###########################################################
- // 18. example
+ // 18. example
// column properties
//###########################################################
- public static void printColumnProperties(Object column) throws com.sun.star.uno.Exception,SQLException
+ public static void printColumnProperties(Object column) throws com.sun.star.uno.Exception,SQLException
{
System.out.println("Example printColumnProperties");
XPropertySet xProp = (XPropertySet)UnoRuntime.queryInterface(XPropertySet.class,column);
@@ -249,7 +246,7 @@ public class sdbcx
}
//###########################################################
- // 19. example
+ // 19. example
// index properties
//###########################################################
public static void printIndexProperties(Object index) throws com.sun.star.uno.Exception,SQLException
@@ -264,7 +261,7 @@ public class sdbcx
}
//###########################################################
- // 20. example
+ // 20. example
// key properties
//###########################################################
public static void printKeyProperties(Object key) throws com.sun.star.uno.Exception,SQLException
@@ -279,7 +276,7 @@ public class sdbcx
}
//###########################################################
- // 21. example
+ // 21. example
// print all groups and the users with their privileges who belong to this group
//###########################################################
public static void printGroups(XTablesSupplier xTabSup) throws com.sun.star.uno.Exception,SQLException
@@ -313,7 +310,7 @@ public class sdbcx
}
//###########################################################
- // 22. example
+ // 22. example
// create the table salesmen
//###########################################################
public static void createTableSalesMen(XNameAccess xTables) throws com.sun.star.uno.Exception,SQLException
@@ -337,29 +334,29 @@ public class sdbcx
xCol.setPropertyValue("Type",new Integer(DataType.INTEGER));
xCol.setPropertyValue("IsNullable",new Integer(ColumnValue.NO_NULLS));
xAppend.appendByDescriptor(xCol);
- // 2nd only set the properties which differs
+ // only set the properties which differs
xCol.setPropertyValue("Name","FIRSTNAME");
xCol.setPropertyValue("Type",new Integer(DataType.VARCHAR));
xCol.setPropertyValue("IsNullable",new Integer(ColumnValue.NULLABLE));
xCol.setPropertyValue("Precision",new Integer(50));
xAppend.appendByDescriptor(xCol);
- // 3nd only set the properties which differs
+ // only set the properties which differs
xCol.setPropertyValue("Name","LASTNAME");
xCol.setPropertyValue("Precision",new Integer(100));
xAppend.appendByDescriptor(xCol);
- // 4nd only set the properties which differs
+ // only set the properties which differs
xCol.setPropertyValue("Name","STREET");
xCol.setPropertyValue("Precision",new Integer(50));
xAppend.appendByDescriptor(xCol);
- // 5nd only set the properties which differs
+ // only set the properties which differs
xCol.setPropertyValue("Name","STATE");
xAppend.appendByDescriptor(xCol);
- // 6nd only set the properties which differs
+ // only set the properties which differs
xCol.setPropertyValue("Name","ZIP");
xCol.setPropertyValue("Type",new Integer(DataType.INTEGER));
xCol.setPropertyValue("Precision",new Integer(10)); // default value integer
xAppend.appendByDescriptor(xCol);
- // 7nd only set the properties which differs
+ // only set the properties which differs
xCol.setPropertyValue("Name","BIRTHDATE");
xCol.setPropertyValue("Type",new Integer(DataType.DATE));
xCol.setPropertyValue("Precision",new Integer(10)); // default value integer
@@ -379,7 +376,7 @@ public class sdbcx
xKeyCol.setPropertyValue("Name","SNR");
// append the key column
xKeyColAppend.appendByDescriptor(xKeyCol);
- // apend the key
+ // append the key
xKeyAppend.appendByDescriptor(xKey);
// the last step is to append the new table to the tables collection
XAppend xTableAppend = (XAppend)UnoRuntime.queryInterface(XAppend.class,xTabFac);
@@ -388,7 +385,7 @@ public class sdbcx
}
//###########################################################
- // 23. example
+ // 23. example
// create a user
//###########################################################
public static void createUser(XNameAccess xUsers) throws com.sun.star.uno.Exception,SQLException
diff --git a/main/vcl/source/gdi/print2.cxx b/main/vcl/source/gdi/print2.cxx
index 83865a203f..cc75a58e85 100644
--- a/main/vcl/source/gdi/print2.cxx
+++ b/main/vcl/source/gdi/print2.cxx
@@ -1,5 +1,5 @@
/**************************************************************
- *
+ *
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
@@ -7,20 +7,18 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
- *
+ *
*************************************************************/
-
-
// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_vcl.hxx"
@@ -65,19 +63,19 @@ typedef ::std::list< Component > ComponentList;
// List of (intersecting) actions, plus overall bounds
struct ConnectedComponents
{
- ConnectedComponents() :
- aComponentList(),
- aBounds(),
- aBgColor(COL_WHITE),
- bIsSpecial(false),
- bIsFullyTransparent(false)
- {}
-
- ComponentList aComponentList;
- Rectangle aBounds;
- Color aBgColor;
- bool bIsSpecial;
- bool bIsFullyTransparent;
+ ConnectedComponents() :
+ aComponentList(),
+ aBounds(),
+ aBgColor(COL_WHITE),
+ bIsSpecial(false),
+ bIsFullyTransparent(false)
+ {}
+
+ ComponentList aComponentList;
+ Rectangle aBounds;
+ Color aBgColor;
+ bool bIsSpecial;
+ bool bIsFullyTransparent;
};
typedef ::std::list< ConnectedComponents > ConnectedComponentsList;
@@ -275,16 +273,16 @@ static void ImplConvertTransparentAction( GDIMetaFile& o_rMtf,
// Returns true, if given action creates visible (i.e. non-transparent) output
static bool ImplIsNotTransparent( const MetaAction& rAct, const OutputDevice& rOut )
{
- const bool bLineTransparency( rOut.IsLineColor() ? rOut.GetLineColor().GetTransparency() == 255 : true );
- const bool bFillTransparency( rOut.IsFillColor() ? rOut.GetFillColor().GetTransparency() == 255 : true );
- bool bRet( false );
+ const bool bLineTransparency( rOut.IsLineColor() ? rOut.GetLineColor().GetTransparency() == 255 : true );
+ const bool bFillTransparency( rOut.IsFillColor() ? rOut.GetFillColor().GetTransparency() == 255 : true );
+ bool bRet( false );
switch( rAct.GetType() )
{
case META_POINT_ACTION:
- if( !bLineTransparency )
- bRet = true;
- break;
+ if( !bLineTransparency )
+ bRet = true;
+ break;
case META_LINE_ACTION:
if( !bLineTransparency )
@@ -376,37 +374,37 @@ static bool ImplIsNotTransparent( const MetaAction& rAct, const OutputDevice& rO
case META_TEXTRECT_ACTION:
case META_STRETCHTEXT_ACTION:
case META_TEXTLINE_ACTION:
- // all other actions: generate non-transparent output
- bRet = true;
- break;
+ // all other actions: generate non-transparent output
+ bRet = true;
+ break;
default:
- break;
+ break;
}
- return bRet;
+ return bRet;
}
// #i10613# Extracted from ImplCheckRect::ImplCreate
static Rectangle ImplCalcActionBounds( const MetaAction& rAct, const OutputDevice& rOut )
{
- Rectangle aActionBounds;
+ Rectangle aActionBounds;
switch( rAct.GetType() )
{
case META_PIXEL_ACTION:
aActionBounds = Rectangle( static_cast<const MetaPixelAction&>(rAct).GetPoint(), Size( 1, 1 ) );
- break;
+ break;
case META_POINT_ACTION:
- aActionBounds = Rectangle( static_cast<const MetaPointAction&>(rAct).GetPoint(), Size( 1, 1 ) );
- break;
+ aActionBounds = Rectangle( static_cast<const MetaPointAction&>(rAct).GetPoint(), Size( 1, 1 ) );
+ break;
case META_LINE_ACTION:
{
const MetaLineAction& rMetaLineAction = static_cast<const MetaLineAction&>(rAct);
- aActionBounds = Rectangle( rMetaLineAction.GetStartPoint(), rMetaLineAction.GetEndPoint() );
- aActionBounds.Justify();
+ aActionBounds = Rectangle( rMetaLineAction.GetStartPoint(), rMetaLineAction.GetEndPoint() );
+ aActionBounds.Justify();
const long nLineWidth(rMetaLineAction.GetLineInfo().GetWidth());
if(nLineWidth)
{
@@ -416,12 +414,12 @@ static Rectangle ImplCalcActionBounds( const MetaAction& rAct, const OutputDevic
aActionBounds.Right() += nHalfLineWidth;
aActionBounds.Bottom() += nHalfLineWidth;
}
- break;
+ break;
}
case META_RECT_ACTION:
- aActionBounds = static_cast<const MetaRectAction&>(rAct).GetRect();
- break;
+ aActionBounds = static_cast<const MetaRectAction&>(rAct).GetRect();
+ break;
case META_ROUNDRECT_ACTION:
aActionBounds = Polygon( static_cast<const MetaRoundRectAction&>(rAct).GetRect(),
@@ -430,7 +428,7 @@ static Rectangle ImplCalcActionBounds( const MetaAction& rAct, const OutputDevic
break;
case META_ELLIPSE_ACTION:
- {
+ {
const Rectangle& rRect = static_cast<const MetaEllipseAction&>(rAct).GetRect();
aActionBounds = Polygon( rRect.Center(),
rRect.GetWidth() >> 1,
@@ -733,10 +731,8 @@ bool OutputDevice::RemoveTransparenciesFromMetaFile( const GDIMetaFile& rInMtf,
// algorithm was designed by AF.
//
- //
- // STAGE 1: Detect background
- // ==========================
- //
+ // STAGE 1: Detect background
+ // ==========================
// Receives uniform background content, and is _not_ merged
// nor checked for intersection against other aCCList elements
@@ -751,7 +747,7 @@ bool OutputDevice::RemoveTransparenciesFromMetaFile( const GDIMetaFile& rInMtf,
int nLastBgAction, nActionNum;
// weed out page-filling background objects (if they are
- // uniformly coloured). Keeping them outside the other
+ // uniformly colored). Keeping them outside the other
// connected components often prevents whole-page bitmap
// generation.
bool bStillBackground=true; // true until first non-bg action
@@ -853,7 +849,7 @@ bool OutputDevice::RemoveTransparenciesFromMetaFile( const GDIMetaFile& rInMtf,
pCurrAct=const_cast<GDIMetaFile&>(rInMtf).NextAction();
++nActionNum;
}
-
+
// clean up aMapModeVDev
sal_uInt32 nCount = aMapModeVDev.GetGCStackDepth();
while( nCount-- )
@@ -879,10 +875,8 @@ bool OutputDevice::RemoveTransparenciesFromMetaFile( const GDIMetaFile& rInMtf,
++nActionNum;
}
- //
- // STAGE 2: Generate connected components list
- // ===========================================
- //
+ // STAGE 2: Generate connected components list
+ // ===========================================
// iterate over all actions (start where background action
// search left off)
@@ -893,7 +887,7 @@ bool OutputDevice::RemoveTransparenciesFromMetaFile( const GDIMetaFile& rInMtf,
// execute action to get correct MapModes etc.
pCurrAct->Execute( &aMapModeVDev );
- // cache bounds of current action
+ // cache bounds of current action
const Rectangle aBBCurrAct( ImplCalcActionBounds(*pCurrAct, aMapModeVDev) );
// accumulate collected bounds here, initialize with current action
@@ -907,10 +901,8 @@ bool OutputDevice::RemoveTransparenciesFromMetaFile( const GDIMetaFile& rInMtf,
bool bTreatSpecial( false );
ConnectedComponents aTotalComponents;
- //
- // STAGE 2.1: Search for intersecting cc entries
- // =============================================
- //
+ // STAGE 2.1: Search for intersecting cc entries
+ // =============================================
// if aBBCurrAct is empty, it will intersect with no
// aCCList member. Thus, we can save the check.
@@ -1002,10 +994,8 @@ bool OutputDevice::RemoveTransparenciesFromMetaFile( const GDIMetaFile& rInMtf,
while( bSomeComponentsChanged );
}
- //
- // STAGE 2.2: Determine special state for cc element
- // =================================================
- //
+ // STAGE 2.2: Determine special state for cc element
+ // =================================================
// now test whether the whole connected component must be
// treated specially (i.e. rendered as a bitmap): if the
@@ -1058,7 +1048,7 @@ bool OutputDevice::RemoveTransparenciesFromMetaFile( const GDIMetaFile& rInMtf,
}
else
{
- // #107169# Fixes abnove now ensure that _no_
+ // #107169# Fixes above now ensure that _no_
// object in the list is fully transparent. Thus,
// if the component list is not empty above, we
// must assume that we have to treat this
@@ -1073,10 +1063,8 @@ bool OutputDevice::RemoveTransparenciesFromMetaFile( const GDIMetaFile& rInMtf,
}
- //
- // STAGE 2.3: Add newly generated CC list element
- // ==============================================
- //
+ // STAGE 2.3: Add newly generated CC list element
+ // ==============================================
// set new bounds and add action to list
aTotalComponents.aBounds = aTotalBounds;
@@ -1123,10 +1111,8 @@ bool OutputDevice::RemoveTransparenciesFromMetaFile( const GDIMetaFile& rInMtf,
}
}
- //
- // STAGE 3.1: Output background mtf actions (if there are any)
- // ===========================================================
- //
+ // STAGE 3.1: Output background mtf actions (if there are any)
+ // ===========================================================
ComponentList::iterator aCurrAct( aBackgroundComponent.aComponentList.begin() );
const ComponentList::iterator aLastAct( aBackgroundComponent.aComponentList.end() );
@@ -1138,10 +1124,8 @@ bool OutputDevice::RemoveTransparenciesFromMetaFile( const GDIMetaFile& rInMtf,
}
- //
- // STAGE 3.2: Generate banded bitmaps for special regions
- // ====================================================
- //
+ // STAGE 3.2: Generate banded bitmaps for special regions
+ // ====================================================
Point aPageOffset;
Size aTmpSize( GetOutputSizePixel() );
@@ -1314,11 +1298,9 @@ bool OutputDevice::RemoveTransparenciesFromMetaFile( const GDIMetaFile& rInMtf,
nCount = aMapModeVDev.GetGCStackDepth();
while( nCount-- )
aMapModeVDev.Pop();
-
- //
- // STAGE 4: Copy actions to output metafile
- // ========================================
- //
+
+ // STAGE 4: Copy actions to output metafile
+ // ========================================
// iterate over all actions and duplicate the ones not in a
// special aCCList member into rOutMtf
@@ -1589,3 +1571,5 @@ void Printer::DrawGradientEx( OutputDevice* pOut, const PolyPolygon& rPolyPoly,
else
pOut->DrawGradient( rPolyPoly, rGradient );
}
+
+/* vim: set noet sw=4 ts=4: */