OpenOffice bullets and numbering: moving subpoints of line without a number - openoffice.org

I'm trying to create a numbered section in OpenOffice writer using the bullets and numbering feature like so:
1. Line 1
Line 2
Line 3
Line 4:
1. Sub-line 1
2. Sub-line 2
3. Sub-line 3
where Lines 2, 3 and 4 have been created by clicking "Insert Unnumbered Entry". I can do this, but I want to also be able to place the cursor on Line 4 and click "Move Up with Subpoints" to move Line 4 and all it's sub-lines to above Line 3, like so:
1. Line 1
Line 2
Line 4:
1. Sub-line 1
2. Sub-line 2
3. Sub-line 3
Line 3
I'm not sure if this is a feature because it doesn't work. Clicking "Move Up with Subpoints" while the cursor is on Line 4 does nothing at all.
However, I've discovered that if instead of creating Line 4 as unnumbered, I create it by simply hitting enter:
1. Line 1
Line 2
Line 3
2. Line 4:
1. Sub-line 1
2. Sub-line 2
3. Sub-line 3
and then I click "Move Up with Subpoints", I get:
1. Line 1
Line 2
2. Line 4:
1. Sub-line 1
2. Sub-line 2
3. Sub-line 3
Line 3
which is essentially what I want, except without the "2." in front of "Line 4". Is there a way to get what I want without the number prefacing Line 4?

A test of LibreOffice (version 5.2) finds that, like Apache OpenOffice, it has the same "Move Up with Subpoints" issue.
However, in LO, and likely also in AOO, you can get the result you're looking for by drag & drop. First, select the lines to move, including the paragraph break on the preceding line (i.e. the text show between triple slashes in the following)...
1. Line 1
Line 2
Line 3///ΒΆ
Line 4:
1. Sub-line 1
2. Sub-line 2
3. Sub-line 3///
Then, drag & drop the selected text up to the end of 'Line 2'. The result should be...
1. Line 1
Line 2
Line 4:
1. Sub-line 1
2. Sub-line 2
2. Sub-line 3
Line 3
Finally, click just before the 'S' at the start of 'Sub-line 3' and hit Tab twice. The result should be what you're looking for...
1. Line 1
Line 2
Line 4:
1. Sub-line 1
2. Sub-line 2
3. Sub-line 3
Line 3

Related

Create a column with numbers from 0 to 1000 in increments of 10

I am new to google sheets and am unaware of how to create a sequence of numbers in a column. I want to create a column with numbers from 0 to 1000 in increments of 10
Method 1 (formula)
Copy the following formula =(ROW()-1)*10
Select cells A1:A100
Paste the formula.
Method 2 (fill down series):
Write 0 on A1
Write 10 on A2
Write 20 on A3
Select A1:A3
Click on the bottom right corner of A3, then drag down until A100.
=ARRAYFORMULA({0; ROW(A1:A100)&0})
or:
=ARRAYFORMULA({0\ ROW(A1:A100)&0})
if you want real numbers then use:
=ARRAYFORMULA({0; VALUE(ROW(A1:A100)&0)})
or:
=ARRAYFORMULA({0\ VALUE(ROW(A1:A100)&0)})

How to create (number) series with custom intervals in LibreOffice

Imagine you have the following table, see down below. Now, I would like to tell LibreOffice to create out of all three columns a series with custom intervals each. Is this possible?
The series shall be like this:
Increase number by 1 every 112 rows and insert current number inbetween.
Increase number by 1 every 28 rows and insert current number inbetween.
Increase number by 1 every 7 rows and insert current number inbetween.
You can use formula =INT((ROW()-1)/period)+startingNumber and drag it down (with black square at the bottom right of selected cell) to copy it to number of rows.
Or you can use simple macro (where period equals 7, 28 or 112):
Option Explicit
Sub Main
Dim numberOfRows, n, period, startingNumber As Integer
Dim destinationCell As Variant
period = 7
numberOfRows = 30
startingNumber = 1
For n = 0 To numberOfRows-1
destinationCell=ThisComponent.Sheets.getByIndex(0).getCellByPosition(0,n)
destinationCell.setValue(Int(n/period)+startingNumber)
Next n
End Sub

FastReport auto wrap the column on next line

In Fast Report 4.14 I have to create cross-report. Number of columns not defined. When there isn't space on page, columns should be printed on next row, for example:
Row 1: 1, 2, 3, 4, 5
Row 2: 1, 2, 3, 4, 5
Row 3: 1, 2, 3, 4, 5
Should be printed like
Row 1: 1, 2, 3,
4, 5
Row 2: 1, 2, 3,
4, 5
Row 3: 1, 2, 3,
4, 5
I was trying to use TfrxDBCrossView, then vertical bands - doesn't help. When space not enough it moves columns on next page instead of next row. So for the moment I'm adding memos dynamically on MasterBand and change vertical position for it if there is no free space on current line. Is it possible to avoid dynamic generation and use some components? For me will be the best to use TfrxDBCrossView, if it moves columns on next line, not page.
I have faced a similar problem, I wanted to use the property "wordwrap" at the cell, but just set this property wasn't enough, for the table be correctly generated. So, I set the property AUTOSIZE = true to DB_cross and Wordwrap = true to to specified cell. The result was which you wanted in your question.
Row 1: 1, 2, 3,
4, 5

How do I compare cells in one row to cells in another row?

For example, I have the top row with the "answers" and I want to compare every row after the top row to the top row and count how many are equal:
--A B C D
1-1 2 2 4
2-1 1 1 1
3-2 2 2 2
4-1 2 1 4
I'd like a formula that would apply to rows 2:4 to compare them each to row 1 such that the result would be 1 for row 2, 2 for row 3, and 3 for row 4.
I'm not sure if it can't be done, or if I just don't know how to search for it properly, but I haven't been able to come up with anything on my own.
In E2, try:
=ArrayFormula(sum(--($A2:$D2=$A$1:$D$1)))
and drag down as far as needed.

how to programmatically change the components in a picker

I have a picker with 5 components and each component holds the same NSArray filled with #"1" up to #"5". My question is how do i go about being able to change the contents of the picker after the user enters in any number to seed a random generator so that the components of each picker are "jumbled up" in relation to each other (this being after the initial viewDidLoad implementation where each component is identical ie. dip lays 1-5)
as an example this is what an ideal result would look like.
1 5 2 4 2
2 4 4 1 5
5 2 3 1 3
4 3 1 4 2
1 4 2 5 3
as a learner of obj-c i am just looking for guidance to solve this problem.
Thank you in advance for any comments that may be made.

Resources