af5ebbf783
create a macro library for implementing bit-flags types
...
Signed-off-by: Stephan Bergmann <sbergman@redhat.com >,
changed from a macro- to a template-based solution. (Unfortunately MSVC 2012
does not support explicit conversion operators. Worked around that with
explicit #ifs rather than some HAVE_EXPLICIT_CONVERSION_OPERATORS and
SAL_EXPLICIT_CONVERSION_OPERATOR ainticipating we hopefully soon move to a
baseline that requires unconditional support for them.)
Change-Id: I4a89643b218d247e8e4a861faba458ec6dfe1396
2014-10-13 17:45:57 +02:00
4923ac72aa
loplugin: cstylecast
...
Change-Id: I58582059495f7c50880038e2174ea2de026aa1c9
2014-10-01 13:08:42 +02:00
fc04f76336
fdo#82577: Handle Time
...
Put the TOOLS Time class in the tools namespace. Avoids clash with the X11
Time typedef.
Change-Id: Iac57d5aef35e81ace1ee0d5e6d76cb278f8ad866
Reviewed-on: https://gerrit.libreoffice.org/11684
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
Tested-by: Noel Grandin <noelgrandin@gmail.com >
2014-10-01 07:34:23 +00:00
0904650474
actually the LineStyle property is *write-only*
...
... which is highly suspect in any case, but whatever.
Change-Id: Ibeff36a7d30750fc33e9729b067f86b3901d1c76
2014-09-30 21:49:22 +02:00
4e26b91568
remove unnecessary casts in misc calls to SvStream.Write*
...
left over from our conversion of the SvStream output operators
to more specific methods
Change-Id: Ib80032e8626f5476a89b958f590441994594f4e4
2014-09-26 15:27:18 +02:00
5cefde06ea
remove unnecessary casts in calls to SvStream.WriteUInt32
...
left over from our conversion of the SvStream output operators
to more specific methods
Change-Id: I1d848f19f82783e6eabf2da37dbde78fe36ea1e0
2014-09-26 15:27:17 +02:00
5501c8d222
remove unnecessary casts in calls to SvStream.WriteUInt16
...
left over from our conversion of the SvStream output operators
to more specific methods
Change-Id: I482ca7abb84613971e7e8f839f7aa67a65cd71ff
2014-09-26 15:26:48 +02:00
dedfa972bc
remove unnecessary casts in calls to SvStream.WriteInt16
...
left over from our conversion of the SvStream output operators
to more specific methods
Change-Id: Ie44bec6b988f3e46fe78d14b740818c9141f5df0
2014-09-26 15:26:48 +02:00
8ea2bb252a
remove unnecessary casts in calls to SvStream.WriteSChar
...
left over from our conversion of the SvStream output operators
to more specific methods
Change-Id: I4f17a2fd6a68f8078b97c96e89e27a5627c57c03
2014-09-26 15:26:20 +02:00
bec72dd34f
remove unnecessary casts in calls to SvStream.WriteUChar
...
left over from our conversion of the SvStream output operators
to more specific methods
Change-Id: I2ea4c7d97e745b3e6a3834f41ac7bfefa4883c7a
2014-09-26 15:26:19 +02:00
c476a84abd
remove pointless comments
...
Change-Id: I8edfe830b8f6ca7f1809332870e06d1d286b90e8
2014-09-26 15:25:40 +02:00
d46b16e1e4
remove unnecessary casts's
...
left over from our conversion of the SvStream output operators
to more specific methods
Change-Id: I63f18be8e940098c2acbbc73ee49ede3a949fcb2
2014-09-26 15:25:40 +02:00
8f684e21de
remove unnecessary static_cast's
...
left over from our conversion of the SvStream output operators
to more specific methods
e Please enter the commit message for your changes. Lines starting
Change-Id: Ibfe7635451ef7b8813d7a59c78c5223092a17ad5
2014-09-26 15:25:40 +02:00
a924606810
editeng: std::auto_ptr -> std::unique_ptr
...
Change-Id: I25e3599a37d720cbcf70ea13ab30234e54637d53
2014-09-25 17:35:05 +02:00
e16c8534f4
fdo#47302: Added insert->fields->page title button
...
Change-Id: Iebc8298a7e6a7d423d2667eec8a46a936cc4d2cd
Reviewed-on: https://gerrit.libreoffice.org/11599
Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com >
Tested-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com >
2014-09-24 19:30:05 +00:00
60e78fbb80
fdo#82577: Handle Font
...
Put the VCL Font class in the vcl namespace. Avoids clash with the X11
Font typedef.
Change-Id: I1a84f7cad8b31697b9860a3418f7dff794ff6537
2014-09-18 08:54:37 +02:00
d41747cb42
editeng: sal_Bool -> bool
...
Change-Id: I27296a1a7fdf2ceb89db9e6674a45908fe7d0841
2014-09-12 11:56:43 +02:00
ea733ab5b6
Turn SfxItemState into a C++11 scoped enumeration
...
...to gain further confidence in the claim "that none of the existing
code tries to uses combinations of these enum values"
(d92602c5b13d0a60439d86c5a033d124178726ca "more fixes for SfxItemState")
Change-Id: I987922d945e8738e38adfde83b869adf3ff35b13
Reviewed-on: https://gerrit.libreoffice.org/11384
Reviewed-by: Stephan Bergmann <sbergman@redhat.com >
Tested-by: Stephan Bergmann <sbergman@redhat.com >
2014-09-12 06:08:32 +00:00
d21d5a7261
drop unnecessary shl.hxx includes
...
Change-Id: Ieb984987c4a4f888a563377e0500444b12f43506
2014-08-18 12:59:49 +01:00
47fa001b94
-Werror,-Wundefined-bool-conversion
...
Change-Id: I3efdef9a6581fcb1d5e8da7a86445d2f2401e9f9
2014-08-11 16:11:09 +02:00
9d140ccdb3
drop use of SFX_ITEM_PRESENTATION_NONE
...
since none of the call sites specify it
Change-Id: I9c15f0e042e21f6f78560c1962a533112d588c90
2014-07-29 12:26:17 +02:00
7e018afaf7
simplify return argument of SfxPoolItem::GetPresentation
...
since all two of the actual call-sites only care about whether
it is a valid presentation or not, not what kind of presentation it is.
Change-Id: I75717c88878d37b2897741b0c833ff283b3fee59
2014-07-29 11:04:01 +02:00
cd3d26b7ed
vcl consitent use of long for corrdinate
...
most of length in vcl are calculated in 'long'
but array of X position tend to be in sal_Int32.
As a prep work to be able to support 'double'
as the base type of Device Coordinate, harmonize
the use of 'long' for non-float coordinate.
Change-Id: I7cb33301ff6a5e2c62247b36a4e07e168a58a323
2014-07-20 22:10:59 +02:00
59a2e1b9fa
Cleanup: removed comments and debugging output
...
Change-Id: I41f13d33da641153784725344f5bd526ca69542b
2014-06-30 22:54:44 +02:00
4693d7cc99
Added class SvxBackgroundColorItem
...
Change-Id: If10795bbbd9fc911896b57bbab5410bc1e62f71f
(cherry picked from commit ad6a2607f09d2f770e683a21ad7243a077d65a7a)
2014-06-30 22:54:39 +02:00
be085bf523
Moved Text Filling Color in OutDev. Text Filling occurs in ImplDrawText
...
Change-Id: I9c75066a8dea32721757d0511a2af58c68408438
(cherry picked from commit b09cf493611f2521e66159287b88acc3c05d6d33)
2014-06-30 22:54:37 +02:00
039599e9d5
Put text filling in SvxFont
...
Change-Id: I290fff0cb66fc07122b976d977dff24ac491e108
(cherry picked from commit ea56441757a34082b9ffc5f28936413fcb55e31a)
2014-06-30 22:54:37 +02:00
d097bc8e15
HasBkg method to Font.HasBkg iff HasSingleUnderline.SetBkgColor in OutputDev
...
Change-Id: I10e6e1b916df0c78d26596a37944e8b57b2897e7
(cherry picked from commit 181266201b5e6aaad1dcd9cbc2dd4db44ecf3dc5)
2014-06-30 22:54:37 +02:00
e123213f46
coverity#735422 Logically dead code
...
Change-Id: I5639746f25024b0808e9c4e620bb0fa9f1a2c0b6
2014-06-10 10:48:42 +01:00
184a00b962
loplugin: inlinesimplememberfunctions
...
Change-Id: I42119f656ca528286fb25d2d36c0af54b7d04a6b
2014-06-09 10:10:13 +02:00
b24739c98f
coverity#705153 Missing break in switch, surely this is not intentional
...
since the initial commit of c04e60275f273dacf8796e957e1ebadc08b497a1
Change-Id: I9d3c3c2870c145b2fdb5c4f6c6ed17a14d1162c2
2014-06-05 09:51:06 +01:00
bd7d32bf1c
coverity#705152 Missing break in switch
...
Change-Id: I9b56f5fe890d0d60e451cd35b69dcfb68e7b86b4
2014-05-26 10:18:23 +01:00
48eab8e0db
coverity#705151 Missing break in switch
...
Change-Id: I7bfddf3bb7be3ade65c8b33c6d41901522498d56
2014-05-26 10:18:23 +01:00
56eadf4789
coverity#705150 Missing break in switch
...
Change-Id: I09249504ace6b38ae3dac677678995bbb5080a28
2014-05-26 10:18:22 +01:00
f056fd9852
coverity#707758 Uninitialized scalar field
...
Change-Id: I39954506deafc42e854d556170417af67f5461b2
2014-05-23 14:16:07 +01:00
77f79f29f0
coverity#984086 Uninitialized scalar field
...
Change-Id: Iba162efd0b582541199f343b64ac3b8c59dcc3d8
2014-05-23 14:16:05 +01:00
b09b5f8f7c
Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part19
...
Change-Id: Iab50c52a132c90389992ef68c2d31df95a193ab9
2014-05-22 23:21:18 +02:00
3db8d606d5
hrc and src files: squeeze multiple newlines
...
for i in `find . -name *.src -or -name *.hrc`; do FILE=$(cat -s "$i"); echo "$FILE" > "$i"; done
Change-Id: I2bac5ad3e1eb3c566e5c867ccf45893a19e1561e
2014-05-19 20:04:22 +02:00
f730fafc03
coverity#984086 Uninitialized scalar field
...
Change-Id: Iab787537a4212e58710a1db1b30f953784824dfa
2014-05-11 11:52:30 +01:00
325e586dd0
coverity#707758 Uninitialized scalar field
...
Change-Id: I2f123b0be283b1cb7d890f0e2318dabb5a5930ec
2014-05-11 11:52:30 +01:00
623fa779b6
coverity#1019408 Uninitialized scalar field
...
Change-Id: I63bc844627ca9eaf43f9b4b01ab987ef4f188afa
2014-05-11 11:52:30 +01:00
5ec7a589be
Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part8
...
Change-Id: Ie16923d17541e84e0d7424fffe37caf410786abf
2014-05-10 06:19:42 +02:00
9d2977d0a3
remove some more bloat
...
Change-Id: I7b6c04d99c41360ff49be774afcb4447a829d31c
2014-04-21 09:39:35 +02:00
5684e67aa8
no temporary instance of SvtLanguageTable necessary here
...
Change-Id: I35395e169e795386740fb2b5ee34fc3117b8c844
2014-04-17 23:15:04 +02:00
64b040866d
coverity#735422 Logically dead code
...
Change-Id: I8e1694c311e1e29dc5ea59b292c6afe90fb762fa
2014-04-16 20:21:03 +01:00
3edb4611b2
editeng: sal_Bool->bool
...
Change-Id: I71ea2f0e48a6252832180872945b96a120f21907
2014-04-15 09:02:32 +02:00
84272d115d
Introduce twip/mm100 conversion functions instead of duplicated macros
...
Change-Id: Ib689e35b417e0e9016cd6a239c986e0603a99d62
Reviewed-on: https://gerrit.libreoffice.org/8837
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org >
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk >
2014-04-11 10:19:05 +00:00
b4fd20fc6b
Clean up function declarations and some unused functions
...
Change-Id: Id9e29dcaab64b0244b5c53abb48ac27253a11917
2014-04-09 14:42:51 +02:00
a20b62dac8
svl/eitem.hxx: sal_Bool->bool
...
Change-Id: I45dfd2429a490af3cc80f51340e0c05a91425668
2014-04-04 13:44:18 +02:00
ddac6b1f30
use SAL_N_ELEMENTS
...
Change-Id: I533ce52828ae08a6ab111bcbeaaa6b44c62a6ab9
2014-03-31 16:33:23 +01:00