diff --git a/doc/build/.doctrees/environment.pickle b/doc/build/.doctrees/environment.pickle index 066104c..4843369 100644 Binary files a/doc/build/.doctrees/environment.pickle and b/doc/build/.doctrees/environment.pickle differ diff --git a/doc/build/.doctrees/main/calc.doctree b/doc/build/.doctrees/main/calc.doctree index 3aa16a7..2baec61 100644 Binary files a/doc/build/.doctrees/main/calc.doctree and b/doc/build/.doctrees/main/calc.doctree differ diff --git a/doc/build/_sources/main/calc.rst.txt b/doc/build/_sources/main/calc.rst.txt index 16109a3..e1b599b 100644 --- a/doc/build/_sources/main/calc.rst.txt +++ b/doc/build/_sources/main/calc.rst.txt @@ -9,8 +9,11 @@ Remember, always import library. import easymacro as app +Document +~~~~~~~~ + Current doc -~~~~~~~~~~~ +^^^^^^^^^^^ .. code-block:: python @@ -19,7 +22,7 @@ Current doc Selection -~~~~~~~~~ +^^^^^^^^^ * If selection is range get LOCalcRange, if selection is shape get LOShape, other selection get original pyuno object. @@ -31,7 +34,7 @@ Selection Headers -~~~~~~~ +^^^^^^^ * Hide or show columns and rows headers. @@ -45,7 +48,7 @@ Headers Tabs -~~~~ +^^^^ * Hide or show tab sheets. @@ -59,10 +62,10 @@ Tabs Sheets -^^^^^^ +~~~~~~ Active sheet -~~~~~~~~~~~~ +^^^^^^^^^^^^ .. code-block:: python @@ -75,7 +78,7 @@ Active sheet Get by index -~~~~~~~~~~~~ +^^^^^^^^^^^^ .. code-block:: python @@ -85,7 +88,7 @@ Get by index Get by name -~~~~~~~~~~~ +^^^^^^^^^^^ .. code-block:: python @@ -95,7 +98,7 @@ Get by name Contains -~~~~~~~~ +^^^^^^^^ .. code-block:: python @@ -104,7 +107,7 @@ Contains Get tuple with all names -~~~~~~~~~~~~~~~~~~~~~~~~ +^^^^^^^^^^^^^^^^^^^^^^^^ .. code-block:: python @@ -113,7 +116,7 @@ Get tuple with all names Count -~~~~~ +^^^^^ .. code-block:: python @@ -121,7 +124,7 @@ Count app.msgbox(len(doc)) New -~~~ +^^^ * Always validate if new name not exists. @@ -146,7 +149,7 @@ New Move -~~~~ +^^^^ * Move by object to last position. @@ -184,7 +187,7 @@ Move Remove -~~~~~~ +^^^^^^ * Remove by object. @@ -208,7 +211,7 @@ Remove Copy -~~~~ +^^^^ * Copy inside the same spreadsheet. @@ -234,7 +237,7 @@ Copy Copy from -~~~~~~~~~ +^^^^^^^^^ * Copy sheet from one spreadsheet to other. @@ -249,7 +252,7 @@ Copy from Copy to -~~~~~~~ +^^^^^^^ * Copy from sheet with the same name @@ -269,7 +272,7 @@ Copy to Sort -~~~~ +^^^^ * Sort sheets by names. @@ -279,7 +282,7 @@ Sort doc.sort() Name -~~~~ +^^^^ * Name visible by the user. @@ -292,7 +295,7 @@ Name Code name -~~~~~~~~~ +^^^^^^^^^ * Name only accessible by code. @@ -305,7 +308,7 @@ Code name Visible -~~~~~~~ +^^^^^^^ * Apply only with spreadsheet with two or more sheets. @@ -319,7 +322,7 @@ Visible Is protected -~~~~~~~~~~~~ +^^^^^^^^^^^^ * If sheet is protected with password. @@ -330,7 +333,7 @@ Is protected Set password -~~~~~~~~~~~~ +^^^^^^^^^^^^ .. code-block:: python @@ -340,7 +343,7 @@ Set password Remove password -~~~~~~~~~~~~~~~ +^^^^^^^^^^^^^^^ .. code-block:: python @@ -353,7 +356,7 @@ Remove password Tab color -~~~~~~~~~ +^^^^^^^^^ .. code-block:: python @@ -369,7 +372,7 @@ Tab color Document parent -~~~~~~~~~~~~~~~ +^^^^^^^^^^^^^^^ .. code-block:: python @@ -377,7 +380,7 @@ Document parent Activate -~~~~~~~~ +^^^^^^^^ .. code-block:: python @@ -392,7 +395,43 @@ Activate sheet.activate() +Ranges +~~~~~~ + +Cells +^^^^^ + +* By name + +.. code-block:: python + + sheet = app.active_sheet + cell = sheet['A1'] + app.msgbox(cell.name) +* By position [row, column] + +.. code-block:: python + + cell = sheet[1, 4] + app.msgbox(cell.name) +Ranges +^^^^^^ + +* By name + +.. code-block:: python + + sheet = app.active_sheet + rango = sheet['B2:D5'] + app.msgbox(rango.name) + +* By position [start_row, end_row, start_column, end_column] + +.. code-block:: python + + rango = sheet[1:5,1:4] + app.msgbox(rango.name) diff --git a/doc/build/main/calc.html b/doc/build/main/calc.html index 3ed6de3..50c7274 100644 --- a/doc/build/main/calc.html +++ b/doc/build/main/calc.html @@ -39,15 +39,17 @@
import easymacro as app
 
