diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2016-02-09 18:16:42 +1100 |
---|---|---|
committer | Chris Sherlock <chris.sherlock79@gmail.com> | 2016-02-09 08:18:05 +0000 |
commit | a238b1f8d304bf1e2ffb357937f3ec888ee8ac89 (patch) | |
tree | 083c0582d4bf80e313ed256ca476ba8f69c7f7a6 /starmath/inc | |
parent | 538f276ae0414ea34ede6090b5f56e8fecd6fc65 (diff) |
Remove excess newlines
A ridiculously fast way of doing this is:
for i in $(pcregrep -l -M -r --include='.*[hc]xx$' \
--exclude-dir=workdir --exclude-dir=instdir '^
{3,}' .)
do
perl -0777 -i -pe 's/^
{3,}/
/gm' $i
done
Change-Id: Iebb93eccbee9e4fc5c4380474ba595858a27ac2c
Reviewed-on: https://gerrit.libreoffice.org/22224
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Diffstat (limited to 'starmath/inc')
-rw-r--r-- | starmath/inc/dialog.hxx | 5 | ||||
-rw-r--r-- | starmath/inc/document.hxx | 5 | ||||
-rw-r--r-- | starmath/inc/node.hxx | 68 | ||||
-rw-r--r-- | starmath/inc/rect.hxx | 1 | ||||
-rw-r--r-- | starmath/inc/smmod.hxx | 1 | ||||
-rw-r--r-- | starmath/inc/symbol.hxx | 3 | ||||
-rw-r--r-- | starmath/inc/types.hxx | 2 | ||||
-rw-r--r-- | starmath/inc/unomodel.hxx | 4 | ||||
-rw-r--r-- | starmath/inc/utility.hxx | 5 |
9 files changed, 0 insertions, 94 deletions
diff --git a/starmath/inc/dialog.hxx b/starmath/inc/dialog.hxx index 0af5816ee5fa..fe5ed2a685be 100644 --- a/starmath/inc/dialog.hxx +++ b/starmath/inc/dialog.hxx @@ -322,7 +322,6 @@ public: }; - class SmShowSymbol : public Control { Link<SmShowSymbol&,void> aDblClickHdlLink; @@ -345,7 +344,6 @@ public: }; - class SmSymDefineDialog; class SmSymbolDialog : public ModalDialog @@ -390,7 +388,6 @@ public: }; - class SmShowChar : public Control { virtual void Paint(vcl::RenderContext& rRenderContext, const Rectangle&) override; @@ -407,7 +404,6 @@ public: }; - class SmSymDefineDialog : public ModalDialog { VclPtr<ComboBox> pOldSymbols; @@ -507,7 +503,6 @@ public: }; - #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/starmath/inc/document.hxx b/starmath/inc/document.hxx index 7a9c3598da43..efe35eeb9ce0 100644 --- a/starmath/inc/document.hxx +++ b/starmath/inc/document.hxx @@ -68,7 +68,6 @@ class SmDocShell; class EditEngine; - class SmPrinterAccess { VclPtr<Printer> pPrinter; @@ -81,12 +80,9 @@ public: }; - - void SetEditEngineDefaultFonts(SfxItemPool &rEditEngineItemPool); - class SM_DLLPUBLIC SmDocShell : public SfxObjectShell, public SfxListener { friend class SmPrinterAccess; @@ -108,7 +104,6 @@ class SM_DLLPUBLIC SmDocShell : public SfxObjectShell, public SfxListener std::set< OUString > aUsedSymbols; // to export used symbols only when saving - virtual void Notify(SfxBroadcaster& rBC, const SfxHint& rHint) override; bool WriteAsMathType3( SfxMedium& ); diff --git a/starmath/inc/node.hxx b/starmath/inc/node.hxx index 1dc5201700cb..720872aa9932 100644 --- a/starmath/inc/node.hxx +++ b/starmath/inc/node.hxx @@ -88,9 +88,6 @@ enum SmNodeType }; - - - class SmNode : public SmRect { SmFace maFace; @@ -230,7 +227,6 @@ private: }; - /** A simple auxiliary iterator class for SmNode * * Example of iteration over children of pMyNode: @@ -289,7 +285,6 @@ private: }; - /** Abstract baseclass for all composite node * * Subclasses of this class can have subnodes. Nodes that doesn't derivate from @@ -364,9 +359,6 @@ public: }; - - - class SmGraphicNode : public SmVisibleNode { protected: @@ -380,8 +372,6 @@ public: }; - - /** Draws a rectangle * * Used for drawing the line in the OVER and OVERSTRIKE commands. @@ -405,8 +395,6 @@ public: }; - - /** Polygon line node * * Used to draw the slash of the WIDESLASH command by SmBinDiagonalNode. @@ -432,8 +420,6 @@ public: }; - - /** Text node * * @remarks This class also serves as baseclass for all nodes that contains text. @@ -497,8 +483,6 @@ public: }; - - /** Special node for user defined characters * * Node used for pre- and user-defined characters from: @@ -523,8 +507,6 @@ public: }; - - /** Glyph node for custom operators * * This node is used with commands: oper, uoper and boper. @@ -546,8 +528,6 @@ public: }; - - /** Math symbol node * * Use for math symbols such as plus, minus and integral in the INT command. @@ -576,7 +556,6 @@ public: }; - /** Math Identifier * * This behaves essentially the same as SmMathSymbolNode and is only used to @@ -591,7 +570,6 @@ public: }; - /** Root symbol node * * Root symbol node used by SmRootNode to create the root symbol, in front of @@ -640,8 +618,6 @@ public: }; - - /** Place node * * Used to create the <?> command, that denotes place where something can be @@ -663,8 +639,6 @@ public: }; - - /** Error node, for parsing errors * * This node is used for parsing errors and draws an questionmark turned upside @@ -685,8 +659,6 @@ public: }; - - /** Table node * * This is the root node for the formula tree. This node is also used for the @@ -714,8 +686,6 @@ public: }; - - /** A line * * Used as child of SmTableNode when the SmTableNode is the root node of the @@ -748,8 +718,6 @@ public: }; - - /** Expression node * * Used whenever you have an expression such as "A OVER {B + C}", here there is @@ -769,8 +737,6 @@ public: }; - - /** Unary horizontal node * * The same as SmBinHorNode except this is for unary operators. @@ -789,8 +755,6 @@ public: }; - - /** Root node * * Used for create square roots and other roots, example: @@ -857,8 +821,6 @@ public: }; - - /** Binary horizontal node * * This node is used for binary operators. In a formula such as "A + B". @@ -891,8 +853,6 @@ public: }; - - /** Binary horizontal node * * This node is used for creating the OVER command, consider the formula: @@ -923,8 +883,6 @@ public: }; - - /** Binary diagonal node * * Used for implementing the WIDESLASH command, example: "A WIDESLASH B". @@ -953,9 +911,6 @@ public: }; - - - /** Enum used to index sub-/supscripts in the 'aSubNodes' array * in 'SmSubSupNode' * @@ -1036,8 +991,6 @@ public: }; - - /** Node for brace construction * * Used for "lbrace [body] rbrace" and similar constructions. @@ -1073,8 +1026,6 @@ public: }; - - /** Body of an SmBraceNode * * This usually only has one child an SmExpressionNode, however, it can also @@ -1104,8 +1055,6 @@ inline SmBracebodyNode::SmBracebodyNode(const SmToken &rNodeToken) : } - - /** Node for vertical brace construction * * Used to implement commands "[body] underbrace [script]" and @@ -1142,9 +1091,6 @@ inline SmVerticalBraceNode::SmVerticalBraceNode(const SmToken &rNodeToken) : } - - - /** Operation Node * * Used for commands like SUM, INT and similar. @@ -1177,8 +1123,6 @@ public: }; - - /** Node used for alignment * * This node has exactly one child at index 0. @@ -1195,8 +1139,6 @@ public: }; - - /** Attribute node * * Used to give an attribute to another node. Used for commands such as: @@ -1225,8 +1167,6 @@ public: }; - - /** Font node * * Used to change the font of its children. @@ -1255,8 +1195,6 @@ public: }; - - /** Matrix node * * Used to implement the MATRIX command, example: @@ -1287,8 +1225,6 @@ public: }; - - /** Node for whitespace * * Used to implement the "~" command. This node is just a blank space. @@ -1315,9 +1251,6 @@ public: }; - - - inline SmNode* SmRootNode::Argument() { assert( GetNumSubNodes() == 3 ); @@ -1348,7 +1281,6 @@ inline const SmNode* SmRootNode::Body() const } - inline SmDynIntegralSymbolNode* SmDynIntegralNode::Symbol() { OSL_ASSERT( GetNumSubNodes() > 0 && GetSubNode( 0 )->GetType() == NDYNINTSYMBOL ); diff --git a/starmath/inc/rect.hxx b/starmath/inc/rect.hxx index 172af4a01279..b3cf94961b16 100644 --- a/starmath/inc/rect.hxx +++ b/starmath/inc/rect.hxx @@ -43,7 +43,6 @@ inline long SmFromTo(long nFrom, long nTo, double fRelDist) } - // SmRect // ... (to be done) // This Implementation assumes that the x-axis points to the right and the diff --git a/starmath/inc/smmod.hxx b/starmath/inc/smmod.hxx index 57158a4b06a5..c04ecaa18f30 100644 --- a/starmath/inc/smmod.hxx +++ b/starmath/inc/smmod.hxx @@ -54,7 +54,6 @@ class SvtSysLocale; class VirtualDevice; - class SmResId : public ResId { public: diff --git a/starmath/inc/symbol.hxx b/starmath/inc/symbol.hxx index 475515fe6514..f73d15617ab7 100644 --- a/starmath/inc/symbol.hxx +++ b/starmath/inc/symbol.hxx @@ -37,8 +37,6 @@ #define SYMBOL_NONE 0xFFFF - - inline const OUString GetUiSymbolName( const OUString &rExportSymbolName ) { return SmLocalizedSymbolData::GetUiSymbolName( rExportSymbolName ); @@ -56,7 +54,6 @@ inline const OUString GetUiSymbolSetName( const OUString &rExportSymbolSetName ) } - class SmSym { private: diff --git a/starmath/inc/types.hxx b/starmath/inc/types.hxx index cd8be00162b4..73b26fefcecd 100644 --- a/starmath/inc/types.hxx +++ b/starmath/inc/types.hxx @@ -24,11 +24,9 @@ #define FONTNAME_MATH "OpenSymbol" - enum SmPrintSize { PRINT_SIZE_NORMAL, PRINT_SIZE_SCALED, PRINT_SIZE_ZOOMED }; - inline bool IsInPrivateUseArea( sal_Unicode cChar ) { return 0xE000 <= cChar && cChar <= 0xF8FF; } sal_Unicode ConvertMathToMathML( sal_Unicode cChar ); diff --git a/starmath/inc/unomodel.hxx b/starmath/inc/unomodel.hxx index c853806b5302..95c15d9392e7 100644 --- a/starmath/inc/unomodel.hxx +++ b/starmath/inc/unomodel.hxx @@ -45,9 +45,6 @@ public: }; - - - class SmModel : public SfxBaseModel, public comphelper::PropertySetHelper, public css::lang::XServiceInfo, @@ -101,7 +98,6 @@ public: }; - #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/starmath/inc/utility.hxx b/starmath/inc/utility.hxx index 87251495e942..1afb773bfde0 100644 --- a/starmath/inc/utility.hxx +++ b/starmath/inc/utility.hxx @@ -65,8 +65,6 @@ class SmViewShell; SmViewShell * SmGetActiveView(); - - // SmFace @@ -107,8 +105,6 @@ public: SmFace & operator *= (SmFace &rFace, const Fraction &rFrac); - - // SmFontPickList @@ -141,7 +137,6 @@ public: }; - // SmFontPickListBox |