+
+

Document

-

Current doc

+

Current doc

doc = app.active
 app.msgbox(doc.type)
 
-

Selection

+

Selection

@@ -58,7 +60,7 @@
-

Headers

+

Headers

@@ -71,7 +73,7 @@
-

Tabs

+

Tabs

@@ -82,12 +84,12 @@ doc.tabs = not doc.tabs +
+
-

Sheets

-
- +

Sheets

-

Active sheet

+

Active sheet

sheet = app.active_sheet
 app.msgbox(sheet.name)
 
@@ -98,7 +100,7 @@
 
-

Get by index

+

Get by index

doc = app.active
 sheet = doc[0]
 app.msgbox(sheet.name)
@@ -106,7 +108,7 @@
 
-

Get by name

+

Get by name

doc = app.active
 sheet = doc['Sheet1']
 app.msgbox(sheet.name)
@@ -114,28 +116,28 @@
 
-

Contains

+

Contains

doc = app.active
 app.msgbox('Sheet1' in doc)
 
-

Get tuple with all names

+

Get tuple with all names

doc = app.active
 app.msgbox(doc.names)
 
-

Count

+

Count

doc = app.active
 app.msgbox(len(doc))
 
-

New

+

New

@@ -159,7 +161,7 @@
-

Move

+

Move

@@ -196,7 +198,7 @@
-

Remove

+

Remove

@@ -219,7 +221,7 @@
-

Copy

+

Copy

-

Copy from

+

Copy from

@@ -257,7 +259,7 @@
-

Copy to

+

Copy to

@@ -276,7 +278,7 @@
-

Sort

+

Sort

@@ -286,7 +288,7 @@
-

Name

+

Name

@@ -298,7 +300,7 @@
-

Code name

+

Code name

@@ -310,7 +312,7 @@
-

Visible

+

Visible

@@ -323,7 +325,7 @@
-

Is protected

+

Is protected

@@ -333,7 +335,7 @@
-

Set password

+

Set password

sheet = app.active_sheet
 sheet.password = 'letmein'
 app.msgbox(sheet.is_protected)
@@ -341,7 +343,7 @@
 
-

Remove password

+

Remove password

sheet = app.active_sheet
 sheet.password = 'letmein'
 app.msgbox(sheet.is_protected)
@@ -352,7 +354,7 @@
 
-

Tab color

+

Tab color

sheet = app.active_sheet
 app.msgbox(sheet.color)
 
@@ -366,13 +368,13 @@
 
-

Document parent

+

Document parent

doc = sheet.doc
 
-

Activate

+

Activate

doc = app.active
 # Get last sheet
 sheet = doc[-1]
@@ -385,6 +387,46 @@
 
+ +
+

Ranges

+
+

Cells

+ +
sheet = app.active_sheet
+cell = sheet['A1']
+app.msgbox(cell.name)
+
+
+ +
cell = sheet[1, 4]
+app.msgbox(cell.name)
+
+
+
+
+

Ranges

+ +
sheet = app.active_sheet
+rango = sheet['B2:D5']
+app.msgbox(rango.name)
+
+
+ +
rango = sheet[1:5,1:4]
+app.msgbox(rango.name)
+
+
+
+
diff --git a/doc/build/main/easymacro.html b/doc/build/main/easymacro.html index 145b24e..a58b2ea 100644 --- a/doc/build/main/easymacro.html +++ b/doc/build/main/easymacro.html @@ -140,32 +140,9 @@
  • Calc
  • Writer